diff --git a/Makefile b/Makefile index 9a82b81..3c18afe 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -all: grip-graphql-endpoint.so gen3_writer.so grip-graphql-proxy +all: grip-graphql-endpoint.so gen3_writer.so grip-graphql-proxy gql-gen gen3_writer.so : $(shell find gen3_writer -name "*.go") go build --buildmode=plugin ./gen3_writer @@ -13,5 +13,8 @@ grip-graphql-proxy : $(shell find cmd/grip-graphql-proxy -name "*.go") graphql_gen3 : $(shell find graphql_gen3 -name "*.go") go build --buildmode=plugin ./graphql_gen3 +gql-gen : $(shell find gql-gen -name "*.go") + go build --buildmode=plugin ./gql-gen + clean: - rm grip-graphql-proxy grip-graphql-endpoint.so gen3_writer.so \ No newline at end of file + rm grip-graphql-proxy grip-graphql-endpoint.so gen3_writer.so gql-gen.so \ No newline at end of file diff --git a/README.md b/README.md index ec19aa1..af8e6a9 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,28 @@ gripgraphql directory contains a graphql based read query plugin that uses a [go graphql_gen3 is a legacy implementation of a reader reader plugin using a more traditional graphql schema builder. See ./gen3_writer for tests and additional documentation + +### Matching plugin versions to avoid go.mod version Errors: + +Error messages when loading plugins into grip like the one below are quite common: + +``` +message Error loading pluging test: plugin.Open("gql-gen"): plugin was built with a different version of package golang.org/x/sys/unix +time 2024-12-11T16:27:49-08:00 +``` + +These are caused when the grip executable's build package versions are not equivalent with the plugin's build package versions. There are a veriety of reasons why this might be true: + +1. Make sure that the go version of Grip go.mod and the go version of this go.mod are the same. + +2. Make sure that the versions of all of the packages across both go.mod files are the same + +3. install grip with go install github.com/bmeg/grip@[hash] when deploying using a docker container and debug with a replace statement to avoid having to make a commit everytime a change is made to the grip go.mod file. + +Ex: + +``` +replace github.com/bmeg/grip v0.0.0-20241211235035-b772edec00b9 => ../grip +``` + +Note: Go versions of packages can change when a new package is added in this repo, or when a new package is added in grip. diff --git a/go.mod b/go.mod index 307f08d..d156bc4 100644 --- a/go.mod +++ b/go.mod @@ -2,8 +2,11 @@ module github.com/bmeg/grip-graphql go 1.22.5 +replace github.com/bmeg/grip v0.0.0-20241211235035-b772edec00b9 => ../grip + require ( - github.com/bmeg/grip v0.0.0-20241130225536-67d787e0b831 + github.com/99designs/gqlgen v0.17.60 + github.com/bmeg/grip v0.0.0-20241211235035-b772edec00b9 github.com/dop251/goja v0.0.0-20240707163329-b1681fb2a2f5 github.com/gin-gonic/gin v1.8.1 github.com/golang-jwt/jwt/v5 v5.2.1 @@ -12,44 +15,20 @@ 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.34.2 + google.golang.org/protobuf v1.35.2 ) require ( - filippo.io/edwards25519 v1.1.0 // indirect - github.com/DataDog/zstd v1.5.5 // indirect - github.com/Shopify/sarama v1.38.1 // indirect - github.com/Workiva/go-datastructures v1.1.5 // indirect + github.com/agnivade/levenshtein v1.2.0 // indirect github.com/akuity/grpc-gateway-client v0.0.0-20231116134900-80c401329778 // indirect github.com/alevinval/sse v1.0.2 // indirect - github.com/beorn7/perks v1.0.1 // indirect github.com/bmeg/jsonpath v0.0.0-20210207014051-cca5355553ad // indirect - github.com/bmeg/jsonschema/v5 v5.3.4-0.20241111204732-55db82022a92 // indirect - github.com/bmeg/jsonschemagraph v0.0.3-0.20241130225037-5545ec0ffd4b // indirect - github.com/boltdb/bolt v1.3.1 // indirect - github.com/casbin/casbin/v2 v2.97.0 // indirect - github.com/casbin/govaluate v1.2.0 // indirect - github.com/cespare/xxhash v1.1.0 // indirect - github.com/cespare/xxhash/v2 v2.3.0 // indirect - github.com/cockroachdb/errors v1.11.3 // indirect - github.com/cockroachdb/fifo v0.0.0-20240616162244-4768e80dfb9a // indirect - github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect - github.com/cockroachdb/pebble v1.1.1 // indirect - github.com/cockroachdb/redact v1.1.5 // indirect - github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/dgraph-io/badger/v2 v2.2007.4 // indirect - github.com/dgraph-io/ristretto v0.1.1 // indirect - github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect + github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect github.com/dlclark/regexp2 v1.11.2 // indirect github.com/dustin/go-humanize v1.0.1 // indirect - github.com/eapache/go-resiliency v1.6.0 // indirect - github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 // indirect - github.com/eapache/queue v1.1.0 // indirect - github.com/fatih/color v1.17.0 // indirect - github.com/felixge/httpsnoop v1.0.4 // indirect - github.com/getsentry/sentry-go v0.28.1 // indirect github.com/gin-contrib/sse v0.1.0 // indirect github.com/go-ini/ini v1.67.0 // indirect github.com/go-playground/locales v0.14.0 // indirect @@ -57,90 +36,61 @@ require ( github.com/go-playground/validator/v10 v10.11.1 // indirect github.com/go-resty/resty/v2 v2.13.1 // indirect github.com/go-sourcemap/sourcemap v2.1.4+incompatible // indirect - github.com/go-sql-driver/mysql v1.8.1 // indirect + github.com/go-viper/mapstructure/v2 v2.2.1 // indirect github.com/goccy/go-json v0.10.3 // indirect - github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.2 // indirect - github.com/golang/protobuf v1.5.4 // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/pprof v0.0.0-20240711041743-f6c9dda6c6da // indirect github.com/google/uuid v1.6.0 // indirect + github.com/gorilla/websocket v1.5.0 // indirect github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect - github.com/hashicorp/go-hclog v1.6.3 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/go-plugin v1.6.1 // indirect - github.com/hashicorp/go-uuid v1.0.3 // indirect - github.com/hashicorp/yamux v0.1.1 // indirect - github.com/imdario/mergo v0.3.16 // indirect - github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/influxdata/tdigest v0.0.1 // indirect - github.com/jcmturner/aescts/v2 v2.0.0 // indirect - github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect - github.com/jcmturner/gofork v1.7.6 // indirect - github.com/jcmturner/gokrb5/v8 v8.4.4 // indirect - github.com/jcmturner/rpc/v2 v2.0.3 // indirect github.com/jessevdk/go-flags v1.6.1 // indirect github.com/jmoiron/sqlx v1.4.0 // indirect - github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/kennygrant/sanitize v1.2.4 // indirect github.com/klauspost/compress v1.17.9 // indirect github.com/klauspost/cpuid/v2 v2.2.8 // indirect - github.com/knakk/rdf v0.0.0-20190304171630-8521bf4c5042 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect github.com/leodido/go-urn v1.2.1 // indirect - github.com/lib/pq v1.10.9 // indirect github.com/logrusorgru/aurora v2.0.3+incompatible // indirect - github.com/mailru/easyjson v0.7.7 // indirect - github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect - github.com/mattn/go-sqlite3 v1.14.23 // indirect github.com/minio/md5-simd v1.1.2 // indirect github.com/minio/minio-go/v7 v7.0.73 // indirect - github.com/mitchellh/go-testing-interface v1.14.1 // indirect - github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/montanaflynn/stats v0.7.1 // indirect - github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect - github.com/oklog/run v1.1.0 // indirect - github.com/paulbellamy/ratecounter v0.2.0 // indirect github.com/pelletier/go-toml/v2 v2.0.5 // indirect - github.com/pierrec/lz4/v4 v4.1.21 // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/prometheus/client_golang v1.19.1 // indirect - github.com/prometheus/client_model v0.6.1 // indirect - github.com/prometheus/common v0.55.0 // indirect - github.com/prometheus/procfs v0.15.1 // indirect - github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect - github.com/robertkrimen/otto v0.4.0 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/rs/xid v1.5.0 // indirect + github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/segmentio/ksuid v1.0.4 // indirect 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/syndtr/goleveldb v1.0.0 // 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 github.com/xdg-go/scram v1.1.2 // indirect github.com/xdg-go/stringprep v1.0.4 // indirect + github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect github.com/youmark/pkcs8 v0.0.0-20240424034433-3c2c7870ae76 // indirect - golang.org/x/crypto v0.25.0 // indirect - golang.org/x/exp v0.0.0-20240707233637-46b078467d37 // indirect - golang.org/x/net v0.27.0 // indirect - golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.22.0 // indirect - golang.org/x/term v0.22.0 // indirect - golang.org/x/text v0.16.0 // indirect + golang.org/x/crypto v0.30.0 // indirect + golang.org/x/mod v0.22.0 // indirect + golang.org/x/net v0.32.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect + golang.org/x/tools v0.28.0 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240711142825-46eb208f015d // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240711142825-46eb208f015d // indirect google.golang.org/grpc v1.65.0 // indirect - gopkg.in/olivere/elastic.v5 v5.0.86 // indirect - gopkg.in/sourcemap.v1 v1.0.5 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect sigs.k8s.io/yaml v1.4.0 // indirect ) diff --git a/go.sum b/go.sum index 99be4d2..9aa59a7 100644 --- a/go.sum +++ b/go.sum @@ -3,124 +3,56 @@ buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.31.0-2023110619213 cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= +github.com/99designs/gqlgen v0.17.60 h1:xxl7kQDCNw79itzWQtCUSXgkovCyq9r+ogSXfZpKPYM= +github.com/99designs/gqlgen v0.17.60/go.mod h1:vQJzWXyGya2TYL7cig1G4OaCQzyck031MgYBlUwaI9I= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/DataDog/zstd v1.5.5 h1:oWf5W7GtOLgp6bciQYDmhHHjdhYkALu6S/5Ni9ZgSvQ= -github.com/DataDog/zstd v1.5.5/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= -github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/Shopify/sarama v1.38.1 h1:lqqPUPQZ7zPqYlWpTh+LQ9bhYNu2xJL6k1SJN4WVe2A= -github.com/Shopify/sarama v1.38.1/go.mod h1:iwv9a67Ha8VNa+TifujYoWGxWnu2kNVAQdSdZ4X2o5g= -github.com/Workiva/go-datastructures v1.1.5 h1:5YfhQ4ry7bZc2Mc7R0YZyYwpf5c6t1cEFvdAhd6Mkf4= -github.com/Workiva/go-datastructures v1.1.5/go.mod h1:1yZL+zfsztete+ePzZz/Zb1/t5BnDuE2Ya2MMGhzP6A= +github.com/PuerkitoBio/goquery v1.9.3 h1:mpJr/ikUA9/GNJB/DBZcGeFDXUtosHRyRrwh7KGdTG0= +github.com/PuerkitoBio/goquery v1.9.3/go.mod h1:1ndLHPdTz+DyQPICCWYlYQMPl0oXZj0G6D4LCYA6u4U= +github.com/agnivade/levenshtein v1.2.0 h1:U9L4IOT0Y3i0TIlUIDJ7rVUziKi/zPbrJGaFrtYH3SY= +github.com/agnivade/levenshtein v1.2.0/go.mod h1:QVVI16kDrtSuwcpd0p1+xMC6Z/VfhtCyDIjcwga4/DU= github.com/akuity/grpc-gateway-client v0.0.0-20231116134900-80c401329778 h1:qj3+B4PU5AR2mBffDVXvP2d3hLCNDot28KKPWvQnOxs= github.com/akuity/grpc-gateway-client v0.0.0-20231116134900-80c401329778/go.mod h1:0MZqOxL+zq+hGedAjYhkm1tOKuZyjUmE/xA8nqXa9q0= github.com/alevinval/sse v1.0.2 h1:ooc08hn9B5X/u7vOMpnYDkXxIKA0y5DOw9qBVVK3YKY= github.com/alevinval/sse v1.0.2/go.mod h1:X4J1/nTNs4yKbvjXFWJB+NdF9gaYkoAC4sw9Z9h7ASk= +github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ= +github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= +github.com/andybalholm/cascadia v1.3.2 h1:3Xi6Dw5lHF15JtdcmAHD3i1+T8plmv7BQ/nsViSLyss= +github.com/andybalholm/cascadia v1.3.2/go.mod h1:7gtRlve5FxPPgIgX36uWBX58OdBsSS6lUvCFb+h7KvU= github.com/antlr/antlr4/runtime/Go/antlr v1.4.10 h1:yL7+Jz0jTC6yykIK/Wh74gnTJnrGr5AyrNMXuA0gves= github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230512164433-5d1fd1a340c9 h1:goHVqTbFX3AIo0tzGr14pgfAW2ZfPChKO21Z9MGf/gk= github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230512164433-5d1fd1a340c9/go.mod h1:pSwJ0fSY5KhvocuWSx4fz3BA8OrA1bQn+K1Eli3BRwM= -github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= -github.com/aws/aws-sdk-go v1.29.11/go.mod h1:1KvfttTE3SPKMpo8g2c6jL3ZKfXtFvKscTgahTma5Xg= +github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0 h1:jfIu9sQUG6Ig+0+Ap1h4unLjW6YQJpKZVmUzxsD4E/Q= +github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0/go.mod h1:t2tdKJDJF9BV14lnkjHmOQgcvEKgtqs5a1N3LNdJhGE= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= -github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= -github.com/bmeg/grip v0.0.0-20240812223417-99c314b06713 h1:uRQAIqpcofB6b3QUa77au2UJ71KESBlolIFfl09fLDM= -github.com/bmeg/grip v0.0.0-20240812223417-99c314b06713/go.mod h1:8gAdpKQAoY/Cf1dfubAN3xyHX/hmbUiC1XPi12VVSUk= -github.com/bmeg/grip v0.0.0-20241115230211-7351ace7290f h1:AEJYktWrDjsZboTUnD3gxTwyl4ROHx8RxYOlnxJMULU= -github.com/bmeg/grip v0.0.0-20241115230211-7351ace7290f/go.mod h1:l/8+xgmqFmbOqaY8n++uYKxprMByl1yImCyJBfLfPsU= -github.com/bmeg/grip v0.0.0-20241118220032-bb2b9dd10ce4 h1:G3AH2HfgRv0hPkJA2+eSFpogXjRirVCACDDtcQyMLhE= -github.com/bmeg/grip v0.0.0-20241118220032-bb2b9dd10ce4/go.mod h1:l/8+xgmqFmbOqaY8n++uYKxprMByl1yImCyJBfLfPsU= -github.com/bmeg/grip v0.0.0-20241119224722-821431f4728c h1:uRXx01IeIDav7jcMJaelOvsi60YYHi3JSZHntHu0XLE= -github.com/bmeg/grip v0.0.0-20241119224722-821431f4728c/go.mod h1:fic/942cjKIBWnZ9HKzoknVhQHWOHYkbfCoTTQLT+2w= -github.com/bmeg/grip v0.0.0-20241119230816-a7f6fdd48051 h1:r5AE3WgJqdxA7DJ2U7d2KMB1kaePYz45XoBez9P+BiI= -github.com/bmeg/grip v0.0.0-20241119230816-a7f6fdd48051/go.mod h1:fic/942cjKIBWnZ9HKzoknVhQHWOHYkbfCoTTQLT+2w= -github.com/bmeg/grip v0.0.0-20241122195322-515a682d56f7 h1:/y6m1fI9tZaaCy/DAgk+uZmQHdlaykx1G8rCJXQswiA= -github.com/bmeg/grip v0.0.0-20241122195322-515a682d56f7/go.mod h1:2YAjHdHHKDeUHtOui5g/xRFk6uosktkzLPFPY7n/4d8= -github.com/bmeg/grip v0.0.0-20241130225536-67d787e0b831 h1:P6iO3yzIYFsuG0Lfh7dj4WMuvLv/sXvV0QvUcBh+/LM= -github.com/bmeg/grip v0.0.0-20241130225536-67d787e0b831/go.mod h1:BlltO6pCUdfyqIc1RZFVqvSpH4Mzr47aCwI4Ex4JURQ= github.com/bmeg/jsonpath v0.0.0-20210207014051-cca5355553ad h1:ICgBexeLB7iv/IQz4rsP+MimOXFZUwWSPojEypuOaQ8= github.com/bmeg/jsonpath v0.0.0-20210207014051-cca5355553ad/go.mod h1:ft96Irkp72C7ZrUWRenG7LrF0NKMxXdRvsypo5Njhm4= -github.com/bmeg/jsonschema/v5 v5.3.4-0.20241111204732-55db82022a92 h1:Myx/j+WxfEg+P3nDaizR1hBpjKSLgvr4ydzgp1/1pAU= -github.com/bmeg/jsonschema/v5 v5.3.4-0.20241111204732-55db82022a92/go.mod h1:6v27bSBKXyIDFqlKQbUSnHlekE1y6bDkgWCuVEaDPng= -github.com/bmeg/jsonschemagraph v0.0.3-0.20241113190142-5e57a1561020 h1:7/dWlBDJdKYhtF31LO8zXcw/IcYsmp/MWpydk6PzuNA= -github.com/bmeg/jsonschemagraph v0.0.3-0.20241113190142-5e57a1561020/go.mod h1:k04v50661tQFKgYl6drQxWGf9q0dBmKhd6lwIk1rcCw= -github.com/bmeg/jsonschemagraph v0.0.3-0.20241130225037-5545ec0ffd4b h1:k9j0qId2gRBwYhSdvqlBfQQDNIU4nohG4J9lu9crWE0= -github.com/bmeg/jsonschemagraph v0.0.3-0.20241130225037-5545ec0ffd4b/go.mod h1:k04v50661tQFKgYl6drQxWGf9q0dBmKhd6lwIk1rcCw= -github.com/boltdb/bolt v1.3.1 h1:JQmyP4ZBrce+ZQu0dY660FMfatumYDLun9hBCUVIkF4= -github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= github.com/bufbuild/protovalidate-go v0.4.0 h1:ModSkCLEW07fiyGtdtMXKY+Gz3oPFKSfiaSCgL+FtpU= github.com/bufbuild/protovalidate-go v0.4.0/go.mod h1:QqeUPLVYEKQc+/rkoUXFqXW03zPBfrEfIbX+zmA0VxA= github.com/bufbuild/protoyaml-go v0.1.5 h1:Vc3KTOPRoDbTT/FqqUSJl+jGaVesX9/M3tFCfbgBIHc= github.com/bufbuild/protoyaml-go v0.1.5/go.mod h1:P6mVGDTZ9gcKGr+tf1xgvSLx5VWBn+l79pQFMGg2O0E= -github.com/casbin/casbin/v2 v2.97.0 h1:FFHIzY+6fLIcoAB/DKcG5xvscUo9XqRpBniRYhlPWkg= -github.com/casbin/casbin/v2 v2.97.0/go.mod h1:jX8uoN4veP85O/n2674r2qtfSXI6myvxW85f6TH50fw= -github.com/casbin/govaluate v1.1.0/go.mod h1:G/UnbIjZk/0uMNaLwZZmFQrR72tYRZWQkO70si/iR7A= -github.com/casbin/govaluate v1.2.0 h1:wXCXFmqyY+1RwiKfYo3jMKyrtZmOL3kHwaqDyCPOYak= -github.com/casbin/govaluate v1.2.0/go.mod h1:G/UnbIjZk/0uMNaLwZZmFQrR72tYRZWQkO70si/iR7A= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= -github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= -github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= -github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= 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/cockroachdb/errors v1.11.3 h1:5bA+k2Y6r+oz/6Z/RFlNeVCesGARKuC6YymtcDrbC/I= -github.com/cockroachdb/errors v1.11.3/go.mod h1:m4UIW4CDjx+R5cybPsNrRbreomiFqt8o1h1wUVazSd8= -github.com/cockroachdb/fifo v0.0.0-20240616162244-4768e80dfb9a h1:f52TdbU4D5nozMAhO9TvTJ2ZMCXtN4VIAmfrrZ0JXQ4= -github.com/cockroachdb/fifo v0.0.0-20240616162244-4768e80dfb9a/go.mod h1:9/y3cnZ5GKakj/H4y9r9GTjCvAFta7KLgSHPJJYc52M= -github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE= -github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= -github.com/cockroachdb/pebble v1.1.1 h1:XnKU22oiCLy2Xn8vp1re67cXg4SAasg/WDt1NtcRFaw= -github.com/cockroachdb/pebble v1.1.1/go.mod h1:4exszw1r40423ZsmkG/09AFEG83I0uDgfujJdbL6kYU= -github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30= -github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= -github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo= -github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= -github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= -github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= -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= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o= -github.com/dgraph-io/badger/v2 v2.2007.4/go.mod h1:vSw/ax2qojzbN6eXHIx6KPKtCSHJN/Uz0X0VPruTIhk= -github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= -github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= -github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= -github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= -github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= -github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= +github.com/dgryski/trifles v0.0.0-20230903005119-f50d829f2e54 h1:SG7nF6SRlWhcT7cNTs5R6Hk4V2lcmLz2NsG2VnInyNo= +github.com/dgryski/trifles v0.0.0-20230903005119-f50d829f2e54/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA= github.com/dlclark/regexp2 v1.11.2 h1:/u628IuisSTwri5/UKloiIsH8+qF2Pu7xEQX+yIKg68= github.com/dlclark/regexp2 v1.11.2/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8= github.com/dop251/goja v0.0.0-20240707163329-b1681fb2a2f5 h1:ZRqTaoW9WZ2DqeOQGhK9q73eCb47SEs30GV2IRHT9bo= github.com/dop251/goja v0.0.0-20240707163329-b1681fb2a2f5/go.mod h1:o31y53rb/qiIAONF7w3FHJZRqqP3fzHUr1HqanthByw= -github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= -github.com/eapache/go-resiliency v1.6.0 h1:CqGDTLtpwuWKn6Nj3uNUdflaq+/kIPsg0gfNzHton30= -github.com/eapache/go-resiliency v1.6.0/go.mod h1:5yPzW0MIvSe0JDsv0v+DvcjEv2FyD6iZYSs1ZI+iQho= -github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 h1:Oy0F4ALJ04o5Qqpdz8XLIpNA3WM/iSIXqxtqo7UGVws= -github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3/go.mod h1:YvSRo5mw33fLEx1+DlK6L2VV43tJt5Eyel9n9XBcR+0= -github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= -github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= -github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= -github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= -github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= -github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/getsentry/sentry-go v0.28.1 h1:zzaSm/vHmGllRM6Tpx1492r0YDzauArdBfkJRtY6P5k= -github.com/getsentry/sentry-go v0.28.1/go.mod h1:1fQZ+7l7eeJ3wYi82q5Hg8GqAPgefRq+FP/QhafYVgg= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= github.com/gin-gonic/gin v1.8.1 h1:4+fr/el88TOO3ewCmQr8cx/CtZ/umlIRIs5M4NTNjf8= @@ -141,38 +73,29 @@ github.com/go-resty/resty/v2 v2.13.1 h1:x+LHXBI2nMB1vqndymf26quycC4aggYJ7DECYbiz github.com/go-resty/resty/v2 v2.13.1/go.mod h1:GznXlLxkq6Nh4sU59rPmUw3VtgpO3aS96ORAI6Q7d+0= github.com/go-sourcemap/sourcemap v2.1.4+incompatible h1:a+iTbH5auLKxaNwQFg0B+TCYl6lbukKPc7b5x0n1s6Q= github.com/go-sourcemap/sourcemap v2.1.4+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= -github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y= github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/go-viper/mapstructure/v2 v2.2.1 h1:ZAaOCxANMuZx5RCeg0mBdEZk7DZasvvZIxtHqx8aGss= +github.com/go-viper/mapstructure/v2 v2.2.1/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= github.com/goccy/go-json v0.10.3 h1:KZ5WoDbxAIgm2HNbYckL0se1fHD6rz5j4ywS6ebzDqA= github.com/goccy/go-json v0.10.3/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M= -github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= -github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/cel-go v0.18.1 h1:V/lAXKq4C3BYLDy/ARzMtpkEEYfHQpZzVyzy69nEUjs= github.com/google/cel-go v0.18.1/go.mod h1:PVAybmSnWkNMUZR/tEWFUiJ1Np4Hz0MHsZJcgC4zln4= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= @@ -184,8 +107,8 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gopherjs/gopherjs v1.17.2 h1:fQnZVsXk8uxXIStYb0N4bGk7jeyTalG/wsZjQ25dO0g= github.com/gopherjs/gopherjs v1.17.2/go.mod h1:pRRIvn/QzFLrKfvEz3qUuEhtE/zLCWfreZ6J5gM2i+k= -github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= -github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM= +github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= +github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/graphql-go/graphql v0.8.1 h1:p7/Ou/WpmulocJeEx7wjQy611rtXGQaAcXGqanuMMgc= github.com/graphql-go/graphql v0.8.1/go.mod h1:nKiHzRM0qopJEwCITUuIsxk9PlVlwIiiI8pnJEhordQ= github.com/graphql-go/handler v0.2.4 h1:gz9q11TUHPNUpqzV8LMa+rkqM5NUuH/nkE3oF2LS3rI= @@ -197,64 +120,30 @@ github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0/go.mod h1:P+Lt/0by1T8bfcF3z737 github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k= -github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/go-plugin v1.6.1 h1:P7MR2UP6gNKGPp+y7EZw2kOiq4IR9WiqLvp0XOsVdwI= -github.com/hashicorp/go-plugin v1.6.1/go.mod h1:XPHFku2tFo3o3QKFgSYo+cghcUhw1NA1hZyMK0PWAw0= -github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= -github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= -github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= -github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4= -github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= -github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= -github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +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/influxdata/tdigest v0.0.1 h1:XpFptwYmnEKUqmkcDjrzffswZ3nvNeevbUSLPP/ZzIY= github.com/influxdata/tdigest v0.0.1/go.mod h1:Z0kXnxzbTC2qrx4NaIzYkE1k66+6oEDQTvL95hQFh5Y= -github.com/jcmturner/aescts/v2 v2.0.0 h1:9YKLH6ey7H4eDBXW8khjYslgyqG2xZikXP0EQFKrle8= -github.com/jcmturner/aescts/v2 v2.0.0/go.mod h1:AiaICIRyfYg35RUkr8yESTqvSy7csK90qZ5xfvvsoNs= -github.com/jcmturner/dnsutils/v2 v2.0.0 h1:lltnkeZGL0wILNvrNiVCR6Ro5PGU/SeBvVO/8c/iPbo= -github.com/jcmturner/dnsutils/v2 v2.0.0/go.mod h1:b0TnjGOvI/n42bZa+hmXL+kFJZsFT7G4t3HTlQ184QM= -github.com/jcmturner/gofork v1.7.6 h1:QH0l3hzAU1tfT3rZCnW5zXl+orbkNMMRGJfdJjHVETg= -github.com/jcmturner/gofork v1.7.6/go.mod h1:1622LH6i/EZqLloHfE7IeZ0uEJwMSUyQ/nDd82IeqRo= -github.com/jcmturner/goidentity/v6 v6.0.1/go.mod h1:X1YW3bgtvwAXju7V3LCIMpY0Gbxyjn/mY9zx4tFonSg= -github.com/jcmturner/gokrb5/v8 v8.4.4 h1:x1Sv4HaTpepFkXbt2IkL29DXRf8sOfZXo8eRKh687T8= -github.com/jcmturner/gokrb5/v8 v8.4.4/go.mod h1:1btQEpgT6k+unzCwX1KdWMEwPPkkgBtP+F6aCACiMrs= -github.com/jcmturner/rpc/v2 v2.0.3 h1:7FXXj8Ti1IaVFpSAziCZWNzbNuZmnvw/i6CqLNdWfZY= -github.com/jcmturner/rpc/v2 v2.0.3/go.mod h1:VUJYCIDm3PVOEHw8sgt091/20OJjskO/YJki3ELg/Hc= github.com/jessevdk/go-flags v1.6.1 h1:Cvu5U8UGrLay1rZfv/zP7iLpSHGUZ/Ou68T0iX1bBK4= github.com/jessevdk/go-flags v1.6.1/go.mod h1:Mk8T1hIAWpOiJiHa9rJASDK2UGWji0EuPGBnNLMooyc= -github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jmoiron/sqlx v1.4.0 h1:1PLqN7S1UYp5t4SrVVnt4nUVNemrDAtxlulVe+Qgm3o= github.com/jmoiron/sqlx v1.4.0/go.mod h1:ZrZ7UsYB/weZdl2Bxg6jCRO9c3YHl8r3ahlKmRT4JLY= -github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= -github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= -github.com/kennygrant/sanitize v1.2.4 h1:gN25/otpP5vAsO2djbMhF/LQX6R7+O1TB4yv8NzpJ3o= -github.com/kennygrant/sanitize v1.2.4/go.mod h1:LGsjYYtgxbetdg5owWB2mpgUL6e2nfw2eObZ0u0qvak= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA= github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.1/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= github.com/klauspost/cpuid/v2 v2.2.8 h1:+StwCXwm9PdpiEkPyzBXIy+M9KUb4ODm0Zarf1kS5BM= github.com/klauspost/cpuid/v2 v2.2.8/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= -github.com/knakk/rdf v0.0.0-20190304171630-8521bf4c5042 h1:Vzdm5hdlLdpJOKK+hKtkV5u7xGZmNW6aUBjGcTfwx84= -github.com/knakk/rdf v0.0.0-20190304171630-8521bf4c5042/go.mod h1:fYE0718xXI13XMYLc6iHtvXudfyCGMsZ9hxSM1Ommpg= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -269,20 +158,8 @@ github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/logrusorgru/aurora v2.0.3+incompatible h1:tOpm7WcpBTn4fjmVfgpQq0EfczGlG91VSDkswnjF5A8= github.com/logrusorgru/aurora v2.0.3+incompatible/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4= -github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/mailru/easyjson v0.7.1/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= -github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= -github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= -github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= -github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= -github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= -github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= -github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU= github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/mattn/go-sqlite3 v1.14.23 h1:gbShiuAP1W5j9UOksQ06aiiqPMxYecovVGwmTxWtuw0= github.com/mattn/go-sqlite3 v1.14.23/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= @@ -290,12 +167,6 @@ github.com/minio/md5-simd v1.1.2 h1:Gdi1DZK69+ZVMoNHRXJyNcxrMA4dSxoYHZSQbirFg34= github.com/minio/md5-simd v1.1.2/go.mod h1:MzdKDxYpY2BT9XQFocsiZf/NKVtR7nkE4RoEpN+20RM= github.com/minio/minio-go/v7 v7.0.73 h1:qr2vi96Qm7kZ4v7LLebjte+MQh621fFWnv93p12htEo= github.com/minio/minio-go/v7 v7.0.73/go.mod h1:qydcVzV8Hqtj1VtEocfxbmVFa2siu6HGa+LDEPogjD8= -github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= -github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= -github.com/mitchellh/hashstructure/v2 v2.0.2 h1:vGKWl0YJqUNxE8d+h8f6NJLcCJrgbhC4NcD46KavDd4= -github.com/mitchellh/hashstructure/v2 v2.0.2/go.mod h1:MG3aRVU/N29oo/V/IhBX8GR/zz4kQkprJgF2EVszyDE= -github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -306,44 +177,18 @@ github.com/mongodb/mongo-tools v0.0.0-20240715143021-aa6a140d3f17/go.mod h1:ZqxD github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= github.com/montanaflynn/stats v0.7.1 h1:etflOAAHORrCC44V+aR6Ftzort912ZU+YLiSTuV8eaE= github.com/montanaflynn/stats v0.7.1/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= -github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= -github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= -github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/olivere/elastic/v7 v7.0.12/go.mod h1:14rWX28Pnh3qCKYRVnSGXWLf9MbLonYS/4FDCY3LAPo= -github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaRUnok+kx1WdO15EQc= github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= -github.com/paulbellamy/ratecounter v0.2.0 h1:2L/RhJq+HA8gBQImDXtLPrDXK5qAj6ozWVK/zFXVJGs= -github.com/paulbellamy/ratecounter v0.2.0/go.mod h1:Hfx1hDpSGoqxkVVpBi/IlYD7kChlfo5C6hzIHwPqfFE= -github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml/v2 v2.0.5 h1:ipoSadvV8oGUjnUbMub59IDPPwfxF694nG/jwbMiyQg= github.com/pelletier/go-toml/v2 v2.0.5/go.mod h1:OMHamSCAODeSsVrwwvcJOaoN0LIUIaFVNZzmWyNfXas= -github.com/philhofer/fwd v1.1.1/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU= -github.com/pierrec/lz4/v4 v4.1.21 h1:yOVMLb6qSIDP67pl/5F7RepeKYu/VmTyEXvuMI5d9mQ= -github.com/pierrec/lz4/v4 v4.1.21/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_golang v1.19.1 h1:wZWJDwK+NameRJuPGDhlnFgx8e8HN3XHQeLaYJFJBOE= -github.com/prometheus/client_golang v1.19.1/go.mod h1:mP78NwGzrVks5S2H6ab8+ZZGJLZUq1hoULYBAYBw1Ho= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= -github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= -github.com/prometheus/common v0.55.0 h1:KEi6DK7lXW/m7Ig5i47x0vRzuBsHuvJdi5ee6Y3G1dc= -github.com/prometheus/common v0.55.0/go.mod h1:2SECS4xJG1kd8XF9IcM1gMX6510RAEL65zxzNImwdc8= -github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= -github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= -github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= -github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/robertkrimen/otto v0.4.0 h1:/c0GRrK1XDPcgIasAsnlpBT5DelIeB9U/Z/JCQsgr7E= -github.com/robertkrimen/otto v0.4.0/go.mod h1:uW9yN1CYflmUQYvAMS0m+ZiNo3dMzRUDQJX0jWbzgxw= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= @@ -351,61 +196,48 @@ github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= github.com/rs/xid v1.5.0 h1:mKX4bl4iPYJtEIxp6CYiUuLQ/8DYMoz0PUdtGgMFRVc= github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= -github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= +github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/segmentio/ksuid v1.0.4 h1:sBo2BdShXjmcugAMwjugoGUdUV0pcxY5mW4xKRn3v4c= github.com/segmentio/ksuid v1.0.4/go.mod h1:/XUiZBD3kVx5SmUOl55voK5yeAbBNNIed+2O73XgrPE= +github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= +github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/smarty/assertions v1.15.0 h1:cR//PqUBUiQRakZWqBiFFQ9wb8emQGDb0HeGdqGByCY= github.com/smarty/assertions v1.15.0/go.mod h1:yABtdzeQs6l1brC900WlRNwj6ZR55d7B+E8C6HtKdec= -github.com/smartystreets/assertions v1.0.1/go.mod h1:kHHU4qYBaI3q23Pp3VPrmWhuIUrLW/7eUrw0BU5VaoM= -github.com/smartystreets/go-aws-auth v0.0.0-20180515143844-0c1422d1fdb9/go.mod h1:SnhjPscd9TpLiy1LpzGSKh3bXCfxxXuqd9xmQJy3slM= github.com/smartystreets/goconvey v1.8.1 h1:qGjIddxOk4grTu9JPOU31tVfq3cNdBlNa5sSznIX1xY= github.com/smartystreets/goconvey v1.8.1/go.mod h1:+/u4qLyY6x1jReYOp7GOM2FSt8aP9CzCZL03bI28W60= -github.com/smartystreets/gunit v1.1.3/go.mod h1:EH5qMBab2UclzXUcpR8b93eHsIlp9u+pDQIRp5DZNzQ= -github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/sosodev/duration v1.3.1 h1:qtHBDMQ6lvMQsL15g4aopM4HEfOaYuhWBw3NPTtlqq4= +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 v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= -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/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= -github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= 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/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= github.com/stoewer/go-strcase v1.3.0 h1:g0eASXYtp+yvN9fK8sH94oCIk0fau9uV1/ZdJ0AVEzs= github.com/stoewer/go-strcase v1.3.0/go.mod h1:fAH5hQ5pehh+j3nZfvwdk2RgEgQjAoM8wodgtPmh1xo= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/syndtr/goleveldb v1.0.0 h1:fBdIW9lB4Iz0n9khmH8w27SJ3QEJ7+IgjPEwGSZiFdE= -github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= -github.com/tinylib/msgp v1.1.5/go.mod h1:eQsjooMTnV42mHu917E26IogZ2930nFyBQdofk10Udg= -github.com/ttacon/chalk v0.0.0-20160626202418-22c06c80ed31/go.mod h1:onvgF043R+lC5RZ8IT9rBXDaEDnpnw/Cl+HFiw+v/7Q= github.com/ugorji/go v1.2.7/go.mod h1:nF9osbDWLy6bDVv/Rtoh6QgnvNDpmCalQV5urGCCS6M= -github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0= github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY= +github.com/urfave/cli/v2 v2.27.5 h1:WoHEJLdsXr6dDWoJgMq/CboDmyY/8HMMH1fTECbih+w= +github.com/urfave/cli/v2 v2.27.5/go.mod h1:3Sevf16NykTbInEnD0yKkjDAeZDS0A6bzhBH5hrMvTQ= +github.com/vektah/gqlparser/v2 v2.5.20 h1:kPaWbhBntxoZPaNdBaIPT1Kh0i1b/onb5kXgEdP5JCo= +github.com/vektah/gqlparser/v2 v2.5.20/go.mod h1:xMl+ta8a5M1Yo1A1Iwt/k7gSpscwSnHZdw7tfhEGfTM= github.com/xdg-go/pbkdf2 v1.0.0 h1:Su7DPu48wXMwC3bs7MCNG+z4FhcyEuz5dlvchbq0B0c= github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= github.com/xdg-go/scram v1.1.1/go.mod h1:RaEWvsqvNKKvBPvcKeFjrG2cJqOkHTiyTpzz23ni57g= @@ -414,7 +246,8 @@ github.com/xdg-go/scram v1.1.2/go.mod h1:RT/sEzTbU5y00aCK8UOx6R7YryM0iF1N2MOmC3k github.com/xdg-go/stringprep v1.0.3/go.mod h1:W3f5j4i+9rC0kuIEJL0ky1VpHXQU3ocBgklLGvcBnW8= github.com/xdg-go/stringprep v1.0.4 h1:XLI/Ng3O1Atzq0oBs3TWm+5ZVgkq2aqdlvP9JtoZ6c8= github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gijq1dTyGkM= -github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= +github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4= +github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM= github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA= github.com/youmark/pkcs8 v0.0.0-20240424034433-3c2c7870ae76 h1:tBiBTKHnIjovYoLX/TPkcf+OjqqKGQrPtGT3Foz+Pgo= github.com/youmark/pkcs8 v0.0.0-20240424034433-3c2c7870ae76/go.mod h1:SQliXeA7Dhkt//vS29v3zpbEwoa+zb2Cn5xj5uO4K5U= @@ -423,23 +256,20 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= go.mongodb.org/mongo-driver v1.11.9 h1:JY1e2WLxwNuwdBAPgQxjf4BWweUGP86lF55n89cGZVA= go.mongodb.org/mongo-driver v1.11.9/go.mod h1:P8+TlbZtPFgjUrmnIF41z97iDnSMswJJu6cztZSlCTg= -go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= -golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= -golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30= -golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M= +golang.org/x/crypto v0.30.0 h1:RwoQn3GkWiMkzlX562cLB7OxWvjH1L8xutO2WoJcRoY= +golang.org/x/crypto v0.30.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20240707233637-46b078467d37 h1:uLDX+AfeFCct3a2C7uIWBKMJIR3CJMhcgfrUAqjRK6w= @@ -452,80 +282,65 @@ golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4= +golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= -golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= -golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= +golang.org/x/net v0.32.0 h1:ZqPmj8Kzc+Y6e0+skZsuACbx+wzMgo5MQsJh9Qd6aYI= +golang.org/x/net v0.32.0/go.mod h1:CwU0IoeOlnQQWJ6ioyFrfRuomB8GKF6KbYXZVyeXNfs= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= -golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= -golang.org/x/term v0.22.0 h1:BbsgPEJULsl2fV/AT3v15Mjva5yXKQDyKf+TbDz7QJk= -golang.org/x/term v0.22.0/go.mod h1:F3qCibpT5AMpCRfhfT53vVJwhLtIVHhB9XDjfFvnMI4= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= @@ -534,8 +349,8 @@ golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -543,15 +358,15 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20201022035929-9cf592e881e9/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/tools v0.28.0 h1:WuB6qZ4RPCQo5aP3WdKZS7i595EdWqWR8vqJTlwTVK8= +golang.org/x/tools v0.28.0/go.mod h1:dcIOrVd3mfQKTgrDVQHqCPMWy6lnhfhtX3hLXYVLfRw= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -563,7 +378,6 @@ gonum.org/v1/netlib v0.0.0-20181029234149-ec6d1f5cefe6/go.mod h1:wa6Ws7BG/ESfp6d google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto/googleapis/api v0.0.0-20240711142825-46eb208f015d h1:kHjw/5UfflP/L5EbledDrcG4C2597RtymmGRZvHiCuY= @@ -571,28 +385,19 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240711142825-46eb208f015d/go. google.golang.org/genproto/googleapis/rpc v0.0.0-20240711142825-46eb208f015d h1:JU0iKnSg02Gmb5ZdV8nYsKEKsP6o/FGVWTrw4i1DA9A= google.golang.org/genproto/googleapis/rpc v0.0.0-20240711142825-46eb208f015d/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc= google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= -google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +google.golang.org/protobuf v1.35.2 h1:8Ar7bF+apOIoThw1EdZl0p1oWvMqTHmpA2fRTyZO8io= +google.golang.org/protobuf v1.35.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/olivere/elastic.v5 v5.0.86 h1:xFy6qRCGAmo5Wjx96srho9BitLhZl2fcnpuidPwduXM= -gopkg.in/olivere/elastic.v5 v5.0.86/go.mod h1:M3WNlsF+WhYn7api4D87NIflwTV/c0iVs8cqfWhK+68= -gopkg.in/sourcemap.v1 v1.0.5 h1:inv58fC9f9J3TK2Y2R1NPntXEn3/wjWHkonhIUODNTI= -gopkg.in/sourcemap.v1 v1.0.5/go.mod h1:2RlvNNSMglmRrcvhfuzp4hQHwOtjxlbjX7UPY/GXb78= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= diff --git a/gql-gen/generated/exec.go b/gql-gen/generated/exec.go new file mode 100644 index 0000000..fca7c17 --- /dev/null +++ b/gql-gen/generated/exec.go @@ -0,0 +1,200507 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package generated + +import ( + "bytes" + "context" + "errors" + "fmt" + "strconv" + "sync" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/99designs/gqlgen/graphql/introspection" + "github.com/bmeg/grip-graphql/gql-gen/model" + gqlparser "github.com/vektah/gqlparser/v2" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. +func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { + return &executableSchema{ + schema: cfg.Schema, + resolvers: cfg.Resolvers, + directives: cfg.Directives, + complexity: cfg.Complexity, + } +} + +type Config struct { + Schema *ast.Schema + Resolvers ResolverRoot + Directives DirectiveRoot + Complexity ComplexityRoot +} + +type ResolverRoot interface { + Query() QueryResolver +} + +type DirectiveRoot struct { +} + +type ComplexityRoot struct { + Address struct { + City func(childComplexity int) int + Country func(childComplexity int) int + District func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Line func(childComplexity int) int + Period func(childComplexity int) int + PostalCode func(childComplexity int) int + ResourceType func(childComplexity int) int + State func(childComplexity int) int + Text func(childComplexity int) int + Type func(childComplexity int) int + Use func(childComplexity int) int + } + + Age struct { + Code func(childComplexity int) int + Comparator func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ResourceType func(childComplexity int) int + System func(childComplexity int) int + Unit func(childComplexity int) int + Value func(childComplexity int) int + } + + Annotation struct { + AuthorReference func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + AuthorString func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ResourceType func(childComplexity int) int + Text func(childComplexity int) int + Time func(childComplexity int) int + } + + Attachment struct { + ContentType func(childComplexity int) int + Creation func(childComplexity int) int + Data func(childComplexity int) int + Duration func(childComplexity int) int + Extension func(childComplexity int) int + Frames func(childComplexity int) int + Hash func(childComplexity int) int + Height func(childComplexity int) int + ID func(childComplexity int) int + Language func(childComplexity int) int + Pages func(childComplexity int) int + ResourceType func(childComplexity int) int + Size func(childComplexity int) int + Title func(childComplexity int) int + URL func(childComplexity int) int + Width func(childComplexity int) int + } + + Availability struct { + AvailableTime func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + NotAvailableTime func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + AvailabilityAvailableTime struct { + AllDay func(childComplexity int) int + AvailableEndTime func(childComplexity int) int + AvailableStartTime func(childComplexity int) int + DaysOfWeek func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + AvailabilityNotAvailableTime struct { + Description func(childComplexity int) int + During func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + BodyStructureIncludedStructure struct { + BodyLandmarkOrientation func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Laterality func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Qualifier func(childComplexity int) int + ResourceType func(childComplexity int) int + Structure func(childComplexity int) int + } + + BodyStructureIncludedStructureBodyLandmarkOrientation struct { + ClockFacePosition func(childComplexity int) int + DistanceFromLandmark func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + LandmarkDescription func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + SurfaceOrientation func(childComplexity int) int + } + + BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark struct { + Device func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + Value func(childComplexity int) int + } + + BodyStructureType struct { + Active func(childComplexity int) int + Contained func(childComplexity int) int + Description func(childComplexity int) int + ExcludedStructure func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + Image func(childComplexity int) int + ImplicitRules func(childComplexity int) int + IncludedStructure func(childComplexity int) int + Language func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Morphology func(childComplexity int) int + Patient func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ResourceType func(childComplexity int) int + Text func(childComplexity int) int + } + + CodeableConcept struct { + Coding func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ResourceType func(childComplexity int) int + Text func(childComplexity int) int + } + + CodeableReference struct { + Concept func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + Coding struct { + Code func(childComplexity int) int + Display func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ResourceType func(childComplexity int) int + System func(childComplexity int) int + UserSelected func(childComplexity int) int + Version func(childComplexity int) int + } + + ConditionParticipant struct { + Actor func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Extension func(childComplexity int) int + Function func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + ConditionStage struct { + Assessment func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + Summary func(childComplexity int) int + Type func(childComplexity int) int + } + + ConditionType struct { + AbatementAge func(childComplexity int) int + AbatementDateTime func(childComplexity int) int + AbatementPeriod func(childComplexity int) int + AbatementRange func(childComplexity int) int + AbatementString func(childComplexity int) int + BodySite func(childComplexity int) int + Category func(childComplexity int) int + ClinicalStatus func(childComplexity int) int + Code func(childComplexity int) int + Contained func(childComplexity int) int + Evidence func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + Language func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Note func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + OnsetAge func(childComplexity int) int + OnsetDateTime func(childComplexity int) int + OnsetPeriod func(childComplexity int) int + OnsetRange func(childComplexity int) int + OnsetString func(childComplexity int) int + Participant func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + RecordedDate func(childComplexity int) int + ResourceType func(childComplexity int) int + Severity func(childComplexity int) int + Stage func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Subject func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Text func(childComplexity int) int + VerificationStatus func(childComplexity int) int + } + + ContactDetail struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + ResourceType func(childComplexity int) int + Telecom func(childComplexity int) int + } + + ContactPoint struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + Period func(childComplexity int) int + Rank func(childComplexity int) int + ResourceType func(childComplexity int) int + System func(childComplexity int) int + Use func(childComplexity int) int + Value func(childComplexity int) int + } + + Count struct { + Code func(childComplexity int) int + Comparator func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ResourceType func(childComplexity int) int + System func(childComplexity int) int + Unit func(childComplexity int) int + Value func(childComplexity int) int + } + + DataRequirement struct { + CodeFilter func(childComplexity int) int + DateFilter func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Limit func(childComplexity int) int + MustSupport func(childComplexity int) int + Profile func(childComplexity int) int + ResourceType func(childComplexity int) int + Sort func(childComplexity int) int + SubjectCodeableConcept func(childComplexity int) int + SubjectReference func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Type func(childComplexity int) int + ValueFilter func(childComplexity int) int + } + + DataRequirementCodeFilter struct { + Code func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Path func(childComplexity int) int + ResourceType func(childComplexity int) int + SearchParam func(childComplexity int) int + ValueSet func(childComplexity int) int + } + + DataRequirementDateFilter struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + Path func(childComplexity int) int + ResourceType func(childComplexity int) int + SearchParam func(childComplexity int) int + ValueDateTime func(childComplexity int) int + ValueDuration func(childComplexity int) int + ValuePeriod func(childComplexity int) int + } + + DataRequirementSort struct { + Direction func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Path func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + DataRequirementValueFilter struct { + Comparator func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Path func(childComplexity int) int + ResourceType func(childComplexity int) int + SearchParam func(childComplexity int) int + ValueDateTime func(childComplexity int) int + ValueDuration func(childComplexity int) int + ValuePeriod func(childComplexity int) int + } + + DiagnosticReportMedia struct { + Comment func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Link func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + DiagnosticReportSupportingInfo struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Reference func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ResourceType func(childComplexity int) int + Type func(childComplexity int) int + } + + DiagnosticReportType struct { + BasedOn func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Category func(childComplexity int) int + Code func(childComplexity int) int + Conclusion func(childComplexity int) int + ConclusionCode func(childComplexity int) int + Contained func(childComplexity int) int + EffectiveDateTime func(childComplexity int) int + EffectivePeriod func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + Issued func(childComplexity int) int + Language func(childComplexity int) int + Media func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Note func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Performer func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + PresentedForm func(childComplexity int) int + ResourceType func(childComplexity int) int + Result func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ResultsInterpreter func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Specimen func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Status func(childComplexity int) int + Study func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Subject func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + SupportingInfo func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Text func(childComplexity int) int + } + + Distance struct { + Code func(childComplexity int) int + Comparator func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ResourceType func(childComplexity int) int + System func(childComplexity int) int + Unit func(childComplexity int) int + Value func(childComplexity int) int + } + + DocumentReferenceAttester struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + Mode func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Party func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ResourceType func(childComplexity int) int + Time func(childComplexity int) int + } + + DocumentReferenceContent struct { + Attachment func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Profile func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + DocumentReferenceContentProfile struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + ValueCanonical func(childComplexity int) int + ValueCoding func(childComplexity int) int + ValueURI func(childComplexity int) int + } + + DocumentReferenceRelatesTo struct { + Code func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + Target func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + } + + DocumentReferenceType struct { + Attester func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Author func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + BasedOn func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + BodySite func(childComplexity int) int + Category func(childComplexity int) int + Contained func(childComplexity int) int + Content func(childComplexity int) int + Custodian func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Date func(childComplexity int) int + Description func(childComplexity int) int + DocStatus func(childComplexity int) int + Event func(childComplexity int) int + Extension func(childComplexity int) int + FacilityType func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + Language func(childComplexity int) int + Meta func(childComplexity int) int + Modality func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Period func(childComplexity int) int + PracticeSetting func(childComplexity int) int + RelatesTo func(childComplexity int) int + ResourceType func(childComplexity int) int + SecurityLabel func(childComplexity int) int + Status func(childComplexity int) int + Subject func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Text func(childComplexity int) int + Type func(childComplexity int) int + Version func(childComplexity int) int + } + + Dosage struct { + AdditionalInstruction func(childComplexity int) int + AsNeeded func(childComplexity int) int + AsNeededFor func(childComplexity int) int + DoseAndRate func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + MaxDosePerAdministration func(childComplexity int) int + MaxDosePerLifetime func(childComplexity int) int + MaxDosePerPeriod func(childComplexity int) int + Method func(childComplexity int) int + ModifierExtension func(childComplexity int) int + PatientInstruction func(childComplexity int) int + ResourceType func(childComplexity int) int + Route func(childComplexity int) int + Sequence func(childComplexity int) int + Site func(childComplexity int) int + Text func(childComplexity int) int + Timing func(childComplexity int) int + } + + DosageDoseAndRate struct { + DoseQuantity func(childComplexity int) int + DoseRange func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + RateQuantity func(childComplexity int) int + RateRange func(childComplexity int) int + RateRatio func(childComplexity int) int + ResourceType func(childComplexity int) int + Type func(childComplexity int) int + } + + Duration struct { + Code func(childComplexity int) int + Comparator func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ResourceType func(childComplexity int) int + System func(childComplexity int) int + Unit func(childComplexity int) int + Value func(childComplexity int) int + } + + Encounter struct { + ActualPeriod func(childComplexity int) int + Admission func(childComplexity int) int + Class func(childComplexity int) int + Contained func(childComplexity int) int + Diagnosis func(childComplexity int) int + DietPreference func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + Language func(childComplexity int) int + Length func(childComplexity int) int + Location func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Participant func(childComplexity int) int + PlannedEndDate func(childComplexity int) int + PlannedStartDate func(childComplexity int) int + Priority func(childComplexity int) int + Reason func(childComplexity int) int + ResourceType func(childComplexity int) int + ServiceType func(childComplexity int) int + SpecialArrangement func(childComplexity int) int + SpecialCourtesy func(childComplexity int) int + Status func(childComplexity int) int + SubjectStatus func(childComplexity int) int + Text func(childComplexity int) int + Type func(childComplexity int) int + VirtualService func(childComplexity int) int + } + + EncounterAdmission struct { + AdmitSource func(childComplexity int) int + DischargeDisposition func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + PreAdmissionIdentifier func(childComplexity int) int + ReAdmission func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + EncounterDiagnosis struct { + Condition func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + Use func(childComplexity int) int + } + + EncounterLocation struct { + Extension func(childComplexity int) int + Form func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Period func(childComplexity int) int + ResourceType func(childComplexity int) int + Status func(childComplexity int) int + } + + EncounterParticipant struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Period func(childComplexity int) int + ResourceType func(childComplexity int) int + Type func(childComplexity int) int + } + + EncounterReason struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + Use func(childComplexity int) int + Value func(childComplexity int) int + } + + Expression struct { + Description func(childComplexity int) int + Expression func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Language func(childComplexity int) int + Name func(childComplexity int) int + Reference func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + ExtendedContactDetail struct { + Address func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Organization func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Period func(childComplexity int) int + Purpose func(childComplexity int) int + ResourceType func(childComplexity int) int + Telecom func(childComplexity int) int + } + + Extension struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + ResourceType func(childComplexity int) int + URL func(childComplexity int) int + ValueAddress func(childComplexity int) int + ValueAge func(childComplexity int) int + ValueAnnotation func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ValueAttachment func(childComplexity int) int + ValueAvailability func(childComplexity int) int + ValueBase64Binary func(childComplexity int) int + ValueBoolean func(childComplexity int) int + ValueCanonical func(childComplexity int) int + ValueCode func(childComplexity int) int + ValueCodeableConcept func(childComplexity int) int + ValueCodeableReference func(childComplexity int) int + ValueCoding func(childComplexity int) int + ValueContactDetail func(childComplexity int) int + ValueContactPoint func(childComplexity int) int + ValueCount func(childComplexity int) int + ValueDataRequirement func(childComplexity int) int + ValueDate func(childComplexity int) int + ValueDateTime func(childComplexity int) int + ValueDecimal func(childComplexity int) int + ValueDistance func(childComplexity int) int + ValueDosage func(childComplexity int) int + ValueDuration func(childComplexity int) int + ValueExpression func(childComplexity int) int + ValueExtendedContactDetail func(childComplexity int) int + ValueHumanName func(childComplexity int) int + ValueID func(childComplexity int) int + ValueIdentifier func(childComplexity int) int + ValueInstant func(childComplexity int) int + ValueInteger func(childComplexity int) int + ValueInteger64 func(childComplexity int) int + ValueMarkdown func(childComplexity int) int + ValueMeta func(childComplexity int) int + ValueMoney func(childComplexity int) int + ValueOid func(childComplexity int) int + ValueParameterDefinition func(childComplexity int) int + ValuePeriod func(childComplexity int) int + ValuePositiveInt func(childComplexity int) int + ValueQuantity func(childComplexity int) int + ValueRange func(childComplexity int) int + ValueRatio func(childComplexity int) int + ValueRatioRange func(childComplexity int) int + ValueRelatedArtifact func(childComplexity int) int + ValueSampledData func(childComplexity int) int + ValueSignature func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ValueString func(childComplexity int) int + ValueTime func(childComplexity int) int + ValueTiming func(childComplexity int) int + ValueTriggerDefinition func(childComplexity int) int + ValueURI func(childComplexity int) int + ValueURL func(childComplexity int) int + ValueUUID func(childComplexity int) int + ValueUnsignedInt func(childComplexity int) int + ValueUsageContext func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + } + + FHIRPrimitiveExtension struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + FamilyMemberHistoryCondition struct { + Code func(childComplexity int) int + ContributedToDeath func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Note func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + OnsetAge func(childComplexity int) int + OnsetPeriod func(childComplexity int) int + OnsetRange func(childComplexity int) int + OnsetString func(childComplexity int) int + Outcome func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + FamilyMemberHistoryParticipant struct { + Actor func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Extension func(childComplexity int) int + Function func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + FamilyMemberHistoryProcedure struct { + Code func(childComplexity int) int + ContributedToDeath func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Note func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Outcome func(childComplexity int) int + PerformedAge func(childComplexity int) int + PerformedDateTime func(childComplexity int) int + PerformedPeriod func(childComplexity int) int + PerformedRange func(childComplexity int) int + PerformedString func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + FamilyMemberHistoryType struct { + AgeAge func(childComplexity int) int + AgeRange func(childComplexity int) int + AgeString func(childComplexity int) int + BornDate func(childComplexity int) int + BornPeriod func(childComplexity int) int + BornString func(childComplexity int) int + Condition func(childComplexity int) int + Contained func(childComplexity int) int + DataAbsentReason func(childComplexity int) int + Date func(childComplexity int) int + DeceasedAge func(childComplexity int) int + DeceasedBoolean func(childComplexity int) int + DeceasedDate func(childComplexity int) int + DeceasedRange func(childComplexity int) int + DeceasedString func(childComplexity int) int + EstimatedAge func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + InstantiatesCanonical func(childComplexity int) int + InstantiatesURI func(childComplexity int) int + Language func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Name func(childComplexity int) int + Note func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Participant func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Patient func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Procedure func(childComplexity int) int + Reason func(childComplexity int) int + Relationship func(childComplexity int) int + ResourceType func(childComplexity int) int + Sex func(childComplexity int) int + Status func(childComplexity int) int + Text func(childComplexity int) int + } + + GroupCharacteristic struct { + Code func(childComplexity int) int + Exclude func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Period func(childComplexity int) int + ResourceType func(childComplexity int) int + ValueBoolean func(childComplexity int) int + ValueCodeableConcept func(childComplexity int) int + ValueQuantity func(childComplexity int) int + ValueRange func(childComplexity int) int + } + + GroupMember struct { + Entity func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Inactive func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Period func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + GroupType struct { + Active func(childComplexity int) int + Characteristic func(childComplexity int) int + Code func(childComplexity int) int + Contained func(childComplexity int) int + Description func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + Language func(childComplexity int) int + ManagingEntity func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Member func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Membership func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Name func(childComplexity int) int + Quantity func(childComplexity int) int + ResourceType func(childComplexity int) int + Text func(childComplexity int) int + Type func(childComplexity int) int + } + + HumanName struct { + Extension func(childComplexity int) int + Family func(childComplexity int) int + Given func(childComplexity int) int + ID func(childComplexity int) int + Period func(childComplexity int) int + Prefix func(childComplexity int) int + ResourceType func(childComplexity int) int + Suffix func(childComplexity int) int + Text func(childComplexity int) int + Use func(childComplexity int) int + } + + Identifier struct { + Assigner func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Period func(childComplexity int) int + ResourceType func(childComplexity int) int + System func(childComplexity int) int + Type func(childComplexity int) int + Use func(childComplexity int) int + Value func(childComplexity int) int + } + + ImagingStudySeries struct { + BodySite func(childComplexity int) int + Description func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Instance func(childComplexity int) int + Laterality func(childComplexity int) int + Modality func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Number func(childComplexity int) int + NumberOfInstances func(childComplexity int) int + Performer func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ResourceType func(childComplexity int) int + Specimen func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Started func(childComplexity int) int + UID func(childComplexity int) int + } + + ImagingStudySeriesInstance struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Number func(childComplexity int) int + ResourceType func(childComplexity int) int + SopClass func(childComplexity int) int + Title func(childComplexity int) int + UID func(childComplexity int) int + } + + ImagingStudySeriesPerformer struct { + Actor func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Extension func(childComplexity int) int + Function func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + ImagingStudyType struct { + BasedOn func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Contained func(childComplexity int) int + Description func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + Language func(childComplexity int) int + Meta func(childComplexity int) int + Modality func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Note func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + NumberOfInstances func(childComplexity int) int + NumberOfSeries func(childComplexity int) int + PartOf func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Procedure func(childComplexity int) int + Reason func(childComplexity int) int + Referrer func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ResourceType func(childComplexity int) int + Series func(childComplexity int) int + Started func(childComplexity int) int + Status func(childComplexity int) int + Subject func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Text func(childComplexity int) int + } + + Immunization struct { + AdministeredProduct func(childComplexity int) int + Contained func(childComplexity int) int + DoseQuantity func(childComplexity int) int + ExpirationDate func(childComplexity int) int + Extension func(childComplexity int) int + FundingSource func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + InformationSource func(childComplexity int) int + IsSubpotent func(childComplexity int) int + Language func(childComplexity int) int + LotNumber func(childComplexity int) int + Manufacturer func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Note func(childComplexity int) int + OccurrenceDateTime func(childComplexity int) int + OccurrenceString func(childComplexity int) int + Performer func(childComplexity int) int + PrimarySource func(childComplexity int) int + ProgramEligibility func(childComplexity int) int + ProtocolApplied func(childComplexity int) int + Reaction func(childComplexity int) int + Reason func(childComplexity int) int + ResourceType func(childComplexity int) int + Route func(childComplexity int) int + Site func(childComplexity int) int + Status func(childComplexity int) int + StatusReason func(childComplexity int) int + SubpotentReason func(childComplexity int) int + Text func(childComplexity int) int + VaccineCode func(childComplexity int) int + } + + ImmunizationPerformer struct { + Extension func(childComplexity int) int + Function func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + ImmunizationProgramEligibility struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Program func(childComplexity int) int + ProgramStatus func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + ImmunizationProtocolApplied struct { + DoseNumber func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + Series func(childComplexity int) int + SeriesDoses func(childComplexity int) int + TargetDisease func(childComplexity int) int + } + + ImmunizationReaction struct { + Date func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Manifestation func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Reported func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + Location struct { + Address func(childComplexity int) int + Alias func(childComplexity int) int + Characteristic func(childComplexity int) int + Contact func(childComplexity int) int + Contained func(childComplexity int) int + Description func(childComplexity int) int + Extension func(childComplexity int) int + Form func(childComplexity int) int + HoursOfOperation func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + Language func(childComplexity int) int + Meta func(childComplexity int) int + Mode func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Name func(childComplexity int) int + OperationalStatus func(childComplexity int) int + Position func(childComplexity int) int + ResourceType func(childComplexity int) int + Status func(childComplexity int) int + Text func(childComplexity int) int + Type func(childComplexity int) int + VirtualService func(childComplexity int) int + } + + LocationPosition struct { + Altitude func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Latitude func(childComplexity int) int + Longitude func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + MedicationAdministrationDosage struct { + Dose func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Method func(childComplexity int) int + ModifierExtension func(childComplexity int) int + RateQuantity func(childComplexity int) int + RateRatio func(childComplexity int) int + ResourceType func(childComplexity int) int + Route func(childComplexity int) int + Site func(childComplexity int) int + Text func(childComplexity int) int + } + + MedicationAdministrationPerformer struct { + Actor func(childComplexity int) int + Extension func(childComplexity int) int + Function func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + MedicationAdministrationType struct { + Category func(childComplexity int) int + Contained func(childComplexity int) int + Device func(childComplexity int) int + Dosage func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + IsSubPotent func(childComplexity int) int + Language func(childComplexity int) int + Medication func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Note func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + OccurenceDateTime func(childComplexity int) int + OccurencePeriod func(childComplexity int) int + OccurenceTiming func(childComplexity int) int + PartOf func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Performer func(childComplexity int) int + Reason func(childComplexity int) int + Recorded func(childComplexity int) int + Request func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ResourceType func(childComplexity int) int + Status func(childComplexity int) int + StatusReason func(childComplexity int) int + SubPotentReason func(childComplexity int) int + Subject func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + SupportingInformation func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Text func(childComplexity int) int + } + + MedicationBatch struct { + ExpirationDate func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + LotNumber func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + MedicationIngredient struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + IsActive func(childComplexity int) int + Item func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + StrengthCodeableConcept func(childComplexity int) int + StrengthQuantity func(childComplexity int) int + StrengthRatio func(childComplexity int) int + } + + MedicationRequestDispenseRequest struct { + DispenseInterval func(childComplexity int) int + Dispenser func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + DispenserInstruction func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + DoseAdministrationAid func(childComplexity int) int + ExpectedSupplyDuration func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + InitialFill func(childComplexity int) int + ModifierExtension func(childComplexity int) int + NumberOfRepeatsAllowed func(childComplexity int) int + Quantity func(childComplexity int) int + ResourceType func(childComplexity int) int + ValidityPeriod func(childComplexity int) int + } + + MedicationRequestDispenseRequestInitialFill struct { + Duration func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Quantity func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + MedicationRequestSubstitution struct { + AllowedBoolean func(childComplexity int) int + AllowedCodeableConcept func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Reason func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + MedicationRequestType struct { + AuthoredOn func(childComplexity int) int + BasedOn func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Category func(childComplexity int) int + Contained func(childComplexity int) int + CourseOfTherapyType func(childComplexity int) int + Device func(childComplexity int) int + DispenseRequest func(childComplexity int) int + DoNotPerform func(childComplexity int) int + DosageInstruction func(childComplexity int) int + EffectiveDosePeriod func(childComplexity int) int + Extension func(childComplexity int) int + GroupIdentifier func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + InformationSource func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Intent func(childComplexity int) int + Language func(childComplexity int) int + Medication func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Note func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Performer func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + PerformerType func(childComplexity int) int + PriorPrescription func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Priority func(childComplexity int) int + Reason func(childComplexity int) int + Recorder func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + RenderedDosageInstruction func(childComplexity int) int + Reported func(childComplexity int) int + Requester func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ResourceType func(childComplexity int) int + Status func(childComplexity int) int + StatusChanged func(childComplexity int) int + StatusReason func(childComplexity int) int + Subject func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Substitution func(childComplexity int) int + SupportingInformation func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Text func(childComplexity int) int + } + + MedicationStatementAdherence struct { + Code func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Reason func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + MedicationStatementType struct { + Adherence func(childComplexity int) int + Category func(childComplexity int) int + Contained func(childComplexity int) int + DateAsserted func(childComplexity int) int + DerivedFrom func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Dosage func(childComplexity int) int + EffectiveDateTime func(childComplexity int) int + EffectivePeriod func(childComplexity int) int + EffectiveTiming func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + InformationSource func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Language func(childComplexity int) int + Medication func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Note func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + PartOf func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Reason func(childComplexity int) int + RelatedClinicalInformation func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + RenderedDosageInstruction func(childComplexity int) int + ResourceType func(childComplexity int) int + Status func(childComplexity int) int + Subject func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Text func(childComplexity int) int + } + + MedicationType struct { + Batch func(childComplexity int) int + Code func(childComplexity int) int + Contained func(childComplexity int) int + DoseForm func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + Ingredient func(childComplexity int) int + Language func(childComplexity int) int + MarketingAuthorizationHolder func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + Status func(childComplexity int) int + Text func(childComplexity int) int + TotalVolume func(childComplexity int) int + } + + Meta struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + LastUpdated func(childComplexity int) int + Profile func(childComplexity int) int + ResourceType func(childComplexity int) int + Security func(childComplexity int) int + Source func(childComplexity int) int + Tag func(childComplexity int) int + VersionID func(childComplexity int) int + } + + Money struct { + Currency func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ResourceType func(childComplexity int) int + Value func(childComplexity int) int + } + + Narrative struct { + Div func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ResourceType func(childComplexity int) int + Status func(childComplexity int) int + } + + ObservationComponent struct { + Code func(childComplexity int) int + DataAbsentReason func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Interpretation func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ReferenceRange func(childComplexity int) int + ResourceType func(childComplexity int) int + ValueAttachment func(childComplexity int) int + ValueBoolean func(childComplexity int) int + ValueCodeableConcept func(childComplexity int) int + ValueDateTime func(childComplexity int) int + ValueInteger func(childComplexity int) int + ValuePeriod func(childComplexity int) int + ValueQuantity func(childComplexity int) int + ValueRange func(childComplexity int) int + ValueRatio func(childComplexity int) int + ValueSampledData func(childComplexity int) int + ValueString func(childComplexity int) int + ValueTime func(childComplexity int) int + } + + ObservationReferenceRange struct { + Age func(childComplexity int) int + AppliesTo func(childComplexity int) int + Extension func(childComplexity int) int + High func(childComplexity int) int + ID func(childComplexity int) int + Low func(childComplexity int) int + ModifierExtension func(childComplexity int) int + NormalValue func(childComplexity int) int + ResourceType func(childComplexity int) int + Text func(childComplexity int) int + Type func(childComplexity int) int + } + + ObservationTriggeredBy struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Observation func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Reason func(childComplexity int) int + ResourceType func(childComplexity int) int + Type func(childComplexity int) int + } + + ObservationType struct { + BasedOn func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + BodySite func(childComplexity int) int + BodyStructure func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Category func(childComplexity int) int + Code func(childComplexity int) int + Component func(childComplexity int) int + Contained func(childComplexity int) int + DataAbsentReason func(childComplexity int) int + DerivedFrom func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + EffectiveDateTime func(childComplexity int) int + EffectiveInstant func(childComplexity int) int + EffectivePeriod func(childComplexity int) int + EffectiveTiming func(childComplexity int) int + Extension func(childComplexity int) int + Focus func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + HasMember func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + InstantiatesCanonical func(childComplexity int) int + Interpretation func(childComplexity int) int + Issued func(childComplexity int) int + Language func(childComplexity int) int + Meta func(childComplexity int) int + Method func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Note func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + PartOf func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Performer func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ReferenceRange func(childComplexity int) int + ResourceType func(childComplexity int) int + Specimen func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Status func(childComplexity int) int + Subject func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Text func(childComplexity int) int + TriggeredBy func(childComplexity int) int + ValueAttachment func(childComplexity int) int + ValueBoolean func(childComplexity int) int + ValueCodeableConcept func(childComplexity int) int + ValueDateTime func(childComplexity int) int + ValueInteger func(childComplexity int) int + ValuePeriod func(childComplexity int) int + ValueQuantity func(childComplexity int) int + ValueRange func(childComplexity int) int + ValueRatio func(childComplexity int) int + ValueSampledData func(childComplexity int) int + ValueString func(childComplexity int) int + ValueTime func(childComplexity int) int + } + + OrganizationQualification struct { + Code func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + Issuer func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ModifierExtension func(childComplexity int) int + Period func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + OrganizationType struct { + Active func(childComplexity int) int + Alias func(childComplexity int) int + Contact func(childComplexity int) int + Contained func(childComplexity int) int + Description func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + Language func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Name func(childComplexity int) int + PartOf func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Qualification func(childComplexity int) int + ResourceType func(childComplexity int) int + Text func(childComplexity int) int + Type func(childComplexity int) int + } + + ParameterDefinition struct { + Documentation func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Max func(childComplexity int) int + Min func(childComplexity int) int + Name func(childComplexity int) int + Profile func(childComplexity int) int + ResourceType func(childComplexity int) int + Type func(childComplexity int) int + Use func(childComplexity int) int + } + + PatientCommunication struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + Language func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Preferred func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + PatientContact struct { + Address func(childComplexity int) int + Extension func(childComplexity int) int + Gender func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Name func(childComplexity int) int + Organization func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Period func(childComplexity int) int + Relationship func(childComplexity int) int + ResourceType func(childComplexity int) int + Telecom func(childComplexity int) int + } + + PatientLink struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Other func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ResourceType func(childComplexity int) int + Type func(childComplexity int) int + } + + PatientType struct { + Active func(childComplexity int) int + Address func(childComplexity int) int + BirthDate func(childComplexity int) int + Communication func(childComplexity int) int + Contact func(childComplexity int) int + Contained func(childComplexity int) int + DeceasedBoolean func(childComplexity int) int + DeceasedDateTime func(childComplexity int) int + Extension func(childComplexity int) int + Gender func(childComplexity int) int + GeneralPractitioner func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + Language func(childComplexity int) int + Link func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ManagingOrganization func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + MaritalStatus func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + MultipleBirthBoolean func(childComplexity int) int + MultipleBirthInteger func(childComplexity int) int + Name func(childComplexity int) int + Photo func(childComplexity int) int + ResourceType func(childComplexity int) int + Telecom func(childComplexity int) int + Text func(childComplexity int) int + } + + Period struct { + End func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ResourceType func(childComplexity int) int + Start func(childComplexity int) int + } + + PractitionerCommunication struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + Language func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Preferred func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + PractitionerQualification struct { + Code func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + Issuer func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ModifierExtension func(childComplexity int) int + Period func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + PractitionerRoleType struct { + Active func(childComplexity int) int + Availability func(childComplexity int) int + Characteristic func(childComplexity int) int + Code func(childComplexity int) int + Communication func(childComplexity int) int + Contact func(childComplexity int) int + Contained func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + Language func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Organization func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Period func(childComplexity int) int + Practitioner func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ResourceType func(childComplexity int) int + Specialty func(childComplexity int) int + Text func(childComplexity int) int + } + + PractitionerType struct { + Active func(childComplexity int) int + Address func(childComplexity int) int + BirthDate func(childComplexity int) int + Communication func(childComplexity int) int + Contained func(childComplexity int) int + DeceasedBoolean func(childComplexity int) int + DeceasedDateTime func(childComplexity int) int + Extension func(childComplexity int) int + Gender func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + Language func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Name func(childComplexity int) int + Photo func(childComplexity int) int + Qualification func(childComplexity int) int + ResourceType func(childComplexity int) int + Telecom func(childComplexity int) int + Text func(childComplexity int) int + } + + ProcedureFocalDevice struct { + Action func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + ProcedurePerformer struct { + Actor func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Extension func(childComplexity int) int + Function func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + OnBehalfOf func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Period func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + ProcedureType struct { + BodySite func(childComplexity int) int + Category func(childComplexity int) int + Code func(childComplexity int) int + Complication func(childComplexity int) int + Contained func(childComplexity int) int + Extension func(childComplexity int) int + FocalDevice func(childComplexity int) int + Focus func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + FollowUp func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + InstantiatesCanonical func(childComplexity int) int + InstantiatesURI func(childComplexity int) int + Language func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Note func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + OccurrenceAge func(childComplexity int) int + OccurrenceDateTime func(childComplexity int) int + OccurrencePeriod func(childComplexity int) int + OccurrenceRange func(childComplexity int) int + OccurrenceString func(childComplexity int) int + OccurrenceTiming func(childComplexity int) int + Outcome func(childComplexity int) int + PartOf func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Performer func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Reason func(childComplexity int) int + Recorded func(childComplexity int) int + Recorder func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Report func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ReportedBoolean func(childComplexity int) int + ReportedReference func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ResourceType func(childComplexity int) int + Status func(childComplexity int) int + StatusReason func(childComplexity int) int + Subject func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + SupportingInfo func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Text func(childComplexity int) int + Used func(childComplexity int) int + } + + Quantity struct { + Code func(childComplexity int) int + Comparator func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ResourceType func(childComplexity int) int + System func(childComplexity int) int + Unit func(childComplexity int) int + Value func(childComplexity int) int + } + + Query struct { + BodyStructure func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Condition func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + DiagnosticReport func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + DocumentReference func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + FamilyMemberHistory func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Group func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ImagingStudy func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Medication func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + MedicationAdministration func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + MedicationRequest func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + MedicationStatement func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Observation func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Organization func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Patient func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Practitioner func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + PractitionerRole func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Procedure func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ResearchStudy func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ResearchSubject func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Specimen func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Substance func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + SubstanceDefinition func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Task func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + } + + Range struct { + Extension func(childComplexity int) int + High func(childComplexity int) int + ID func(childComplexity int) int + Low func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + Ratio struct { + Denominator func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Numerator func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + RatioRange struct { + Denominator func(childComplexity int) int + Extension func(childComplexity int) int + HighNumerator func(childComplexity int) int + ID func(childComplexity int) int + LowNumerator func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + Reference struct { + Display func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + Reference func(childComplexity int) int + ResourceType func(childComplexity int) int + Type func(childComplexity int) int + } + + RelatedArtifact struct { + Citation func(childComplexity int) int + Classifier func(childComplexity int) int + Display func(childComplexity int) int + Document func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Label func(childComplexity int) int + PublicationDate func(childComplexity int) int + PublicationStatus func(childComplexity int) int + Resource func(childComplexity int) int + ResourceReference func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ResourceType func(childComplexity int) int + Type func(childComplexity int) int + } + + ResearchStudyAssociatedParty struct { + Classifier func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Name func(childComplexity int) int + Party func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Period func(childComplexity int) int + ResourceType func(childComplexity int) int + Role func(childComplexity int) int + } + + ResearchStudyComparisonGroup struct { + Description func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + LinkID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Name func(childComplexity int) int + ObservedGroup func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ResourceType func(childComplexity int) int + Type func(childComplexity int) int + } + + ResearchStudyLabel struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + Type func(childComplexity int) int + Value func(childComplexity int) int + } + + ResearchStudyObjective struct { + Description func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Name func(childComplexity int) int + ResourceType func(childComplexity int) int + Type func(childComplexity int) int + } + + ResearchStudyOutcomeMeasure struct { + Description func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Name func(childComplexity int) int + ResourceType func(childComplexity int) int + Type func(childComplexity int) int + } + + ResearchStudyProgressStatus struct { + Actual func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Period func(childComplexity int) int + ResourceType func(childComplexity int) int + State func(childComplexity int) int + } + + ResearchStudyRecruitment struct { + ActualGroup func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ActualNumber func(childComplexity int) int + Eligibility func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + TargetNumber func(childComplexity int) int + } + + ResearchStudyType struct { + AssociatedParty func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Classifier func(childComplexity int) int + ComparisonGroup func(childComplexity int) int + Condition func(childComplexity int) int + Contained func(childComplexity int) int + Date func(childComplexity int) int + Description func(childComplexity int) int + DescriptionSummary func(childComplexity int) int + Extension func(childComplexity int) int + Focus func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + Keyword func(childComplexity int) int + Label func(childComplexity int) int + Language func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Name func(childComplexity int) int + Note func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Objective func(childComplexity int) int + OutcomeMeasure func(childComplexity int) int + PartOf func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Period func(childComplexity int) int + Phase func(childComplexity int) int + PrimaryPurposeType func(childComplexity int) int + ProgressStatus func(childComplexity int) int + Recruitment func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Region func(childComplexity int) int + RelatedArtifact func(childComplexity int) int + ResourceType func(childComplexity int) int + Result func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Site func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Status func(childComplexity int) int + StudyDesign func(childComplexity int) int + Text func(childComplexity int) int + Title func(childComplexity int) int + URL func(childComplexity int) int + Version func(childComplexity int) int + WhyStopped func(childComplexity int) int + } + + ResearchSubjectProgress struct { + EndDate func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Milestone func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Reason func(childComplexity int) int + ResourceType func(childComplexity int) int + StartDate func(childComplexity int) int + SubjectState func(childComplexity int) int + Type func(childComplexity int) int + } + + ResearchSubjectType struct { + ActualComparisonGroup func(childComplexity int) int + AssignedComparisonGroup func(childComplexity int) int + Contained func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + Language func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Period func(childComplexity int) int + Progress func(childComplexity int) int + ResourceType func(childComplexity int) int + Status func(childComplexity int) int + Study func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Subject func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Text func(childComplexity int) int + } + + SampledData struct { + CodeMap func(childComplexity int) int + Data func(childComplexity int) int + Dimensions func(childComplexity int) int + Extension func(childComplexity int) int + Factor func(childComplexity int) int + ID func(childComplexity int) int + Interval func(childComplexity int) int + IntervalUnit func(childComplexity int) int + LowerLimit func(childComplexity int) int + Offsets func(childComplexity int) int + Origin func(childComplexity int) int + ResourceType func(childComplexity int) int + UpperLimit func(childComplexity int) int + } + + Signature struct { + Data func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + OnBehalfOf func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ResourceType func(childComplexity int) int + SigFormat func(childComplexity int) int + TargetFormat func(childComplexity int) int + Type func(childComplexity int) int + When func(childComplexity int) int + Who func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + } + + SpecimenCollection struct { + BodySite func(childComplexity int) int + CollectedDateTime func(childComplexity int) int + CollectedPeriod func(childComplexity int) int + Collector func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Device func(childComplexity int) int + Duration func(childComplexity int) int + Extension func(childComplexity int) int + FastingStatusCodeableConcept func(childComplexity int) int + FastingStatusDuration func(childComplexity int) int + ID func(childComplexity int) int + Method func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Procedure func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Quantity func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + SpecimenContainer struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + SpecimenQuantity func(childComplexity int) int + } + + SpecimenFeature struct { + Description func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + Type func(childComplexity int) int + } + + SpecimenProcessing struct { + Additive func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Description func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Method func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + TimeDateTime func(childComplexity int) int + TimePeriod func(childComplexity int) int + } + + SpecimenType struct { + AccessionIdentifier func(childComplexity int) int + Collection func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Combined func(childComplexity int) int + Condition func(childComplexity int) int + Contained func(childComplexity int) int + Container func(childComplexity int) int + Extension func(childComplexity int) int + Feature func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + Language func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Note func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Parent func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Processing func(childComplexity int) int + ReceivedTime func(childComplexity int) int + ResourceType func(childComplexity int) int + Role func(childComplexity int) int + Status func(childComplexity int) int + Subject func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Text func(childComplexity int) int + Type func(childComplexity int) int + } + + SubstanceDefinitionCharacterization struct { + Description func(childComplexity int) int + Extension func(childComplexity int) int + File func(childComplexity int) int + Form func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + Technique func(childComplexity int) int + } + + SubstanceDefinitionCode struct { + Code func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Note func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ResourceType func(childComplexity int) int + Source func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Status func(childComplexity int) int + StatusDate func(childComplexity int) int + } + + SubstanceDefinitionMoiety struct { + AmountQuantity func(childComplexity int) int + AmountString func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + MeasurementType func(childComplexity int) int + ModifierExtension func(childComplexity int) int + MolecularFormula func(childComplexity int) int + Name func(childComplexity int) int + OpticalActivity func(childComplexity int) int + ResourceType func(childComplexity int) int + Role func(childComplexity int) int + Stereochemistry func(childComplexity int) int + } + + SubstanceDefinitionMolecularWeight struct { + Amount func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Method func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + Type func(childComplexity int) int + } + + SubstanceDefinitionName struct { + Domain func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Jurisdiction func(childComplexity int) int + Language func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Name func(childComplexity int) int + Official func(childComplexity int) int + Preferred func(childComplexity int) int + ResourceType func(childComplexity int) int + Source func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Status func(childComplexity int) int + Synonym func(childComplexity int) int + Translation func(childComplexity int) int + Type func(childComplexity int) int + } + + SubstanceDefinitionNameOfficial struct { + Authority func(childComplexity int) int + Date func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + Status func(childComplexity int) int + } + + SubstanceDefinitionProperty struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + Type func(childComplexity int) int + ValueAttachment func(childComplexity int) int + ValueBoolean func(childComplexity int) int + ValueCodeableConcept func(childComplexity int) int + ValueDate func(childComplexity int) int + ValueQuantity func(childComplexity int) int + } + + SubstanceDefinitionRelationship struct { + AmountQuantity func(childComplexity int) int + AmountRatio func(childComplexity int) int + AmountString func(childComplexity int) int + Comparator func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + IsDefining func(childComplexity int) int + ModifierExtension func(childComplexity int) int + RatioHighLimitAmount func(childComplexity int) int + ResourceType func(childComplexity int) int + Source func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + SubstanceDefinitionCodeableConcept func(childComplexity int) int + SubstanceDefinitionReference func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Type func(childComplexity int) int + } + + SubstanceDefinitionSourceMaterial struct { + CountryOfOrigin func(childComplexity int) int + Extension func(childComplexity int) int + Genus func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Part func(childComplexity int) int + ResourceType func(childComplexity int) int + Species func(childComplexity int) int + Type func(childComplexity int) int + } + + SubstanceDefinitionStructure struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + MolecularFormula func(childComplexity int) int + MolecularFormulaByMoiety func(childComplexity int) int + MolecularWeight func(childComplexity int) int + OpticalActivity func(childComplexity int) int + Representation func(childComplexity int) int + ResourceType func(childComplexity int) int + SourceDocument func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Stereochemistry func(childComplexity int) int + Technique func(childComplexity int) int + } + + SubstanceDefinitionStructureRepresentation struct { + Document func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Extension func(childComplexity int) int + Format func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Representation func(childComplexity int) int + ResourceType func(childComplexity int) int + Type func(childComplexity int) int + } + + SubstanceDefinitionType struct { + Characterization func(childComplexity int) int + Classification func(childComplexity int) int + Code func(childComplexity int) int + Contained func(childComplexity int) int + Description func(childComplexity int) int + Domain func(childComplexity int) int + Extension func(childComplexity int) int + Grade func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + Language func(childComplexity int) int + Manufacturer func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Moiety func(childComplexity int) int + MolecularWeight func(childComplexity int) int + Name func(childComplexity int) int + Note func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Property func(childComplexity int) int + Relationship func(childComplexity int) int + ResourceType func(childComplexity int) int + SourceMaterial func(childComplexity int) int + Status func(childComplexity int) int + Structure func(childComplexity int) int + Supplier func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Text func(childComplexity int) int + Version func(childComplexity int) int + } + + SubstanceIngredient struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Quantity func(childComplexity int) int + ResourceType func(childComplexity int) int + SubstanceCodeableConcept func(childComplexity int) int + SubstanceReference func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + } + + SubstanceType struct { + Category func(childComplexity int) int + Code func(childComplexity int) int + Contained func(childComplexity int) int + Description func(childComplexity int) int + Expiry func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + Ingredient func(childComplexity int) int + Instance func(childComplexity int) int + Language func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Quantity func(childComplexity int) int + ResourceType func(childComplexity int) int + Status func(childComplexity int) int + Text func(childComplexity int) int + } + + TaskInput struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + Type func(childComplexity int) int + ValueAddress func(childComplexity int) int + ValueAge func(childComplexity int) int + ValueAnnotation func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ValueAttachment func(childComplexity int) int + ValueAvailability func(childComplexity int) int + ValueBase64Binary func(childComplexity int) int + ValueBoolean func(childComplexity int) int + ValueCanonical func(childComplexity int) int + ValueCode func(childComplexity int) int + ValueCodeableConcept func(childComplexity int) int + ValueCodeableReference func(childComplexity int) int + ValueCoding func(childComplexity int) int + ValueContactDetail func(childComplexity int) int + ValueContactPoint func(childComplexity int) int + ValueCount func(childComplexity int) int + ValueDataRequirement func(childComplexity int) int + ValueDate func(childComplexity int) int + ValueDateTime func(childComplexity int) int + ValueDecimal func(childComplexity int) int + ValueDistance func(childComplexity int) int + ValueDosage func(childComplexity int) int + ValueDuration func(childComplexity int) int + ValueExpression func(childComplexity int) int + ValueExtendedContactDetail func(childComplexity int) int + ValueHumanName func(childComplexity int) int + ValueID func(childComplexity int) int + ValueIdentifier func(childComplexity int) int + ValueInstant func(childComplexity int) int + ValueInteger func(childComplexity int) int + ValueInteger64 func(childComplexity int) int + ValueMarkdown func(childComplexity int) int + ValueMeta func(childComplexity int) int + ValueMoney func(childComplexity int) int + ValueOid func(childComplexity int) int + ValueParameterDefinition func(childComplexity int) int + ValuePeriod func(childComplexity int) int + ValuePositiveInt func(childComplexity int) int + ValueQuantity func(childComplexity int) int + ValueRange func(childComplexity int) int + ValueRatio func(childComplexity int) int + ValueRatioRange func(childComplexity int) int + ValueRelatedArtifact func(childComplexity int) int + ValueSampledData func(childComplexity int) int + ValueSignature func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ValueString func(childComplexity int) int + ValueTime func(childComplexity int) int + ValueTiming func(childComplexity int) int + ValueTriggerDefinition func(childComplexity int) int + ValueURI func(childComplexity int) int + ValueURL func(childComplexity int) int + ValueUUID func(childComplexity int) int + ValueUnsignedInt func(childComplexity int) int + ValueUsageContext func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + } + + TaskOutput struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + Type func(childComplexity int) int + ValueAddress func(childComplexity int) int + ValueAge func(childComplexity int) int + ValueAnnotation func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ValueAttachment func(childComplexity int) int + ValueAvailability func(childComplexity int) int + ValueBase64Binary func(childComplexity int) int + ValueBoolean func(childComplexity int) int + ValueCanonical func(childComplexity int) int + ValueCode func(childComplexity int) int + ValueCodeableConcept func(childComplexity int) int + ValueCodeableReference func(childComplexity int) int + ValueCoding func(childComplexity int) int + ValueContactDetail func(childComplexity int) int + ValueContactPoint func(childComplexity int) int + ValueCount func(childComplexity int) int + ValueDataRequirement func(childComplexity int) int + ValueDate func(childComplexity int) int + ValueDateTime func(childComplexity int) int + ValueDecimal func(childComplexity int) int + ValueDistance func(childComplexity int) int + ValueDosage func(childComplexity int) int + ValueDuration func(childComplexity int) int + ValueExpression func(childComplexity int) int + ValueExtendedContactDetail func(childComplexity int) int + ValueHumanName func(childComplexity int) int + ValueID func(childComplexity int) int + ValueIdentifier func(childComplexity int) int + ValueInstant func(childComplexity int) int + ValueInteger func(childComplexity int) int + ValueInteger64 func(childComplexity int) int + ValueMarkdown func(childComplexity int) int + ValueMeta func(childComplexity int) int + ValueMoney func(childComplexity int) int + ValueOid func(childComplexity int) int + ValueParameterDefinition func(childComplexity int) int + ValuePeriod func(childComplexity int) int + ValuePositiveInt func(childComplexity int) int + ValueQuantity func(childComplexity int) int + ValueRange func(childComplexity int) int + ValueRatio func(childComplexity int) int + ValueRatioRange func(childComplexity int) int + ValueRelatedArtifact func(childComplexity int) int + ValueSampledData func(childComplexity int) int + ValueSignature func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ValueString func(childComplexity int) int + ValueTime func(childComplexity int) int + ValueTiming func(childComplexity int) int + ValueTriggerDefinition func(childComplexity int) int + ValueURI func(childComplexity int) int + ValueURL func(childComplexity int) int + ValueUUID func(childComplexity int) int + ValueUnsignedInt func(childComplexity int) int + ValueUsageContext func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + } + + TaskPerformer struct { + Actor func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Extension func(childComplexity int) int + Function func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + TaskRestriction struct { + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Period func(childComplexity int) int + Recipient func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Repetitions func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + TaskType struct { + AuthoredOn func(childComplexity int) int + BasedOn func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + BusinessStatus func(childComplexity int) int + Code func(childComplexity int) int + Contained func(childComplexity int) int + Description func(childComplexity int) int + DoNotPerform func(childComplexity int) int + ExecutionPeriod func(childComplexity int) int + Extension func(childComplexity int) int + Focus func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + GroupIdentifier func(childComplexity int) int + ID func(childComplexity int) int + Identifier func(childComplexity int) int + ImplicitRules func(childComplexity int) int + Input func(childComplexity int) int + InstantiatesCanonical func(childComplexity int) int + InstantiatesURI func(childComplexity int) int + Intent func(childComplexity int) int + Language func(childComplexity int) int + LastModified func(childComplexity int) int + Meta func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Note func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Output func(childComplexity int) int + Owner func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + PartOf func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Performer func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Priority func(childComplexity int) int + Reason func(childComplexity int) int + RequestedPerformer func(childComplexity int) int + RequestedPeriod func(childComplexity int) int + Requester func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + ResourceType func(childComplexity int) int + Restriction func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + Status func(childComplexity int) int + StatusReason func(childComplexity int) int + Text func(childComplexity int) int + } + + Timing struct { + Code func(childComplexity int) int + Event func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ModifierExtension func(childComplexity int) int + Repeat func(childComplexity int) int + ResourceType func(childComplexity int) int + } + + TimingRepeat struct { + BoundsDuration func(childComplexity int) int + BoundsPeriod func(childComplexity int) int + BoundsRange func(childComplexity int) int + Count func(childComplexity int) int + CountMax func(childComplexity int) int + DayOfWeek func(childComplexity int) int + Duration func(childComplexity int) int + DurationMax func(childComplexity int) int + DurationUnit func(childComplexity int) int + Extension func(childComplexity int) int + Frequency func(childComplexity int) int + FrequencyMax func(childComplexity int) int + ID func(childComplexity int) int + Offset func(childComplexity int) int + Period func(childComplexity int) int + PeriodMax func(childComplexity int) int + PeriodUnit func(childComplexity int) int + ResourceType func(childComplexity int) int + TimeOfDay func(childComplexity int) int + When func(childComplexity int) int + } + + TriggerDefinition struct { + Code func(childComplexity int) int + Condition func(childComplexity int) int + Data func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + ResourceType func(childComplexity int) int + SubscriptionTopic func(childComplexity int) int + TimingDate func(childComplexity int) int + TimingDateTime func(childComplexity int) int + TimingTiming func(childComplexity int) int + Type func(childComplexity int) int + } + + UsageContext struct { + Code func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + ResourceType func(childComplexity int) int + ValueCodeableConcept func(childComplexity int) int + ValueQuantity func(childComplexity int) int + ValueRange func(childComplexity int) int + ValueReference func(childComplexity int, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) int + } + + VirtualServiceDetail struct { + AdditionalInfo func(childComplexity int) int + AddressContactPoint func(childComplexity int) int + AddressExtendedContactDetail func(childComplexity int) int + AddressString func(childComplexity int) int + AddressURL func(childComplexity int) int + ChannelType func(childComplexity int) int + Extension func(childComplexity int) int + ID func(childComplexity int) int + MaxParticipants func(childComplexity int) int + ResourceType func(childComplexity int) int + SessionKey func(childComplexity int) int + } +} + +type QueryResolver interface { + Organization(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.OrganizationType, error) + Group(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.GroupType, error) + Practitioner(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.PractitionerType, error) + PractitionerRole(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.PractitionerRoleType, error) + ResearchStudy(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.ResearchStudyType, error) + Patient(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.PatientType, error) + ResearchSubject(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.ResearchSubjectType, error) + Substance(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.SubstanceType, error) + SubstanceDefinition(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.SubstanceDefinitionType, error) + Specimen(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.SpecimenType, error) + Observation(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.ObservationType, error) + DiagnosticReport(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.DiagnosticReportType, error) + Condition(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.ConditionType, error) + Medication(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.MedicationType, error) + MedicationAdministration(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.MedicationAdministrationType, error) + MedicationStatement(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.MedicationStatementType, error) + 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) + 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) +} + +type executableSchema struct { + schema *ast.Schema + resolvers ResolverRoot + directives DirectiveRoot + complexity ComplexityRoot +} + +func (e *executableSchema) Schema() *ast.Schema { + if e.schema != nil { + return e.schema + } + return parsedSchema +} + +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { + ec := executionContext{nil, e, 0, 0, nil} + _ = ec + switch typeName + "." + field { + + case "Address.city": + if e.complexity.Address.City == nil { + break + } + + return e.complexity.Address.City(childComplexity), true + + case "Address.country": + if e.complexity.Address.Country == nil { + break + } + + return e.complexity.Address.Country(childComplexity), true + + case "Address.district": + if e.complexity.Address.District == nil { + break + } + + return e.complexity.Address.District(childComplexity), true + + case "Address.extension": + if e.complexity.Address.Extension == nil { + break + } + + return e.complexity.Address.Extension(childComplexity), true + + case "Address.id": + if e.complexity.Address.ID == nil { + break + } + + return e.complexity.Address.ID(childComplexity), true + + case "Address.line": + if e.complexity.Address.Line == nil { + break + } + + return e.complexity.Address.Line(childComplexity), true + + case "Address.period": + if e.complexity.Address.Period == nil { + break + } + + return e.complexity.Address.Period(childComplexity), true + + case "Address.postalCode": + if e.complexity.Address.PostalCode == nil { + break + } + + return e.complexity.Address.PostalCode(childComplexity), true + + case "Address.resourceType": + if e.complexity.Address.ResourceType == nil { + break + } + + return e.complexity.Address.ResourceType(childComplexity), true + + case "Address.state": + if e.complexity.Address.State == nil { + break + } + + return e.complexity.Address.State(childComplexity), true + + case "Address.text": + if e.complexity.Address.Text == nil { + break + } + + return e.complexity.Address.Text(childComplexity), true + + case "Address.type": + if e.complexity.Address.Type == nil { + break + } + + return e.complexity.Address.Type(childComplexity), true + + case "Address.use": + if e.complexity.Address.Use == nil { + break + } + + return e.complexity.Address.Use(childComplexity), true + + case "Age.code": + if e.complexity.Age.Code == nil { + break + } + + return e.complexity.Age.Code(childComplexity), true + + case "Age.comparator": + if e.complexity.Age.Comparator == nil { + break + } + + return e.complexity.Age.Comparator(childComplexity), true + + case "Age.extension": + if e.complexity.Age.Extension == nil { + break + } + + return e.complexity.Age.Extension(childComplexity), true + + case "Age.id": + if e.complexity.Age.ID == nil { + break + } + + return e.complexity.Age.ID(childComplexity), true + + case "Age.resourceType": + if e.complexity.Age.ResourceType == nil { + break + } + + return e.complexity.Age.ResourceType(childComplexity), true + + case "Age.system": + if e.complexity.Age.System == nil { + break + } + + return e.complexity.Age.System(childComplexity), true + + case "Age.unit": + if e.complexity.Age.Unit == nil { + break + } + + return e.complexity.Age.Unit(childComplexity), true + + case "Age.value": + if e.complexity.Age.Value == nil { + break + } + + return e.complexity.Age.Value(childComplexity), true + + case "Annotation.authorReference": + if e.complexity.Annotation.AuthorReference == nil { + break + } + + args, err := ec.field_Annotation_authorReference_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Annotation.AuthorReference(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Annotation.authorString": + if e.complexity.Annotation.AuthorString == nil { + break + } + + return e.complexity.Annotation.AuthorString(childComplexity), true + + case "Annotation.extension": + if e.complexity.Annotation.Extension == nil { + break + } + + return e.complexity.Annotation.Extension(childComplexity), true + + case "Annotation.id": + if e.complexity.Annotation.ID == nil { + break + } + + return e.complexity.Annotation.ID(childComplexity), true + + case "Annotation.resourceType": + if e.complexity.Annotation.ResourceType == nil { + break + } + + return e.complexity.Annotation.ResourceType(childComplexity), true + + case "Annotation.text": + if e.complexity.Annotation.Text == nil { + break + } + + return e.complexity.Annotation.Text(childComplexity), true + + case "Annotation.time": + if e.complexity.Annotation.Time == nil { + break + } + + return e.complexity.Annotation.Time(childComplexity), true + + case "Attachment.contentType": + if e.complexity.Attachment.ContentType == nil { + break + } + + return e.complexity.Attachment.ContentType(childComplexity), true + + case "Attachment.creation": + if e.complexity.Attachment.Creation == nil { + break + } + + return e.complexity.Attachment.Creation(childComplexity), true + + case "Attachment.data": + if e.complexity.Attachment.Data == nil { + break + } + + return e.complexity.Attachment.Data(childComplexity), true + + case "Attachment.duration": + if e.complexity.Attachment.Duration == nil { + break + } + + return e.complexity.Attachment.Duration(childComplexity), true + + case "Attachment.extension": + if e.complexity.Attachment.Extension == nil { + break + } + + return e.complexity.Attachment.Extension(childComplexity), true + + case "Attachment.frames": + if e.complexity.Attachment.Frames == nil { + break + } + + return e.complexity.Attachment.Frames(childComplexity), true + + case "Attachment.hash": + if e.complexity.Attachment.Hash == nil { + break + } + + return e.complexity.Attachment.Hash(childComplexity), true + + case "Attachment.height": + if e.complexity.Attachment.Height == nil { + break + } + + return e.complexity.Attachment.Height(childComplexity), true + + case "Attachment.id": + if e.complexity.Attachment.ID == nil { + break + } + + return e.complexity.Attachment.ID(childComplexity), true + + case "Attachment.language": + if e.complexity.Attachment.Language == nil { + break + } + + return e.complexity.Attachment.Language(childComplexity), true + + case "Attachment.pages": + if e.complexity.Attachment.Pages == nil { + break + } + + return e.complexity.Attachment.Pages(childComplexity), true + + case "Attachment.resourceType": + if e.complexity.Attachment.ResourceType == nil { + break + } + + return e.complexity.Attachment.ResourceType(childComplexity), true + + case "Attachment.size": + if e.complexity.Attachment.Size == nil { + break + } + + return e.complexity.Attachment.Size(childComplexity), true + + case "Attachment.title": + if e.complexity.Attachment.Title == nil { + break + } + + return e.complexity.Attachment.Title(childComplexity), true + + case "Attachment.url": + if e.complexity.Attachment.URL == nil { + break + } + + return e.complexity.Attachment.URL(childComplexity), true + + case "Attachment.width": + if e.complexity.Attachment.Width == nil { + break + } + + return e.complexity.Attachment.Width(childComplexity), true + + case "Availability.availableTime": + if e.complexity.Availability.AvailableTime == nil { + break + } + + return e.complexity.Availability.AvailableTime(childComplexity), true + + case "Availability.extension": + if e.complexity.Availability.Extension == nil { + break + } + + return e.complexity.Availability.Extension(childComplexity), true + + case "Availability.id": + if e.complexity.Availability.ID == nil { + break + } + + return e.complexity.Availability.ID(childComplexity), true + + case "Availability.notAvailableTime": + if e.complexity.Availability.NotAvailableTime == nil { + break + } + + return e.complexity.Availability.NotAvailableTime(childComplexity), true + + case "Availability.resourceType": + if e.complexity.Availability.ResourceType == nil { + break + } + + return e.complexity.Availability.ResourceType(childComplexity), true + + case "AvailabilityAvailableTime.allDay": + if e.complexity.AvailabilityAvailableTime.AllDay == nil { + break + } + + return e.complexity.AvailabilityAvailableTime.AllDay(childComplexity), true + + case "AvailabilityAvailableTime.availableEndTime": + if e.complexity.AvailabilityAvailableTime.AvailableEndTime == nil { + break + } + + return e.complexity.AvailabilityAvailableTime.AvailableEndTime(childComplexity), true + + case "AvailabilityAvailableTime.availableStartTime": + if e.complexity.AvailabilityAvailableTime.AvailableStartTime == nil { + break + } + + return e.complexity.AvailabilityAvailableTime.AvailableStartTime(childComplexity), true + + case "AvailabilityAvailableTime.daysOfWeek": + if e.complexity.AvailabilityAvailableTime.DaysOfWeek == nil { + break + } + + return e.complexity.AvailabilityAvailableTime.DaysOfWeek(childComplexity), true + + case "AvailabilityAvailableTime.extension": + if e.complexity.AvailabilityAvailableTime.Extension == nil { + break + } + + return e.complexity.AvailabilityAvailableTime.Extension(childComplexity), true + + case "AvailabilityAvailableTime.id": + if e.complexity.AvailabilityAvailableTime.ID == nil { + break + } + + return e.complexity.AvailabilityAvailableTime.ID(childComplexity), true + + case "AvailabilityAvailableTime.resourceType": + if e.complexity.AvailabilityAvailableTime.ResourceType == nil { + break + } + + return e.complexity.AvailabilityAvailableTime.ResourceType(childComplexity), true + + case "AvailabilityNotAvailableTime.description": + if e.complexity.AvailabilityNotAvailableTime.Description == nil { + break + } + + return e.complexity.AvailabilityNotAvailableTime.Description(childComplexity), true + + case "AvailabilityNotAvailableTime.during": + if e.complexity.AvailabilityNotAvailableTime.During == nil { + break + } + + return e.complexity.AvailabilityNotAvailableTime.During(childComplexity), true + + case "AvailabilityNotAvailableTime.extension": + if e.complexity.AvailabilityNotAvailableTime.Extension == nil { + break + } + + return e.complexity.AvailabilityNotAvailableTime.Extension(childComplexity), true + + case "AvailabilityNotAvailableTime.id": + if e.complexity.AvailabilityNotAvailableTime.ID == nil { + break + } + + return e.complexity.AvailabilityNotAvailableTime.ID(childComplexity), true + + case "AvailabilityNotAvailableTime.resourceType": + if e.complexity.AvailabilityNotAvailableTime.ResourceType == nil { + break + } + + return e.complexity.AvailabilityNotAvailableTime.ResourceType(childComplexity), true + + case "BodyStructureIncludedStructure.bodyLandmarkOrientation": + if e.complexity.BodyStructureIncludedStructure.BodyLandmarkOrientation == nil { + break + } + + return e.complexity.BodyStructureIncludedStructure.BodyLandmarkOrientation(childComplexity), true + + case "BodyStructureIncludedStructure.extension": + if e.complexity.BodyStructureIncludedStructure.Extension == nil { + break + } + + return e.complexity.BodyStructureIncludedStructure.Extension(childComplexity), true + + case "BodyStructureIncludedStructure.id": + if e.complexity.BodyStructureIncludedStructure.ID == nil { + break + } + + return e.complexity.BodyStructureIncludedStructure.ID(childComplexity), true + + case "BodyStructureIncludedStructure.laterality": + if e.complexity.BodyStructureIncludedStructure.Laterality == nil { + break + } + + return e.complexity.BodyStructureIncludedStructure.Laterality(childComplexity), true + + case "BodyStructureIncludedStructure.modifierExtension": + if e.complexity.BodyStructureIncludedStructure.ModifierExtension == nil { + break + } + + return e.complexity.BodyStructureIncludedStructure.ModifierExtension(childComplexity), true + + case "BodyStructureIncludedStructure.qualifier": + if e.complexity.BodyStructureIncludedStructure.Qualifier == nil { + break + } + + return e.complexity.BodyStructureIncludedStructure.Qualifier(childComplexity), true + + case "BodyStructureIncludedStructure.resourceType": + if e.complexity.BodyStructureIncludedStructure.ResourceType == nil { + break + } + + return e.complexity.BodyStructureIncludedStructure.ResourceType(childComplexity), true + + case "BodyStructureIncludedStructure.structure": + if e.complexity.BodyStructureIncludedStructure.Structure == nil { + break + } + + return e.complexity.BodyStructureIncludedStructure.Structure(childComplexity), true + + case "BodyStructureIncludedStructureBodyLandmarkOrientation.clockFacePosition": + if e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientation.ClockFacePosition == nil { + break + } + + return e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientation.ClockFacePosition(childComplexity), true + + case "BodyStructureIncludedStructureBodyLandmarkOrientation.distanceFromLandmark": + if e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientation.DistanceFromLandmark == nil { + break + } + + return e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientation.DistanceFromLandmark(childComplexity), true + + case "BodyStructureIncludedStructureBodyLandmarkOrientation.extension": + if e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientation.Extension == nil { + break + } + + return e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientation.Extension(childComplexity), true + + case "BodyStructureIncludedStructureBodyLandmarkOrientation.id": + if e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientation.ID == nil { + break + } + + return e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientation.ID(childComplexity), true + + case "BodyStructureIncludedStructureBodyLandmarkOrientation.landmarkDescription": + if e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientation.LandmarkDescription == nil { + break + } + + return e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientation.LandmarkDescription(childComplexity), true + + case "BodyStructureIncludedStructureBodyLandmarkOrientation.modifierExtension": + if e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientation.ModifierExtension == nil { + break + } + + return e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientation.ModifierExtension(childComplexity), true + + case "BodyStructureIncludedStructureBodyLandmarkOrientation.resourceType": + if e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientation.ResourceType == nil { + break + } + + return e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientation.ResourceType(childComplexity), true + + case "BodyStructureIncludedStructureBodyLandmarkOrientation.surfaceOrientation": + if e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientation.SurfaceOrientation == nil { + break + } + + return e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientation.SurfaceOrientation(childComplexity), true + + case "BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark.device": + if e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark.Device == nil { + break + } + + return e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark.Device(childComplexity), true + + case "BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark.extension": + if e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark.Extension == nil { + break + } + + return e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark.Extension(childComplexity), true + + case "BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark.id": + if e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark.ID == nil { + break + } + + return e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark.ID(childComplexity), true + + case "BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark.modifierExtension": + if e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark.ModifierExtension == nil { + break + } + + return e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark.ModifierExtension(childComplexity), true + + case "BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark.resourceType": + if e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark.ResourceType == nil { + break + } + + return e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark.ResourceType(childComplexity), true + + case "BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark.value": + if e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark.Value == nil { + break + } + + return e.complexity.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark.Value(childComplexity), true + + case "BodyStructureType.active": + if e.complexity.BodyStructureType.Active == nil { + break + } + + return e.complexity.BodyStructureType.Active(childComplexity), true + + case "BodyStructureType.contained": + if e.complexity.BodyStructureType.Contained == nil { + break + } + + return e.complexity.BodyStructureType.Contained(childComplexity), true + + case "BodyStructureType.description": + if e.complexity.BodyStructureType.Description == nil { + break + } + + return e.complexity.BodyStructureType.Description(childComplexity), true + + case "BodyStructureType.excludedStructure": + if e.complexity.BodyStructureType.ExcludedStructure == nil { + break + } + + return e.complexity.BodyStructureType.ExcludedStructure(childComplexity), true + + case "BodyStructureType.extension": + if e.complexity.BodyStructureType.Extension == nil { + break + } + + return e.complexity.BodyStructureType.Extension(childComplexity), true + + case "BodyStructureType.id": + if e.complexity.BodyStructureType.ID == nil { + break + } + + return e.complexity.BodyStructureType.ID(childComplexity), true + + case "BodyStructureType.identifier": + if e.complexity.BodyStructureType.Identifier == nil { + break + } + + return e.complexity.BodyStructureType.Identifier(childComplexity), true + + case "BodyStructureType.image": + if e.complexity.BodyStructureType.Image == nil { + break + } + + return e.complexity.BodyStructureType.Image(childComplexity), true + + case "BodyStructureType.implicitRules": + if e.complexity.BodyStructureType.ImplicitRules == nil { + break + } + + return e.complexity.BodyStructureType.ImplicitRules(childComplexity), true + + case "BodyStructureType.includedStructure": + if e.complexity.BodyStructureType.IncludedStructure == nil { + break + } + + return e.complexity.BodyStructureType.IncludedStructure(childComplexity), true + + case "BodyStructureType.language": + if e.complexity.BodyStructureType.Language == nil { + break + } + + return e.complexity.BodyStructureType.Language(childComplexity), true + + case "BodyStructureType.meta": + if e.complexity.BodyStructureType.Meta == nil { + break + } + + return e.complexity.BodyStructureType.Meta(childComplexity), true + + case "BodyStructureType.modifierExtension": + if e.complexity.BodyStructureType.ModifierExtension == nil { + break + } + + return e.complexity.BodyStructureType.ModifierExtension(childComplexity), true + + case "BodyStructureType.morphology": + if e.complexity.BodyStructureType.Morphology == nil { + break + } + + return e.complexity.BodyStructureType.Morphology(childComplexity), true + + case "BodyStructureType.patient": + if e.complexity.BodyStructureType.Patient == nil { + break + } + + args, err := ec.field_BodyStructureType_patient_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.BodyStructureType.Patient(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "BodyStructureType.resourceType": + if e.complexity.BodyStructureType.ResourceType == nil { + break + } + + return e.complexity.BodyStructureType.ResourceType(childComplexity), true + + case "BodyStructureType.text": + if e.complexity.BodyStructureType.Text == nil { + break + } + + return e.complexity.BodyStructureType.Text(childComplexity), true + + case "CodeableConcept.coding": + if e.complexity.CodeableConcept.Coding == nil { + break + } + + return e.complexity.CodeableConcept.Coding(childComplexity), true + + case "CodeableConcept.extension": + if e.complexity.CodeableConcept.Extension == nil { + break + } + + return e.complexity.CodeableConcept.Extension(childComplexity), true + + case "CodeableConcept.id": + if e.complexity.CodeableConcept.ID == nil { + break + } + + return e.complexity.CodeableConcept.ID(childComplexity), true + + case "CodeableConcept.resourceType": + if e.complexity.CodeableConcept.ResourceType == nil { + break + } + + return e.complexity.CodeableConcept.ResourceType(childComplexity), true + + case "CodeableConcept.text": + if e.complexity.CodeableConcept.Text == nil { + break + } + + return e.complexity.CodeableConcept.Text(childComplexity), true + + case "CodeableReference.concept": + if e.complexity.CodeableReference.Concept == nil { + break + } + + return e.complexity.CodeableReference.Concept(childComplexity), true + + case "CodeableReference.extension": + if e.complexity.CodeableReference.Extension == nil { + break + } + + return e.complexity.CodeableReference.Extension(childComplexity), true + + case "CodeableReference.id": + if e.complexity.CodeableReference.ID == nil { + break + } + + return e.complexity.CodeableReference.ID(childComplexity), true + + case "CodeableReference.resourceType": + if e.complexity.CodeableReference.ResourceType == nil { + break + } + + return e.complexity.CodeableReference.ResourceType(childComplexity), true + + case "Coding.code": + if e.complexity.Coding.Code == nil { + break + } + + return e.complexity.Coding.Code(childComplexity), true + + case "Coding.display": + if e.complexity.Coding.Display == nil { + break + } + + return e.complexity.Coding.Display(childComplexity), true + + case "Coding.extension": + if e.complexity.Coding.Extension == nil { + break + } + + return e.complexity.Coding.Extension(childComplexity), true + + case "Coding.id": + if e.complexity.Coding.ID == nil { + break + } + + return e.complexity.Coding.ID(childComplexity), true + + case "Coding.resourceType": + if e.complexity.Coding.ResourceType == nil { + break + } + + return e.complexity.Coding.ResourceType(childComplexity), true + + case "Coding.system": + if e.complexity.Coding.System == nil { + break + } + + return e.complexity.Coding.System(childComplexity), true + + case "Coding.userSelected": + if e.complexity.Coding.UserSelected == nil { + break + } + + return e.complexity.Coding.UserSelected(childComplexity), true + + case "Coding.version": + if e.complexity.Coding.Version == nil { + break + } + + return e.complexity.Coding.Version(childComplexity), true + + case "ConditionParticipant.actor": + if e.complexity.ConditionParticipant.Actor == nil { + break + } + + args, err := ec.field_ConditionParticipant_actor_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ConditionParticipant.Actor(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ConditionParticipant.extension": + if e.complexity.ConditionParticipant.Extension == nil { + break + } + + return e.complexity.ConditionParticipant.Extension(childComplexity), true + + case "ConditionParticipant.function": + if e.complexity.ConditionParticipant.Function == nil { + break + } + + return e.complexity.ConditionParticipant.Function(childComplexity), true + + case "ConditionParticipant.id": + if e.complexity.ConditionParticipant.ID == nil { + break + } + + return e.complexity.ConditionParticipant.ID(childComplexity), true + + case "ConditionParticipant.modifierExtension": + if e.complexity.ConditionParticipant.ModifierExtension == nil { + break + } + + return e.complexity.ConditionParticipant.ModifierExtension(childComplexity), true + + case "ConditionParticipant.resourceType": + if e.complexity.ConditionParticipant.ResourceType == nil { + break + } + + return e.complexity.ConditionParticipant.ResourceType(childComplexity), true + + case "ConditionStage.assessment": + if e.complexity.ConditionStage.Assessment == nil { + break + } + + args, err := ec.field_ConditionStage_assessment_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ConditionStage.Assessment(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ConditionStage.extension": + if e.complexity.ConditionStage.Extension == nil { + break + } + + return e.complexity.ConditionStage.Extension(childComplexity), true + + case "ConditionStage.id": + if e.complexity.ConditionStage.ID == nil { + break + } + + return e.complexity.ConditionStage.ID(childComplexity), true + + case "ConditionStage.modifierExtension": + if e.complexity.ConditionStage.ModifierExtension == nil { + break + } + + return e.complexity.ConditionStage.ModifierExtension(childComplexity), true + + case "ConditionStage.resourceType": + if e.complexity.ConditionStage.ResourceType == nil { + break + } + + return e.complexity.ConditionStage.ResourceType(childComplexity), true + + case "ConditionStage.summary": + if e.complexity.ConditionStage.Summary == nil { + break + } + + return e.complexity.ConditionStage.Summary(childComplexity), true + + case "ConditionStage.type": + if e.complexity.ConditionStage.Type == nil { + break + } + + return e.complexity.ConditionStage.Type(childComplexity), true + + case "ConditionType.abatementAge": + if e.complexity.ConditionType.AbatementAge == nil { + break + } + + return e.complexity.ConditionType.AbatementAge(childComplexity), true + + case "ConditionType.abatementDateTime": + if e.complexity.ConditionType.AbatementDateTime == nil { + break + } + + return e.complexity.ConditionType.AbatementDateTime(childComplexity), true + + case "ConditionType.abatementPeriod": + if e.complexity.ConditionType.AbatementPeriod == nil { + break + } + + return e.complexity.ConditionType.AbatementPeriod(childComplexity), true + + case "ConditionType.abatementRange": + if e.complexity.ConditionType.AbatementRange == nil { + break + } + + return e.complexity.ConditionType.AbatementRange(childComplexity), true + + case "ConditionType.abatementString": + if e.complexity.ConditionType.AbatementString == nil { + break + } + + return e.complexity.ConditionType.AbatementString(childComplexity), true + + case "ConditionType.bodySite": + if e.complexity.ConditionType.BodySite == nil { + break + } + + return e.complexity.ConditionType.BodySite(childComplexity), true + + case "ConditionType.category": + if e.complexity.ConditionType.Category == nil { + break + } + + return e.complexity.ConditionType.Category(childComplexity), true + + case "ConditionType.clinicalStatus": + if e.complexity.ConditionType.ClinicalStatus == nil { + break + } + + return e.complexity.ConditionType.ClinicalStatus(childComplexity), true + + case "ConditionType.code": + if e.complexity.ConditionType.Code == nil { + break + } + + return e.complexity.ConditionType.Code(childComplexity), true + + case "ConditionType.contained": + if e.complexity.ConditionType.Contained == nil { + break + } + + return e.complexity.ConditionType.Contained(childComplexity), true + + case "ConditionType.evidence": + if e.complexity.ConditionType.Evidence == nil { + break + } + + return e.complexity.ConditionType.Evidence(childComplexity), true + + case "ConditionType.extension": + if e.complexity.ConditionType.Extension == nil { + break + } + + return e.complexity.ConditionType.Extension(childComplexity), true + + case "ConditionType.id": + if e.complexity.ConditionType.ID == nil { + break + } + + return e.complexity.ConditionType.ID(childComplexity), true + + case "ConditionType.identifier": + if e.complexity.ConditionType.Identifier == nil { + break + } + + return e.complexity.ConditionType.Identifier(childComplexity), true + + case "ConditionType.implicitRules": + if e.complexity.ConditionType.ImplicitRules == nil { + break + } + + return e.complexity.ConditionType.ImplicitRules(childComplexity), true + + case "ConditionType.language": + if e.complexity.ConditionType.Language == nil { + break + } + + return e.complexity.ConditionType.Language(childComplexity), true + + case "ConditionType.meta": + if e.complexity.ConditionType.Meta == nil { + break + } + + return e.complexity.ConditionType.Meta(childComplexity), true + + case "ConditionType.modifierExtension": + if e.complexity.ConditionType.ModifierExtension == nil { + break + } + + return e.complexity.ConditionType.ModifierExtension(childComplexity), true + + case "ConditionType.note": + if e.complexity.ConditionType.Note == nil { + break + } + + args, err := ec.field_ConditionType_note_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ConditionType.Note(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ConditionType.onsetAge": + if e.complexity.ConditionType.OnsetAge == nil { + break + } + + return e.complexity.ConditionType.OnsetAge(childComplexity), true + + case "ConditionType.onsetDateTime": + if e.complexity.ConditionType.OnsetDateTime == nil { + break + } + + return e.complexity.ConditionType.OnsetDateTime(childComplexity), true + + case "ConditionType.onsetPeriod": + if e.complexity.ConditionType.OnsetPeriod == nil { + break + } + + return e.complexity.ConditionType.OnsetPeriod(childComplexity), true + + case "ConditionType.onsetRange": + if e.complexity.ConditionType.OnsetRange == nil { + break + } + + return e.complexity.ConditionType.OnsetRange(childComplexity), true + + case "ConditionType.onsetString": + if e.complexity.ConditionType.OnsetString == nil { + break + } + + return e.complexity.ConditionType.OnsetString(childComplexity), true + + case "ConditionType.participant": + if e.complexity.ConditionType.Participant == nil { + break + } + + args, err := ec.field_ConditionType_participant_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ConditionType.Participant(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ConditionType.recordedDate": + if e.complexity.ConditionType.RecordedDate == nil { + break + } + + return e.complexity.ConditionType.RecordedDate(childComplexity), true + + case "ConditionType.resourceType": + if e.complexity.ConditionType.ResourceType == nil { + break + } + + return e.complexity.ConditionType.ResourceType(childComplexity), true + + case "ConditionType.severity": + if e.complexity.ConditionType.Severity == nil { + break + } + + return e.complexity.ConditionType.Severity(childComplexity), true + + case "ConditionType.stage": + if e.complexity.ConditionType.Stage == nil { + break + } + + args, err := ec.field_ConditionType_stage_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ConditionType.Stage(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ConditionType.subject": + if e.complexity.ConditionType.Subject == nil { + break + } + + args, err := ec.field_ConditionType_subject_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ConditionType.Subject(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ConditionType.text": + if e.complexity.ConditionType.Text == nil { + break + } + + return e.complexity.ConditionType.Text(childComplexity), true + + case "ConditionType.verificationStatus": + if e.complexity.ConditionType.VerificationStatus == nil { + break + } + + return e.complexity.ConditionType.VerificationStatus(childComplexity), true + + case "ContactDetail.extension": + if e.complexity.ContactDetail.Extension == nil { + break + } + + return e.complexity.ContactDetail.Extension(childComplexity), true + + case "ContactDetail.id": + if e.complexity.ContactDetail.ID == nil { + break + } + + return e.complexity.ContactDetail.ID(childComplexity), true + + case "ContactDetail.name": + if e.complexity.ContactDetail.Name == nil { + break + } + + return e.complexity.ContactDetail.Name(childComplexity), true + + case "ContactDetail.resourceType": + if e.complexity.ContactDetail.ResourceType == nil { + break + } + + return e.complexity.ContactDetail.ResourceType(childComplexity), true + + case "ContactDetail.telecom": + if e.complexity.ContactDetail.Telecom == nil { + break + } + + return e.complexity.ContactDetail.Telecom(childComplexity), true + + case "ContactPoint.extension": + if e.complexity.ContactPoint.Extension == nil { + break + } + + return e.complexity.ContactPoint.Extension(childComplexity), true + + case "ContactPoint.id": + if e.complexity.ContactPoint.ID == nil { + break + } + + return e.complexity.ContactPoint.ID(childComplexity), true + + case "ContactPoint.period": + if e.complexity.ContactPoint.Period == nil { + break + } + + return e.complexity.ContactPoint.Period(childComplexity), true + + case "ContactPoint.rank": + if e.complexity.ContactPoint.Rank == nil { + break + } + + return e.complexity.ContactPoint.Rank(childComplexity), true + + case "ContactPoint.resourceType": + if e.complexity.ContactPoint.ResourceType == nil { + break + } + + return e.complexity.ContactPoint.ResourceType(childComplexity), true + + case "ContactPoint.system": + if e.complexity.ContactPoint.System == nil { + break + } + + return e.complexity.ContactPoint.System(childComplexity), true + + case "ContactPoint.use": + if e.complexity.ContactPoint.Use == nil { + break + } + + return e.complexity.ContactPoint.Use(childComplexity), true + + case "ContactPoint.value": + if e.complexity.ContactPoint.Value == nil { + break + } + + return e.complexity.ContactPoint.Value(childComplexity), true + + case "Count.code": + if e.complexity.Count.Code == nil { + break + } + + return e.complexity.Count.Code(childComplexity), true + + case "Count.comparator": + if e.complexity.Count.Comparator == nil { + break + } + + return e.complexity.Count.Comparator(childComplexity), true + + case "Count.extension": + if e.complexity.Count.Extension == nil { + break + } + + return e.complexity.Count.Extension(childComplexity), true + + case "Count.id": + if e.complexity.Count.ID == nil { + break + } + + return e.complexity.Count.ID(childComplexity), true + + case "Count.resourceType": + if e.complexity.Count.ResourceType == nil { + break + } + + return e.complexity.Count.ResourceType(childComplexity), true + + case "Count.system": + if e.complexity.Count.System == nil { + break + } + + return e.complexity.Count.System(childComplexity), true + + case "Count.unit": + if e.complexity.Count.Unit == nil { + break + } + + return e.complexity.Count.Unit(childComplexity), true + + case "Count.value": + if e.complexity.Count.Value == nil { + break + } + + return e.complexity.Count.Value(childComplexity), true + + case "DataRequirement.codeFilter": + if e.complexity.DataRequirement.CodeFilter == nil { + break + } + + return e.complexity.DataRequirement.CodeFilter(childComplexity), true + + case "DataRequirement.dateFilter": + if e.complexity.DataRequirement.DateFilter == nil { + break + } + + return e.complexity.DataRequirement.DateFilter(childComplexity), true + + case "DataRequirement.extension": + if e.complexity.DataRequirement.Extension == nil { + break + } + + return e.complexity.DataRequirement.Extension(childComplexity), true + + case "DataRequirement.id": + if e.complexity.DataRequirement.ID == nil { + break + } + + return e.complexity.DataRequirement.ID(childComplexity), true + + case "DataRequirement.limit": + if e.complexity.DataRequirement.Limit == nil { + break + } + + return e.complexity.DataRequirement.Limit(childComplexity), true + + case "DataRequirement.mustSupport": + if e.complexity.DataRequirement.MustSupport == nil { + break + } + + return e.complexity.DataRequirement.MustSupport(childComplexity), true + + case "DataRequirement.profile": + if e.complexity.DataRequirement.Profile == nil { + break + } + + return e.complexity.DataRequirement.Profile(childComplexity), true + + case "DataRequirement.resourceType": + if e.complexity.DataRequirement.ResourceType == nil { + break + } + + return e.complexity.DataRequirement.ResourceType(childComplexity), true + + case "DataRequirement.sort": + if e.complexity.DataRequirement.Sort == nil { + break + } + + return e.complexity.DataRequirement.Sort(childComplexity), true + + case "DataRequirement.subjectCodeableConcept": + if e.complexity.DataRequirement.SubjectCodeableConcept == nil { + break + } + + return e.complexity.DataRequirement.SubjectCodeableConcept(childComplexity), true + + case "DataRequirement.subjectReference": + if e.complexity.DataRequirement.SubjectReference == nil { + break + } + + args, err := ec.field_DataRequirement_subjectReference_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DataRequirement.SubjectReference(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DataRequirement.type": + if e.complexity.DataRequirement.Type == nil { + break + } + + return e.complexity.DataRequirement.Type(childComplexity), true + + case "DataRequirement.valueFilter": + if e.complexity.DataRequirement.ValueFilter == nil { + break + } + + return e.complexity.DataRequirement.ValueFilter(childComplexity), true + + case "DataRequirementCodeFilter.code": + if e.complexity.DataRequirementCodeFilter.Code == nil { + break + } + + return e.complexity.DataRequirementCodeFilter.Code(childComplexity), true + + case "DataRequirementCodeFilter.extension": + if e.complexity.DataRequirementCodeFilter.Extension == nil { + break + } + + return e.complexity.DataRequirementCodeFilter.Extension(childComplexity), true + + case "DataRequirementCodeFilter.id": + if e.complexity.DataRequirementCodeFilter.ID == nil { + break + } + + return e.complexity.DataRequirementCodeFilter.ID(childComplexity), true + + case "DataRequirementCodeFilter.path": + if e.complexity.DataRequirementCodeFilter.Path == nil { + break + } + + return e.complexity.DataRequirementCodeFilter.Path(childComplexity), true + + case "DataRequirementCodeFilter.resourceType": + if e.complexity.DataRequirementCodeFilter.ResourceType == nil { + break + } + + return e.complexity.DataRequirementCodeFilter.ResourceType(childComplexity), true + + case "DataRequirementCodeFilter.searchParam": + if e.complexity.DataRequirementCodeFilter.SearchParam == nil { + break + } + + return e.complexity.DataRequirementCodeFilter.SearchParam(childComplexity), true + + case "DataRequirementCodeFilter.valueSet": + if e.complexity.DataRequirementCodeFilter.ValueSet == nil { + break + } + + return e.complexity.DataRequirementCodeFilter.ValueSet(childComplexity), true + + case "DataRequirementDateFilter.extension": + if e.complexity.DataRequirementDateFilter.Extension == nil { + break + } + + return e.complexity.DataRequirementDateFilter.Extension(childComplexity), true + + case "DataRequirementDateFilter.id": + if e.complexity.DataRequirementDateFilter.ID == nil { + break + } + + return e.complexity.DataRequirementDateFilter.ID(childComplexity), true + + case "DataRequirementDateFilter.path": + if e.complexity.DataRequirementDateFilter.Path == nil { + break + } + + return e.complexity.DataRequirementDateFilter.Path(childComplexity), true + + case "DataRequirementDateFilter.resourceType": + if e.complexity.DataRequirementDateFilter.ResourceType == nil { + break + } + + return e.complexity.DataRequirementDateFilter.ResourceType(childComplexity), true + + case "DataRequirementDateFilter.searchParam": + if e.complexity.DataRequirementDateFilter.SearchParam == nil { + break + } + + return e.complexity.DataRequirementDateFilter.SearchParam(childComplexity), true + + case "DataRequirementDateFilter.valueDateTime": + if e.complexity.DataRequirementDateFilter.ValueDateTime == nil { + break + } + + return e.complexity.DataRequirementDateFilter.ValueDateTime(childComplexity), true + + case "DataRequirementDateFilter.valueDuration": + if e.complexity.DataRequirementDateFilter.ValueDuration == nil { + break + } + + return e.complexity.DataRequirementDateFilter.ValueDuration(childComplexity), true + + case "DataRequirementDateFilter.valuePeriod": + if e.complexity.DataRequirementDateFilter.ValuePeriod == nil { + break + } + + return e.complexity.DataRequirementDateFilter.ValuePeriod(childComplexity), true + + case "DataRequirementSort.direction": + if e.complexity.DataRequirementSort.Direction == nil { + break + } + + return e.complexity.DataRequirementSort.Direction(childComplexity), true + + case "DataRequirementSort.extension": + if e.complexity.DataRequirementSort.Extension == nil { + break + } + + return e.complexity.DataRequirementSort.Extension(childComplexity), true + + case "DataRequirementSort.id": + if e.complexity.DataRequirementSort.ID == nil { + break + } + + return e.complexity.DataRequirementSort.ID(childComplexity), true + + case "DataRequirementSort.path": + if e.complexity.DataRequirementSort.Path == nil { + break + } + + return e.complexity.DataRequirementSort.Path(childComplexity), true + + case "DataRequirementSort.resourceType": + if e.complexity.DataRequirementSort.ResourceType == nil { + break + } + + return e.complexity.DataRequirementSort.ResourceType(childComplexity), true + + case "DataRequirementValueFilter.comparator": + if e.complexity.DataRequirementValueFilter.Comparator == nil { + break + } + + return e.complexity.DataRequirementValueFilter.Comparator(childComplexity), true + + case "DataRequirementValueFilter.extension": + if e.complexity.DataRequirementValueFilter.Extension == nil { + break + } + + return e.complexity.DataRequirementValueFilter.Extension(childComplexity), true + + case "DataRequirementValueFilter.id": + if e.complexity.DataRequirementValueFilter.ID == nil { + break + } + + return e.complexity.DataRequirementValueFilter.ID(childComplexity), true + + case "DataRequirementValueFilter.path": + if e.complexity.DataRequirementValueFilter.Path == nil { + break + } + + return e.complexity.DataRequirementValueFilter.Path(childComplexity), true + + case "DataRequirementValueFilter.resourceType": + if e.complexity.DataRequirementValueFilter.ResourceType == nil { + break + } + + return e.complexity.DataRequirementValueFilter.ResourceType(childComplexity), true + + case "DataRequirementValueFilter.searchParam": + if e.complexity.DataRequirementValueFilter.SearchParam == nil { + break + } + + return e.complexity.DataRequirementValueFilter.SearchParam(childComplexity), true + + case "DataRequirementValueFilter.valueDateTime": + if e.complexity.DataRequirementValueFilter.ValueDateTime == nil { + break + } + + return e.complexity.DataRequirementValueFilter.ValueDateTime(childComplexity), true + + case "DataRequirementValueFilter.valueDuration": + if e.complexity.DataRequirementValueFilter.ValueDuration == nil { + break + } + + return e.complexity.DataRequirementValueFilter.ValueDuration(childComplexity), true + + case "DataRequirementValueFilter.valuePeriod": + if e.complexity.DataRequirementValueFilter.ValuePeriod == nil { + break + } + + return e.complexity.DataRequirementValueFilter.ValuePeriod(childComplexity), true + + case "DiagnosticReportMedia.comment": + if e.complexity.DiagnosticReportMedia.Comment == nil { + break + } + + return e.complexity.DiagnosticReportMedia.Comment(childComplexity), true + + case "DiagnosticReportMedia.extension": + if e.complexity.DiagnosticReportMedia.Extension == nil { + break + } + + return e.complexity.DiagnosticReportMedia.Extension(childComplexity), true + + case "DiagnosticReportMedia.id": + if e.complexity.DiagnosticReportMedia.ID == nil { + break + } + + return e.complexity.DiagnosticReportMedia.ID(childComplexity), true + + case "DiagnosticReportMedia.link": + if e.complexity.DiagnosticReportMedia.Link == nil { + break + } + + args, err := ec.field_DiagnosticReportMedia_link_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DiagnosticReportMedia.Link(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DiagnosticReportMedia.modifierExtension": + if e.complexity.DiagnosticReportMedia.ModifierExtension == nil { + break + } + + return e.complexity.DiagnosticReportMedia.ModifierExtension(childComplexity), true + + case "DiagnosticReportMedia.resourceType": + if e.complexity.DiagnosticReportMedia.ResourceType == nil { + break + } + + return e.complexity.DiagnosticReportMedia.ResourceType(childComplexity), true + + case "DiagnosticReportSupportingInfo.extension": + if e.complexity.DiagnosticReportSupportingInfo.Extension == nil { + break + } + + return e.complexity.DiagnosticReportSupportingInfo.Extension(childComplexity), true + + case "DiagnosticReportSupportingInfo.id": + if e.complexity.DiagnosticReportSupportingInfo.ID == nil { + break + } + + return e.complexity.DiagnosticReportSupportingInfo.ID(childComplexity), true + + case "DiagnosticReportSupportingInfo.modifierExtension": + if e.complexity.DiagnosticReportSupportingInfo.ModifierExtension == nil { + break + } + + return e.complexity.DiagnosticReportSupportingInfo.ModifierExtension(childComplexity), true + + case "DiagnosticReportSupportingInfo.reference": + if e.complexity.DiagnosticReportSupportingInfo.Reference == nil { + break + } + + args, err := ec.field_DiagnosticReportSupportingInfo_reference_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DiagnosticReportSupportingInfo.Reference(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DiagnosticReportSupportingInfo.resourceType": + if e.complexity.DiagnosticReportSupportingInfo.ResourceType == nil { + break + } + + return e.complexity.DiagnosticReportSupportingInfo.ResourceType(childComplexity), true + + case "DiagnosticReportSupportingInfo.type": + if e.complexity.DiagnosticReportSupportingInfo.Type == nil { + break + } + + return e.complexity.DiagnosticReportSupportingInfo.Type(childComplexity), true + + case "DiagnosticReportType.basedOn": + if e.complexity.DiagnosticReportType.BasedOn == nil { + break + } + + args, err := ec.field_DiagnosticReportType_basedOn_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DiagnosticReportType.BasedOn(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DiagnosticReportType.category": + if e.complexity.DiagnosticReportType.Category == nil { + break + } + + return e.complexity.DiagnosticReportType.Category(childComplexity), true + + case "DiagnosticReportType.code": + if e.complexity.DiagnosticReportType.Code == nil { + break + } + + return e.complexity.DiagnosticReportType.Code(childComplexity), true + + case "DiagnosticReportType.conclusion": + if e.complexity.DiagnosticReportType.Conclusion == nil { + break + } + + return e.complexity.DiagnosticReportType.Conclusion(childComplexity), true + + case "DiagnosticReportType.conclusionCode": + if e.complexity.DiagnosticReportType.ConclusionCode == nil { + break + } + + return e.complexity.DiagnosticReportType.ConclusionCode(childComplexity), true + + case "DiagnosticReportType.contained": + if e.complexity.DiagnosticReportType.Contained == nil { + break + } + + return e.complexity.DiagnosticReportType.Contained(childComplexity), true + + case "DiagnosticReportType.effectiveDateTime": + if e.complexity.DiagnosticReportType.EffectiveDateTime == nil { + break + } + + return e.complexity.DiagnosticReportType.EffectiveDateTime(childComplexity), true + + case "DiagnosticReportType.effectivePeriod": + if e.complexity.DiagnosticReportType.EffectivePeriod == nil { + break + } + + return e.complexity.DiagnosticReportType.EffectivePeriod(childComplexity), true + + case "DiagnosticReportType.extension": + if e.complexity.DiagnosticReportType.Extension == nil { + break + } + + return e.complexity.DiagnosticReportType.Extension(childComplexity), true + + case "DiagnosticReportType.id": + if e.complexity.DiagnosticReportType.ID == nil { + break + } + + return e.complexity.DiagnosticReportType.ID(childComplexity), true + + case "DiagnosticReportType.identifier": + if e.complexity.DiagnosticReportType.Identifier == nil { + break + } + + return e.complexity.DiagnosticReportType.Identifier(childComplexity), true + + case "DiagnosticReportType.implicitRules": + if e.complexity.DiagnosticReportType.ImplicitRules == nil { + break + } + + return e.complexity.DiagnosticReportType.ImplicitRules(childComplexity), true + + case "DiagnosticReportType.issued": + if e.complexity.DiagnosticReportType.Issued == nil { + break + } + + return e.complexity.DiagnosticReportType.Issued(childComplexity), true + + case "DiagnosticReportType.language": + if e.complexity.DiagnosticReportType.Language == nil { + break + } + + return e.complexity.DiagnosticReportType.Language(childComplexity), true + + case "DiagnosticReportType.media": + if e.complexity.DiagnosticReportType.Media == nil { + break + } + + return e.complexity.DiagnosticReportType.Media(childComplexity), true + + case "DiagnosticReportType.meta": + if e.complexity.DiagnosticReportType.Meta == nil { + break + } + + return e.complexity.DiagnosticReportType.Meta(childComplexity), true + + case "DiagnosticReportType.modifierExtension": + if e.complexity.DiagnosticReportType.ModifierExtension == nil { + break + } + + return e.complexity.DiagnosticReportType.ModifierExtension(childComplexity), true + + case "DiagnosticReportType.note": + if e.complexity.DiagnosticReportType.Note == nil { + break + } + + args, err := ec.field_DiagnosticReportType_note_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DiagnosticReportType.Note(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DiagnosticReportType.performer": + if e.complexity.DiagnosticReportType.Performer == nil { + break + } + + args, err := ec.field_DiagnosticReportType_performer_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DiagnosticReportType.Performer(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DiagnosticReportType.presentedForm": + if e.complexity.DiagnosticReportType.PresentedForm == nil { + break + } + + return e.complexity.DiagnosticReportType.PresentedForm(childComplexity), true + + case "DiagnosticReportType.resourceType": + if e.complexity.DiagnosticReportType.ResourceType == nil { + break + } + + return e.complexity.DiagnosticReportType.ResourceType(childComplexity), true + + case "DiagnosticReportType.result": + if e.complexity.DiagnosticReportType.Result == nil { + break + } + + args, err := ec.field_DiagnosticReportType_result_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DiagnosticReportType.Result(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DiagnosticReportType.resultsInterpreter": + if e.complexity.DiagnosticReportType.ResultsInterpreter == nil { + break + } + + args, err := ec.field_DiagnosticReportType_resultsInterpreter_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DiagnosticReportType.ResultsInterpreter(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DiagnosticReportType.specimen": + if e.complexity.DiagnosticReportType.Specimen == nil { + break + } + + args, err := ec.field_DiagnosticReportType_specimen_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DiagnosticReportType.Specimen(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DiagnosticReportType.status": + if e.complexity.DiagnosticReportType.Status == nil { + break + } + + return e.complexity.DiagnosticReportType.Status(childComplexity), true + + case "DiagnosticReportType.study": + if e.complexity.DiagnosticReportType.Study == nil { + break + } + + args, err := ec.field_DiagnosticReportType_study_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DiagnosticReportType.Study(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DiagnosticReportType.subject": + if e.complexity.DiagnosticReportType.Subject == nil { + break + } + + args, err := ec.field_DiagnosticReportType_subject_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DiagnosticReportType.Subject(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DiagnosticReportType.supportingInfo": + if e.complexity.DiagnosticReportType.SupportingInfo == nil { + break + } + + args, err := ec.field_DiagnosticReportType_supportingInfo_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DiagnosticReportType.SupportingInfo(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DiagnosticReportType.text": + if e.complexity.DiagnosticReportType.Text == nil { + break + } + + return e.complexity.DiagnosticReportType.Text(childComplexity), true + + case "Distance.code": + if e.complexity.Distance.Code == nil { + break + } + + return e.complexity.Distance.Code(childComplexity), true + + case "Distance.comparator": + if e.complexity.Distance.Comparator == nil { + break + } + + return e.complexity.Distance.Comparator(childComplexity), true + + case "Distance.extension": + if e.complexity.Distance.Extension == nil { + break + } + + return e.complexity.Distance.Extension(childComplexity), true + + case "Distance.id": + if e.complexity.Distance.ID == nil { + break + } + + return e.complexity.Distance.ID(childComplexity), true + + case "Distance.resourceType": + if e.complexity.Distance.ResourceType == nil { + break + } + + return e.complexity.Distance.ResourceType(childComplexity), true + + case "Distance.system": + if e.complexity.Distance.System == nil { + break + } + + return e.complexity.Distance.System(childComplexity), true + + case "Distance.unit": + if e.complexity.Distance.Unit == nil { + break + } + + return e.complexity.Distance.Unit(childComplexity), true + + case "Distance.value": + if e.complexity.Distance.Value == nil { + break + } + + return e.complexity.Distance.Value(childComplexity), true + + case "DocumentReferenceAttester.extension": + if e.complexity.DocumentReferenceAttester.Extension == nil { + break + } + + return e.complexity.DocumentReferenceAttester.Extension(childComplexity), true + + case "DocumentReferenceAttester.id": + if e.complexity.DocumentReferenceAttester.ID == nil { + break + } + + return e.complexity.DocumentReferenceAttester.ID(childComplexity), true + + case "DocumentReferenceAttester.mode": + if e.complexity.DocumentReferenceAttester.Mode == nil { + break + } + + return e.complexity.DocumentReferenceAttester.Mode(childComplexity), true + + case "DocumentReferenceAttester.modifierExtension": + if e.complexity.DocumentReferenceAttester.ModifierExtension == nil { + break + } + + return e.complexity.DocumentReferenceAttester.ModifierExtension(childComplexity), true + + case "DocumentReferenceAttester.party": + if e.complexity.DocumentReferenceAttester.Party == nil { + break + } + + args, err := ec.field_DocumentReferenceAttester_party_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DocumentReferenceAttester.Party(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DocumentReferenceAttester.resourceType": + if e.complexity.DocumentReferenceAttester.ResourceType == nil { + break + } + + return e.complexity.DocumentReferenceAttester.ResourceType(childComplexity), true + + case "DocumentReferenceAttester.time": + if e.complexity.DocumentReferenceAttester.Time == nil { + break + } + + return e.complexity.DocumentReferenceAttester.Time(childComplexity), true + + case "DocumentReferenceContent.attachment": + if e.complexity.DocumentReferenceContent.Attachment == nil { + break + } + + return e.complexity.DocumentReferenceContent.Attachment(childComplexity), true + + case "DocumentReferenceContent.extension": + if e.complexity.DocumentReferenceContent.Extension == nil { + break + } + + return e.complexity.DocumentReferenceContent.Extension(childComplexity), true + + case "DocumentReferenceContent.id": + if e.complexity.DocumentReferenceContent.ID == nil { + break + } + + return e.complexity.DocumentReferenceContent.ID(childComplexity), true + + case "DocumentReferenceContent.modifierExtension": + if e.complexity.DocumentReferenceContent.ModifierExtension == nil { + break + } + + return e.complexity.DocumentReferenceContent.ModifierExtension(childComplexity), true + + case "DocumentReferenceContent.profile": + if e.complexity.DocumentReferenceContent.Profile == nil { + break + } + + return e.complexity.DocumentReferenceContent.Profile(childComplexity), true + + case "DocumentReferenceContent.resourceType": + if e.complexity.DocumentReferenceContent.ResourceType == nil { + break + } + + return e.complexity.DocumentReferenceContent.ResourceType(childComplexity), true + + case "DocumentReferenceContentProfile.extension": + if e.complexity.DocumentReferenceContentProfile.Extension == nil { + break + } + + return e.complexity.DocumentReferenceContentProfile.Extension(childComplexity), true + + case "DocumentReferenceContentProfile.id": + if e.complexity.DocumentReferenceContentProfile.ID == nil { + break + } + + return e.complexity.DocumentReferenceContentProfile.ID(childComplexity), true + + case "DocumentReferenceContentProfile.modifierExtension": + if e.complexity.DocumentReferenceContentProfile.ModifierExtension == nil { + break + } + + return e.complexity.DocumentReferenceContentProfile.ModifierExtension(childComplexity), true + + case "DocumentReferenceContentProfile.resourceType": + if e.complexity.DocumentReferenceContentProfile.ResourceType == nil { + break + } + + return e.complexity.DocumentReferenceContentProfile.ResourceType(childComplexity), true + + case "DocumentReferenceContentProfile.valueCanonical": + if e.complexity.DocumentReferenceContentProfile.ValueCanonical == nil { + break + } + + return e.complexity.DocumentReferenceContentProfile.ValueCanonical(childComplexity), true + + case "DocumentReferenceContentProfile.valueCoding": + if e.complexity.DocumentReferenceContentProfile.ValueCoding == nil { + break + } + + return e.complexity.DocumentReferenceContentProfile.ValueCoding(childComplexity), true + + case "DocumentReferenceContentProfile.valueUri": + if e.complexity.DocumentReferenceContentProfile.ValueURI == nil { + break + } + + return e.complexity.DocumentReferenceContentProfile.ValueURI(childComplexity), true + + case "DocumentReferenceRelatesTo.code": + if e.complexity.DocumentReferenceRelatesTo.Code == nil { + break + } + + return e.complexity.DocumentReferenceRelatesTo.Code(childComplexity), true + + case "DocumentReferenceRelatesTo.extension": + if e.complexity.DocumentReferenceRelatesTo.Extension == nil { + break + } + + return e.complexity.DocumentReferenceRelatesTo.Extension(childComplexity), true + + case "DocumentReferenceRelatesTo.id": + if e.complexity.DocumentReferenceRelatesTo.ID == nil { + break + } + + return e.complexity.DocumentReferenceRelatesTo.ID(childComplexity), true + + case "DocumentReferenceRelatesTo.modifierExtension": + if e.complexity.DocumentReferenceRelatesTo.ModifierExtension == nil { + break + } + + return e.complexity.DocumentReferenceRelatesTo.ModifierExtension(childComplexity), true + + case "DocumentReferenceRelatesTo.resourceType": + if e.complexity.DocumentReferenceRelatesTo.ResourceType == nil { + break + } + + return e.complexity.DocumentReferenceRelatesTo.ResourceType(childComplexity), true + + case "DocumentReferenceRelatesTo.target": + if e.complexity.DocumentReferenceRelatesTo.Target == nil { + break + } + + args, err := ec.field_DocumentReferenceRelatesTo_target_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DocumentReferenceRelatesTo.Target(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DocumentReferenceType.attester": + if e.complexity.DocumentReferenceType.Attester == nil { + break + } + + args, err := ec.field_DocumentReferenceType_attester_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DocumentReferenceType.Attester(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DocumentReferenceType.author": + if e.complexity.DocumentReferenceType.Author == nil { + break + } + + args, err := ec.field_DocumentReferenceType_author_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DocumentReferenceType.Author(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DocumentReferenceType.basedOn": + if e.complexity.DocumentReferenceType.BasedOn == nil { + break + } + + args, err := ec.field_DocumentReferenceType_basedOn_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DocumentReferenceType.BasedOn(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DocumentReferenceType.bodySite": + if e.complexity.DocumentReferenceType.BodySite == nil { + break + } + + return e.complexity.DocumentReferenceType.BodySite(childComplexity), true + + case "DocumentReferenceType.category": + if e.complexity.DocumentReferenceType.Category == nil { + break + } + + return e.complexity.DocumentReferenceType.Category(childComplexity), true + + case "DocumentReferenceType.contained": + if e.complexity.DocumentReferenceType.Contained == nil { + break + } + + return e.complexity.DocumentReferenceType.Contained(childComplexity), true + + case "DocumentReferenceType.content": + if e.complexity.DocumentReferenceType.Content == nil { + break + } + + return e.complexity.DocumentReferenceType.Content(childComplexity), true + + case "DocumentReferenceType.custodian": + if e.complexity.DocumentReferenceType.Custodian == nil { + break + } + + args, err := ec.field_DocumentReferenceType_custodian_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DocumentReferenceType.Custodian(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DocumentReferenceType.date": + if e.complexity.DocumentReferenceType.Date == nil { + break + } + + return e.complexity.DocumentReferenceType.Date(childComplexity), true + + case "DocumentReferenceType.description": + if e.complexity.DocumentReferenceType.Description == nil { + break + } + + return e.complexity.DocumentReferenceType.Description(childComplexity), true + + case "DocumentReferenceType.docStatus": + if e.complexity.DocumentReferenceType.DocStatus == nil { + break + } + + return e.complexity.DocumentReferenceType.DocStatus(childComplexity), true + + case "DocumentReferenceType.event": + if e.complexity.DocumentReferenceType.Event == nil { + break + } + + return e.complexity.DocumentReferenceType.Event(childComplexity), true + + case "DocumentReferenceType.extension": + if e.complexity.DocumentReferenceType.Extension == nil { + break + } + + return e.complexity.DocumentReferenceType.Extension(childComplexity), true + + case "DocumentReferenceType.facilityType": + if e.complexity.DocumentReferenceType.FacilityType == nil { + break + } + + return e.complexity.DocumentReferenceType.FacilityType(childComplexity), true + + case "DocumentReferenceType.id": + if e.complexity.DocumentReferenceType.ID == nil { + break + } + + return e.complexity.DocumentReferenceType.ID(childComplexity), true + + case "DocumentReferenceType.identifier": + if e.complexity.DocumentReferenceType.Identifier == nil { + break + } + + return e.complexity.DocumentReferenceType.Identifier(childComplexity), true + + case "DocumentReferenceType.implicitRules": + if e.complexity.DocumentReferenceType.ImplicitRules == nil { + break + } + + return e.complexity.DocumentReferenceType.ImplicitRules(childComplexity), true + + case "DocumentReferenceType.language": + if e.complexity.DocumentReferenceType.Language == nil { + break + } + + return e.complexity.DocumentReferenceType.Language(childComplexity), true + + case "DocumentReferenceType.meta": + if e.complexity.DocumentReferenceType.Meta == nil { + break + } + + return e.complexity.DocumentReferenceType.Meta(childComplexity), true + + case "DocumentReferenceType.modality": + if e.complexity.DocumentReferenceType.Modality == nil { + break + } + + return e.complexity.DocumentReferenceType.Modality(childComplexity), true + + case "DocumentReferenceType.modifierExtension": + if e.complexity.DocumentReferenceType.ModifierExtension == nil { + break + } + + return e.complexity.DocumentReferenceType.ModifierExtension(childComplexity), true + + case "DocumentReferenceType.period": + if e.complexity.DocumentReferenceType.Period == nil { + break + } + + return e.complexity.DocumentReferenceType.Period(childComplexity), true + + case "DocumentReferenceType.practiceSetting": + if e.complexity.DocumentReferenceType.PracticeSetting == nil { + break + } + + return e.complexity.DocumentReferenceType.PracticeSetting(childComplexity), true + + case "DocumentReferenceType.relatesTo": + if e.complexity.DocumentReferenceType.RelatesTo == nil { + break + } + + return e.complexity.DocumentReferenceType.RelatesTo(childComplexity), true + + case "DocumentReferenceType.resourceType": + if e.complexity.DocumentReferenceType.ResourceType == nil { + break + } + + return e.complexity.DocumentReferenceType.ResourceType(childComplexity), true + + case "DocumentReferenceType.securityLabel": + if e.complexity.DocumentReferenceType.SecurityLabel == nil { + break + } + + return e.complexity.DocumentReferenceType.SecurityLabel(childComplexity), true + + case "DocumentReferenceType.status": + if e.complexity.DocumentReferenceType.Status == nil { + break + } + + return e.complexity.DocumentReferenceType.Status(childComplexity), true + + case "DocumentReferenceType.subject": + if e.complexity.DocumentReferenceType.Subject == nil { + break + } + + args, err := ec.field_DocumentReferenceType_subject_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.DocumentReferenceType.Subject(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "DocumentReferenceType.text": + if e.complexity.DocumentReferenceType.Text == nil { + break + } + + return e.complexity.DocumentReferenceType.Text(childComplexity), true + + case "DocumentReferenceType.type": + if e.complexity.DocumentReferenceType.Type == nil { + break + } + + return e.complexity.DocumentReferenceType.Type(childComplexity), true + + case "DocumentReferenceType.version": + if e.complexity.DocumentReferenceType.Version == nil { + break + } + + return e.complexity.DocumentReferenceType.Version(childComplexity), true + + case "Dosage.additionalInstruction": + if e.complexity.Dosage.AdditionalInstruction == nil { + break + } + + return e.complexity.Dosage.AdditionalInstruction(childComplexity), true + + case "Dosage.asNeeded": + if e.complexity.Dosage.AsNeeded == nil { + break + } + + return e.complexity.Dosage.AsNeeded(childComplexity), true + + case "Dosage.asNeededFor": + if e.complexity.Dosage.AsNeededFor == nil { + break + } + + return e.complexity.Dosage.AsNeededFor(childComplexity), true + + case "Dosage.doseAndRate": + if e.complexity.Dosage.DoseAndRate == nil { + break + } + + return e.complexity.Dosage.DoseAndRate(childComplexity), true + + case "Dosage.extension": + if e.complexity.Dosage.Extension == nil { + break + } + + return e.complexity.Dosage.Extension(childComplexity), true + + case "Dosage.id": + if e.complexity.Dosage.ID == nil { + break + } + + return e.complexity.Dosage.ID(childComplexity), true + + case "Dosage.maxDosePerAdministration": + if e.complexity.Dosage.MaxDosePerAdministration == nil { + break + } + + return e.complexity.Dosage.MaxDosePerAdministration(childComplexity), true + + case "Dosage.maxDosePerLifetime": + if e.complexity.Dosage.MaxDosePerLifetime == nil { + break + } + + return e.complexity.Dosage.MaxDosePerLifetime(childComplexity), true + + case "Dosage.maxDosePerPeriod": + if e.complexity.Dosage.MaxDosePerPeriod == nil { + break + } + + return e.complexity.Dosage.MaxDosePerPeriod(childComplexity), true + + case "Dosage.method": + if e.complexity.Dosage.Method == nil { + break + } + + return e.complexity.Dosage.Method(childComplexity), true + + case "Dosage.modifierExtension": + if e.complexity.Dosage.ModifierExtension == nil { + break + } + + return e.complexity.Dosage.ModifierExtension(childComplexity), true + + case "Dosage.patientInstruction": + if e.complexity.Dosage.PatientInstruction == nil { + break + } + + return e.complexity.Dosage.PatientInstruction(childComplexity), true + + case "Dosage.resourceType": + if e.complexity.Dosage.ResourceType == nil { + break + } + + return e.complexity.Dosage.ResourceType(childComplexity), true + + case "Dosage.route": + if e.complexity.Dosage.Route == nil { + break + } + + return e.complexity.Dosage.Route(childComplexity), true + + case "Dosage.sequence": + if e.complexity.Dosage.Sequence == nil { + break + } + + return e.complexity.Dosage.Sequence(childComplexity), true + + case "Dosage.site": + if e.complexity.Dosage.Site == nil { + break + } + + return e.complexity.Dosage.Site(childComplexity), true + + case "Dosage.text": + if e.complexity.Dosage.Text == nil { + break + } + + return e.complexity.Dosage.Text(childComplexity), true + + case "Dosage.timing": + if e.complexity.Dosage.Timing == nil { + break + } + + return e.complexity.Dosage.Timing(childComplexity), true + + case "DosageDoseAndRate.doseQuantity": + if e.complexity.DosageDoseAndRate.DoseQuantity == nil { + break + } + + return e.complexity.DosageDoseAndRate.DoseQuantity(childComplexity), true + + case "DosageDoseAndRate.doseRange": + if e.complexity.DosageDoseAndRate.DoseRange == nil { + break + } + + return e.complexity.DosageDoseAndRate.DoseRange(childComplexity), true + + case "DosageDoseAndRate.extension": + if e.complexity.DosageDoseAndRate.Extension == nil { + break + } + + return e.complexity.DosageDoseAndRate.Extension(childComplexity), true + + case "DosageDoseAndRate.id": + if e.complexity.DosageDoseAndRate.ID == nil { + break + } + + return e.complexity.DosageDoseAndRate.ID(childComplexity), true + + case "DosageDoseAndRate.rateQuantity": + if e.complexity.DosageDoseAndRate.RateQuantity == nil { + break + } + + return e.complexity.DosageDoseAndRate.RateQuantity(childComplexity), true + + case "DosageDoseAndRate.rateRange": + if e.complexity.DosageDoseAndRate.RateRange == nil { + break + } + + return e.complexity.DosageDoseAndRate.RateRange(childComplexity), true + + case "DosageDoseAndRate.rateRatio": + if e.complexity.DosageDoseAndRate.RateRatio == nil { + break + } + + return e.complexity.DosageDoseAndRate.RateRatio(childComplexity), true + + case "DosageDoseAndRate.resourceType": + if e.complexity.DosageDoseAndRate.ResourceType == nil { + break + } + + return e.complexity.DosageDoseAndRate.ResourceType(childComplexity), true + + case "DosageDoseAndRate.type": + if e.complexity.DosageDoseAndRate.Type == nil { + break + } + + return e.complexity.DosageDoseAndRate.Type(childComplexity), true + + case "Duration.code": + if e.complexity.Duration.Code == nil { + break + } + + return e.complexity.Duration.Code(childComplexity), true + + case "Duration.comparator": + if e.complexity.Duration.Comparator == nil { + break + } + + return e.complexity.Duration.Comparator(childComplexity), true + + case "Duration.extension": + if e.complexity.Duration.Extension == nil { + break + } + + return e.complexity.Duration.Extension(childComplexity), true + + case "Duration.id": + if e.complexity.Duration.ID == nil { + break + } + + return e.complexity.Duration.ID(childComplexity), true + + case "Duration.resourceType": + if e.complexity.Duration.ResourceType == nil { + break + } + + return e.complexity.Duration.ResourceType(childComplexity), true + + case "Duration.system": + if e.complexity.Duration.System == nil { + break + } + + return e.complexity.Duration.System(childComplexity), true + + case "Duration.unit": + if e.complexity.Duration.Unit == nil { + break + } + + return e.complexity.Duration.Unit(childComplexity), true + + case "Duration.value": + if e.complexity.Duration.Value == nil { + break + } + + return e.complexity.Duration.Value(childComplexity), true + + case "Encounter.actualPeriod": + if e.complexity.Encounter.ActualPeriod == nil { + break + } + + return e.complexity.Encounter.ActualPeriod(childComplexity), true + + case "Encounter.admission": + if e.complexity.Encounter.Admission == nil { + break + } + + return e.complexity.Encounter.Admission(childComplexity), true + + case "Encounter.class": + if e.complexity.Encounter.Class == nil { + break + } + + return e.complexity.Encounter.Class(childComplexity), true + + case "Encounter.contained": + if e.complexity.Encounter.Contained == nil { + break + } + + return e.complexity.Encounter.Contained(childComplexity), true + + case "Encounter.diagnosis": + if e.complexity.Encounter.Diagnosis == nil { + break + } + + return e.complexity.Encounter.Diagnosis(childComplexity), true + + case "Encounter.dietPreference": + if e.complexity.Encounter.DietPreference == nil { + break + } + + return e.complexity.Encounter.DietPreference(childComplexity), true + + case "Encounter.extension": + if e.complexity.Encounter.Extension == nil { + break + } + + return e.complexity.Encounter.Extension(childComplexity), true + + case "Encounter.id": + if e.complexity.Encounter.ID == nil { + break + } + + return e.complexity.Encounter.ID(childComplexity), true + + case "Encounter.identifier": + if e.complexity.Encounter.Identifier == nil { + break + } + + return e.complexity.Encounter.Identifier(childComplexity), true + + case "Encounter.implicitRules": + if e.complexity.Encounter.ImplicitRules == nil { + break + } + + return e.complexity.Encounter.ImplicitRules(childComplexity), true + + case "Encounter.language": + if e.complexity.Encounter.Language == nil { + break + } + + return e.complexity.Encounter.Language(childComplexity), true + + case "Encounter.length": + if e.complexity.Encounter.Length == nil { + break + } + + return e.complexity.Encounter.Length(childComplexity), true + + case "Encounter.location": + if e.complexity.Encounter.Location == nil { + break + } + + return e.complexity.Encounter.Location(childComplexity), true + + case "Encounter.meta": + if e.complexity.Encounter.Meta == nil { + break + } + + return e.complexity.Encounter.Meta(childComplexity), true + + case "Encounter.modifierExtension": + if e.complexity.Encounter.ModifierExtension == nil { + break + } + + return e.complexity.Encounter.ModifierExtension(childComplexity), true + + case "Encounter.participant": + if e.complexity.Encounter.Participant == nil { + break + } + + return e.complexity.Encounter.Participant(childComplexity), true + + case "Encounter.plannedEndDate": + if e.complexity.Encounter.PlannedEndDate == nil { + break + } + + return e.complexity.Encounter.PlannedEndDate(childComplexity), true + + case "Encounter.plannedStartDate": + if e.complexity.Encounter.PlannedStartDate == nil { + break + } + + return e.complexity.Encounter.PlannedStartDate(childComplexity), true + + case "Encounter.priority": + if e.complexity.Encounter.Priority == nil { + break + } + + return e.complexity.Encounter.Priority(childComplexity), true + + case "Encounter.reason": + if e.complexity.Encounter.Reason == nil { + break + } + + return e.complexity.Encounter.Reason(childComplexity), true + + case "Encounter.resourceType": + if e.complexity.Encounter.ResourceType == nil { + break + } + + return e.complexity.Encounter.ResourceType(childComplexity), true + + case "Encounter.serviceType": + if e.complexity.Encounter.ServiceType == nil { + break + } + + return e.complexity.Encounter.ServiceType(childComplexity), true + + case "Encounter.specialArrangement": + if e.complexity.Encounter.SpecialArrangement == nil { + break + } + + return e.complexity.Encounter.SpecialArrangement(childComplexity), true + + case "Encounter.specialCourtesy": + if e.complexity.Encounter.SpecialCourtesy == nil { + break + } + + return e.complexity.Encounter.SpecialCourtesy(childComplexity), true + + case "Encounter.status": + if e.complexity.Encounter.Status == nil { + break + } + + return e.complexity.Encounter.Status(childComplexity), true + + case "Encounter.subjectStatus": + if e.complexity.Encounter.SubjectStatus == nil { + break + } + + return e.complexity.Encounter.SubjectStatus(childComplexity), true + + case "Encounter.text": + if e.complexity.Encounter.Text == nil { + break + } + + return e.complexity.Encounter.Text(childComplexity), true + + case "Encounter.type": + if e.complexity.Encounter.Type == nil { + break + } + + return e.complexity.Encounter.Type(childComplexity), true + + case "Encounter.virtualService": + if e.complexity.Encounter.VirtualService == nil { + break + } + + return e.complexity.Encounter.VirtualService(childComplexity), true + + case "EncounterAdmission.admitSource": + if e.complexity.EncounterAdmission.AdmitSource == nil { + break + } + + return e.complexity.EncounterAdmission.AdmitSource(childComplexity), true + + case "EncounterAdmission.dischargeDisposition": + if e.complexity.EncounterAdmission.DischargeDisposition == nil { + break + } + + return e.complexity.EncounterAdmission.DischargeDisposition(childComplexity), true + + case "EncounterAdmission.extension": + if e.complexity.EncounterAdmission.Extension == nil { + break + } + + return e.complexity.EncounterAdmission.Extension(childComplexity), true + + case "EncounterAdmission.id": + if e.complexity.EncounterAdmission.ID == nil { + break + } + + return e.complexity.EncounterAdmission.ID(childComplexity), true + + case "EncounterAdmission.modifierExtension": + if e.complexity.EncounterAdmission.ModifierExtension == nil { + break + } + + return e.complexity.EncounterAdmission.ModifierExtension(childComplexity), true + + case "EncounterAdmission.preAdmissionIdentifier": + if e.complexity.EncounterAdmission.PreAdmissionIdentifier == nil { + break + } + + return e.complexity.EncounterAdmission.PreAdmissionIdentifier(childComplexity), true + + case "EncounterAdmission.reAdmission": + if e.complexity.EncounterAdmission.ReAdmission == nil { + break + } + + return e.complexity.EncounterAdmission.ReAdmission(childComplexity), true + + case "EncounterAdmission.resourceType": + if e.complexity.EncounterAdmission.ResourceType == nil { + break + } + + return e.complexity.EncounterAdmission.ResourceType(childComplexity), true + + case "EncounterDiagnosis.condition": + if e.complexity.EncounterDiagnosis.Condition == nil { + break + } + + return e.complexity.EncounterDiagnosis.Condition(childComplexity), true + + case "EncounterDiagnosis.extension": + if e.complexity.EncounterDiagnosis.Extension == nil { + break + } + + return e.complexity.EncounterDiagnosis.Extension(childComplexity), true + + case "EncounterDiagnosis.id": + if e.complexity.EncounterDiagnosis.ID == nil { + break + } + + return e.complexity.EncounterDiagnosis.ID(childComplexity), true + + case "EncounterDiagnosis.modifierExtension": + if e.complexity.EncounterDiagnosis.ModifierExtension == nil { + break + } + + return e.complexity.EncounterDiagnosis.ModifierExtension(childComplexity), true + + case "EncounterDiagnosis.resourceType": + if e.complexity.EncounterDiagnosis.ResourceType == nil { + break + } + + return e.complexity.EncounterDiagnosis.ResourceType(childComplexity), true + + case "EncounterDiagnosis.use": + if e.complexity.EncounterDiagnosis.Use == nil { + break + } + + return e.complexity.EncounterDiagnosis.Use(childComplexity), true + + case "EncounterLocation.extension": + if e.complexity.EncounterLocation.Extension == nil { + break + } + + return e.complexity.EncounterLocation.Extension(childComplexity), true + + case "EncounterLocation.form": + if e.complexity.EncounterLocation.Form == nil { + break + } + + return e.complexity.EncounterLocation.Form(childComplexity), true + + case "EncounterLocation.id": + if e.complexity.EncounterLocation.ID == nil { + break + } + + return e.complexity.EncounterLocation.ID(childComplexity), true + + case "EncounterLocation.modifierExtension": + if e.complexity.EncounterLocation.ModifierExtension == nil { + break + } + + return e.complexity.EncounterLocation.ModifierExtension(childComplexity), true + + case "EncounterLocation.period": + if e.complexity.EncounterLocation.Period == nil { + break + } + + return e.complexity.EncounterLocation.Period(childComplexity), true + + case "EncounterLocation.resourceType": + if e.complexity.EncounterLocation.ResourceType == nil { + break + } + + return e.complexity.EncounterLocation.ResourceType(childComplexity), true + + case "EncounterLocation.status": + if e.complexity.EncounterLocation.Status == nil { + break + } + + return e.complexity.EncounterLocation.Status(childComplexity), true + + case "EncounterParticipant.extension": + if e.complexity.EncounterParticipant.Extension == nil { + break + } + + return e.complexity.EncounterParticipant.Extension(childComplexity), true + + case "EncounterParticipant.id": + if e.complexity.EncounterParticipant.ID == nil { + break + } + + return e.complexity.EncounterParticipant.ID(childComplexity), true + + case "EncounterParticipant.modifierExtension": + if e.complexity.EncounterParticipant.ModifierExtension == nil { + break + } + + return e.complexity.EncounterParticipant.ModifierExtension(childComplexity), true + + case "EncounterParticipant.period": + if e.complexity.EncounterParticipant.Period == nil { + break + } + + return e.complexity.EncounterParticipant.Period(childComplexity), true + + case "EncounterParticipant.resourceType": + if e.complexity.EncounterParticipant.ResourceType == nil { + break + } + + return e.complexity.EncounterParticipant.ResourceType(childComplexity), true + + case "EncounterParticipant.type": + if e.complexity.EncounterParticipant.Type == nil { + break + } + + return e.complexity.EncounterParticipant.Type(childComplexity), true + + case "EncounterReason.extension": + if e.complexity.EncounterReason.Extension == nil { + break + } + + return e.complexity.EncounterReason.Extension(childComplexity), true + + case "EncounterReason.id": + if e.complexity.EncounterReason.ID == nil { + break + } + + return e.complexity.EncounterReason.ID(childComplexity), true + + case "EncounterReason.modifierExtension": + if e.complexity.EncounterReason.ModifierExtension == nil { + break + } + + return e.complexity.EncounterReason.ModifierExtension(childComplexity), true + + case "EncounterReason.resourceType": + if e.complexity.EncounterReason.ResourceType == nil { + break + } + + return e.complexity.EncounterReason.ResourceType(childComplexity), true + + case "EncounterReason.use": + if e.complexity.EncounterReason.Use == nil { + break + } + + return e.complexity.EncounterReason.Use(childComplexity), true + + case "EncounterReason.value": + if e.complexity.EncounterReason.Value == nil { + break + } + + return e.complexity.EncounterReason.Value(childComplexity), true + + case "Expression.description": + if e.complexity.Expression.Description == nil { + break + } + + return e.complexity.Expression.Description(childComplexity), true + + case "Expression.expression": + if e.complexity.Expression.Expression == nil { + break + } + + return e.complexity.Expression.Expression(childComplexity), true + + case "Expression.extension": + if e.complexity.Expression.Extension == nil { + break + } + + return e.complexity.Expression.Extension(childComplexity), true + + case "Expression.id": + if e.complexity.Expression.ID == nil { + break + } + + return e.complexity.Expression.ID(childComplexity), true + + case "Expression.language": + if e.complexity.Expression.Language == nil { + break + } + + return e.complexity.Expression.Language(childComplexity), true + + case "Expression.name": + if e.complexity.Expression.Name == nil { + break + } + + return e.complexity.Expression.Name(childComplexity), true + + case "Expression.reference": + if e.complexity.Expression.Reference == nil { + break + } + + return e.complexity.Expression.Reference(childComplexity), true + + case "Expression.resourceType": + if e.complexity.Expression.ResourceType == nil { + break + } + + return e.complexity.Expression.ResourceType(childComplexity), true + + case "ExtendedContactDetail.address": + if e.complexity.ExtendedContactDetail.Address == nil { + break + } + + return e.complexity.ExtendedContactDetail.Address(childComplexity), true + + case "ExtendedContactDetail.extension": + if e.complexity.ExtendedContactDetail.Extension == nil { + break + } + + return e.complexity.ExtendedContactDetail.Extension(childComplexity), true + + case "ExtendedContactDetail.id": + if e.complexity.ExtendedContactDetail.ID == nil { + break + } + + return e.complexity.ExtendedContactDetail.ID(childComplexity), true + + case "ExtendedContactDetail.name": + if e.complexity.ExtendedContactDetail.Name == nil { + break + } + + return e.complexity.ExtendedContactDetail.Name(childComplexity), true + + case "ExtendedContactDetail.organization": + if e.complexity.ExtendedContactDetail.Organization == nil { + break + } + + args, err := ec.field_ExtendedContactDetail_organization_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ExtendedContactDetail.Organization(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ExtendedContactDetail.period": + if e.complexity.ExtendedContactDetail.Period == nil { + break + } + + return e.complexity.ExtendedContactDetail.Period(childComplexity), true + + case "ExtendedContactDetail.purpose": + if e.complexity.ExtendedContactDetail.Purpose == nil { + break + } + + return e.complexity.ExtendedContactDetail.Purpose(childComplexity), true + + case "ExtendedContactDetail.resourceType": + if e.complexity.ExtendedContactDetail.ResourceType == nil { + break + } + + return e.complexity.ExtendedContactDetail.ResourceType(childComplexity), true + + case "ExtendedContactDetail.telecom": + if e.complexity.ExtendedContactDetail.Telecom == nil { + break + } + + return e.complexity.ExtendedContactDetail.Telecom(childComplexity), true + + case "Extension.extension": + if e.complexity.Extension.Extension == nil { + break + } + + return e.complexity.Extension.Extension(childComplexity), true + + case "Extension.id": + if e.complexity.Extension.ID == nil { + break + } + + return e.complexity.Extension.ID(childComplexity), true + + case "Extension.resourceType": + if e.complexity.Extension.ResourceType == nil { + break + } + + return e.complexity.Extension.ResourceType(childComplexity), true + + case "Extension.url": + if e.complexity.Extension.URL == nil { + break + } + + return e.complexity.Extension.URL(childComplexity), true + + case "Extension.valueAddress": + if e.complexity.Extension.ValueAddress == nil { + break + } + + return e.complexity.Extension.ValueAddress(childComplexity), true + + case "Extension.valueAge": + if e.complexity.Extension.ValueAge == nil { + break + } + + return e.complexity.Extension.ValueAge(childComplexity), true + + case "Extension.valueAnnotation": + if e.complexity.Extension.ValueAnnotation == nil { + break + } + + args, err := ec.field_Extension_valueAnnotation_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Extension.ValueAnnotation(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Extension.valueAttachment": + if e.complexity.Extension.ValueAttachment == nil { + break + } + + return e.complexity.Extension.ValueAttachment(childComplexity), true + + case "Extension.valueAvailability": + if e.complexity.Extension.ValueAvailability == nil { + break + } + + return e.complexity.Extension.ValueAvailability(childComplexity), true + + case "Extension.valueBase64Binary": + if e.complexity.Extension.ValueBase64Binary == nil { + break + } + + return e.complexity.Extension.ValueBase64Binary(childComplexity), true + + case "Extension.valueBoolean": + if e.complexity.Extension.ValueBoolean == nil { + break + } + + return e.complexity.Extension.ValueBoolean(childComplexity), true + + case "Extension.valueCanonical": + if e.complexity.Extension.ValueCanonical == nil { + break + } + + return e.complexity.Extension.ValueCanonical(childComplexity), true + + case "Extension.valueCode": + if e.complexity.Extension.ValueCode == nil { + break + } + + return e.complexity.Extension.ValueCode(childComplexity), true + + case "Extension.valueCodeableConcept": + if e.complexity.Extension.ValueCodeableConcept == nil { + break + } + + return e.complexity.Extension.ValueCodeableConcept(childComplexity), true + + case "Extension.valueCodeableReference": + if e.complexity.Extension.ValueCodeableReference == nil { + break + } + + return e.complexity.Extension.ValueCodeableReference(childComplexity), true + + case "Extension.valueCoding": + if e.complexity.Extension.ValueCoding == nil { + break + } + + return e.complexity.Extension.ValueCoding(childComplexity), true + + case "Extension.valueContactDetail": + if e.complexity.Extension.ValueContactDetail == nil { + break + } + + return e.complexity.Extension.ValueContactDetail(childComplexity), true + + case "Extension.valueContactPoint": + if e.complexity.Extension.ValueContactPoint == nil { + break + } + + return e.complexity.Extension.ValueContactPoint(childComplexity), true + + case "Extension.valueCount": + if e.complexity.Extension.ValueCount == nil { + break + } + + return e.complexity.Extension.ValueCount(childComplexity), true + + case "Extension.valueDataRequirement": + if e.complexity.Extension.ValueDataRequirement == nil { + break + } + + return e.complexity.Extension.ValueDataRequirement(childComplexity), true + + case "Extension.valueDate": + if e.complexity.Extension.ValueDate == nil { + break + } + + return e.complexity.Extension.ValueDate(childComplexity), true + + case "Extension.valueDateTime": + if e.complexity.Extension.ValueDateTime == nil { + break + } + + return e.complexity.Extension.ValueDateTime(childComplexity), true + + case "Extension.valueDecimal": + if e.complexity.Extension.ValueDecimal == nil { + break + } + + return e.complexity.Extension.ValueDecimal(childComplexity), true + + case "Extension.valueDistance": + if e.complexity.Extension.ValueDistance == nil { + break + } + + return e.complexity.Extension.ValueDistance(childComplexity), true + + case "Extension.valueDosage": + if e.complexity.Extension.ValueDosage == nil { + break + } + + return e.complexity.Extension.ValueDosage(childComplexity), true + + case "Extension.valueDuration": + if e.complexity.Extension.ValueDuration == nil { + break + } + + return e.complexity.Extension.ValueDuration(childComplexity), true + + case "Extension.valueExpression": + if e.complexity.Extension.ValueExpression == nil { + break + } + + return e.complexity.Extension.ValueExpression(childComplexity), true + + case "Extension.valueExtendedContactDetail": + if e.complexity.Extension.ValueExtendedContactDetail == nil { + break + } + + return e.complexity.Extension.ValueExtendedContactDetail(childComplexity), true + + case "Extension.valueHumanName": + if e.complexity.Extension.ValueHumanName == nil { + break + } + + return e.complexity.Extension.ValueHumanName(childComplexity), true + + case "Extension.valueId": + if e.complexity.Extension.ValueID == nil { + break + } + + return e.complexity.Extension.ValueID(childComplexity), true + + case "Extension.valueIdentifier": + if e.complexity.Extension.ValueIdentifier == nil { + break + } + + return e.complexity.Extension.ValueIdentifier(childComplexity), true + + case "Extension.valueInstant": + if e.complexity.Extension.ValueInstant == nil { + break + } + + return e.complexity.Extension.ValueInstant(childComplexity), true + + case "Extension.valueInteger": + if e.complexity.Extension.ValueInteger == nil { + break + } + + return e.complexity.Extension.ValueInteger(childComplexity), true + + case "Extension.valueInteger64": + if e.complexity.Extension.ValueInteger64 == nil { + break + } + + return e.complexity.Extension.ValueInteger64(childComplexity), true + + case "Extension.valueMarkdown": + if e.complexity.Extension.ValueMarkdown == nil { + break + } + + return e.complexity.Extension.ValueMarkdown(childComplexity), true + + case "Extension.valueMeta": + if e.complexity.Extension.ValueMeta == nil { + break + } + + return e.complexity.Extension.ValueMeta(childComplexity), true + + case "Extension.valueMoney": + if e.complexity.Extension.ValueMoney == nil { + break + } + + return e.complexity.Extension.ValueMoney(childComplexity), true + + case "Extension.valueOid": + if e.complexity.Extension.ValueOid == nil { + break + } + + return e.complexity.Extension.ValueOid(childComplexity), true + + case "Extension.valueParameterDefinition": + if e.complexity.Extension.ValueParameterDefinition == nil { + break + } + + return e.complexity.Extension.ValueParameterDefinition(childComplexity), true + + case "Extension.valuePeriod": + if e.complexity.Extension.ValuePeriod == nil { + break + } + + return e.complexity.Extension.ValuePeriod(childComplexity), true + + case "Extension.valuePositiveInt": + if e.complexity.Extension.ValuePositiveInt == nil { + break + } + + return e.complexity.Extension.ValuePositiveInt(childComplexity), true + + case "Extension.valueQuantity": + if e.complexity.Extension.ValueQuantity == nil { + break + } + + return e.complexity.Extension.ValueQuantity(childComplexity), true + + case "Extension.valueRange": + if e.complexity.Extension.ValueRange == nil { + break + } + + return e.complexity.Extension.ValueRange(childComplexity), true + + case "Extension.valueRatio": + if e.complexity.Extension.ValueRatio == nil { + break + } + + return e.complexity.Extension.ValueRatio(childComplexity), true + + case "Extension.valueRatioRange": + if e.complexity.Extension.ValueRatioRange == nil { + break + } + + return e.complexity.Extension.ValueRatioRange(childComplexity), true + + case "Extension.valueRelatedArtifact": + if e.complexity.Extension.ValueRelatedArtifact == nil { + break + } + + return e.complexity.Extension.ValueRelatedArtifact(childComplexity), true + + case "Extension.valueSampledData": + if e.complexity.Extension.ValueSampledData == nil { + break + } + + return e.complexity.Extension.ValueSampledData(childComplexity), true + + case "Extension.valueSignature": + if e.complexity.Extension.ValueSignature == nil { + break + } + + args, err := ec.field_Extension_valueSignature_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Extension.ValueSignature(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Extension.valueString": + if e.complexity.Extension.ValueString == nil { + break + } + + return e.complexity.Extension.ValueString(childComplexity), true + + case "Extension.valueTime": + if e.complexity.Extension.ValueTime == nil { + break + } + + return e.complexity.Extension.ValueTime(childComplexity), true + + case "Extension.valueTiming": + if e.complexity.Extension.ValueTiming == nil { + break + } + + return e.complexity.Extension.ValueTiming(childComplexity), true + + case "Extension.valueTriggerDefinition": + if e.complexity.Extension.ValueTriggerDefinition == nil { + break + } + + return e.complexity.Extension.ValueTriggerDefinition(childComplexity), true + + case "Extension.valueUri": + if e.complexity.Extension.ValueURI == nil { + break + } + + return e.complexity.Extension.ValueURI(childComplexity), true + + case "Extension.valueUrl": + if e.complexity.Extension.ValueURL == nil { + break + } + + return e.complexity.Extension.ValueURL(childComplexity), true + + case "Extension.valueUuid": + if e.complexity.Extension.ValueUUID == nil { + break + } + + return e.complexity.Extension.ValueUUID(childComplexity), true + + case "Extension.valueUnsignedInt": + if e.complexity.Extension.ValueUnsignedInt == nil { + break + } + + return e.complexity.Extension.ValueUnsignedInt(childComplexity), true + + case "Extension.valueUsageContext": + if e.complexity.Extension.ValueUsageContext == nil { + break + } + + args, err := ec.field_Extension_valueUsageContext_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Extension.ValueUsageContext(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "FHIRPrimitiveExtension.extension": + if e.complexity.FHIRPrimitiveExtension.Extension == nil { + break + } + + return e.complexity.FHIRPrimitiveExtension.Extension(childComplexity), true + + case "FHIRPrimitiveExtension.id": + if e.complexity.FHIRPrimitiveExtension.ID == nil { + break + } + + return e.complexity.FHIRPrimitiveExtension.ID(childComplexity), true + + case "FHIRPrimitiveExtension.resourceType": + if e.complexity.FHIRPrimitiveExtension.ResourceType == nil { + break + } + + return e.complexity.FHIRPrimitiveExtension.ResourceType(childComplexity), true + + case "FamilyMemberHistoryCondition.code": + if e.complexity.FamilyMemberHistoryCondition.Code == nil { + break + } + + return e.complexity.FamilyMemberHistoryCondition.Code(childComplexity), true + + case "FamilyMemberHistoryCondition.contributedToDeath": + if e.complexity.FamilyMemberHistoryCondition.ContributedToDeath == nil { + break + } + + return e.complexity.FamilyMemberHistoryCondition.ContributedToDeath(childComplexity), true + + case "FamilyMemberHistoryCondition.extension": + if e.complexity.FamilyMemberHistoryCondition.Extension == nil { + break + } + + return e.complexity.FamilyMemberHistoryCondition.Extension(childComplexity), true + + case "FamilyMemberHistoryCondition.id": + if e.complexity.FamilyMemberHistoryCondition.ID == nil { + break + } + + return e.complexity.FamilyMemberHistoryCondition.ID(childComplexity), true + + case "FamilyMemberHistoryCondition.modifierExtension": + if e.complexity.FamilyMemberHistoryCondition.ModifierExtension == nil { + break + } + + return e.complexity.FamilyMemberHistoryCondition.ModifierExtension(childComplexity), true + + case "FamilyMemberHistoryCondition.note": + if e.complexity.FamilyMemberHistoryCondition.Note == nil { + break + } + + args, err := ec.field_FamilyMemberHistoryCondition_note_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.FamilyMemberHistoryCondition.Note(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "FamilyMemberHistoryCondition.onsetAge": + if e.complexity.FamilyMemberHistoryCondition.OnsetAge == nil { + break + } + + return e.complexity.FamilyMemberHistoryCondition.OnsetAge(childComplexity), true + + case "FamilyMemberHistoryCondition.onsetPeriod": + if e.complexity.FamilyMemberHistoryCondition.OnsetPeriod == nil { + break + } + + return e.complexity.FamilyMemberHistoryCondition.OnsetPeriod(childComplexity), true + + case "FamilyMemberHistoryCondition.onsetRange": + if e.complexity.FamilyMemberHistoryCondition.OnsetRange == nil { + break + } + + return e.complexity.FamilyMemberHistoryCondition.OnsetRange(childComplexity), true + + case "FamilyMemberHistoryCondition.onsetString": + if e.complexity.FamilyMemberHistoryCondition.OnsetString == nil { + break + } + + return e.complexity.FamilyMemberHistoryCondition.OnsetString(childComplexity), true + + case "FamilyMemberHistoryCondition.outcome": + if e.complexity.FamilyMemberHistoryCondition.Outcome == nil { + break + } + + return e.complexity.FamilyMemberHistoryCondition.Outcome(childComplexity), true + + case "FamilyMemberHistoryCondition.resourceType": + if e.complexity.FamilyMemberHistoryCondition.ResourceType == nil { + break + } + + return e.complexity.FamilyMemberHistoryCondition.ResourceType(childComplexity), true + + case "FamilyMemberHistoryParticipant.actor": + if e.complexity.FamilyMemberHistoryParticipant.Actor == nil { + break + } + + args, err := ec.field_FamilyMemberHistoryParticipant_actor_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.FamilyMemberHistoryParticipant.Actor(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "FamilyMemberHistoryParticipant.extension": + if e.complexity.FamilyMemberHistoryParticipant.Extension == nil { + break + } + + return e.complexity.FamilyMemberHistoryParticipant.Extension(childComplexity), true + + case "FamilyMemberHistoryParticipant.function": + if e.complexity.FamilyMemberHistoryParticipant.Function == nil { + break + } + + return e.complexity.FamilyMemberHistoryParticipant.Function(childComplexity), true + + case "FamilyMemberHistoryParticipant.id": + if e.complexity.FamilyMemberHistoryParticipant.ID == nil { + break + } + + return e.complexity.FamilyMemberHistoryParticipant.ID(childComplexity), true + + case "FamilyMemberHistoryParticipant.modifierExtension": + if e.complexity.FamilyMemberHistoryParticipant.ModifierExtension == nil { + break + } + + return e.complexity.FamilyMemberHistoryParticipant.ModifierExtension(childComplexity), true + + case "FamilyMemberHistoryParticipant.resourceType": + if e.complexity.FamilyMemberHistoryParticipant.ResourceType == nil { + break + } + + return e.complexity.FamilyMemberHistoryParticipant.ResourceType(childComplexity), true + + case "FamilyMemberHistoryProcedure.code": + if e.complexity.FamilyMemberHistoryProcedure.Code == nil { + break + } + + return e.complexity.FamilyMemberHistoryProcedure.Code(childComplexity), true + + case "FamilyMemberHistoryProcedure.contributedToDeath": + if e.complexity.FamilyMemberHistoryProcedure.ContributedToDeath == nil { + break + } + + return e.complexity.FamilyMemberHistoryProcedure.ContributedToDeath(childComplexity), true + + case "FamilyMemberHistoryProcedure.extension": + if e.complexity.FamilyMemberHistoryProcedure.Extension == nil { + break + } + + return e.complexity.FamilyMemberHistoryProcedure.Extension(childComplexity), true + + case "FamilyMemberHistoryProcedure.id": + if e.complexity.FamilyMemberHistoryProcedure.ID == nil { + break + } + + return e.complexity.FamilyMemberHistoryProcedure.ID(childComplexity), true + + case "FamilyMemberHistoryProcedure.modifierExtension": + if e.complexity.FamilyMemberHistoryProcedure.ModifierExtension == nil { + break + } + + return e.complexity.FamilyMemberHistoryProcedure.ModifierExtension(childComplexity), true + + case "FamilyMemberHistoryProcedure.note": + if e.complexity.FamilyMemberHistoryProcedure.Note == nil { + break + } + + args, err := ec.field_FamilyMemberHistoryProcedure_note_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.FamilyMemberHistoryProcedure.Note(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "FamilyMemberHistoryProcedure.outcome": + if e.complexity.FamilyMemberHistoryProcedure.Outcome == nil { + break + } + + return e.complexity.FamilyMemberHistoryProcedure.Outcome(childComplexity), true + + case "FamilyMemberHistoryProcedure.performedAge": + if e.complexity.FamilyMemberHistoryProcedure.PerformedAge == nil { + break + } + + return e.complexity.FamilyMemberHistoryProcedure.PerformedAge(childComplexity), true + + case "FamilyMemberHistoryProcedure.performedDateTime": + if e.complexity.FamilyMemberHistoryProcedure.PerformedDateTime == nil { + break + } + + return e.complexity.FamilyMemberHistoryProcedure.PerformedDateTime(childComplexity), true + + case "FamilyMemberHistoryProcedure.performedPeriod": + if e.complexity.FamilyMemberHistoryProcedure.PerformedPeriod == nil { + break + } + + return e.complexity.FamilyMemberHistoryProcedure.PerformedPeriod(childComplexity), true + + case "FamilyMemberHistoryProcedure.performedRange": + if e.complexity.FamilyMemberHistoryProcedure.PerformedRange == nil { + break + } + + return e.complexity.FamilyMemberHistoryProcedure.PerformedRange(childComplexity), true + + case "FamilyMemberHistoryProcedure.performedString": + if e.complexity.FamilyMemberHistoryProcedure.PerformedString == nil { + break + } + + return e.complexity.FamilyMemberHistoryProcedure.PerformedString(childComplexity), true + + case "FamilyMemberHistoryProcedure.resourceType": + if e.complexity.FamilyMemberHistoryProcedure.ResourceType == nil { + break + } + + return e.complexity.FamilyMemberHistoryProcedure.ResourceType(childComplexity), true + + case "FamilyMemberHistoryType.ageAge": + if e.complexity.FamilyMemberHistoryType.AgeAge == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.AgeAge(childComplexity), true + + case "FamilyMemberHistoryType.ageRange": + if e.complexity.FamilyMemberHistoryType.AgeRange == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.AgeRange(childComplexity), true + + case "FamilyMemberHistoryType.ageString": + if e.complexity.FamilyMemberHistoryType.AgeString == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.AgeString(childComplexity), true + + case "FamilyMemberHistoryType.bornDate": + if e.complexity.FamilyMemberHistoryType.BornDate == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.BornDate(childComplexity), true + + case "FamilyMemberHistoryType.bornPeriod": + if e.complexity.FamilyMemberHistoryType.BornPeriod == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.BornPeriod(childComplexity), true + + case "FamilyMemberHistoryType.bornString": + if e.complexity.FamilyMemberHistoryType.BornString == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.BornString(childComplexity), true + + case "FamilyMemberHistoryType.condition": + if e.complexity.FamilyMemberHistoryType.Condition == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.Condition(childComplexity), true + + case "FamilyMemberHistoryType.contained": + if e.complexity.FamilyMemberHistoryType.Contained == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.Contained(childComplexity), true + + case "FamilyMemberHistoryType.dataAbsentReason": + if e.complexity.FamilyMemberHistoryType.DataAbsentReason == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.DataAbsentReason(childComplexity), true + + case "FamilyMemberHistoryType.date": + if e.complexity.FamilyMemberHistoryType.Date == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.Date(childComplexity), true + + case "FamilyMemberHistoryType.deceasedAge": + if e.complexity.FamilyMemberHistoryType.DeceasedAge == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.DeceasedAge(childComplexity), true + + case "FamilyMemberHistoryType.deceasedBoolean": + if e.complexity.FamilyMemberHistoryType.DeceasedBoolean == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.DeceasedBoolean(childComplexity), true + + case "FamilyMemberHistoryType.deceasedDate": + if e.complexity.FamilyMemberHistoryType.DeceasedDate == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.DeceasedDate(childComplexity), true + + case "FamilyMemberHistoryType.deceasedRange": + if e.complexity.FamilyMemberHistoryType.DeceasedRange == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.DeceasedRange(childComplexity), true + + case "FamilyMemberHistoryType.deceasedString": + if e.complexity.FamilyMemberHistoryType.DeceasedString == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.DeceasedString(childComplexity), true + + case "FamilyMemberHistoryType.estimatedAge": + if e.complexity.FamilyMemberHistoryType.EstimatedAge == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.EstimatedAge(childComplexity), true + + case "FamilyMemberHistoryType.extension": + if e.complexity.FamilyMemberHistoryType.Extension == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.Extension(childComplexity), true + + case "FamilyMemberHistoryType.id": + if e.complexity.FamilyMemberHistoryType.ID == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.ID(childComplexity), true + + case "FamilyMemberHistoryType.identifier": + if e.complexity.FamilyMemberHistoryType.Identifier == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.Identifier(childComplexity), true + + case "FamilyMemberHistoryType.implicitRules": + if e.complexity.FamilyMemberHistoryType.ImplicitRules == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.ImplicitRules(childComplexity), true + + case "FamilyMemberHistoryType.instantiatesCanonical": + if e.complexity.FamilyMemberHistoryType.InstantiatesCanonical == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.InstantiatesCanonical(childComplexity), true + + case "FamilyMemberHistoryType.instantiatesUri": + if e.complexity.FamilyMemberHistoryType.InstantiatesURI == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.InstantiatesURI(childComplexity), true + + case "FamilyMemberHistoryType.language": + if e.complexity.FamilyMemberHistoryType.Language == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.Language(childComplexity), true + + case "FamilyMemberHistoryType.meta": + if e.complexity.FamilyMemberHistoryType.Meta == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.Meta(childComplexity), true + + case "FamilyMemberHistoryType.modifierExtension": + if e.complexity.FamilyMemberHistoryType.ModifierExtension == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.ModifierExtension(childComplexity), true + + case "FamilyMemberHistoryType.name": + if e.complexity.FamilyMemberHistoryType.Name == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.Name(childComplexity), true + + case "FamilyMemberHistoryType.note": + if e.complexity.FamilyMemberHistoryType.Note == nil { + break + } + + args, err := ec.field_FamilyMemberHistoryType_note_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.FamilyMemberHistoryType.Note(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "FamilyMemberHistoryType.participant": + if e.complexity.FamilyMemberHistoryType.Participant == nil { + break + } + + args, err := ec.field_FamilyMemberHistoryType_participant_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.FamilyMemberHistoryType.Participant(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "FamilyMemberHistoryType.patient": + if e.complexity.FamilyMemberHistoryType.Patient == nil { + break + } + + args, err := ec.field_FamilyMemberHistoryType_patient_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.FamilyMemberHistoryType.Patient(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "FamilyMemberHistoryType.procedure": + if e.complexity.FamilyMemberHistoryType.Procedure == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.Procedure(childComplexity), true + + case "FamilyMemberHistoryType.reason": + if e.complexity.FamilyMemberHistoryType.Reason == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.Reason(childComplexity), true + + case "FamilyMemberHistoryType.relationship": + if e.complexity.FamilyMemberHistoryType.Relationship == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.Relationship(childComplexity), true + + case "FamilyMemberHistoryType.resourceType": + if e.complexity.FamilyMemberHistoryType.ResourceType == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.ResourceType(childComplexity), true + + case "FamilyMemberHistoryType.sex": + if e.complexity.FamilyMemberHistoryType.Sex == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.Sex(childComplexity), true + + case "FamilyMemberHistoryType.status": + if e.complexity.FamilyMemberHistoryType.Status == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.Status(childComplexity), true + + case "FamilyMemberHistoryType.text": + if e.complexity.FamilyMemberHistoryType.Text == nil { + break + } + + return e.complexity.FamilyMemberHistoryType.Text(childComplexity), true + + case "GroupCharacteristic.code": + if e.complexity.GroupCharacteristic.Code == nil { + break + } + + return e.complexity.GroupCharacteristic.Code(childComplexity), true + + case "GroupCharacteristic.exclude": + if e.complexity.GroupCharacteristic.Exclude == nil { + break + } + + return e.complexity.GroupCharacteristic.Exclude(childComplexity), true + + case "GroupCharacteristic.extension": + if e.complexity.GroupCharacteristic.Extension == nil { + break + } + + return e.complexity.GroupCharacteristic.Extension(childComplexity), true + + case "GroupCharacteristic.id": + if e.complexity.GroupCharacteristic.ID == nil { + break + } + + return e.complexity.GroupCharacteristic.ID(childComplexity), true + + case "GroupCharacteristic.modifierExtension": + if e.complexity.GroupCharacteristic.ModifierExtension == nil { + break + } + + return e.complexity.GroupCharacteristic.ModifierExtension(childComplexity), true + + case "GroupCharacteristic.period": + if e.complexity.GroupCharacteristic.Period == nil { + break + } + + return e.complexity.GroupCharacteristic.Period(childComplexity), true + + case "GroupCharacteristic.resourceType": + if e.complexity.GroupCharacteristic.ResourceType == nil { + break + } + + return e.complexity.GroupCharacteristic.ResourceType(childComplexity), true + + case "GroupCharacteristic.valueBoolean": + if e.complexity.GroupCharacteristic.ValueBoolean == nil { + break + } + + return e.complexity.GroupCharacteristic.ValueBoolean(childComplexity), true + + case "GroupCharacteristic.valueCodeableConcept": + if e.complexity.GroupCharacteristic.ValueCodeableConcept == nil { + break + } + + return e.complexity.GroupCharacteristic.ValueCodeableConcept(childComplexity), true + + case "GroupCharacteristic.valueQuantity": + if e.complexity.GroupCharacteristic.ValueQuantity == nil { + break + } + + return e.complexity.GroupCharacteristic.ValueQuantity(childComplexity), true + + case "GroupCharacteristic.valueRange": + if e.complexity.GroupCharacteristic.ValueRange == nil { + break + } + + return e.complexity.GroupCharacteristic.ValueRange(childComplexity), true + + case "GroupMember.entity": + if e.complexity.GroupMember.Entity == nil { + break + } + + args, err := ec.field_GroupMember_entity_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.GroupMember.Entity(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "GroupMember.extension": + if e.complexity.GroupMember.Extension == nil { + break + } + + return e.complexity.GroupMember.Extension(childComplexity), true + + case "GroupMember.id": + if e.complexity.GroupMember.ID == nil { + break + } + + return e.complexity.GroupMember.ID(childComplexity), true + + case "GroupMember.inactive": + if e.complexity.GroupMember.Inactive == nil { + break + } + + return e.complexity.GroupMember.Inactive(childComplexity), true + + case "GroupMember.modifierExtension": + if e.complexity.GroupMember.ModifierExtension == nil { + break + } + + return e.complexity.GroupMember.ModifierExtension(childComplexity), true + + case "GroupMember.period": + if e.complexity.GroupMember.Period == nil { + break + } + + return e.complexity.GroupMember.Period(childComplexity), true + + case "GroupMember.resourceType": + if e.complexity.GroupMember.ResourceType == nil { + break + } + + return e.complexity.GroupMember.ResourceType(childComplexity), true + + case "GroupType.active": + if e.complexity.GroupType.Active == nil { + break + } + + return e.complexity.GroupType.Active(childComplexity), true + + case "GroupType.characteristic": + if e.complexity.GroupType.Characteristic == nil { + break + } + + return e.complexity.GroupType.Characteristic(childComplexity), true + + case "GroupType.code": + if e.complexity.GroupType.Code == nil { + break + } + + return e.complexity.GroupType.Code(childComplexity), true + + case "GroupType.contained": + if e.complexity.GroupType.Contained == nil { + break + } + + return e.complexity.GroupType.Contained(childComplexity), true + + case "GroupType.description": + if e.complexity.GroupType.Description == nil { + break + } + + return e.complexity.GroupType.Description(childComplexity), true + + case "GroupType.extension": + if e.complexity.GroupType.Extension == nil { + break + } + + return e.complexity.GroupType.Extension(childComplexity), true + + case "GroupType.id": + if e.complexity.GroupType.ID == nil { + break + } + + return e.complexity.GroupType.ID(childComplexity), true + + case "GroupType.identifier": + if e.complexity.GroupType.Identifier == nil { + break + } + + return e.complexity.GroupType.Identifier(childComplexity), true + + case "GroupType.implicitRules": + if e.complexity.GroupType.ImplicitRules == nil { + break + } + + return e.complexity.GroupType.ImplicitRules(childComplexity), true + + case "GroupType.language": + if e.complexity.GroupType.Language == nil { + break + } + + return e.complexity.GroupType.Language(childComplexity), true + + case "GroupType.managingEntity": + if e.complexity.GroupType.ManagingEntity == nil { + break + } + + args, err := ec.field_GroupType_managingEntity_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.GroupType.ManagingEntity(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "GroupType.member": + if e.complexity.GroupType.Member == nil { + break + } + + args, err := ec.field_GroupType_member_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.GroupType.Member(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "GroupType.membership": + if e.complexity.GroupType.Membership == nil { + break + } + + return e.complexity.GroupType.Membership(childComplexity), true + + case "GroupType.meta": + if e.complexity.GroupType.Meta == nil { + break + } + + return e.complexity.GroupType.Meta(childComplexity), true + + case "GroupType.modifierExtension": + if e.complexity.GroupType.ModifierExtension == nil { + break + } + + return e.complexity.GroupType.ModifierExtension(childComplexity), true + + case "GroupType.name": + if e.complexity.GroupType.Name == nil { + break + } + + return e.complexity.GroupType.Name(childComplexity), true + + case "GroupType.quantity": + if e.complexity.GroupType.Quantity == nil { + break + } + + return e.complexity.GroupType.Quantity(childComplexity), true + + case "GroupType.resourceType": + if e.complexity.GroupType.ResourceType == nil { + break + } + + return e.complexity.GroupType.ResourceType(childComplexity), true + + case "GroupType.text": + if e.complexity.GroupType.Text == nil { + break + } + + return e.complexity.GroupType.Text(childComplexity), true + + case "GroupType.type": + if e.complexity.GroupType.Type == nil { + break + } + + return e.complexity.GroupType.Type(childComplexity), true + + case "HumanName.extension": + if e.complexity.HumanName.Extension == nil { + break + } + + return e.complexity.HumanName.Extension(childComplexity), true + + case "HumanName.family": + if e.complexity.HumanName.Family == nil { + break + } + + return e.complexity.HumanName.Family(childComplexity), true + + case "HumanName.given": + if e.complexity.HumanName.Given == nil { + break + } + + return e.complexity.HumanName.Given(childComplexity), true + + case "HumanName.id": + if e.complexity.HumanName.ID == nil { + break + } + + return e.complexity.HumanName.ID(childComplexity), true + + case "HumanName.period": + if e.complexity.HumanName.Period == nil { + break + } + + return e.complexity.HumanName.Period(childComplexity), true + + case "HumanName.prefix": + if e.complexity.HumanName.Prefix == nil { + break + } + + return e.complexity.HumanName.Prefix(childComplexity), true + + case "HumanName.resourceType": + if e.complexity.HumanName.ResourceType == nil { + break + } + + return e.complexity.HumanName.ResourceType(childComplexity), true + + case "HumanName.suffix": + if e.complexity.HumanName.Suffix == nil { + break + } + + return e.complexity.HumanName.Suffix(childComplexity), true + + case "HumanName.text": + if e.complexity.HumanName.Text == nil { + break + } + + return e.complexity.HumanName.Text(childComplexity), true + + case "HumanName.use": + if e.complexity.HumanName.Use == nil { + break + } + + return e.complexity.HumanName.Use(childComplexity), true + + case "Identifier.assigner": + if e.complexity.Identifier.Assigner == nil { + break + } + + args, err := ec.field_Identifier_assigner_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Identifier.Assigner(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Identifier.extension": + if e.complexity.Identifier.Extension == nil { + break + } + + return e.complexity.Identifier.Extension(childComplexity), true + + case "Identifier.id": + if e.complexity.Identifier.ID == nil { + break + } + + return e.complexity.Identifier.ID(childComplexity), true + + case "Identifier.period": + if e.complexity.Identifier.Period == nil { + break + } + + return e.complexity.Identifier.Period(childComplexity), true + + case "Identifier.resourceType": + if e.complexity.Identifier.ResourceType == nil { + break + } + + return e.complexity.Identifier.ResourceType(childComplexity), true + + case "Identifier.system": + if e.complexity.Identifier.System == nil { + break + } + + return e.complexity.Identifier.System(childComplexity), true + + case "Identifier.type": + if e.complexity.Identifier.Type == nil { + break + } + + return e.complexity.Identifier.Type(childComplexity), true + + case "Identifier.use": + if e.complexity.Identifier.Use == nil { + break + } + + return e.complexity.Identifier.Use(childComplexity), true + + case "Identifier.value": + if e.complexity.Identifier.Value == nil { + break + } + + return e.complexity.Identifier.Value(childComplexity), true + + case "ImagingStudySeries.bodySite": + if e.complexity.ImagingStudySeries.BodySite == nil { + break + } + + return e.complexity.ImagingStudySeries.BodySite(childComplexity), true + + case "ImagingStudySeries.description": + if e.complexity.ImagingStudySeries.Description == nil { + break + } + + return e.complexity.ImagingStudySeries.Description(childComplexity), true + + case "ImagingStudySeries.extension": + if e.complexity.ImagingStudySeries.Extension == nil { + break + } + + return e.complexity.ImagingStudySeries.Extension(childComplexity), true + + case "ImagingStudySeries.id": + if e.complexity.ImagingStudySeries.ID == nil { + break + } + + return e.complexity.ImagingStudySeries.ID(childComplexity), true + + case "ImagingStudySeries.instance": + if e.complexity.ImagingStudySeries.Instance == nil { + break + } + + return e.complexity.ImagingStudySeries.Instance(childComplexity), true + + case "ImagingStudySeries.laterality": + if e.complexity.ImagingStudySeries.Laterality == nil { + break + } + + return e.complexity.ImagingStudySeries.Laterality(childComplexity), true + + case "ImagingStudySeries.modality": + if e.complexity.ImagingStudySeries.Modality == nil { + break + } + + return e.complexity.ImagingStudySeries.Modality(childComplexity), true + + case "ImagingStudySeries.modifierExtension": + if e.complexity.ImagingStudySeries.ModifierExtension == nil { + break + } + + return e.complexity.ImagingStudySeries.ModifierExtension(childComplexity), true + + case "ImagingStudySeries.number": + if e.complexity.ImagingStudySeries.Number == nil { + break + } + + return e.complexity.ImagingStudySeries.Number(childComplexity), true + + case "ImagingStudySeries.numberOfInstances": + if e.complexity.ImagingStudySeries.NumberOfInstances == nil { + break + } + + return e.complexity.ImagingStudySeries.NumberOfInstances(childComplexity), true + + case "ImagingStudySeries.performer": + if e.complexity.ImagingStudySeries.Performer == nil { + break + } + + args, err := ec.field_ImagingStudySeries_performer_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ImagingStudySeries.Performer(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ImagingStudySeries.resourceType": + if e.complexity.ImagingStudySeries.ResourceType == nil { + break + } + + return e.complexity.ImagingStudySeries.ResourceType(childComplexity), true + + case "ImagingStudySeries.specimen": + if e.complexity.ImagingStudySeries.Specimen == nil { + break + } + + args, err := ec.field_ImagingStudySeries_specimen_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ImagingStudySeries.Specimen(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ImagingStudySeries.started": + if e.complexity.ImagingStudySeries.Started == nil { + break + } + + return e.complexity.ImagingStudySeries.Started(childComplexity), true + + case "ImagingStudySeries.uid": + if e.complexity.ImagingStudySeries.UID == nil { + break + } + + return e.complexity.ImagingStudySeries.UID(childComplexity), true + + case "ImagingStudySeriesInstance.extension": + if e.complexity.ImagingStudySeriesInstance.Extension == nil { + break + } + + return e.complexity.ImagingStudySeriesInstance.Extension(childComplexity), true + + case "ImagingStudySeriesInstance.id": + if e.complexity.ImagingStudySeriesInstance.ID == nil { + break + } + + return e.complexity.ImagingStudySeriesInstance.ID(childComplexity), true + + case "ImagingStudySeriesInstance.modifierExtension": + if e.complexity.ImagingStudySeriesInstance.ModifierExtension == nil { + break + } + + return e.complexity.ImagingStudySeriesInstance.ModifierExtension(childComplexity), true + + case "ImagingStudySeriesInstance.number": + if e.complexity.ImagingStudySeriesInstance.Number == nil { + break + } + + return e.complexity.ImagingStudySeriesInstance.Number(childComplexity), true + + case "ImagingStudySeriesInstance.resourceType": + if e.complexity.ImagingStudySeriesInstance.ResourceType == nil { + break + } + + return e.complexity.ImagingStudySeriesInstance.ResourceType(childComplexity), true + + case "ImagingStudySeriesInstance.sopClass": + if e.complexity.ImagingStudySeriesInstance.SopClass == nil { + break + } + + return e.complexity.ImagingStudySeriesInstance.SopClass(childComplexity), true + + case "ImagingStudySeriesInstance.title": + if e.complexity.ImagingStudySeriesInstance.Title == nil { + break + } + + return e.complexity.ImagingStudySeriesInstance.Title(childComplexity), true + + case "ImagingStudySeriesInstance.uid": + if e.complexity.ImagingStudySeriesInstance.UID == nil { + break + } + + return e.complexity.ImagingStudySeriesInstance.UID(childComplexity), true + + case "ImagingStudySeriesPerformer.actor": + if e.complexity.ImagingStudySeriesPerformer.Actor == nil { + break + } + + args, err := ec.field_ImagingStudySeriesPerformer_actor_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ImagingStudySeriesPerformer.Actor(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ImagingStudySeriesPerformer.extension": + if e.complexity.ImagingStudySeriesPerformer.Extension == nil { + break + } + + return e.complexity.ImagingStudySeriesPerformer.Extension(childComplexity), true + + case "ImagingStudySeriesPerformer.function": + if e.complexity.ImagingStudySeriesPerformer.Function == nil { + break + } + + return e.complexity.ImagingStudySeriesPerformer.Function(childComplexity), true + + case "ImagingStudySeriesPerformer.id": + if e.complexity.ImagingStudySeriesPerformer.ID == nil { + break + } + + return e.complexity.ImagingStudySeriesPerformer.ID(childComplexity), true + + case "ImagingStudySeriesPerformer.modifierExtension": + if e.complexity.ImagingStudySeriesPerformer.ModifierExtension == nil { + break + } + + return e.complexity.ImagingStudySeriesPerformer.ModifierExtension(childComplexity), true + + case "ImagingStudySeriesPerformer.resourceType": + if e.complexity.ImagingStudySeriesPerformer.ResourceType == nil { + break + } + + return e.complexity.ImagingStudySeriesPerformer.ResourceType(childComplexity), true + + case "ImagingStudyType.basedOn": + if e.complexity.ImagingStudyType.BasedOn == nil { + break + } + + args, err := ec.field_ImagingStudyType_basedOn_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ImagingStudyType.BasedOn(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ImagingStudyType.contained": + if e.complexity.ImagingStudyType.Contained == nil { + break + } + + return e.complexity.ImagingStudyType.Contained(childComplexity), true + + case "ImagingStudyType.description": + if e.complexity.ImagingStudyType.Description == nil { + break + } + + return e.complexity.ImagingStudyType.Description(childComplexity), true + + case "ImagingStudyType.extension": + if e.complexity.ImagingStudyType.Extension == nil { + break + } + + return e.complexity.ImagingStudyType.Extension(childComplexity), true + + case "ImagingStudyType.id": + if e.complexity.ImagingStudyType.ID == nil { + break + } + + return e.complexity.ImagingStudyType.ID(childComplexity), true + + case "ImagingStudyType.identifier": + if e.complexity.ImagingStudyType.Identifier == nil { + break + } + + return e.complexity.ImagingStudyType.Identifier(childComplexity), true + + case "ImagingStudyType.implicitRules": + if e.complexity.ImagingStudyType.ImplicitRules == nil { + break + } + + return e.complexity.ImagingStudyType.ImplicitRules(childComplexity), true + + case "ImagingStudyType.language": + if e.complexity.ImagingStudyType.Language == nil { + break + } + + return e.complexity.ImagingStudyType.Language(childComplexity), true + + case "ImagingStudyType.meta": + if e.complexity.ImagingStudyType.Meta == nil { + break + } + + return e.complexity.ImagingStudyType.Meta(childComplexity), true + + case "ImagingStudyType.modality": + if e.complexity.ImagingStudyType.Modality == nil { + break + } + + return e.complexity.ImagingStudyType.Modality(childComplexity), true + + case "ImagingStudyType.modifierExtension": + if e.complexity.ImagingStudyType.ModifierExtension == nil { + break + } + + return e.complexity.ImagingStudyType.ModifierExtension(childComplexity), true + + case "ImagingStudyType.note": + if e.complexity.ImagingStudyType.Note == nil { + break + } + + args, err := ec.field_ImagingStudyType_note_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ImagingStudyType.Note(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ImagingStudyType.numberOfInstances": + if e.complexity.ImagingStudyType.NumberOfInstances == nil { + break + } + + return e.complexity.ImagingStudyType.NumberOfInstances(childComplexity), true + + case "ImagingStudyType.numberOfSeries": + if e.complexity.ImagingStudyType.NumberOfSeries == nil { + break + } + + return e.complexity.ImagingStudyType.NumberOfSeries(childComplexity), true + + case "ImagingStudyType.partOf": + if e.complexity.ImagingStudyType.PartOf == nil { + break + } + + args, err := ec.field_ImagingStudyType_partOf_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ImagingStudyType.PartOf(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ImagingStudyType.procedure": + if e.complexity.ImagingStudyType.Procedure == nil { + break + } + + return e.complexity.ImagingStudyType.Procedure(childComplexity), true + + case "ImagingStudyType.reason": + if e.complexity.ImagingStudyType.Reason == nil { + break + } + + return e.complexity.ImagingStudyType.Reason(childComplexity), true + + case "ImagingStudyType.referrer": + if e.complexity.ImagingStudyType.Referrer == nil { + break + } + + args, err := ec.field_ImagingStudyType_referrer_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ImagingStudyType.Referrer(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ImagingStudyType.resourceType": + if e.complexity.ImagingStudyType.ResourceType == nil { + break + } + + return e.complexity.ImagingStudyType.ResourceType(childComplexity), true + + case "ImagingStudyType.series": + if e.complexity.ImagingStudyType.Series == nil { + break + } + + return e.complexity.ImagingStudyType.Series(childComplexity), true + + case "ImagingStudyType.started": + if e.complexity.ImagingStudyType.Started == nil { + break + } + + return e.complexity.ImagingStudyType.Started(childComplexity), true + + case "ImagingStudyType.status": + if e.complexity.ImagingStudyType.Status == nil { + break + } + + return e.complexity.ImagingStudyType.Status(childComplexity), true + + case "ImagingStudyType.subject": + if e.complexity.ImagingStudyType.Subject == nil { + break + } + + args, err := ec.field_ImagingStudyType_subject_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ImagingStudyType.Subject(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ImagingStudyType.text": + if e.complexity.ImagingStudyType.Text == nil { + break + } + + return e.complexity.ImagingStudyType.Text(childComplexity), true + + case "Immunization.administeredProduct": + if e.complexity.Immunization.AdministeredProduct == nil { + break + } + + return e.complexity.Immunization.AdministeredProduct(childComplexity), true + + case "Immunization.contained": + if e.complexity.Immunization.Contained == nil { + break + } + + return e.complexity.Immunization.Contained(childComplexity), true + + case "Immunization.doseQuantity": + if e.complexity.Immunization.DoseQuantity == nil { + break + } + + return e.complexity.Immunization.DoseQuantity(childComplexity), true + + case "Immunization.expirationDate": + if e.complexity.Immunization.ExpirationDate == nil { + break + } + + return e.complexity.Immunization.ExpirationDate(childComplexity), true + + case "Immunization.extension": + if e.complexity.Immunization.Extension == nil { + break + } + + return e.complexity.Immunization.Extension(childComplexity), true + + case "Immunization.fundingSource": + if e.complexity.Immunization.FundingSource == nil { + break + } + + return e.complexity.Immunization.FundingSource(childComplexity), true + + case "Immunization.id": + if e.complexity.Immunization.ID == nil { + break + } + + return e.complexity.Immunization.ID(childComplexity), true + + case "Immunization.identifier": + if e.complexity.Immunization.Identifier == nil { + break + } + + return e.complexity.Immunization.Identifier(childComplexity), true + + case "Immunization.implicitRules": + if e.complexity.Immunization.ImplicitRules == nil { + break + } + + return e.complexity.Immunization.ImplicitRules(childComplexity), true + + case "Immunization.informationSource": + if e.complexity.Immunization.InformationSource == nil { + break + } + + return e.complexity.Immunization.InformationSource(childComplexity), true + + case "Immunization.isSubpotent": + if e.complexity.Immunization.IsSubpotent == nil { + break + } + + return e.complexity.Immunization.IsSubpotent(childComplexity), true + + case "Immunization.language": + if e.complexity.Immunization.Language == nil { + break + } + + return e.complexity.Immunization.Language(childComplexity), true + + case "Immunization.lotNumber": + if e.complexity.Immunization.LotNumber == nil { + break + } + + return e.complexity.Immunization.LotNumber(childComplexity), true + + case "Immunization.manufacturer": + if e.complexity.Immunization.Manufacturer == nil { + break + } + + return e.complexity.Immunization.Manufacturer(childComplexity), true + + case "Immunization.meta": + if e.complexity.Immunization.Meta == nil { + break + } + + return e.complexity.Immunization.Meta(childComplexity), true + + case "Immunization.modifierExtension": + if e.complexity.Immunization.ModifierExtension == nil { + break + } + + return e.complexity.Immunization.ModifierExtension(childComplexity), true + + case "Immunization.note": + if e.complexity.Immunization.Note == nil { + break + } + + return e.complexity.Immunization.Note(childComplexity), true + + case "Immunization.occurrenceDateTime": + if e.complexity.Immunization.OccurrenceDateTime == nil { + break + } + + return e.complexity.Immunization.OccurrenceDateTime(childComplexity), true + + case "Immunization.occurrenceString": + if e.complexity.Immunization.OccurrenceString == nil { + break + } + + return e.complexity.Immunization.OccurrenceString(childComplexity), true + + case "Immunization.performer": + if e.complexity.Immunization.Performer == nil { + break + } + + return e.complexity.Immunization.Performer(childComplexity), true + + case "Immunization.primarySource": + if e.complexity.Immunization.PrimarySource == nil { + break + } + + return e.complexity.Immunization.PrimarySource(childComplexity), true + + case "Immunization.programEligibility": + if e.complexity.Immunization.ProgramEligibility == nil { + break + } + + return e.complexity.Immunization.ProgramEligibility(childComplexity), true + + case "Immunization.protocolApplied": + if e.complexity.Immunization.ProtocolApplied == nil { + break + } + + return e.complexity.Immunization.ProtocolApplied(childComplexity), true + + case "Immunization.reaction": + if e.complexity.Immunization.Reaction == nil { + break + } + + return e.complexity.Immunization.Reaction(childComplexity), true + + case "Immunization.reason": + if e.complexity.Immunization.Reason == nil { + break + } + + return e.complexity.Immunization.Reason(childComplexity), true + + case "Immunization.resourceType": + if e.complexity.Immunization.ResourceType == nil { + break + } + + return e.complexity.Immunization.ResourceType(childComplexity), true + + case "Immunization.route": + if e.complexity.Immunization.Route == nil { + break + } + + return e.complexity.Immunization.Route(childComplexity), true + + case "Immunization.site": + if e.complexity.Immunization.Site == nil { + break + } + + return e.complexity.Immunization.Site(childComplexity), true + + case "Immunization.status": + if e.complexity.Immunization.Status == nil { + break + } + + return e.complexity.Immunization.Status(childComplexity), true + + case "Immunization.statusReason": + if e.complexity.Immunization.StatusReason == nil { + break + } + + return e.complexity.Immunization.StatusReason(childComplexity), true + + case "Immunization.subpotentReason": + if e.complexity.Immunization.SubpotentReason == nil { + break + } + + return e.complexity.Immunization.SubpotentReason(childComplexity), true + + case "Immunization.text": + if e.complexity.Immunization.Text == nil { + break + } + + return e.complexity.Immunization.Text(childComplexity), true + + case "Immunization.vaccineCode": + if e.complexity.Immunization.VaccineCode == nil { + break + } + + return e.complexity.Immunization.VaccineCode(childComplexity), true + + case "ImmunizationPerformer.extension": + if e.complexity.ImmunizationPerformer.Extension == nil { + break + } + + return e.complexity.ImmunizationPerformer.Extension(childComplexity), true + + case "ImmunizationPerformer.function": + if e.complexity.ImmunizationPerformer.Function == nil { + break + } + + return e.complexity.ImmunizationPerformer.Function(childComplexity), true + + case "ImmunizationPerformer.id": + if e.complexity.ImmunizationPerformer.ID == nil { + break + } + + return e.complexity.ImmunizationPerformer.ID(childComplexity), true + + case "ImmunizationPerformer.modifierExtension": + if e.complexity.ImmunizationPerformer.ModifierExtension == nil { + break + } + + return e.complexity.ImmunizationPerformer.ModifierExtension(childComplexity), true + + case "ImmunizationPerformer.resourceType": + if e.complexity.ImmunizationPerformer.ResourceType == nil { + break + } + + return e.complexity.ImmunizationPerformer.ResourceType(childComplexity), true + + case "ImmunizationProgramEligibility.extension": + if e.complexity.ImmunizationProgramEligibility.Extension == nil { + break + } + + return e.complexity.ImmunizationProgramEligibility.Extension(childComplexity), true + + case "ImmunizationProgramEligibility.id": + if e.complexity.ImmunizationProgramEligibility.ID == nil { + break + } + + return e.complexity.ImmunizationProgramEligibility.ID(childComplexity), true + + case "ImmunizationProgramEligibility.modifierExtension": + if e.complexity.ImmunizationProgramEligibility.ModifierExtension == nil { + break + } + + return e.complexity.ImmunizationProgramEligibility.ModifierExtension(childComplexity), true + + case "ImmunizationProgramEligibility.program": + if e.complexity.ImmunizationProgramEligibility.Program == nil { + break + } + + return e.complexity.ImmunizationProgramEligibility.Program(childComplexity), true + + case "ImmunizationProgramEligibility.programStatus": + if e.complexity.ImmunizationProgramEligibility.ProgramStatus == nil { + break + } + + return e.complexity.ImmunizationProgramEligibility.ProgramStatus(childComplexity), true + + case "ImmunizationProgramEligibility.resourceType": + if e.complexity.ImmunizationProgramEligibility.ResourceType == nil { + break + } + + return e.complexity.ImmunizationProgramEligibility.ResourceType(childComplexity), true + + case "ImmunizationProtocolApplied.doseNumber": + if e.complexity.ImmunizationProtocolApplied.DoseNumber == nil { + break + } + + return e.complexity.ImmunizationProtocolApplied.DoseNumber(childComplexity), true + + case "ImmunizationProtocolApplied.extension": + if e.complexity.ImmunizationProtocolApplied.Extension == nil { + break + } + + return e.complexity.ImmunizationProtocolApplied.Extension(childComplexity), true + + case "ImmunizationProtocolApplied.id": + if e.complexity.ImmunizationProtocolApplied.ID == nil { + break + } + + return e.complexity.ImmunizationProtocolApplied.ID(childComplexity), true + + case "ImmunizationProtocolApplied.modifierExtension": + if e.complexity.ImmunizationProtocolApplied.ModifierExtension == nil { + break + } + + return e.complexity.ImmunizationProtocolApplied.ModifierExtension(childComplexity), true + + case "ImmunizationProtocolApplied.resourceType": + if e.complexity.ImmunizationProtocolApplied.ResourceType == nil { + break + } + + return e.complexity.ImmunizationProtocolApplied.ResourceType(childComplexity), true + + case "ImmunizationProtocolApplied.series": + if e.complexity.ImmunizationProtocolApplied.Series == nil { + break + } + + return e.complexity.ImmunizationProtocolApplied.Series(childComplexity), true + + case "ImmunizationProtocolApplied.seriesDoses": + if e.complexity.ImmunizationProtocolApplied.SeriesDoses == nil { + break + } + + return e.complexity.ImmunizationProtocolApplied.SeriesDoses(childComplexity), true + + case "ImmunizationProtocolApplied.targetDisease": + if e.complexity.ImmunizationProtocolApplied.TargetDisease == nil { + break + } + + return e.complexity.ImmunizationProtocolApplied.TargetDisease(childComplexity), true + + case "ImmunizationReaction.date": + if e.complexity.ImmunizationReaction.Date == nil { + break + } + + return e.complexity.ImmunizationReaction.Date(childComplexity), true + + case "ImmunizationReaction.extension": + if e.complexity.ImmunizationReaction.Extension == nil { + break + } + + return e.complexity.ImmunizationReaction.Extension(childComplexity), true + + case "ImmunizationReaction.id": + if e.complexity.ImmunizationReaction.ID == nil { + break + } + + return e.complexity.ImmunizationReaction.ID(childComplexity), true + + case "ImmunizationReaction.manifestation": + if e.complexity.ImmunizationReaction.Manifestation == nil { + break + } + + return e.complexity.ImmunizationReaction.Manifestation(childComplexity), true + + case "ImmunizationReaction.modifierExtension": + if e.complexity.ImmunizationReaction.ModifierExtension == nil { + break + } + + return e.complexity.ImmunizationReaction.ModifierExtension(childComplexity), true + + case "ImmunizationReaction.reported": + if e.complexity.ImmunizationReaction.Reported == nil { + break + } + + return e.complexity.ImmunizationReaction.Reported(childComplexity), true + + case "ImmunizationReaction.resourceType": + if e.complexity.ImmunizationReaction.ResourceType == nil { + break + } + + return e.complexity.ImmunizationReaction.ResourceType(childComplexity), true + + case "Location.address": + if e.complexity.Location.Address == nil { + break + } + + return e.complexity.Location.Address(childComplexity), true + + case "Location.alias": + if e.complexity.Location.Alias == nil { + break + } + + return e.complexity.Location.Alias(childComplexity), true + + case "Location.characteristic": + if e.complexity.Location.Characteristic == nil { + break + } + + return e.complexity.Location.Characteristic(childComplexity), true + + case "Location.contact": + if e.complexity.Location.Contact == nil { + break + } + + return e.complexity.Location.Contact(childComplexity), true + + case "Location.contained": + if e.complexity.Location.Contained == nil { + break + } + + return e.complexity.Location.Contained(childComplexity), true + + case "Location.description": + if e.complexity.Location.Description == nil { + break + } + + return e.complexity.Location.Description(childComplexity), true + + case "Location.extension": + if e.complexity.Location.Extension == nil { + break + } + + return e.complexity.Location.Extension(childComplexity), true + + case "Location.form": + if e.complexity.Location.Form == nil { + break + } + + return e.complexity.Location.Form(childComplexity), true + + case "Location.hoursOfOperation": + if e.complexity.Location.HoursOfOperation == nil { + break + } + + return e.complexity.Location.HoursOfOperation(childComplexity), true + + case "Location.id": + if e.complexity.Location.ID == nil { + break + } + + return e.complexity.Location.ID(childComplexity), true + + case "Location.identifier": + if e.complexity.Location.Identifier == nil { + break + } + + return e.complexity.Location.Identifier(childComplexity), true + + case "Location.implicitRules": + if e.complexity.Location.ImplicitRules == nil { + break + } + + return e.complexity.Location.ImplicitRules(childComplexity), true + + case "Location.language": + if e.complexity.Location.Language == nil { + break + } + + return e.complexity.Location.Language(childComplexity), true + + case "Location.meta": + if e.complexity.Location.Meta == nil { + break + } + + return e.complexity.Location.Meta(childComplexity), true + + case "Location.mode": + if e.complexity.Location.Mode == nil { + break + } + + return e.complexity.Location.Mode(childComplexity), true + + case "Location.modifierExtension": + if e.complexity.Location.ModifierExtension == nil { + break + } + + return e.complexity.Location.ModifierExtension(childComplexity), true + + case "Location.name": + if e.complexity.Location.Name == nil { + break + } + + return e.complexity.Location.Name(childComplexity), true + + case "Location.operationalStatus": + if e.complexity.Location.OperationalStatus == nil { + break + } + + return e.complexity.Location.OperationalStatus(childComplexity), true + + case "Location.position": + if e.complexity.Location.Position == nil { + break + } + + return e.complexity.Location.Position(childComplexity), true + + case "Location.resourceType": + if e.complexity.Location.ResourceType == nil { + break + } + + return e.complexity.Location.ResourceType(childComplexity), true + + case "Location.status": + if e.complexity.Location.Status == nil { + break + } + + return e.complexity.Location.Status(childComplexity), true + + case "Location.text": + if e.complexity.Location.Text == nil { + break + } + + return e.complexity.Location.Text(childComplexity), true + + case "Location.type": + if e.complexity.Location.Type == nil { + break + } + + return e.complexity.Location.Type(childComplexity), true + + case "Location.virtualService": + if e.complexity.Location.VirtualService == nil { + break + } + + return e.complexity.Location.VirtualService(childComplexity), true + + case "LocationPosition.altitude": + if e.complexity.LocationPosition.Altitude == nil { + break + } + + return e.complexity.LocationPosition.Altitude(childComplexity), true + + case "LocationPosition.extension": + if e.complexity.LocationPosition.Extension == nil { + break + } + + return e.complexity.LocationPosition.Extension(childComplexity), true + + case "LocationPosition.id": + if e.complexity.LocationPosition.ID == nil { + break + } + + return e.complexity.LocationPosition.ID(childComplexity), true + + case "LocationPosition.latitude": + if e.complexity.LocationPosition.Latitude == nil { + break + } + + return e.complexity.LocationPosition.Latitude(childComplexity), true + + case "LocationPosition.longitude": + if e.complexity.LocationPosition.Longitude == nil { + break + } + + return e.complexity.LocationPosition.Longitude(childComplexity), true + + case "LocationPosition.modifierExtension": + if e.complexity.LocationPosition.ModifierExtension == nil { + break + } + + return e.complexity.LocationPosition.ModifierExtension(childComplexity), true + + case "LocationPosition.resourceType": + if e.complexity.LocationPosition.ResourceType == nil { + break + } + + return e.complexity.LocationPosition.ResourceType(childComplexity), true + + case "MedicationAdministrationDosage.dose": + if e.complexity.MedicationAdministrationDosage.Dose == nil { + break + } + + return e.complexity.MedicationAdministrationDosage.Dose(childComplexity), true + + case "MedicationAdministrationDosage.extension": + if e.complexity.MedicationAdministrationDosage.Extension == nil { + break + } + + return e.complexity.MedicationAdministrationDosage.Extension(childComplexity), true + + case "MedicationAdministrationDosage.id": + if e.complexity.MedicationAdministrationDosage.ID == nil { + break + } + + return e.complexity.MedicationAdministrationDosage.ID(childComplexity), true + + case "MedicationAdministrationDosage.method": + if e.complexity.MedicationAdministrationDosage.Method == nil { + break + } + + return e.complexity.MedicationAdministrationDosage.Method(childComplexity), true + + case "MedicationAdministrationDosage.modifierExtension": + if e.complexity.MedicationAdministrationDosage.ModifierExtension == nil { + break + } + + return e.complexity.MedicationAdministrationDosage.ModifierExtension(childComplexity), true + + case "MedicationAdministrationDosage.rateQuantity": + if e.complexity.MedicationAdministrationDosage.RateQuantity == nil { + break + } + + return e.complexity.MedicationAdministrationDosage.RateQuantity(childComplexity), true + + case "MedicationAdministrationDosage.rateRatio": + if e.complexity.MedicationAdministrationDosage.RateRatio == nil { + break + } + + return e.complexity.MedicationAdministrationDosage.RateRatio(childComplexity), true + + case "MedicationAdministrationDosage.resourceType": + if e.complexity.MedicationAdministrationDosage.ResourceType == nil { + break + } + + return e.complexity.MedicationAdministrationDosage.ResourceType(childComplexity), true + + case "MedicationAdministrationDosage.route": + if e.complexity.MedicationAdministrationDosage.Route == nil { + break + } + + return e.complexity.MedicationAdministrationDosage.Route(childComplexity), true + + case "MedicationAdministrationDosage.site": + if e.complexity.MedicationAdministrationDosage.Site == nil { + break + } + + return e.complexity.MedicationAdministrationDosage.Site(childComplexity), true + + case "MedicationAdministrationDosage.text": + if e.complexity.MedicationAdministrationDosage.Text == nil { + break + } + + return e.complexity.MedicationAdministrationDosage.Text(childComplexity), true + + case "MedicationAdministrationPerformer.actor": + if e.complexity.MedicationAdministrationPerformer.Actor == nil { + break + } + + return e.complexity.MedicationAdministrationPerformer.Actor(childComplexity), true + + case "MedicationAdministrationPerformer.extension": + if e.complexity.MedicationAdministrationPerformer.Extension == nil { + break + } + + return e.complexity.MedicationAdministrationPerformer.Extension(childComplexity), true + + case "MedicationAdministrationPerformer.function": + if e.complexity.MedicationAdministrationPerformer.Function == nil { + break + } + + return e.complexity.MedicationAdministrationPerformer.Function(childComplexity), true + + case "MedicationAdministrationPerformer.id": + if e.complexity.MedicationAdministrationPerformer.ID == nil { + break + } + + return e.complexity.MedicationAdministrationPerformer.ID(childComplexity), true + + case "MedicationAdministrationPerformer.modifierExtension": + if e.complexity.MedicationAdministrationPerformer.ModifierExtension == nil { + break + } + + return e.complexity.MedicationAdministrationPerformer.ModifierExtension(childComplexity), true + + case "MedicationAdministrationPerformer.resourceType": + if e.complexity.MedicationAdministrationPerformer.ResourceType == nil { + break + } + + return e.complexity.MedicationAdministrationPerformer.ResourceType(childComplexity), true + + case "MedicationAdministrationType.category": + if e.complexity.MedicationAdministrationType.Category == nil { + break + } + + return e.complexity.MedicationAdministrationType.Category(childComplexity), true + + case "MedicationAdministrationType.contained": + if e.complexity.MedicationAdministrationType.Contained == nil { + break + } + + return e.complexity.MedicationAdministrationType.Contained(childComplexity), true + + case "MedicationAdministrationType.device": + if e.complexity.MedicationAdministrationType.Device == nil { + break + } + + return e.complexity.MedicationAdministrationType.Device(childComplexity), true + + case "MedicationAdministrationType.dosage": + if e.complexity.MedicationAdministrationType.Dosage == nil { + break + } + + return e.complexity.MedicationAdministrationType.Dosage(childComplexity), true + + case "MedicationAdministrationType.extension": + if e.complexity.MedicationAdministrationType.Extension == nil { + break + } + + return e.complexity.MedicationAdministrationType.Extension(childComplexity), true + + case "MedicationAdministrationType.id": + if e.complexity.MedicationAdministrationType.ID == nil { + break + } + + return e.complexity.MedicationAdministrationType.ID(childComplexity), true + + case "MedicationAdministrationType.identifier": + if e.complexity.MedicationAdministrationType.Identifier == nil { + break + } + + return e.complexity.MedicationAdministrationType.Identifier(childComplexity), true + + case "MedicationAdministrationType.implicitRules": + if e.complexity.MedicationAdministrationType.ImplicitRules == nil { + break + } + + return e.complexity.MedicationAdministrationType.ImplicitRules(childComplexity), true + + case "MedicationAdministrationType.isSubPotent": + if e.complexity.MedicationAdministrationType.IsSubPotent == nil { + break + } + + return e.complexity.MedicationAdministrationType.IsSubPotent(childComplexity), true + + case "MedicationAdministrationType.language": + if e.complexity.MedicationAdministrationType.Language == nil { + break + } + + return e.complexity.MedicationAdministrationType.Language(childComplexity), true + + case "MedicationAdministrationType.medication": + if e.complexity.MedicationAdministrationType.Medication == nil { + break + } + + return e.complexity.MedicationAdministrationType.Medication(childComplexity), true + + case "MedicationAdministrationType.meta": + if e.complexity.MedicationAdministrationType.Meta == nil { + break + } + + return e.complexity.MedicationAdministrationType.Meta(childComplexity), true + + case "MedicationAdministrationType.modifierExtension": + if e.complexity.MedicationAdministrationType.ModifierExtension == nil { + break + } + + return e.complexity.MedicationAdministrationType.ModifierExtension(childComplexity), true + + case "MedicationAdministrationType.note": + if e.complexity.MedicationAdministrationType.Note == nil { + break + } + + args, err := ec.field_MedicationAdministrationType_note_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationAdministrationType.Note(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationAdministrationType.occurenceDateTime": + if e.complexity.MedicationAdministrationType.OccurenceDateTime == nil { + break + } + + return e.complexity.MedicationAdministrationType.OccurenceDateTime(childComplexity), true + + case "MedicationAdministrationType.occurencePeriod": + if e.complexity.MedicationAdministrationType.OccurencePeriod == nil { + break + } + + return e.complexity.MedicationAdministrationType.OccurencePeriod(childComplexity), true + + case "MedicationAdministrationType.occurenceTiming": + if e.complexity.MedicationAdministrationType.OccurenceTiming == nil { + break + } + + return e.complexity.MedicationAdministrationType.OccurenceTiming(childComplexity), true + + case "MedicationAdministrationType.partOf": + if e.complexity.MedicationAdministrationType.PartOf == nil { + break + } + + args, err := ec.field_MedicationAdministrationType_partOf_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationAdministrationType.PartOf(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationAdministrationType.performer": + if e.complexity.MedicationAdministrationType.Performer == nil { + break + } + + return e.complexity.MedicationAdministrationType.Performer(childComplexity), true + + case "MedicationAdministrationType.reason": + if e.complexity.MedicationAdministrationType.Reason == nil { + break + } + + return e.complexity.MedicationAdministrationType.Reason(childComplexity), true + + case "MedicationAdministrationType.recorded": + if e.complexity.MedicationAdministrationType.Recorded == nil { + break + } + + return e.complexity.MedicationAdministrationType.Recorded(childComplexity), true + + case "MedicationAdministrationType.request": + if e.complexity.MedicationAdministrationType.Request == nil { + break + } + + args, err := ec.field_MedicationAdministrationType_request_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationAdministrationType.Request(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationAdministrationType.resourceType": + if e.complexity.MedicationAdministrationType.ResourceType == nil { + break + } + + return e.complexity.MedicationAdministrationType.ResourceType(childComplexity), true + + case "MedicationAdministrationType.status": + if e.complexity.MedicationAdministrationType.Status == nil { + break + } + + return e.complexity.MedicationAdministrationType.Status(childComplexity), true + + case "MedicationAdministrationType.statusReason": + if e.complexity.MedicationAdministrationType.StatusReason == nil { + break + } + + return e.complexity.MedicationAdministrationType.StatusReason(childComplexity), true + + case "MedicationAdministrationType.subPotentReason": + if e.complexity.MedicationAdministrationType.SubPotentReason == nil { + break + } + + return e.complexity.MedicationAdministrationType.SubPotentReason(childComplexity), true + + case "MedicationAdministrationType.subject": + if e.complexity.MedicationAdministrationType.Subject == nil { + break + } + + args, err := ec.field_MedicationAdministrationType_subject_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationAdministrationType.Subject(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationAdministrationType.supportingInformation": + if e.complexity.MedicationAdministrationType.SupportingInformation == nil { + break + } + + args, err := ec.field_MedicationAdministrationType_supportingInformation_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationAdministrationType.SupportingInformation(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationAdministrationType.text": + if e.complexity.MedicationAdministrationType.Text == nil { + break + } + + return e.complexity.MedicationAdministrationType.Text(childComplexity), true + + case "MedicationBatch.expirationDate": + if e.complexity.MedicationBatch.ExpirationDate == nil { + break + } + + return e.complexity.MedicationBatch.ExpirationDate(childComplexity), true + + case "MedicationBatch.extension": + if e.complexity.MedicationBatch.Extension == nil { + break + } + + return e.complexity.MedicationBatch.Extension(childComplexity), true + + case "MedicationBatch.id": + if e.complexity.MedicationBatch.ID == nil { + break + } + + return e.complexity.MedicationBatch.ID(childComplexity), true + + case "MedicationBatch.lotNumber": + if e.complexity.MedicationBatch.LotNumber == nil { + break + } + + return e.complexity.MedicationBatch.LotNumber(childComplexity), true + + case "MedicationBatch.modifierExtension": + if e.complexity.MedicationBatch.ModifierExtension == nil { + break + } + + return e.complexity.MedicationBatch.ModifierExtension(childComplexity), true + + case "MedicationBatch.resourceType": + if e.complexity.MedicationBatch.ResourceType == nil { + break + } + + return e.complexity.MedicationBatch.ResourceType(childComplexity), true + + case "MedicationIngredient.extension": + if e.complexity.MedicationIngredient.Extension == nil { + break + } + + return e.complexity.MedicationIngredient.Extension(childComplexity), true + + case "MedicationIngredient.id": + if e.complexity.MedicationIngredient.ID == nil { + break + } + + return e.complexity.MedicationIngredient.ID(childComplexity), true + + case "MedicationIngredient.isActive": + if e.complexity.MedicationIngredient.IsActive == nil { + break + } + + return e.complexity.MedicationIngredient.IsActive(childComplexity), true + + case "MedicationIngredient.item": + if e.complexity.MedicationIngredient.Item == nil { + break + } + + return e.complexity.MedicationIngredient.Item(childComplexity), true + + case "MedicationIngredient.modifierExtension": + if e.complexity.MedicationIngredient.ModifierExtension == nil { + break + } + + return e.complexity.MedicationIngredient.ModifierExtension(childComplexity), true + + case "MedicationIngredient.resourceType": + if e.complexity.MedicationIngredient.ResourceType == nil { + break + } + + return e.complexity.MedicationIngredient.ResourceType(childComplexity), true + + case "MedicationIngredient.strengthCodeableConcept": + if e.complexity.MedicationIngredient.StrengthCodeableConcept == nil { + break + } + + return e.complexity.MedicationIngredient.StrengthCodeableConcept(childComplexity), true + + case "MedicationIngredient.strengthQuantity": + if e.complexity.MedicationIngredient.StrengthQuantity == nil { + break + } + + return e.complexity.MedicationIngredient.StrengthQuantity(childComplexity), true + + case "MedicationIngredient.strengthRatio": + if e.complexity.MedicationIngredient.StrengthRatio == nil { + break + } + + return e.complexity.MedicationIngredient.StrengthRatio(childComplexity), true + + case "MedicationRequestDispenseRequest.dispenseInterval": + if e.complexity.MedicationRequestDispenseRequest.DispenseInterval == nil { + break + } + + return e.complexity.MedicationRequestDispenseRequest.DispenseInterval(childComplexity), true + + case "MedicationRequestDispenseRequest.dispenser": + if e.complexity.MedicationRequestDispenseRequest.Dispenser == nil { + break + } + + args, err := ec.field_MedicationRequestDispenseRequest_dispenser_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationRequestDispenseRequest.Dispenser(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationRequestDispenseRequest.dispenserInstruction": + if e.complexity.MedicationRequestDispenseRequest.DispenserInstruction == nil { + break + } + + args, err := ec.field_MedicationRequestDispenseRequest_dispenserInstruction_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationRequestDispenseRequest.DispenserInstruction(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationRequestDispenseRequest.doseAdministrationAid": + if e.complexity.MedicationRequestDispenseRequest.DoseAdministrationAid == nil { + break + } + + return e.complexity.MedicationRequestDispenseRequest.DoseAdministrationAid(childComplexity), true + + case "MedicationRequestDispenseRequest.expectedSupplyDuration": + if e.complexity.MedicationRequestDispenseRequest.ExpectedSupplyDuration == nil { + break + } + + return e.complexity.MedicationRequestDispenseRequest.ExpectedSupplyDuration(childComplexity), true + + case "MedicationRequestDispenseRequest.extension": + if e.complexity.MedicationRequestDispenseRequest.Extension == nil { + break + } + + return e.complexity.MedicationRequestDispenseRequest.Extension(childComplexity), true + + case "MedicationRequestDispenseRequest.id": + if e.complexity.MedicationRequestDispenseRequest.ID == nil { + break + } + + return e.complexity.MedicationRequestDispenseRequest.ID(childComplexity), true + + case "MedicationRequestDispenseRequest.initialFill": + if e.complexity.MedicationRequestDispenseRequest.InitialFill == nil { + break + } + + return e.complexity.MedicationRequestDispenseRequest.InitialFill(childComplexity), true + + case "MedicationRequestDispenseRequest.modifierExtension": + if e.complexity.MedicationRequestDispenseRequest.ModifierExtension == nil { + break + } + + return e.complexity.MedicationRequestDispenseRequest.ModifierExtension(childComplexity), true + + case "MedicationRequestDispenseRequest.numberOfRepeatsAllowed": + if e.complexity.MedicationRequestDispenseRequest.NumberOfRepeatsAllowed == nil { + break + } + + return e.complexity.MedicationRequestDispenseRequest.NumberOfRepeatsAllowed(childComplexity), true + + case "MedicationRequestDispenseRequest.quantity": + if e.complexity.MedicationRequestDispenseRequest.Quantity == nil { + break + } + + return e.complexity.MedicationRequestDispenseRequest.Quantity(childComplexity), true + + case "MedicationRequestDispenseRequest.resourceType": + if e.complexity.MedicationRequestDispenseRequest.ResourceType == nil { + break + } + + return e.complexity.MedicationRequestDispenseRequest.ResourceType(childComplexity), true + + case "MedicationRequestDispenseRequest.validityPeriod": + if e.complexity.MedicationRequestDispenseRequest.ValidityPeriod == nil { + break + } + + return e.complexity.MedicationRequestDispenseRequest.ValidityPeriod(childComplexity), true + + case "MedicationRequestDispenseRequestInitialFill.duration": + if e.complexity.MedicationRequestDispenseRequestInitialFill.Duration == nil { + break + } + + return e.complexity.MedicationRequestDispenseRequestInitialFill.Duration(childComplexity), true + + case "MedicationRequestDispenseRequestInitialFill.extension": + if e.complexity.MedicationRequestDispenseRequestInitialFill.Extension == nil { + break + } + + return e.complexity.MedicationRequestDispenseRequestInitialFill.Extension(childComplexity), true + + case "MedicationRequestDispenseRequestInitialFill.id": + if e.complexity.MedicationRequestDispenseRequestInitialFill.ID == nil { + break + } + + return e.complexity.MedicationRequestDispenseRequestInitialFill.ID(childComplexity), true + + case "MedicationRequestDispenseRequestInitialFill.modifierExtension": + if e.complexity.MedicationRequestDispenseRequestInitialFill.ModifierExtension == nil { + break + } + + return e.complexity.MedicationRequestDispenseRequestInitialFill.ModifierExtension(childComplexity), true + + case "MedicationRequestDispenseRequestInitialFill.quantity": + if e.complexity.MedicationRequestDispenseRequestInitialFill.Quantity == nil { + break + } + + return e.complexity.MedicationRequestDispenseRequestInitialFill.Quantity(childComplexity), true + + case "MedicationRequestDispenseRequestInitialFill.resourceType": + if e.complexity.MedicationRequestDispenseRequestInitialFill.ResourceType == nil { + break + } + + return e.complexity.MedicationRequestDispenseRequestInitialFill.ResourceType(childComplexity), true + + case "MedicationRequestSubstitution.allowedBoolean": + if e.complexity.MedicationRequestSubstitution.AllowedBoolean == nil { + break + } + + return e.complexity.MedicationRequestSubstitution.AllowedBoolean(childComplexity), true + + case "MedicationRequestSubstitution.allowedCodeableConcept": + if e.complexity.MedicationRequestSubstitution.AllowedCodeableConcept == nil { + break + } + + return e.complexity.MedicationRequestSubstitution.AllowedCodeableConcept(childComplexity), true + + case "MedicationRequestSubstitution.extension": + if e.complexity.MedicationRequestSubstitution.Extension == nil { + break + } + + return e.complexity.MedicationRequestSubstitution.Extension(childComplexity), true + + case "MedicationRequestSubstitution.id": + if e.complexity.MedicationRequestSubstitution.ID == nil { + break + } + + return e.complexity.MedicationRequestSubstitution.ID(childComplexity), true + + case "MedicationRequestSubstitution.modifierExtension": + if e.complexity.MedicationRequestSubstitution.ModifierExtension == nil { + break + } + + return e.complexity.MedicationRequestSubstitution.ModifierExtension(childComplexity), true + + case "MedicationRequestSubstitution.reason": + if e.complexity.MedicationRequestSubstitution.Reason == nil { + break + } + + return e.complexity.MedicationRequestSubstitution.Reason(childComplexity), true + + case "MedicationRequestSubstitution.resourceType": + if e.complexity.MedicationRequestSubstitution.ResourceType == nil { + break + } + + return e.complexity.MedicationRequestSubstitution.ResourceType(childComplexity), true + + case "MedicationRequestType.authoredOn": + if e.complexity.MedicationRequestType.AuthoredOn == nil { + break + } + + return e.complexity.MedicationRequestType.AuthoredOn(childComplexity), true + + case "MedicationRequestType.basedOn": + if e.complexity.MedicationRequestType.BasedOn == nil { + break + } + + args, err := ec.field_MedicationRequestType_basedOn_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationRequestType.BasedOn(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationRequestType.category": + if e.complexity.MedicationRequestType.Category == nil { + break + } + + return e.complexity.MedicationRequestType.Category(childComplexity), true + + case "MedicationRequestType.contained": + if e.complexity.MedicationRequestType.Contained == nil { + break + } + + return e.complexity.MedicationRequestType.Contained(childComplexity), true + + case "MedicationRequestType.courseOfTherapyType": + if e.complexity.MedicationRequestType.CourseOfTherapyType == nil { + break + } + + return e.complexity.MedicationRequestType.CourseOfTherapyType(childComplexity), true + + case "MedicationRequestType.device": + if e.complexity.MedicationRequestType.Device == nil { + break + } + + return e.complexity.MedicationRequestType.Device(childComplexity), true + + case "MedicationRequestType.dispenseRequest": + if e.complexity.MedicationRequestType.DispenseRequest == nil { + break + } + + return e.complexity.MedicationRequestType.DispenseRequest(childComplexity), true + + case "MedicationRequestType.doNotPerform": + if e.complexity.MedicationRequestType.DoNotPerform == nil { + break + } + + return e.complexity.MedicationRequestType.DoNotPerform(childComplexity), true + + case "MedicationRequestType.dosageInstruction": + if e.complexity.MedicationRequestType.DosageInstruction == nil { + break + } + + return e.complexity.MedicationRequestType.DosageInstruction(childComplexity), true + + case "MedicationRequestType.effectiveDosePeriod": + if e.complexity.MedicationRequestType.EffectiveDosePeriod == nil { + break + } + + return e.complexity.MedicationRequestType.EffectiveDosePeriod(childComplexity), true + + case "MedicationRequestType.extension": + if e.complexity.MedicationRequestType.Extension == nil { + break + } + + return e.complexity.MedicationRequestType.Extension(childComplexity), true + + case "MedicationRequestType.groupIdentifier": + if e.complexity.MedicationRequestType.GroupIdentifier == nil { + break + } + + return e.complexity.MedicationRequestType.GroupIdentifier(childComplexity), true + + case "MedicationRequestType.id": + if e.complexity.MedicationRequestType.ID == nil { + break + } + + return e.complexity.MedicationRequestType.ID(childComplexity), true + + case "MedicationRequestType.identifier": + if e.complexity.MedicationRequestType.Identifier == nil { + break + } + + return e.complexity.MedicationRequestType.Identifier(childComplexity), true + + case "MedicationRequestType.implicitRules": + if e.complexity.MedicationRequestType.ImplicitRules == nil { + break + } + + return e.complexity.MedicationRequestType.ImplicitRules(childComplexity), true + + case "MedicationRequestType.informationSource": + if e.complexity.MedicationRequestType.InformationSource == nil { + break + } + + args, err := ec.field_MedicationRequestType_informationSource_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationRequestType.InformationSource(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationRequestType.intent": + if e.complexity.MedicationRequestType.Intent == nil { + break + } + + return e.complexity.MedicationRequestType.Intent(childComplexity), true + + case "MedicationRequestType.language": + if e.complexity.MedicationRequestType.Language == nil { + break + } + + return e.complexity.MedicationRequestType.Language(childComplexity), true + + case "MedicationRequestType.medication": + if e.complexity.MedicationRequestType.Medication == nil { + break + } + + return e.complexity.MedicationRequestType.Medication(childComplexity), true + + case "MedicationRequestType.meta": + if e.complexity.MedicationRequestType.Meta == nil { + break + } + + return e.complexity.MedicationRequestType.Meta(childComplexity), true + + case "MedicationRequestType.modifierExtension": + if e.complexity.MedicationRequestType.ModifierExtension == nil { + break + } + + return e.complexity.MedicationRequestType.ModifierExtension(childComplexity), true + + case "MedicationRequestType.note": + if e.complexity.MedicationRequestType.Note == nil { + break + } + + args, err := ec.field_MedicationRequestType_note_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationRequestType.Note(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationRequestType.performer": + if e.complexity.MedicationRequestType.Performer == nil { + break + } + + args, err := ec.field_MedicationRequestType_performer_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationRequestType.Performer(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationRequestType.performerType": + if e.complexity.MedicationRequestType.PerformerType == nil { + break + } + + return e.complexity.MedicationRequestType.PerformerType(childComplexity), true + + case "MedicationRequestType.priorPrescription": + if e.complexity.MedicationRequestType.PriorPrescription == nil { + break + } + + args, err := ec.field_MedicationRequestType_priorPrescription_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationRequestType.PriorPrescription(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationRequestType.priority": + if e.complexity.MedicationRequestType.Priority == nil { + break + } + + return e.complexity.MedicationRequestType.Priority(childComplexity), true + + case "MedicationRequestType.reason": + if e.complexity.MedicationRequestType.Reason == nil { + break + } + + return e.complexity.MedicationRequestType.Reason(childComplexity), true + + case "MedicationRequestType.recorder": + if e.complexity.MedicationRequestType.Recorder == nil { + break + } + + args, err := ec.field_MedicationRequestType_recorder_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationRequestType.Recorder(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationRequestType.renderedDosageInstruction": + if e.complexity.MedicationRequestType.RenderedDosageInstruction == nil { + break + } + + return e.complexity.MedicationRequestType.RenderedDosageInstruction(childComplexity), true + + case "MedicationRequestType.reported": + if e.complexity.MedicationRequestType.Reported == nil { + break + } + + return e.complexity.MedicationRequestType.Reported(childComplexity), true + + case "MedicationRequestType.requester": + if e.complexity.MedicationRequestType.Requester == nil { + break + } + + args, err := ec.field_MedicationRequestType_requester_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationRequestType.Requester(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationRequestType.resourceType": + if e.complexity.MedicationRequestType.ResourceType == nil { + break + } + + return e.complexity.MedicationRequestType.ResourceType(childComplexity), true + + case "MedicationRequestType.status": + if e.complexity.MedicationRequestType.Status == nil { + break + } + + return e.complexity.MedicationRequestType.Status(childComplexity), true + + case "MedicationRequestType.statusChanged": + if e.complexity.MedicationRequestType.StatusChanged == nil { + break + } + + return e.complexity.MedicationRequestType.StatusChanged(childComplexity), true + + case "MedicationRequestType.statusReason": + if e.complexity.MedicationRequestType.StatusReason == nil { + break + } + + return e.complexity.MedicationRequestType.StatusReason(childComplexity), true + + case "MedicationRequestType.subject": + if e.complexity.MedicationRequestType.Subject == nil { + break + } + + args, err := ec.field_MedicationRequestType_subject_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationRequestType.Subject(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationRequestType.substitution": + if e.complexity.MedicationRequestType.Substitution == nil { + break + } + + return e.complexity.MedicationRequestType.Substitution(childComplexity), true + + case "MedicationRequestType.supportingInformation": + if e.complexity.MedicationRequestType.SupportingInformation == nil { + break + } + + args, err := ec.field_MedicationRequestType_supportingInformation_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationRequestType.SupportingInformation(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationRequestType.text": + if e.complexity.MedicationRequestType.Text == nil { + break + } + + return e.complexity.MedicationRequestType.Text(childComplexity), true + + case "MedicationStatementAdherence.code": + if e.complexity.MedicationStatementAdherence.Code == nil { + break + } + + return e.complexity.MedicationStatementAdherence.Code(childComplexity), true + + case "MedicationStatementAdherence.extension": + if e.complexity.MedicationStatementAdherence.Extension == nil { + break + } + + return e.complexity.MedicationStatementAdherence.Extension(childComplexity), true + + case "MedicationStatementAdherence.id": + if e.complexity.MedicationStatementAdherence.ID == nil { + break + } + + return e.complexity.MedicationStatementAdherence.ID(childComplexity), true + + case "MedicationStatementAdherence.modifierExtension": + if e.complexity.MedicationStatementAdherence.ModifierExtension == nil { + break + } + + return e.complexity.MedicationStatementAdherence.ModifierExtension(childComplexity), true + + case "MedicationStatementAdherence.reason": + if e.complexity.MedicationStatementAdherence.Reason == nil { + break + } + + return e.complexity.MedicationStatementAdherence.Reason(childComplexity), true + + case "MedicationStatementAdherence.resourceType": + if e.complexity.MedicationStatementAdherence.ResourceType == nil { + break + } + + return e.complexity.MedicationStatementAdherence.ResourceType(childComplexity), true + + case "MedicationStatementType.adherence": + if e.complexity.MedicationStatementType.Adherence == nil { + break + } + + return e.complexity.MedicationStatementType.Adherence(childComplexity), true + + case "MedicationStatementType.category": + if e.complexity.MedicationStatementType.Category == nil { + break + } + + return e.complexity.MedicationStatementType.Category(childComplexity), true + + case "MedicationStatementType.contained": + if e.complexity.MedicationStatementType.Contained == nil { + break + } + + return e.complexity.MedicationStatementType.Contained(childComplexity), true + + case "MedicationStatementType.dateAsserted": + if e.complexity.MedicationStatementType.DateAsserted == nil { + break + } + + return e.complexity.MedicationStatementType.DateAsserted(childComplexity), true + + case "MedicationStatementType.derivedFrom": + if e.complexity.MedicationStatementType.DerivedFrom == nil { + break + } + + args, err := ec.field_MedicationStatementType_derivedFrom_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationStatementType.DerivedFrom(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationStatementType.dosage": + if e.complexity.MedicationStatementType.Dosage == nil { + break + } + + return e.complexity.MedicationStatementType.Dosage(childComplexity), true + + case "MedicationStatementType.effectiveDateTime": + if e.complexity.MedicationStatementType.EffectiveDateTime == nil { + break + } + + return e.complexity.MedicationStatementType.EffectiveDateTime(childComplexity), true + + case "MedicationStatementType.effectivePeriod": + if e.complexity.MedicationStatementType.EffectivePeriod == nil { + break + } + + return e.complexity.MedicationStatementType.EffectivePeriod(childComplexity), true + + case "MedicationStatementType.effectiveTiming": + if e.complexity.MedicationStatementType.EffectiveTiming == nil { + break + } + + return e.complexity.MedicationStatementType.EffectiveTiming(childComplexity), true + + case "MedicationStatementType.extension": + if e.complexity.MedicationStatementType.Extension == nil { + break + } + + return e.complexity.MedicationStatementType.Extension(childComplexity), true + + case "MedicationStatementType.id": + if e.complexity.MedicationStatementType.ID == nil { + break + } + + return e.complexity.MedicationStatementType.ID(childComplexity), true + + case "MedicationStatementType.identifier": + if e.complexity.MedicationStatementType.Identifier == nil { + break + } + + return e.complexity.MedicationStatementType.Identifier(childComplexity), true + + case "MedicationStatementType.implicitRules": + if e.complexity.MedicationStatementType.ImplicitRules == nil { + break + } + + return e.complexity.MedicationStatementType.ImplicitRules(childComplexity), true + + case "MedicationStatementType.informationSource": + if e.complexity.MedicationStatementType.InformationSource == nil { + break + } + + args, err := ec.field_MedicationStatementType_informationSource_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationStatementType.InformationSource(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationStatementType.language": + if e.complexity.MedicationStatementType.Language == nil { + break + } + + return e.complexity.MedicationStatementType.Language(childComplexity), true + + case "MedicationStatementType.medication": + if e.complexity.MedicationStatementType.Medication == nil { + break + } + + return e.complexity.MedicationStatementType.Medication(childComplexity), true + + case "MedicationStatementType.meta": + if e.complexity.MedicationStatementType.Meta == nil { + break + } + + return e.complexity.MedicationStatementType.Meta(childComplexity), true + + case "MedicationStatementType.modifierExtension": + if e.complexity.MedicationStatementType.ModifierExtension == nil { + break + } + + return e.complexity.MedicationStatementType.ModifierExtension(childComplexity), true + + case "MedicationStatementType.note": + if e.complexity.MedicationStatementType.Note == nil { + break + } + + args, err := ec.field_MedicationStatementType_note_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationStatementType.Note(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationStatementType.partOf": + if e.complexity.MedicationStatementType.PartOf == nil { + break + } + + args, err := ec.field_MedicationStatementType_partOf_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationStatementType.PartOf(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationStatementType.reason": + if e.complexity.MedicationStatementType.Reason == nil { + break + } + + return e.complexity.MedicationStatementType.Reason(childComplexity), true + + case "MedicationStatementType.relatedClinicalInformation": + if e.complexity.MedicationStatementType.RelatedClinicalInformation == nil { + break + } + + args, err := ec.field_MedicationStatementType_relatedClinicalInformation_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationStatementType.RelatedClinicalInformation(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationStatementType.renderedDosageInstruction": + if e.complexity.MedicationStatementType.RenderedDosageInstruction == nil { + break + } + + return e.complexity.MedicationStatementType.RenderedDosageInstruction(childComplexity), true + + case "MedicationStatementType.resourceType": + if e.complexity.MedicationStatementType.ResourceType == nil { + break + } + + return e.complexity.MedicationStatementType.ResourceType(childComplexity), true + + case "MedicationStatementType.status": + if e.complexity.MedicationStatementType.Status == nil { + break + } + + return e.complexity.MedicationStatementType.Status(childComplexity), true + + case "MedicationStatementType.subject": + if e.complexity.MedicationStatementType.Subject == nil { + break + } + + args, err := ec.field_MedicationStatementType_subject_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationStatementType.Subject(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationStatementType.text": + if e.complexity.MedicationStatementType.Text == nil { + break + } + + return e.complexity.MedicationStatementType.Text(childComplexity), true + + case "MedicationType.batch": + if e.complexity.MedicationType.Batch == nil { + break + } + + return e.complexity.MedicationType.Batch(childComplexity), true + + case "MedicationType.code": + if e.complexity.MedicationType.Code == nil { + break + } + + return e.complexity.MedicationType.Code(childComplexity), true + + case "MedicationType.contained": + if e.complexity.MedicationType.Contained == nil { + break + } + + return e.complexity.MedicationType.Contained(childComplexity), true + + case "MedicationType.doseForm": + if e.complexity.MedicationType.DoseForm == nil { + break + } + + return e.complexity.MedicationType.DoseForm(childComplexity), true + + case "MedicationType.extension": + if e.complexity.MedicationType.Extension == nil { + break + } + + return e.complexity.MedicationType.Extension(childComplexity), true + + case "MedicationType.id": + if e.complexity.MedicationType.ID == nil { + break + } + + return e.complexity.MedicationType.ID(childComplexity), true + + case "MedicationType.identifier": + if e.complexity.MedicationType.Identifier == nil { + break + } + + return e.complexity.MedicationType.Identifier(childComplexity), true + + case "MedicationType.implicitRules": + if e.complexity.MedicationType.ImplicitRules == nil { + break + } + + return e.complexity.MedicationType.ImplicitRules(childComplexity), true + + case "MedicationType.ingredient": + if e.complexity.MedicationType.Ingredient == nil { + break + } + + return e.complexity.MedicationType.Ingredient(childComplexity), true + + case "MedicationType.language": + if e.complexity.MedicationType.Language == nil { + break + } + + return e.complexity.MedicationType.Language(childComplexity), true + + case "MedicationType.marketingAuthorizationHolder": + if e.complexity.MedicationType.MarketingAuthorizationHolder == nil { + break + } + + args, err := ec.field_MedicationType_marketingAuthorizationHolder_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.MedicationType.MarketingAuthorizationHolder(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "MedicationType.meta": + if e.complexity.MedicationType.Meta == nil { + break + } + + return e.complexity.MedicationType.Meta(childComplexity), true + + case "MedicationType.modifierExtension": + if e.complexity.MedicationType.ModifierExtension == nil { + break + } + + return e.complexity.MedicationType.ModifierExtension(childComplexity), true + + case "MedicationType.resourceType": + if e.complexity.MedicationType.ResourceType == nil { + break + } + + return e.complexity.MedicationType.ResourceType(childComplexity), true + + case "MedicationType.status": + if e.complexity.MedicationType.Status == nil { + break + } + + return e.complexity.MedicationType.Status(childComplexity), true + + case "MedicationType.text": + if e.complexity.MedicationType.Text == nil { + break + } + + return e.complexity.MedicationType.Text(childComplexity), true + + case "MedicationType.totalVolume": + if e.complexity.MedicationType.TotalVolume == nil { + break + } + + return e.complexity.MedicationType.TotalVolume(childComplexity), true + + case "Meta.extension": + if e.complexity.Meta.Extension == nil { + break + } + + return e.complexity.Meta.Extension(childComplexity), true + + case "Meta.id": + if e.complexity.Meta.ID == nil { + break + } + + return e.complexity.Meta.ID(childComplexity), true + + case "Meta.lastUpdated": + if e.complexity.Meta.LastUpdated == nil { + break + } + + return e.complexity.Meta.LastUpdated(childComplexity), true + + case "Meta.profile": + if e.complexity.Meta.Profile == nil { + break + } + + return e.complexity.Meta.Profile(childComplexity), true + + case "Meta.resourceType": + if e.complexity.Meta.ResourceType == nil { + break + } + + return e.complexity.Meta.ResourceType(childComplexity), true + + case "Meta.security": + if e.complexity.Meta.Security == nil { + break + } + + return e.complexity.Meta.Security(childComplexity), true + + case "Meta.source": + if e.complexity.Meta.Source == nil { + break + } + + return e.complexity.Meta.Source(childComplexity), true + + case "Meta.tag": + if e.complexity.Meta.Tag == nil { + break + } + + return e.complexity.Meta.Tag(childComplexity), true + + case "Meta.versionId": + if e.complexity.Meta.VersionID == nil { + break + } + + return e.complexity.Meta.VersionID(childComplexity), true + + case "Money.currency": + if e.complexity.Money.Currency == nil { + break + } + + return e.complexity.Money.Currency(childComplexity), true + + case "Money.extension": + if e.complexity.Money.Extension == nil { + break + } + + return e.complexity.Money.Extension(childComplexity), true + + case "Money.id": + if e.complexity.Money.ID == nil { + break + } + + return e.complexity.Money.ID(childComplexity), true + + case "Money.resourceType": + if e.complexity.Money.ResourceType == nil { + break + } + + return e.complexity.Money.ResourceType(childComplexity), true + + case "Money.value": + if e.complexity.Money.Value == nil { + break + } + + return e.complexity.Money.Value(childComplexity), true + + case "Narrative.div": + if e.complexity.Narrative.Div == nil { + break + } + + return e.complexity.Narrative.Div(childComplexity), true + + case "Narrative.extension": + if e.complexity.Narrative.Extension == nil { + break + } + + return e.complexity.Narrative.Extension(childComplexity), true + + case "Narrative.id": + if e.complexity.Narrative.ID == nil { + break + } + + return e.complexity.Narrative.ID(childComplexity), true + + case "Narrative.resourceType": + if e.complexity.Narrative.ResourceType == nil { + break + } + + return e.complexity.Narrative.ResourceType(childComplexity), true + + case "Narrative.status": + if e.complexity.Narrative.Status == nil { + break + } + + return e.complexity.Narrative.Status(childComplexity), true + + case "ObservationComponent.code": + if e.complexity.ObservationComponent.Code == nil { + break + } + + return e.complexity.ObservationComponent.Code(childComplexity), true + + case "ObservationComponent.dataAbsentReason": + if e.complexity.ObservationComponent.DataAbsentReason == nil { + break + } + + return e.complexity.ObservationComponent.DataAbsentReason(childComplexity), true + + case "ObservationComponent.extension": + if e.complexity.ObservationComponent.Extension == nil { + break + } + + return e.complexity.ObservationComponent.Extension(childComplexity), true + + case "ObservationComponent.id": + if e.complexity.ObservationComponent.ID == nil { + break + } + + return e.complexity.ObservationComponent.ID(childComplexity), true + + case "ObservationComponent.interpretation": + if e.complexity.ObservationComponent.Interpretation == nil { + break + } + + return e.complexity.ObservationComponent.Interpretation(childComplexity), true + + case "ObservationComponent.modifierExtension": + if e.complexity.ObservationComponent.ModifierExtension == nil { + break + } + + return e.complexity.ObservationComponent.ModifierExtension(childComplexity), true + + case "ObservationComponent.referenceRange": + if e.complexity.ObservationComponent.ReferenceRange == nil { + break + } + + return e.complexity.ObservationComponent.ReferenceRange(childComplexity), true + + case "ObservationComponent.resourceType": + if e.complexity.ObservationComponent.ResourceType == nil { + break + } + + return e.complexity.ObservationComponent.ResourceType(childComplexity), true + + case "ObservationComponent.valueAttachment": + if e.complexity.ObservationComponent.ValueAttachment == nil { + break + } + + return e.complexity.ObservationComponent.ValueAttachment(childComplexity), true + + case "ObservationComponent.valueBoolean": + if e.complexity.ObservationComponent.ValueBoolean == nil { + break + } + + return e.complexity.ObservationComponent.ValueBoolean(childComplexity), true + + case "ObservationComponent.valueCodeableConcept": + if e.complexity.ObservationComponent.ValueCodeableConcept == nil { + break + } + + return e.complexity.ObservationComponent.ValueCodeableConcept(childComplexity), true + + case "ObservationComponent.valueDateTime": + if e.complexity.ObservationComponent.ValueDateTime == nil { + break + } + + return e.complexity.ObservationComponent.ValueDateTime(childComplexity), true + + case "ObservationComponent.valueInteger": + if e.complexity.ObservationComponent.ValueInteger == nil { + break + } + + return e.complexity.ObservationComponent.ValueInteger(childComplexity), true + + case "ObservationComponent.valuePeriod": + if e.complexity.ObservationComponent.ValuePeriod == nil { + break + } + + return e.complexity.ObservationComponent.ValuePeriod(childComplexity), true + + case "ObservationComponent.valueQuantity": + if e.complexity.ObservationComponent.ValueQuantity == nil { + break + } + + return e.complexity.ObservationComponent.ValueQuantity(childComplexity), true + + case "ObservationComponent.valueRange": + if e.complexity.ObservationComponent.ValueRange == nil { + break + } + + return e.complexity.ObservationComponent.ValueRange(childComplexity), true + + case "ObservationComponent.valueRatio": + if e.complexity.ObservationComponent.ValueRatio == nil { + break + } + + return e.complexity.ObservationComponent.ValueRatio(childComplexity), true + + case "ObservationComponent.valueSampledData": + if e.complexity.ObservationComponent.ValueSampledData == nil { + break + } + + return e.complexity.ObservationComponent.ValueSampledData(childComplexity), true + + case "ObservationComponent.valueString": + if e.complexity.ObservationComponent.ValueString == nil { + break + } + + return e.complexity.ObservationComponent.ValueString(childComplexity), true + + case "ObservationComponent.valueTime": + if e.complexity.ObservationComponent.ValueTime == nil { + break + } + + return e.complexity.ObservationComponent.ValueTime(childComplexity), true + + case "ObservationReferenceRange.age": + if e.complexity.ObservationReferenceRange.Age == nil { + break + } + + return e.complexity.ObservationReferenceRange.Age(childComplexity), true + + case "ObservationReferenceRange.appliesTo": + if e.complexity.ObservationReferenceRange.AppliesTo == nil { + break + } + + return e.complexity.ObservationReferenceRange.AppliesTo(childComplexity), true + + case "ObservationReferenceRange.extension": + if e.complexity.ObservationReferenceRange.Extension == nil { + break + } + + return e.complexity.ObservationReferenceRange.Extension(childComplexity), true + + case "ObservationReferenceRange.high": + if e.complexity.ObservationReferenceRange.High == nil { + break + } + + return e.complexity.ObservationReferenceRange.High(childComplexity), true + + case "ObservationReferenceRange.id": + if e.complexity.ObservationReferenceRange.ID == nil { + break + } + + return e.complexity.ObservationReferenceRange.ID(childComplexity), true + + case "ObservationReferenceRange.low": + if e.complexity.ObservationReferenceRange.Low == nil { + break + } + + return e.complexity.ObservationReferenceRange.Low(childComplexity), true + + case "ObservationReferenceRange.modifierExtension": + if e.complexity.ObservationReferenceRange.ModifierExtension == nil { + break + } + + return e.complexity.ObservationReferenceRange.ModifierExtension(childComplexity), true + + case "ObservationReferenceRange.normalValue": + if e.complexity.ObservationReferenceRange.NormalValue == nil { + break + } + + return e.complexity.ObservationReferenceRange.NormalValue(childComplexity), true + + case "ObservationReferenceRange.resourceType": + if e.complexity.ObservationReferenceRange.ResourceType == nil { + break + } + + return e.complexity.ObservationReferenceRange.ResourceType(childComplexity), true + + case "ObservationReferenceRange.text": + if e.complexity.ObservationReferenceRange.Text == nil { + break + } + + return e.complexity.ObservationReferenceRange.Text(childComplexity), true + + case "ObservationReferenceRange.type": + if e.complexity.ObservationReferenceRange.Type == nil { + break + } + + return e.complexity.ObservationReferenceRange.Type(childComplexity), true + + case "ObservationTriggeredBy.extension": + if e.complexity.ObservationTriggeredBy.Extension == nil { + break + } + + return e.complexity.ObservationTriggeredBy.Extension(childComplexity), true + + case "ObservationTriggeredBy.id": + if e.complexity.ObservationTriggeredBy.ID == nil { + break + } + + return e.complexity.ObservationTriggeredBy.ID(childComplexity), true + + case "ObservationTriggeredBy.modifierExtension": + if e.complexity.ObservationTriggeredBy.ModifierExtension == nil { + break + } + + return e.complexity.ObservationTriggeredBy.ModifierExtension(childComplexity), true + + case "ObservationTriggeredBy.observation": + if e.complexity.ObservationTriggeredBy.Observation == nil { + break + } + + args, err := ec.field_ObservationTriggeredBy_observation_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ObservationTriggeredBy.Observation(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ObservationTriggeredBy.reason": + if e.complexity.ObservationTriggeredBy.Reason == nil { + break + } + + return e.complexity.ObservationTriggeredBy.Reason(childComplexity), true + + case "ObservationTriggeredBy.resourceType": + if e.complexity.ObservationTriggeredBy.ResourceType == nil { + break + } + + return e.complexity.ObservationTriggeredBy.ResourceType(childComplexity), true + + case "ObservationTriggeredBy.type": + if e.complexity.ObservationTriggeredBy.Type == nil { + break + } + + return e.complexity.ObservationTriggeredBy.Type(childComplexity), true + + case "ObservationType.basedOn": + if e.complexity.ObservationType.BasedOn == nil { + break + } + + args, err := ec.field_ObservationType_basedOn_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ObservationType.BasedOn(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ObservationType.bodySite": + if e.complexity.ObservationType.BodySite == nil { + break + } + + return e.complexity.ObservationType.BodySite(childComplexity), true + + case "ObservationType.bodyStructure": + if e.complexity.ObservationType.BodyStructure == nil { + break + } + + args, err := ec.field_ObservationType_bodyStructure_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ObservationType.BodyStructure(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ObservationType.category": + if e.complexity.ObservationType.Category == nil { + break + } + + return e.complexity.ObservationType.Category(childComplexity), true + + case "ObservationType.code": + if e.complexity.ObservationType.Code == nil { + break + } + + return e.complexity.ObservationType.Code(childComplexity), true + + case "ObservationType.component": + if e.complexity.ObservationType.Component == nil { + break + } + + return e.complexity.ObservationType.Component(childComplexity), true + + case "ObservationType.contained": + if e.complexity.ObservationType.Contained == nil { + break + } + + return e.complexity.ObservationType.Contained(childComplexity), true + + case "ObservationType.dataAbsentReason": + if e.complexity.ObservationType.DataAbsentReason == nil { + break + } + + return e.complexity.ObservationType.DataAbsentReason(childComplexity), true + + case "ObservationType.derivedFrom": + if e.complexity.ObservationType.DerivedFrom == nil { + break + } + + args, err := ec.field_ObservationType_derivedFrom_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ObservationType.DerivedFrom(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ObservationType.effectiveDateTime": + if e.complexity.ObservationType.EffectiveDateTime == nil { + break + } + + return e.complexity.ObservationType.EffectiveDateTime(childComplexity), true + + case "ObservationType.effectiveInstant": + if e.complexity.ObservationType.EffectiveInstant == nil { + break + } + + return e.complexity.ObservationType.EffectiveInstant(childComplexity), true + + case "ObservationType.effectivePeriod": + if e.complexity.ObservationType.EffectivePeriod == nil { + break + } + + return e.complexity.ObservationType.EffectivePeriod(childComplexity), true + + case "ObservationType.effectiveTiming": + if e.complexity.ObservationType.EffectiveTiming == nil { + break + } + + return e.complexity.ObservationType.EffectiveTiming(childComplexity), true + + case "ObservationType.extension": + if e.complexity.ObservationType.Extension == nil { + break + } + + return e.complexity.ObservationType.Extension(childComplexity), true + + case "ObservationType.focus": + if e.complexity.ObservationType.Focus == nil { + break + } + + args, err := ec.field_ObservationType_focus_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ObservationType.Focus(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ObservationType.hasMember": + if e.complexity.ObservationType.HasMember == nil { + break + } + + args, err := ec.field_ObservationType_hasMember_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ObservationType.HasMember(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ObservationType.id": + if e.complexity.ObservationType.ID == nil { + break + } + + return e.complexity.ObservationType.ID(childComplexity), true + + case "ObservationType.identifier": + if e.complexity.ObservationType.Identifier == nil { + break + } + + return e.complexity.ObservationType.Identifier(childComplexity), true + + case "ObservationType.implicitRules": + if e.complexity.ObservationType.ImplicitRules == nil { + break + } + + return e.complexity.ObservationType.ImplicitRules(childComplexity), true + + case "ObservationType.instantiatesCanonical": + if e.complexity.ObservationType.InstantiatesCanonical == nil { + break + } + + return e.complexity.ObservationType.InstantiatesCanonical(childComplexity), true + + case "ObservationType.interpretation": + if e.complexity.ObservationType.Interpretation == nil { + break + } + + return e.complexity.ObservationType.Interpretation(childComplexity), true + + case "ObservationType.issued": + if e.complexity.ObservationType.Issued == nil { + break + } + + return e.complexity.ObservationType.Issued(childComplexity), true + + case "ObservationType.language": + if e.complexity.ObservationType.Language == nil { + break + } + + return e.complexity.ObservationType.Language(childComplexity), true + + case "ObservationType.meta": + if e.complexity.ObservationType.Meta == nil { + break + } + + return e.complexity.ObservationType.Meta(childComplexity), true + + case "ObservationType.method": + if e.complexity.ObservationType.Method == nil { + break + } + + return e.complexity.ObservationType.Method(childComplexity), true + + case "ObservationType.modifierExtension": + if e.complexity.ObservationType.ModifierExtension == nil { + break + } + + return e.complexity.ObservationType.ModifierExtension(childComplexity), true + + case "ObservationType.note": + if e.complexity.ObservationType.Note == nil { + break + } + + args, err := ec.field_ObservationType_note_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ObservationType.Note(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ObservationType.partOf": + if e.complexity.ObservationType.PartOf == nil { + break + } + + args, err := ec.field_ObservationType_partOf_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ObservationType.PartOf(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ObservationType.performer": + if e.complexity.ObservationType.Performer == nil { + break + } + + args, err := ec.field_ObservationType_performer_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ObservationType.Performer(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ObservationType.referenceRange": + if e.complexity.ObservationType.ReferenceRange == nil { + break + } + + return e.complexity.ObservationType.ReferenceRange(childComplexity), true + + case "ObservationType.resourceType": + if e.complexity.ObservationType.ResourceType == nil { + break + } + + return e.complexity.ObservationType.ResourceType(childComplexity), true + + case "ObservationType.specimen": + if e.complexity.ObservationType.Specimen == nil { + break + } + + args, err := ec.field_ObservationType_specimen_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ObservationType.Specimen(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ObservationType.status": + if e.complexity.ObservationType.Status == nil { + break + } + + return e.complexity.ObservationType.Status(childComplexity), true + + case "ObservationType.subject": + if e.complexity.ObservationType.Subject == nil { + break + } + + args, err := ec.field_ObservationType_subject_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ObservationType.Subject(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ObservationType.text": + if e.complexity.ObservationType.Text == nil { + break + } + + return e.complexity.ObservationType.Text(childComplexity), true + + case "ObservationType.triggeredBy": + if e.complexity.ObservationType.TriggeredBy == nil { + break + } + + return e.complexity.ObservationType.TriggeredBy(childComplexity), true + + case "ObservationType.valueAttachment": + if e.complexity.ObservationType.ValueAttachment == nil { + break + } + + return e.complexity.ObservationType.ValueAttachment(childComplexity), true + + case "ObservationType.valueBoolean": + if e.complexity.ObservationType.ValueBoolean == nil { + break + } + + return e.complexity.ObservationType.ValueBoolean(childComplexity), true + + case "ObservationType.valueCodeableConcept": + if e.complexity.ObservationType.ValueCodeableConcept == nil { + break + } + + return e.complexity.ObservationType.ValueCodeableConcept(childComplexity), true + + case "ObservationType.valueDateTime": + if e.complexity.ObservationType.ValueDateTime == nil { + break + } + + return e.complexity.ObservationType.ValueDateTime(childComplexity), true + + case "ObservationType.valueInteger": + if e.complexity.ObservationType.ValueInteger == nil { + break + } + + return e.complexity.ObservationType.ValueInteger(childComplexity), true + + case "ObservationType.valuePeriod": + if e.complexity.ObservationType.ValuePeriod == nil { + break + } + + return e.complexity.ObservationType.ValuePeriod(childComplexity), true + + case "ObservationType.valueQuantity": + if e.complexity.ObservationType.ValueQuantity == nil { + break + } + + return e.complexity.ObservationType.ValueQuantity(childComplexity), true + + case "ObservationType.valueRange": + if e.complexity.ObservationType.ValueRange == nil { + break + } + + return e.complexity.ObservationType.ValueRange(childComplexity), true + + case "ObservationType.valueRatio": + if e.complexity.ObservationType.ValueRatio == nil { + break + } + + return e.complexity.ObservationType.ValueRatio(childComplexity), true + + case "ObservationType.valueSampledData": + if e.complexity.ObservationType.ValueSampledData == nil { + break + } + + return e.complexity.ObservationType.ValueSampledData(childComplexity), true + + case "ObservationType.valueString": + if e.complexity.ObservationType.ValueString == nil { + break + } + + return e.complexity.ObservationType.ValueString(childComplexity), true + + case "ObservationType.valueTime": + if e.complexity.ObservationType.ValueTime == nil { + break + } + + return e.complexity.ObservationType.ValueTime(childComplexity), true + + case "OrganizationQualification.code": + if e.complexity.OrganizationQualification.Code == nil { + break + } + + return e.complexity.OrganizationQualification.Code(childComplexity), true + + case "OrganizationQualification.extension": + if e.complexity.OrganizationQualification.Extension == nil { + break + } + + return e.complexity.OrganizationQualification.Extension(childComplexity), true + + case "OrganizationQualification.id": + if e.complexity.OrganizationQualification.ID == nil { + break + } + + return e.complexity.OrganizationQualification.ID(childComplexity), true + + case "OrganizationQualification.identifier": + if e.complexity.OrganizationQualification.Identifier == nil { + break + } + + return e.complexity.OrganizationQualification.Identifier(childComplexity), true + + case "OrganizationQualification.issuer": + if e.complexity.OrganizationQualification.Issuer == nil { + break + } + + args, err := ec.field_OrganizationQualification_issuer_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.OrganizationQualification.Issuer(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "OrganizationQualification.modifierExtension": + if e.complexity.OrganizationQualification.ModifierExtension == nil { + break + } + + return e.complexity.OrganizationQualification.ModifierExtension(childComplexity), true + + case "OrganizationQualification.period": + if e.complexity.OrganizationQualification.Period == nil { + break + } + + return e.complexity.OrganizationQualification.Period(childComplexity), true + + case "OrganizationQualification.resourceType": + if e.complexity.OrganizationQualification.ResourceType == nil { + break + } + + return e.complexity.OrganizationQualification.ResourceType(childComplexity), true + + case "OrganizationType.active": + if e.complexity.OrganizationType.Active == nil { + break + } + + return e.complexity.OrganizationType.Active(childComplexity), true + + case "OrganizationType.alias": + if e.complexity.OrganizationType.Alias == nil { + break + } + + return e.complexity.OrganizationType.Alias(childComplexity), true + + case "OrganizationType.contact": + if e.complexity.OrganizationType.Contact == nil { + break + } + + return e.complexity.OrganizationType.Contact(childComplexity), true + + case "OrganizationType.contained": + if e.complexity.OrganizationType.Contained == nil { + break + } + + return e.complexity.OrganizationType.Contained(childComplexity), true + + case "OrganizationType.description": + if e.complexity.OrganizationType.Description == nil { + break + } + + return e.complexity.OrganizationType.Description(childComplexity), true + + case "OrganizationType.extension": + if e.complexity.OrganizationType.Extension == nil { + break + } + + return e.complexity.OrganizationType.Extension(childComplexity), true + + case "OrganizationType.id": + if e.complexity.OrganizationType.ID == nil { + break + } + + return e.complexity.OrganizationType.ID(childComplexity), true + + case "OrganizationType.identifier": + if e.complexity.OrganizationType.Identifier == nil { + break + } + + return e.complexity.OrganizationType.Identifier(childComplexity), true + + case "OrganizationType.implicitRules": + if e.complexity.OrganizationType.ImplicitRules == nil { + break + } + + return e.complexity.OrganizationType.ImplicitRules(childComplexity), true + + case "OrganizationType.language": + if e.complexity.OrganizationType.Language == nil { + break + } + + return e.complexity.OrganizationType.Language(childComplexity), true + + case "OrganizationType.meta": + if e.complexity.OrganizationType.Meta == nil { + break + } + + return e.complexity.OrganizationType.Meta(childComplexity), true + + case "OrganizationType.modifierExtension": + if e.complexity.OrganizationType.ModifierExtension == nil { + break + } + + return e.complexity.OrganizationType.ModifierExtension(childComplexity), true + + case "OrganizationType.name": + if e.complexity.OrganizationType.Name == nil { + break + } + + return e.complexity.OrganizationType.Name(childComplexity), true + + case "OrganizationType.partOf": + if e.complexity.OrganizationType.PartOf == nil { + break + } + + args, err := ec.field_OrganizationType_partOf_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.OrganizationType.PartOf(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "OrganizationType.qualification": + if e.complexity.OrganizationType.Qualification == nil { + break + } + + return e.complexity.OrganizationType.Qualification(childComplexity), true + + case "OrganizationType.resourceType": + if e.complexity.OrganizationType.ResourceType == nil { + break + } + + return e.complexity.OrganizationType.ResourceType(childComplexity), true + + case "OrganizationType.text": + if e.complexity.OrganizationType.Text == nil { + break + } + + return e.complexity.OrganizationType.Text(childComplexity), true + + case "OrganizationType.type": + if e.complexity.OrganizationType.Type == nil { + break + } + + return e.complexity.OrganizationType.Type(childComplexity), true + + case "ParameterDefinition.documentation": + if e.complexity.ParameterDefinition.Documentation == nil { + break + } + + return e.complexity.ParameterDefinition.Documentation(childComplexity), true + + case "ParameterDefinition.extension": + if e.complexity.ParameterDefinition.Extension == nil { + break + } + + return e.complexity.ParameterDefinition.Extension(childComplexity), true + + case "ParameterDefinition.id": + if e.complexity.ParameterDefinition.ID == nil { + break + } + + return e.complexity.ParameterDefinition.ID(childComplexity), true + + case "ParameterDefinition.max": + if e.complexity.ParameterDefinition.Max == nil { + break + } + + return e.complexity.ParameterDefinition.Max(childComplexity), true + + case "ParameterDefinition.min": + if e.complexity.ParameterDefinition.Min == nil { + break + } + + return e.complexity.ParameterDefinition.Min(childComplexity), true + + case "ParameterDefinition.name": + if e.complexity.ParameterDefinition.Name == nil { + break + } + + return e.complexity.ParameterDefinition.Name(childComplexity), true + + case "ParameterDefinition.profile": + if e.complexity.ParameterDefinition.Profile == nil { + break + } + + return e.complexity.ParameterDefinition.Profile(childComplexity), true + + case "ParameterDefinition.resourceType": + if e.complexity.ParameterDefinition.ResourceType == nil { + break + } + + return e.complexity.ParameterDefinition.ResourceType(childComplexity), true + + case "ParameterDefinition.type": + if e.complexity.ParameterDefinition.Type == nil { + break + } + + return e.complexity.ParameterDefinition.Type(childComplexity), true + + case "ParameterDefinition.use": + if e.complexity.ParameterDefinition.Use == nil { + break + } + + return e.complexity.ParameterDefinition.Use(childComplexity), true + + case "PatientCommunication.extension": + if e.complexity.PatientCommunication.Extension == nil { + break + } + + return e.complexity.PatientCommunication.Extension(childComplexity), true + + case "PatientCommunication.id": + if e.complexity.PatientCommunication.ID == nil { + break + } + + return e.complexity.PatientCommunication.ID(childComplexity), true + + case "PatientCommunication.language": + if e.complexity.PatientCommunication.Language == nil { + break + } + + return e.complexity.PatientCommunication.Language(childComplexity), true + + case "PatientCommunication.modifierExtension": + if e.complexity.PatientCommunication.ModifierExtension == nil { + break + } + + return e.complexity.PatientCommunication.ModifierExtension(childComplexity), true + + case "PatientCommunication.preferred": + if e.complexity.PatientCommunication.Preferred == nil { + break + } + + return e.complexity.PatientCommunication.Preferred(childComplexity), true + + case "PatientCommunication.resourceType": + if e.complexity.PatientCommunication.ResourceType == nil { + break + } + + return e.complexity.PatientCommunication.ResourceType(childComplexity), true + + case "PatientContact.address": + if e.complexity.PatientContact.Address == nil { + break + } + + return e.complexity.PatientContact.Address(childComplexity), true + + case "PatientContact.extension": + if e.complexity.PatientContact.Extension == nil { + break + } + + return e.complexity.PatientContact.Extension(childComplexity), true + + case "PatientContact.gender": + if e.complexity.PatientContact.Gender == nil { + break + } + + return e.complexity.PatientContact.Gender(childComplexity), true + + case "PatientContact.id": + if e.complexity.PatientContact.ID == nil { + break + } + + return e.complexity.PatientContact.ID(childComplexity), true + + case "PatientContact.modifierExtension": + if e.complexity.PatientContact.ModifierExtension == nil { + break + } + + return e.complexity.PatientContact.ModifierExtension(childComplexity), true + + case "PatientContact.name": + if e.complexity.PatientContact.Name == nil { + break + } + + return e.complexity.PatientContact.Name(childComplexity), true + + case "PatientContact.organization": + if e.complexity.PatientContact.Organization == nil { + break + } + + args, err := ec.field_PatientContact_organization_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.PatientContact.Organization(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "PatientContact.period": + if e.complexity.PatientContact.Period == nil { + break + } + + return e.complexity.PatientContact.Period(childComplexity), true + + case "PatientContact.relationship": + if e.complexity.PatientContact.Relationship == nil { + break + } + + return e.complexity.PatientContact.Relationship(childComplexity), true + + case "PatientContact.resourceType": + if e.complexity.PatientContact.ResourceType == nil { + break + } + + return e.complexity.PatientContact.ResourceType(childComplexity), true + + case "PatientContact.telecom": + if e.complexity.PatientContact.Telecom == nil { + break + } + + return e.complexity.PatientContact.Telecom(childComplexity), true + + case "PatientLink.extension": + if e.complexity.PatientLink.Extension == nil { + break + } + + return e.complexity.PatientLink.Extension(childComplexity), true + + case "PatientLink.id": + if e.complexity.PatientLink.ID == nil { + break + } + + return e.complexity.PatientLink.ID(childComplexity), true + + case "PatientLink.modifierExtension": + if e.complexity.PatientLink.ModifierExtension == nil { + break + } + + return e.complexity.PatientLink.ModifierExtension(childComplexity), true + + case "PatientLink.other": + if e.complexity.PatientLink.Other == nil { + break + } + + args, err := ec.field_PatientLink_other_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.PatientLink.Other(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "PatientLink.resourceType": + if e.complexity.PatientLink.ResourceType == nil { + break + } + + return e.complexity.PatientLink.ResourceType(childComplexity), true + + case "PatientLink.type": + if e.complexity.PatientLink.Type == nil { + break + } + + return e.complexity.PatientLink.Type(childComplexity), true + + case "PatientType.active": + if e.complexity.PatientType.Active == nil { + break + } + + return e.complexity.PatientType.Active(childComplexity), true + + case "PatientType.address": + if e.complexity.PatientType.Address == nil { + break + } + + return e.complexity.PatientType.Address(childComplexity), true + + case "PatientType.birthDate": + if e.complexity.PatientType.BirthDate == nil { + break + } + + return e.complexity.PatientType.BirthDate(childComplexity), true + + case "PatientType.communication": + if e.complexity.PatientType.Communication == nil { + break + } + + return e.complexity.PatientType.Communication(childComplexity), true + + case "PatientType.contact": + if e.complexity.PatientType.Contact == nil { + break + } + + return e.complexity.PatientType.Contact(childComplexity), true + + case "PatientType.contained": + if e.complexity.PatientType.Contained == nil { + break + } + + return e.complexity.PatientType.Contained(childComplexity), true + + case "PatientType.deceasedBoolean": + if e.complexity.PatientType.DeceasedBoolean == nil { + break + } + + return e.complexity.PatientType.DeceasedBoolean(childComplexity), true + + case "PatientType.deceasedDateTime": + if e.complexity.PatientType.DeceasedDateTime == nil { + break + } + + return e.complexity.PatientType.DeceasedDateTime(childComplexity), true + + case "PatientType.extension": + if e.complexity.PatientType.Extension == nil { + break + } + + return e.complexity.PatientType.Extension(childComplexity), true + + case "PatientType.gender": + if e.complexity.PatientType.Gender == nil { + break + } + + return e.complexity.PatientType.Gender(childComplexity), true + + case "PatientType.generalPractitioner": + if e.complexity.PatientType.GeneralPractitioner == nil { + break + } + + args, err := ec.field_PatientType_generalPractitioner_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.PatientType.GeneralPractitioner(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "PatientType.id": + if e.complexity.PatientType.ID == nil { + break + } + + return e.complexity.PatientType.ID(childComplexity), true + + case "PatientType.identifier": + if e.complexity.PatientType.Identifier == nil { + break + } + + return e.complexity.PatientType.Identifier(childComplexity), true + + case "PatientType.implicitRules": + if e.complexity.PatientType.ImplicitRules == nil { + break + } + + return e.complexity.PatientType.ImplicitRules(childComplexity), true + + case "PatientType.language": + if e.complexity.PatientType.Language == nil { + break + } + + return e.complexity.PatientType.Language(childComplexity), true + + case "PatientType.link": + if e.complexity.PatientType.Link == nil { + break + } + + args, err := ec.field_PatientType_link_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.PatientType.Link(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "PatientType.managingOrganization": + if e.complexity.PatientType.ManagingOrganization == nil { + break + } + + args, err := ec.field_PatientType_managingOrganization_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.PatientType.ManagingOrganization(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "PatientType.maritalStatus": + if e.complexity.PatientType.MaritalStatus == nil { + break + } + + return e.complexity.PatientType.MaritalStatus(childComplexity), true + + case "PatientType.meta": + if e.complexity.PatientType.Meta == nil { + break + } + + return e.complexity.PatientType.Meta(childComplexity), true + + case "PatientType.modifierExtension": + if e.complexity.PatientType.ModifierExtension == nil { + break + } + + return e.complexity.PatientType.ModifierExtension(childComplexity), true + + case "PatientType.multipleBirthBoolean": + if e.complexity.PatientType.MultipleBirthBoolean == nil { + break + } + + return e.complexity.PatientType.MultipleBirthBoolean(childComplexity), true + + case "PatientType.multipleBirthInteger": + if e.complexity.PatientType.MultipleBirthInteger == nil { + break + } + + return e.complexity.PatientType.MultipleBirthInteger(childComplexity), true + + case "PatientType.name": + if e.complexity.PatientType.Name == nil { + break + } + + return e.complexity.PatientType.Name(childComplexity), true + + case "PatientType.photo": + if e.complexity.PatientType.Photo == nil { + break + } + + return e.complexity.PatientType.Photo(childComplexity), true + + case "PatientType.resourceType": + if e.complexity.PatientType.ResourceType == nil { + break + } + + return e.complexity.PatientType.ResourceType(childComplexity), true + + case "PatientType.telecom": + if e.complexity.PatientType.Telecom == nil { + break + } + + return e.complexity.PatientType.Telecom(childComplexity), true + + case "PatientType.text": + if e.complexity.PatientType.Text == nil { + break + } + + return e.complexity.PatientType.Text(childComplexity), true + + case "Period.end": + if e.complexity.Period.End == nil { + break + } + + return e.complexity.Period.End(childComplexity), true + + case "Period.extension": + if e.complexity.Period.Extension == nil { + break + } + + return e.complexity.Period.Extension(childComplexity), true + + case "Period.id": + if e.complexity.Period.ID == nil { + break + } + + return e.complexity.Period.ID(childComplexity), true + + case "Period.resourceType": + if e.complexity.Period.ResourceType == nil { + break + } + + return e.complexity.Period.ResourceType(childComplexity), true + + case "Period.start": + if e.complexity.Period.Start == nil { + break + } + + return e.complexity.Period.Start(childComplexity), true + + case "PractitionerCommunication.extension": + if e.complexity.PractitionerCommunication.Extension == nil { + break + } + + return e.complexity.PractitionerCommunication.Extension(childComplexity), true + + case "PractitionerCommunication.id": + if e.complexity.PractitionerCommunication.ID == nil { + break + } + + return e.complexity.PractitionerCommunication.ID(childComplexity), true + + case "PractitionerCommunication.language": + if e.complexity.PractitionerCommunication.Language == nil { + break + } + + return e.complexity.PractitionerCommunication.Language(childComplexity), true + + case "PractitionerCommunication.modifierExtension": + if e.complexity.PractitionerCommunication.ModifierExtension == nil { + break + } + + return e.complexity.PractitionerCommunication.ModifierExtension(childComplexity), true + + case "PractitionerCommunication.preferred": + if e.complexity.PractitionerCommunication.Preferred == nil { + break + } + + return e.complexity.PractitionerCommunication.Preferred(childComplexity), true + + case "PractitionerCommunication.resourceType": + if e.complexity.PractitionerCommunication.ResourceType == nil { + break + } + + return e.complexity.PractitionerCommunication.ResourceType(childComplexity), true + + case "PractitionerQualification.code": + if e.complexity.PractitionerQualification.Code == nil { + break + } + + return e.complexity.PractitionerQualification.Code(childComplexity), true + + case "PractitionerQualification.extension": + if e.complexity.PractitionerQualification.Extension == nil { + break + } + + return e.complexity.PractitionerQualification.Extension(childComplexity), true + + case "PractitionerQualification.id": + if e.complexity.PractitionerQualification.ID == nil { + break + } + + return e.complexity.PractitionerQualification.ID(childComplexity), true + + case "PractitionerQualification.identifier": + if e.complexity.PractitionerQualification.Identifier == nil { + break + } + + return e.complexity.PractitionerQualification.Identifier(childComplexity), true + + case "PractitionerQualification.issuer": + if e.complexity.PractitionerQualification.Issuer == nil { + break + } + + args, err := ec.field_PractitionerQualification_issuer_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.PractitionerQualification.Issuer(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "PractitionerQualification.modifierExtension": + if e.complexity.PractitionerQualification.ModifierExtension == nil { + break + } + + return e.complexity.PractitionerQualification.ModifierExtension(childComplexity), true + + case "PractitionerQualification.period": + if e.complexity.PractitionerQualification.Period == nil { + break + } + + return e.complexity.PractitionerQualification.Period(childComplexity), true + + case "PractitionerQualification.resourceType": + if e.complexity.PractitionerQualification.ResourceType == nil { + break + } + + return e.complexity.PractitionerQualification.ResourceType(childComplexity), true + + case "PractitionerRoleType.active": + if e.complexity.PractitionerRoleType.Active == nil { + break + } + + return e.complexity.PractitionerRoleType.Active(childComplexity), true + + case "PractitionerRoleType.availability": + if e.complexity.PractitionerRoleType.Availability == nil { + break + } + + return e.complexity.PractitionerRoleType.Availability(childComplexity), true + + case "PractitionerRoleType.characteristic": + if e.complexity.PractitionerRoleType.Characteristic == nil { + break + } + + return e.complexity.PractitionerRoleType.Characteristic(childComplexity), true + + case "PractitionerRoleType.code": + if e.complexity.PractitionerRoleType.Code == nil { + break + } + + return e.complexity.PractitionerRoleType.Code(childComplexity), true + + case "PractitionerRoleType.communication": + if e.complexity.PractitionerRoleType.Communication == nil { + break + } + + return e.complexity.PractitionerRoleType.Communication(childComplexity), true + + case "PractitionerRoleType.contact": + if e.complexity.PractitionerRoleType.Contact == nil { + break + } + + return e.complexity.PractitionerRoleType.Contact(childComplexity), true + + case "PractitionerRoleType.contained": + if e.complexity.PractitionerRoleType.Contained == nil { + break + } + + return e.complexity.PractitionerRoleType.Contained(childComplexity), true + + case "PractitionerRoleType.extension": + if e.complexity.PractitionerRoleType.Extension == nil { + break + } + + return e.complexity.PractitionerRoleType.Extension(childComplexity), true + + case "PractitionerRoleType.id": + if e.complexity.PractitionerRoleType.ID == nil { + break + } + + return e.complexity.PractitionerRoleType.ID(childComplexity), true + + case "PractitionerRoleType.identifier": + if e.complexity.PractitionerRoleType.Identifier == nil { + break + } + + return e.complexity.PractitionerRoleType.Identifier(childComplexity), true + + case "PractitionerRoleType.implicitRules": + if e.complexity.PractitionerRoleType.ImplicitRules == nil { + break + } + + return e.complexity.PractitionerRoleType.ImplicitRules(childComplexity), true + + case "PractitionerRoleType.language": + if e.complexity.PractitionerRoleType.Language == nil { + break + } + + return e.complexity.PractitionerRoleType.Language(childComplexity), true + + case "PractitionerRoleType.meta": + if e.complexity.PractitionerRoleType.Meta == nil { + break + } + + return e.complexity.PractitionerRoleType.Meta(childComplexity), true + + case "PractitionerRoleType.modifierExtension": + if e.complexity.PractitionerRoleType.ModifierExtension == nil { + break + } + + return e.complexity.PractitionerRoleType.ModifierExtension(childComplexity), true + + case "PractitionerRoleType.organization": + if e.complexity.PractitionerRoleType.Organization == nil { + break + } + + args, err := ec.field_PractitionerRoleType_organization_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.PractitionerRoleType.Organization(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "PractitionerRoleType.period": + if e.complexity.PractitionerRoleType.Period == nil { + break + } + + return e.complexity.PractitionerRoleType.Period(childComplexity), true + + case "PractitionerRoleType.practitioner": + if e.complexity.PractitionerRoleType.Practitioner == nil { + break + } + + args, err := ec.field_PractitionerRoleType_practitioner_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.PractitionerRoleType.Practitioner(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "PractitionerRoleType.resourceType": + if e.complexity.PractitionerRoleType.ResourceType == nil { + break + } + + return e.complexity.PractitionerRoleType.ResourceType(childComplexity), true + + case "PractitionerRoleType.specialty": + if e.complexity.PractitionerRoleType.Specialty == nil { + break + } + + return e.complexity.PractitionerRoleType.Specialty(childComplexity), true + + case "PractitionerRoleType.text": + if e.complexity.PractitionerRoleType.Text == nil { + break + } + + return e.complexity.PractitionerRoleType.Text(childComplexity), true + + case "PractitionerType.active": + if e.complexity.PractitionerType.Active == nil { + break + } + + return e.complexity.PractitionerType.Active(childComplexity), true + + case "PractitionerType.address": + if e.complexity.PractitionerType.Address == nil { + break + } + + return e.complexity.PractitionerType.Address(childComplexity), true + + case "PractitionerType.birthDate": + if e.complexity.PractitionerType.BirthDate == nil { + break + } + + return e.complexity.PractitionerType.BirthDate(childComplexity), true + + case "PractitionerType.communication": + if e.complexity.PractitionerType.Communication == nil { + break + } + + return e.complexity.PractitionerType.Communication(childComplexity), true + + case "PractitionerType.contained": + if e.complexity.PractitionerType.Contained == nil { + break + } + + return e.complexity.PractitionerType.Contained(childComplexity), true + + case "PractitionerType.deceasedBoolean": + if e.complexity.PractitionerType.DeceasedBoolean == nil { + break + } + + return e.complexity.PractitionerType.DeceasedBoolean(childComplexity), true + + case "PractitionerType.deceasedDateTime": + if e.complexity.PractitionerType.DeceasedDateTime == nil { + break + } + + return e.complexity.PractitionerType.DeceasedDateTime(childComplexity), true + + case "PractitionerType.extension": + if e.complexity.PractitionerType.Extension == nil { + break + } + + return e.complexity.PractitionerType.Extension(childComplexity), true + + case "PractitionerType.gender": + if e.complexity.PractitionerType.Gender == nil { + break + } + + return e.complexity.PractitionerType.Gender(childComplexity), true + + case "PractitionerType.id": + if e.complexity.PractitionerType.ID == nil { + break + } + + return e.complexity.PractitionerType.ID(childComplexity), true + + case "PractitionerType.identifier": + if e.complexity.PractitionerType.Identifier == nil { + break + } + + return e.complexity.PractitionerType.Identifier(childComplexity), true + + case "PractitionerType.implicitRules": + if e.complexity.PractitionerType.ImplicitRules == nil { + break + } + + return e.complexity.PractitionerType.ImplicitRules(childComplexity), true + + case "PractitionerType.language": + if e.complexity.PractitionerType.Language == nil { + break + } + + return e.complexity.PractitionerType.Language(childComplexity), true + + case "PractitionerType.meta": + if e.complexity.PractitionerType.Meta == nil { + break + } + + return e.complexity.PractitionerType.Meta(childComplexity), true + + case "PractitionerType.modifierExtension": + if e.complexity.PractitionerType.ModifierExtension == nil { + break + } + + return e.complexity.PractitionerType.ModifierExtension(childComplexity), true + + case "PractitionerType.name": + if e.complexity.PractitionerType.Name == nil { + break + } + + return e.complexity.PractitionerType.Name(childComplexity), true + + case "PractitionerType.photo": + if e.complexity.PractitionerType.Photo == nil { + break + } + + return e.complexity.PractitionerType.Photo(childComplexity), true + + case "PractitionerType.qualification": + if e.complexity.PractitionerType.Qualification == nil { + break + } + + return e.complexity.PractitionerType.Qualification(childComplexity), true + + case "PractitionerType.resourceType": + if e.complexity.PractitionerType.ResourceType == nil { + break + } + + return e.complexity.PractitionerType.ResourceType(childComplexity), true + + case "PractitionerType.telecom": + if e.complexity.PractitionerType.Telecom == nil { + break + } + + return e.complexity.PractitionerType.Telecom(childComplexity), true + + case "PractitionerType.text": + if e.complexity.PractitionerType.Text == nil { + break + } + + return e.complexity.PractitionerType.Text(childComplexity), true + + case "ProcedureFocalDevice.action": + if e.complexity.ProcedureFocalDevice.Action == nil { + break + } + + return e.complexity.ProcedureFocalDevice.Action(childComplexity), true + + case "ProcedureFocalDevice.extension": + if e.complexity.ProcedureFocalDevice.Extension == nil { + break + } + + return e.complexity.ProcedureFocalDevice.Extension(childComplexity), true + + case "ProcedureFocalDevice.id": + if e.complexity.ProcedureFocalDevice.ID == nil { + break + } + + return e.complexity.ProcedureFocalDevice.ID(childComplexity), true + + case "ProcedureFocalDevice.modifierExtension": + if e.complexity.ProcedureFocalDevice.ModifierExtension == nil { + break + } + + return e.complexity.ProcedureFocalDevice.ModifierExtension(childComplexity), true + + case "ProcedureFocalDevice.resourceType": + if e.complexity.ProcedureFocalDevice.ResourceType == nil { + break + } + + return e.complexity.ProcedureFocalDevice.ResourceType(childComplexity), true + + case "ProcedurePerformer.actor": + if e.complexity.ProcedurePerformer.Actor == nil { + break + } + + args, err := ec.field_ProcedurePerformer_actor_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ProcedurePerformer.Actor(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ProcedurePerformer.extension": + if e.complexity.ProcedurePerformer.Extension == nil { + break + } + + return e.complexity.ProcedurePerformer.Extension(childComplexity), true + + case "ProcedurePerformer.function": + if e.complexity.ProcedurePerformer.Function == nil { + break + } + + return e.complexity.ProcedurePerformer.Function(childComplexity), true + + case "ProcedurePerformer.id": + if e.complexity.ProcedurePerformer.ID == nil { + break + } + + return e.complexity.ProcedurePerformer.ID(childComplexity), true + + case "ProcedurePerformer.modifierExtension": + if e.complexity.ProcedurePerformer.ModifierExtension == nil { + break + } + + return e.complexity.ProcedurePerformer.ModifierExtension(childComplexity), true + + case "ProcedurePerformer.onBehalfOf": + if e.complexity.ProcedurePerformer.OnBehalfOf == nil { + break + } + + args, err := ec.field_ProcedurePerformer_onBehalfOf_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ProcedurePerformer.OnBehalfOf(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ProcedurePerformer.period": + if e.complexity.ProcedurePerformer.Period == nil { + break + } + + return e.complexity.ProcedurePerformer.Period(childComplexity), true + + case "ProcedurePerformer.resourceType": + if e.complexity.ProcedurePerformer.ResourceType == nil { + break + } + + return e.complexity.ProcedurePerformer.ResourceType(childComplexity), true + + case "ProcedureType.bodySite": + if e.complexity.ProcedureType.BodySite == nil { + break + } + + return e.complexity.ProcedureType.BodySite(childComplexity), true + + case "ProcedureType.category": + if e.complexity.ProcedureType.Category == nil { + break + } + + return e.complexity.ProcedureType.Category(childComplexity), true + + case "ProcedureType.code": + if e.complexity.ProcedureType.Code == nil { + break + } + + return e.complexity.ProcedureType.Code(childComplexity), true + + case "ProcedureType.complication": + if e.complexity.ProcedureType.Complication == nil { + break + } + + return e.complexity.ProcedureType.Complication(childComplexity), true + + case "ProcedureType.contained": + if e.complexity.ProcedureType.Contained == nil { + break + } + + return e.complexity.ProcedureType.Contained(childComplexity), true + + case "ProcedureType.extension": + if e.complexity.ProcedureType.Extension == nil { + break + } + + return e.complexity.ProcedureType.Extension(childComplexity), true + + case "ProcedureType.focalDevice": + if e.complexity.ProcedureType.FocalDevice == nil { + break + } + + return e.complexity.ProcedureType.FocalDevice(childComplexity), true + + case "ProcedureType.focus": + if e.complexity.ProcedureType.Focus == nil { + break + } + + args, err := ec.field_ProcedureType_focus_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ProcedureType.Focus(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ProcedureType.followUp": + if e.complexity.ProcedureType.FollowUp == nil { + break + } + + return e.complexity.ProcedureType.FollowUp(childComplexity), true + + case "ProcedureType.id": + if e.complexity.ProcedureType.ID == nil { + break + } + + return e.complexity.ProcedureType.ID(childComplexity), true + + case "ProcedureType.identifier": + if e.complexity.ProcedureType.Identifier == nil { + break + } + + return e.complexity.ProcedureType.Identifier(childComplexity), true + + case "ProcedureType.implicitRules": + if e.complexity.ProcedureType.ImplicitRules == nil { + break + } + + return e.complexity.ProcedureType.ImplicitRules(childComplexity), true + + case "ProcedureType.instantiatesCanonical": + if e.complexity.ProcedureType.InstantiatesCanonical == nil { + break + } + + return e.complexity.ProcedureType.InstantiatesCanonical(childComplexity), true + + case "ProcedureType.instantiatesUri": + if e.complexity.ProcedureType.InstantiatesURI == nil { + break + } + + return e.complexity.ProcedureType.InstantiatesURI(childComplexity), true + + case "ProcedureType.language": + if e.complexity.ProcedureType.Language == nil { + break + } + + return e.complexity.ProcedureType.Language(childComplexity), true + + case "ProcedureType.meta": + if e.complexity.ProcedureType.Meta == nil { + break + } + + return e.complexity.ProcedureType.Meta(childComplexity), true + + case "ProcedureType.modifierExtension": + if e.complexity.ProcedureType.ModifierExtension == nil { + break + } + + return e.complexity.ProcedureType.ModifierExtension(childComplexity), true + + case "ProcedureType.note": + if e.complexity.ProcedureType.Note == nil { + break + } + + args, err := ec.field_ProcedureType_note_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ProcedureType.Note(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ProcedureType.occurrenceAge": + if e.complexity.ProcedureType.OccurrenceAge == nil { + break + } + + return e.complexity.ProcedureType.OccurrenceAge(childComplexity), true + + case "ProcedureType.occurrenceDateTime": + if e.complexity.ProcedureType.OccurrenceDateTime == nil { + break + } + + return e.complexity.ProcedureType.OccurrenceDateTime(childComplexity), true + + case "ProcedureType.occurrencePeriod": + if e.complexity.ProcedureType.OccurrencePeriod == nil { + break + } + + return e.complexity.ProcedureType.OccurrencePeriod(childComplexity), true + + case "ProcedureType.occurrenceRange": + if e.complexity.ProcedureType.OccurrenceRange == nil { + break + } + + return e.complexity.ProcedureType.OccurrenceRange(childComplexity), true + + case "ProcedureType.occurrenceString": + if e.complexity.ProcedureType.OccurrenceString == nil { + break + } + + return e.complexity.ProcedureType.OccurrenceString(childComplexity), true + + case "ProcedureType.occurrenceTiming": + if e.complexity.ProcedureType.OccurrenceTiming == nil { + break + } + + return e.complexity.ProcedureType.OccurrenceTiming(childComplexity), true + + case "ProcedureType.outcome": + if e.complexity.ProcedureType.Outcome == nil { + break + } + + return e.complexity.ProcedureType.Outcome(childComplexity), true + + case "ProcedureType.partOf": + if e.complexity.ProcedureType.PartOf == nil { + break + } + + args, err := ec.field_ProcedureType_partOf_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ProcedureType.PartOf(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ProcedureType.performer": + if e.complexity.ProcedureType.Performer == nil { + break + } + + args, err := ec.field_ProcedureType_performer_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ProcedureType.Performer(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ProcedureType.reason": + if e.complexity.ProcedureType.Reason == nil { + break + } + + return e.complexity.ProcedureType.Reason(childComplexity), true + + case "ProcedureType.recorded": + if e.complexity.ProcedureType.Recorded == nil { + break + } + + return e.complexity.ProcedureType.Recorded(childComplexity), true + + case "ProcedureType.recorder": + if e.complexity.ProcedureType.Recorder == nil { + break + } + + args, err := ec.field_ProcedureType_recorder_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ProcedureType.Recorder(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ProcedureType.report": + if e.complexity.ProcedureType.Report == nil { + break + } + + args, err := ec.field_ProcedureType_report_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ProcedureType.Report(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ProcedureType.reportedBoolean": + if e.complexity.ProcedureType.ReportedBoolean == nil { + break + } + + return e.complexity.ProcedureType.ReportedBoolean(childComplexity), true + + case "ProcedureType.reportedReference": + if e.complexity.ProcedureType.ReportedReference == nil { + break + } + + args, err := ec.field_ProcedureType_reportedReference_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ProcedureType.ReportedReference(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ProcedureType.resourceType": + if e.complexity.ProcedureType.ResourceType == nil { + break + } + + return e.complexity.ProcedureType.ResourceType(childComplexity), true + + case "ProcedureType.status": + if e.complexity.ProcedureType.Status == nil { + break + } + + return e.complexity.ProcedureType.Status(childComplexity), true + + case "ProcedureType.statusReason": + if e.complexity.ProcedureType.StatusReason == nil { + break + } + + return e.complexity.ProcedureType.StatusReason(childComplexity), true + + case "ProcedureType.subject": + if e.complexity.ProcedureType.Subject == nil { + break + } + + args, err := ec.field_ProcedureType_subject_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ProcedureType.Subject(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ProcedureType.supportingInfo": + if e.complexity.ProcedureType.SupportingInfo == nil { + break + } + + args, err := ec.field_ProcedureType_supportingInfo_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ProcedureType.SupportingInfo(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ProcedureType.text": + if e.complexity.ProcedureType.Text == nil { + break + } + + return e.complexity.ProcedureType.Text(childComplexity), true + + case "ProcedureType.used": + if e.complexity.ProcedureType.Used == nil { + break + } + + return e.complexity.ProcedureType.Used(childComplexity), true + + case "Quantity.code": + if e.complexity.Quantity.Code == nil { + break + } + + return e.complexity.Quantity.Code(childComplexity), true + + case "Quantity.comparator": + if e.complexity.Quantity.Comparator == nil { + break + } + + return e.complexity.Quantity.Comparator(childComplexity), true + + case "Quantity.extension": + if e.complexity.Quantity.Extension == nil { + break + } + + return e.complexity.Quantity.Extension(childComplexity), true + + case "Quantity.id": + if e.complexity.Quantity.ID == nil { + break + } + + return e.complexity.Quantity.ID(childComplexity), true + + case "Quantity.resourceType": + if e.complexity.Quantity.ResourceType == nil { + break + } + + return e.complexity.Quantity.ResourceType(childComplexity), true + + case "Quantity.system": + if e.complexity.Quantity.System == nil { + break + } + + return e.complexity.Quantity.System(childComplexity), true + + case "Quantity.unit": + if e.complexity.Quantity.Unit == nil { + break + } + + return e.complexity.Quantity.Unit(childComplexity), true + + case "Quantity.value": + if e.complexity.Quantity.Value == nil { + break + } + + return e.complexity.Quantity.Value(childComplexity), true + + case "Query.bodyStructure": + if e.complexity.Query.BodyStructure == nil { + break + } + + args, err := ec.field_Query_bodyStructure_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.BodyStructure(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.condition": + if e.complexity.Query.Condition == nil { + break + } + + args, err := ec.field_Query_condition_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Condition(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.diagnosticReport": + if e.complexity.Query.DiagnosticReport == nil { + break + } + + args, err := ec.field_Query_diagnosticReport_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.DiagnosticReport(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.documentReference": + if e.complexity.Query.DocumentReference == nil { + break + } + + args, err := ec.field_Query_documentReference_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.DocumentReference(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.familyMemberHistory": + if e.complexity.Query.FamilyMemberHistory == nil { + break + } + + args, err := ec.field_Query_familyMemberHistory_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.FamilyMemberHistory(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.group": + if e.complexity.Query.Group == nil { + break + } + + args, err := ec.field_Query_group_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Group(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.imagingStudy": + if e.complexity.Query.ImagingStudy == nil { + break + } + + args, err := ec.field_Query_imagingStudy_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ImagingStudy(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.medication": + if e.complexity.Query.Medication == nil { + break + } + + args, err := ec.field_Query_medication_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Medication(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.medicationAdministration": + if e.complexity.Query.MedicationAdministration == nil { + break + } + + args, err := ec.field_Query_medicationAdministration_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.MedicationAdministration(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.medicationRequest": + if e.complexity.Query.MedicationRequest == nil { + break + } + + args, err := ec.field_Query_medicationRequest_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.MedicationRequest(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.medicationStatement": + if e.complexity.Query.MedicationStatement == nil { + break + } + + args, err := ec.field_Query_medicationStatement_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.MedicationStatement(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.observation": + if e.complexity.Query.Observation == nil { + break + } + + args, err := ec.field_Query_observation_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Observation(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.organization": + if e.complexity.Query.Organization == nil { + break + } + + args, err := ec.field_Query_organization_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Organization(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.patient": + if e.complexity.Query.Patient == nil { + break + } + + args, err := ec.field_Query_patient_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Patient(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.practitioner": + if e.complexity.Query.Practitioner == nil { + break + } + + args, err := ec.field_Query_practitioner_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Practitioner(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.practitionerRole": + if e.complexity.Query.PractitionerRole == nil { + break + } + + args, err := ec.field_Query_practitionerRole_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.PractitionerRole(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.procedure": + if e.complexity.Query.Procedure == nil { + break + } + + args, err := ec.field_Query_procedure_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Procedure(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.researchStudy": + if e.complexity.Query.ResearchStudy == nil { + break + } + + args, err := ec.field_Query_researchStudy_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ResearchStudy(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.researchSubject": + if e.complexity.Query.ResearchSubject == nil { + break + } + + args, err := ec.field_Query_researchSubject_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ResearchSubject(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.specimen": + if e.complexity.Query.Specimen == nil { + break + } + + args, err := ec.field_Query_specimen_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Specimen(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.substance": + if e.complexity.Query.Substance == nil { + break + } + + args, err := ec.field_Query_substance_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Substance(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.substanceDefinition": + if e.complexity.Query.SubstanceDefinition == nil { + break + } + + args, err := ec.field_Query_substanceDefinition_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.SubstanceDefinition(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Query.task": + if e.complexity.Query.Task == nil { + break + } + + args, err := ec.field_Query_task_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Task(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Range.extension": + if e.complexity.Range.Extension == nil { + break + } + + return e.complexity.Range.Extension(childComplexity), true + + case "Range.high": + if e.complexity.Range.High == nil { + break + } + + return e.complexity.Range.High(childComplexity), true + + case "Range.id": + if e.complexity.Range.ID == nil { + break + } + + return e.complexity.Range.ID(childComplexity), true + + case "Range.low": + if e.complexity.Range.Low == nil { + break + } + + return e.complexity.Range.Low(childComplexity), true + + case "Range.resourceType": + if e.complexity.Range.ResourceType == nil { + break + } + + return e.complexity.Range.ResourceType(childComplexity), true + + case "Ratio.denominator": + if e.complexity.Ratio.Denominator == nil { + break + } + + return e.complexity.Ratio.Denominator(childComplexity), true + + case "Ratio.extension": + if e.complexity.Ratio.Extension == nil { + break + } + + return e.complexity.Ratio.Extension(childComplexity), true + + case "Ratio.id": + if e.complexity.Ratio.ID == nil { + break + } + + return e.complexity.Ratio.ID(childComplexity), true + + case "Ratio.numerator": + if e.complexity.Ratio.Numerator == nil { + break + } + + return e.complexity.Ratio.Numerator(childComplexity), true + + case "Ratio.resourceType": + if e.complexity.Ratio.ResourceType == nil { + break + } + + return e.complexity.Ratio.ResourceType(childComplexity), true + + case "RatioRange.denominator": + if e.complexity.RatioRange.Denominator == nil { + break + } + + return e.complexity.RatioRange.Denominator(childComplexity), true + + case "RatioRange.extension": + if e.complexity.RatioRange.Extension == nil { + break + } + + return e.complexity.RatioRange.Extension(childComplexity), true + + case "RatioRange.highNumerator": + if e.complexity.RatioRange.HighNumerator == nil { + break + } + + return e.complexity.RatioRange.HighNumerator(childComplexity), true + + case "RatioRange.id": + if e.complexity.RatioRange.ID == nil { + break + } + + return e.complexity.RatioRange.ID(childComplexity), true + + case "RatioRange.lowNumerator": + if e.complexity.RatioRange.LowNumerator == nil { + break + } + + return e.complexity.RatioRange.LowNumerator(childComplexity), true + + case "RatioRange.resourceType": + if e.complexity.RatioRange.ResourceType == nil { + break + } + + return e.complexity.RatioRange.ResourceType(childComplexity), true + + case "Reference.display": + if e.complexity.Reference.Display == nil { + break + } + + return e.complexity.Reference.Display(childComplexity), true + + case "Reference.extension": + if e.complexity.Reference.Extension == nil { + break + } + + return e.complexity.Reference.Extension(childComplexity), true + + case "Reference.id": + if e.complexity.Reference.ID == nil { + break + } + + return e.complexity.Reference.ID(childComplexity), true + + case "Reference.identifier": + if e.complexity.Reference.Identifier == nil { + break + } + + return e.complexity.Reference.Identifier(childComplexity), true + + case "Reference.reference": + if e.complexity.Reference.Reference == nil { + break + } + + return e.complexity.Reference.Reference(childComplexity), true + + case "Reference.resourceType": + if e.complexity.Reference.ResourceType == nil { + break + } + + return e.complexity.Reference.ResourceType(childComplexity), true + + case "Reference.type": + if e.complexity.Reference.Type == nil { + break + } + + return e.complexity.Reference.Type(childComplexity), true + + case "RelatedArtifact.citation": + if e.complexity.RelatedArtifact.Citation == nil { + break + } + + return e.complexity.RelatedArtifact.Citation(childComplexity), true + + case "RelatedArtifact.classifier": + if e.complexity.RelatedArtifact.Classifier == nil { + break + } + + return e.complexity.RelatedArtifact.Classifier(childComplexity), true + + case "RelatedArtifact.display": + if e.complexity.RelatedArtifact.Display == nil { + break + } + + return e.complexity.RelatedArtifact.Display(childComplexity), true + + case "RelatedArtifact.document": + if e.complexity.RelatedArtifact.Document == nil { + break + } + + return e.complexity.RelatedArtifact.Document(childComplexity), true + + case "RelatedArtifact.extension": + if e.complexity.RelatedArtifact.Extension == nil { + break + } + + return e.complexity.RelatedArtifact.Extension(childComplexity), true + + case "RelatedArtifact.id": + if e.complexity.RelatedArtifact.ID == nil { + break + } + + return e.complexity.RelatedArtifact.ID(childComplexity), true + + case "RelatedArtifact.label": + if e.complexity.RelatedArtifact.Label == nil { + break + } + + return e.complexity.RelatedArtifact.Label(childComplexity), true + + case "RelatedArtifact.publicationDate": + if e.complexity.RelatedArtifact.PublicationDate == nil { + break + } + + return e.complexity.RelatedArtifact.PublicationDate(childComplexity), true + + case "RelatedArtifact.publicationStatus": + if e.complexity.RelatedArtifact.PublicationStatus == nil { + break + } + + return e.complexity.RelatedArtifact.PublicationStatus(childComplexity), true + + case "RelatedArtifact.resource": + if e.complexity.RelatedArtifact.Resource == nil { + break + } + + return e.complexity.RelatedArtifact.Resource(childComplexity), true + + case "RelatedArtifact.resourceReference": + if e.complexity.RelatedArtifact.ResourceReference == nil { + break + } + + args, err := ec.field_RelatedArtifact_resourceReference_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.RelatedArtifact.ResourceReference(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "RelatedArtifact.resourceType": + if e.complexity.RelatedArtifact.ResourceType == nil { + break + } + + return e.complexity.RelatedArtifact.ResourceType(childComplexity), true + + case "RelatedArtifact.type": + if e.complexity.RelatedArtifact.Type == nil { + break + } + + return e.complexity.RelatedArtifact.Type(childComplexity), true + + case "ResearchStudyAssociatedParty.classifier": + if e.complexity.ResearchStudyAssociatedParty.Classifier == nil { + break + } + + return e.complexity.ResearchStudyAssociatedParty.Classifier(childComplexity), true + + case "ResearchStudyAssociatedParty.extension": + if e.complexity.ResearchStudyAssociatedParty.Extension == nil { + break + } + + return e.complexity.ResearchStudyAssociatedParty.Extension(childComplexity), true + + case "ResearchStudyAssociatedParty.id": + if e.complexity.ResearchStudyAssociatedParty.ID == nil { + break + } + + return e.complexity.ResearchStudyAssociatedParty.ID(childComplexity), true + + case "ResearchStudyAssociatedParty.modifierExtension": + if e.complexity.ResearchStudyAssociatedParty.ModifierExtension == nil { + break + } + + return e.complexity.ResearchStudyAssociatedParty.ModifierExtension(childComplexity), true + + case "ResearchStudyAssociatedParty.name": + if e.complexity.ResearchStudyAssociatedParty.Name == nil { + break + } + + return e.complexity.ResearchStudyAssociatedParty.Name(childComplexity), true + + case "ResearchStudyAssociatedParty.party": + if e.complexity.ResearchStudyAssociatedParty.Party == nil { + break + } + + args, err := ec.field_ResearchStudyAssociatedParty_party_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ResearchStudyAssociatedParty.Party(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ResearchStudyAssociatedParty.period": + if e.complexity.ResearchStudyAssociatedParty.Period == nil { + break + } + + return e.complexity.ResearchStudyAssociatedParty.Period(childComplexity), true + + case "ResearchStudyAssociatedParty.resourceType": + if e.complexity.ResearchStudyAssociatedParty.ResourceType == nil { + break + } + + return e.complexity.ResearchStudyAssociatedParty.ResourceType(childComplexity), true + + case "ResearchStudyAssociatedParty.role": + if e.complexity.ResearchStudyAssociatedParty.Role == nil { + break + } + + return e.complexity.ResearchStudyAssociatedParty.Role(childComplexity), true + + case "ResearchStudyComparisonGroup.description": + if e.complexity.ResearchStudyComparisonGroup.Description == nil { + break + } + + return e.complexity.ResearchStudyComparisonGroup.Description(childComplexity), true + + case "ResearchStudyComparisonGroup.extension": + if e.complexity.ResearchStudyComparisonGroup.Extension == nil { + break + } + + return e.complexity.ResearchStudyComparisonGroup.Extension(childComplexity), true + + case "ResearchStudyComparisonGroup.id": + if e.complexity.ResearchStudyComparisonGroup.ID == nil { + break + } + + return e.complexity.ResearchStudyComparisonGroup.ID(childComplexity), true + + case "ResearchStudyComparisonGroup.linkId": + if e.complexity.ResearchStudyComparisonGroup.LinkID == nil { + break + } + + return e.complexity.ResearchStudyComparisonGroup.LinkID(childComplexity), true + + case "ResearchStudyComparisonGroup.modifierExtension": + if e.complexity.ResearchStudyComparisonGroup.ModifierExtension == nil { + break + } + + return e.complexity.ResearchStudyComparisonGroup.ModifierExtension(childComplexity), true + + case "ResearchStudyComparisonGroup.name": + if e.complexity.ResearchStudyComparisonGroup.Name == nil { + break + } + + return e.complexity.ResearchStudyComparisonGroup.Name(childComplexity), true + + case "ResearchStudyComparisonGroup.observedGroup": + if e.complexity.ResearchStudyComparisonGroup.ObservedGroup == nil { + break + } + + args, err := ec.field_ResearchStudyComparisonGroup_observedGroup_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ResearchStudyComparisonGroup.ObservedGroup(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ResearchStudyComparisonGroup.resourceType": + if e.complexity.ResearchStudyComparisonGroup.ResourceType == nil { + break + } + + return e.complexity.ResearchStudyComparisonGroup.ResourceType(childComplexity), true + + case "ResearchStudyComparisonGroup.type": + if e.complexity.ResearchStudyComparisonGroup.Type == nil { + break + } + + return e.complexity.ResearchStudyComparisonGroup.Type(childComplexity), true + + case "ResearchStudyLabel.extension": + if e.complexity.ResearchStudyLabel.Extension == nil { + break + } + + return e.complexity.ResearchStudyLabel.Extension(childComplexity), true + + case "ResearchStudyLabel.id": + if e.complexity.ResearchStudyLabel.ID == nil { + break + } + + return e.complexity.ResearchStudyLabel.ID(childComplexity), true + + case "ResearchStudyLabel.modifierExtension": + if e.complexity.ResearchStudyLabel.ModifierExtension == nil { + break + } + + return e.complexity.ResearchStudyLabel.ModifierExtension(childComplexity), true + + case "ResearchStudyLabel.resourceType": + if e.complexity.ResearchStudyLabel.ResourceType == nil { + break + } + + return e.complexity.ResearchStudyLabel.ResourceType(childComplexity), true + + case "ResearchStudyLabel.type": + if e.complexity.ResearchStudyLabel.Type == nil { + break + } + + return e.complexity.ResearchStudyLabel.Type(childComplexity), true + + case "ResearchStudyLabel.value": + if e.complexity.ResearchStudyLabel.Value == nil { + break + } + + return e.complexity.ResearchStudyLabel.Value(childComplexity), true + + case "ResearchStudyObjective.description": + if e.complexity.ResearchStudyObjective.Description == nil { + break + } + + return e.complexity.ResearchStudyObjective.Description(childComplexity), true + + case "ResearchStudyObjective.extension": + if e.complexity.ResearchStudyObjective.Extension == nil { + break + } + + return e.complexity.ResearchStudyObjective.Extension(childComplexity), true + + case "ResearchStudyObjective.id": + if e.complexity.ResearchStudyObjective.ID == nil { + break + } + + return e.complexity.ResearchStudyObjective.ID(childComplexity), true + + case "ResearchStudyObjective.modifierExtension": + if e.complexity.ResearchStudyObjective.ModifierExtension == nil { + break + } + + return e.complexity.ResearchStudyObjective.ModifierExtension(childComplexity), true + + case "ResearchStudyObjective.name": + if e.complexity.ResearchStudyObjective.Name == nil { + break + } + + return e.complexity.ResearchStudyObjective.Name(childComplexity), true + + case "ResearchStudyObjective.resourceType": + if e.complexity.ResearchStudyObjective.ResourceType == nil { + break + } + + return e.complexity.ResearchStudyObjective.ResourceType(childComplexity), true + + case "ResearchStudyObjective.type": + if e.complexity.ResearchStudyObjective.Type == nil { + break + } + + return e.complexity.ResearchStudyObjective.Type(childComplexity), true + + case "ResearchStudyOutcomeMeasure.description": + if e.complexity.ResearchStudyOutcomeMeasure.Description == nil { + break + } + + return e.complexity.ResearchStudyOutcomeMeasure.Description(childComplexity), true + + case "ResearchStudyOutcomeMeasure.extension": + if e.complexity.ResearchStudyOutcomeMeasure.Extension == nil { + break + } + + return e.complexity.ResearchStudyOutcomeMeasure.Extension(childComplexity), true + + case "ResearchStudyOutcomeMeasure.id": + if e.complexity.ResearchStudyOutcomeMeasure.ID == nil { + break + } + + return e.complexity.ResearchStudyOutcomeMeasure.ID(childComplexity), true + + case "ResearchStudyOutcomeMeasure.modifierExtension": + if e.complexity.ResearchStudyOutcomeMeasure.ModifierExtension == nil { + break + } + + return e.complexity.ResearchStudyOutcomeMeasure.ModifierExtension(childComplexity), true + + case "ResearchStudyOutcomeMeasure.name": + if e.complexity.ResearchStudyOutcomeMeasure.Name == nil { + break + } + + return e.complexity.ResearchStudyOutcomeMeasure.Name(childComplexity), true + + case "ResearchStudyOutcomeMeasure.resourceType": + if e.complexity.ResearchStudyOutcomeMeasure.ResourceType == nil { + break + } + + return e.complexity.ResearchStudyOutcomeMeasure.ResourceType(childComplexity), true + + case "ResearchStudyOutcomeMeasure.type": + if e.complexity.ResearchStudyOutcomeMeasure.Type == nil { + break + } + + return e.complexity.ResearchStudyOutcomeMeasure.Type(childComplexity), true + + case "ResearchStudyProgressStatus.actual": + if e.complexity.ResearchStudyProgressStatus.Actual == nil { + break + } + + return e.complexity.ResearchStudyProgressStatus.Actual(childComplexity), true + + case "ResearchStudyProgressStatus.extension": + if e.complexity.ResearchStudyProgressStatus.Extension == nil { + break + } + + return e.complexity.ResearchStudyProgressStatus.Extension(childComplexity), true + + case "ResearchStudyProgressStatus.id": + if e.complexity.ResearchStudyProgressStatus.ID == nil { + break + } + + return e.complexity.ResearchStudyProgressStatus.ID(childComplexity), true + + case "ResearchStudyProgressStatus.modifierExtension": + if e.complexity.ResearchStudyProgressStatus.ModifierExtension == nil { + break + } + + return e.complexity.ResearchStudyProgressStatus.ModifierExtension(childComplexity), true + + case "ResearchStudyProgressStatus.period": + if e.complexity.ResearchStudyProgressStatus.Period == nil { + break + } + + return e.complexity.ResearchStudyProgressStatus.Period(childComplexity), true + + case "ResearchStudyProgressStatus.resourceType": + if e.complexity.ResearchStudyProgressStatus.ResourceType == nil { + break + } + + return e.complexity.ResearchStudyProgressStatus.ResourceType(childComplexity), true + + case "ResearchStudyProgressStatus.state": + if e.complexity.ResearchStudyProgressStatus.State == nil { + break + } + + return e.complexity.ResearchStudyProgressStatus.State(childComplexity), true + + case "ResearchStudyRecruitment.actualGroup": + if e.complexity.ResearchStudyRecruitment.ActualGroup == nil { + break + } + + args, err := ec.field_ResearchStudyRecruitment_actualGroup_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ResearchStudyRecruitment.ActualGroup(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ResearchStudyRecruitment.actualNumber": + if e.complexity.ResearchStudyRecruitment.ActualNumber == nil { + break + } + + return e.complexity.ResearchStudyRecruitment.ActualNumber(childComplexity), true + + case "ResearchStudyRecruitment.eligibility": + if e.complexity.ResearchStudyRecruitment.Eligibility == nil { + break + } + + args, err := ec.field_ResearchStudyRecruitment_eligibility_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ResearchStudyRecruitment.Eligibility(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ResearchStudyRecruitment.extension": + if e.complexity.ResearchStudyRecruitment.Extension == nil { + break + } + + return e.complexity.ResearchStudyRecruitment.Extension(childComplexity), true + + case "ResearchStudyRecruitment.id": + if e.complexity.ResearchStudyRecruitment.ID == nil { + break + } + + return e.complexity.ResearchStudyRecruitment.ID(childComplexity), true + + case "ResearchStudyRecruitment.modifierExtension": + if e.complexity.ResearchStudyRecruitment.ModifierExtension == nil { + break + } + + return e.complexity.ResearchStudyRecruitment.ModifierExtension(childComplexity), true + + case "ResearchStudyRecruitment.resourceType": + if e.complexity.ResearchStudyRecruitment.ResourceType == nil { + break + } + + return e.complexity.ResearchStudyRecruitment.ResourceType(childComplexity), true + + case "ResearchStudyRecruitment.targetNumber": + if e.complexity.ResearchStudyRecruitment.TargetNumber == nil { + break + } + + return e.complexity.ResearchStudyRecruitment.TargetNumber(childComplexity), true + + case "ResearchStudyType.associatedParty": + if e.complexity.ResearchStudyType.AssociatedParty == nil { + break + } + + args, err := ec.field_ResearchStudyType_associatedParty_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ResearchStudyType.AssociatedParty(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ResearchStudyType.classifier": + if e.complexity.ResearchStudyType.Classifier == nil { + break + } + + return e.complexity.ResearchStudyType.Classifier(childComplexity), true + + case "ResearchStudyType.comparisonGroup": + if e.complexity.ResearchStudyType.ComparisonGroup == nil { + break + } + + return e.complexity.ResearchStudyType.ComparisonGroup(childComplexity), true + + case "ResearchStudyType.condition": + if e.complexity.ResearchStudyType.Condition == nil { + break + } + + return e.complexity.ResearchStudyType.Condition(childComplexity), true + + case "ResearchStudyType.contained": + if e.complexity.ResearchStudyType.Contained == nil { + break + } + + return e.complexity.ResearchStudyType.Contained(childComplexity), true + + case "ResearchStudyType.date": + if e.complexity.ResearchStudyType.Date == nil { + break + } + + return e.complexity.ResearchStudyType.Date(childComplexity), true + + case "ResearchStudyType.description": + if e.complexity.ResearchStudyType.Description == nil { + break + } + + return e.complexity.ResearchStudyType.Description(childComplexity), true + + case "ResearchStudyType.descriptionSummary": + if e.complexity.ResearchStudyType.DescriptionSummary == nil { + break + } + + return e.complexity.ResearchStudyType.DescriptionSummary(childComplexity), true + + case "ResearchStudyType.extension": + if e.complexity.ResearchStudyType.Extension == nil { + break + } + + return e.complexity.ResearchStudyType.Extension(childComplexity), true + + case "ResearchStudyType.focus": + if e.complexity.ResearchStudyType.Focus == nil { + break + } + + return e.complexity.ResearchStudyType.Focus(childComplexity), true + + case "ResearchStudyType.id": + if e.complexity.ResearchStudyType.ID == nil { + break + } + + return e.complexity.ResearchStudyType.ID(childComplexity), true + + case "ResearchStudyType.identifier": + if e.complexity.ResearchStudyType.Identifier == nil { + break + } + + return e.complexity.ResearchStudyType.Identifier(childComplexity), true + + case "ResearchStudyType.implicitRules": + if e.complexity.ResearchStudyType.ImplicitRules == nil { + break + } + + return e.complexity.ResearchStudyType.ImplicitRules(childComplexity), true + + case "ResearchStudyType.keyword": + if e.complexity.ResearchStudyType.Keyword == nil { + break + } + + return e.complexity.ResearchStudyType.Keyword(childComplexity), true + + case "ResearchStudyType.label": + if e.complexity.ResearchStudyType.Label == nil { + break + } + + return e.complexity.ResearchStudyType.Label(childComplexity), true + + case "ResearchStudyType.language": + if e.complexity.ResearchStudyType.Language == nil { + break + } + + return e.complexity.ResearchStudyType.Language(childComplexity), true + + case "ResearchStudyType.meta": + if e.complexity.ResearchStudyType.Meta == nil { + break + } + + return e.complexity.ResearchStudyType.Meta(childComplexity), true + + case "ResearchStudyType.modifierExtension": + if e.complexity.ResearchStudyType.ModifierExtension == nil { + break + } + + return e.complexity.ResearchStudyType.ModifierExtension(childComplexity), true + + case "ResearchStudyType.name": + if e.complexity.ResearchStudyType.Name == nil { + break + } + + return e.complexity.ResearchStudyType.Name(childComplexity), true + + case "ResearchStudyType.note": + if e.complexity.ResearchStudyType.Note == nil { + break + } + + args, err := ec.field_ResearchStudyType_note_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ResearchStudyType.Note(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ResearchStudyType.objective": + if e.complexity.ResearchStudyType.Objective == nil { + break + } + + return e.complexity.ResearchStudyType.Objective(childComplexity), true + + case "ResearchStudyType.outcomeMeasure": + if e.complexity.ResearchStudyType.OutcomeMeasure == nil { + break + } + + return e.complexity.ResearchStudyType.OutcomeMeasure(childComplexity), true + + case "ResearchStudyType.partOf": + if e.complexity.ResearchStudyType.PartOf == nil { + break + } + + args, err := ec.field_ResearchStudyType_partOf_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ResearchStudyType.PartOf(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ResearchStudyType.period": + if e.complexity.ResearchStudyType.Period == nil { + break + } + + return e.complexity.ResearchStudyType.Period(childComplexity), true + + case "ResearchStudyType.phase": + if e.complexity.ResearchStudyType.Phase == nil { + break + } + + return e.complexity.ResearchStudyType.Phase(childComplexity), true + + case "ResearchStudyType.primaryPurposeType": + if e.complexity.ResearchStudyType.PrimaryPurposeType == nil { + break + } + + return e.complexity.ResearchStudyType.PrimaryPurposeType(childComplexity), true + + case "ResearchStudyType.progressStatus": + if e.complexity.ResearchStudyType.ProgressStatus == nil { + break + } + + return e.complexity.ResearchStudyType.ProgressStatus(childComplexity), true + + case "ResearchStudyType.recruitment": + if e.complexity.ResearchStudyType.Recruitment == nil { + break + } + + args, err := ec.field_ResearchStudyType_recruitment_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ResearchStudyType.Recruitment(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ResearchStudyType.region": + if e.complexity.ResearchStudyType.Region == nil { + break + } + + return e.complexity.ResearchStudyType.Region(childComplexity), true + + case "ResearchStudyType.relatedArtifact": + if e.complexity.ResearchStudyType.RelatedArtifact == nil { + break + } + + return e.complexity.ResearchStudyType.RelatedArtifact(childComplexity), true + + case "ResearchStudyType.resourceType": + if e.complexity.ResearchStudyType.ResourceType == nil { + break + } + + return e.complexity.ResearchStudyType.ResourceType(childComplexity), true + + case "ResearchStudyType.result": + if e.complexity.ResearchStudyType.Result == nil { + break + } + + args, err := ec.field_ResearchStudyType_result_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ResearchStudyType.Result(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ResearchStudyType.site": + if e.complexity.ResearchStudyType.Site == nil { + break + } + + args, err := ec.field_ResearchStudyType_site_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ResearchStudyType.Site(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ResearchStudyType.status": + if e.complexity.ResearchStudyType.Status == nil { + break + } + + return e.complexity.ResearchStudyType.Status(childComplexity), true + + case "ResearchStudyType.studyDesign": + if e.complexity.ResearchStudyType.StudyDesign == nil { + break + } + + return e.complexity.ResearchStudyType.StudyDesign(childComplexity), true + + case "ResearchStudyType.text": + if e.complexity.ResearchStudyType.Text == nil { + break + } + + return e.complexity.ResearchStudyType.Text(childComplexity), true + + case "ResearchStudyType.title": + if e.complexity.ResearchStudyType.Title == nil { + break + } + + return e.complexity.ResearchStudyType.Title(childComplexity), true + + case "ResearchStudyType.url": + if e.complexity.ResearchStudyType.URL == nil { + break + } + + return e.complexity.ResearchStudyType.URL(childComplexity), true + + case "ResearchStudyType.version": + if e.complexity.ResearchStudyType.Version == nil { + break + } + + return e.complexity.ResearchStudyType.Version(childComplexity), true + + case "ResearchStudyType.whyStopped": + if e.complexity.ResearchStudyType.WhyStopped == nil { + break + } + + return e.complexity.ResearchStudyType.WhyStopped(childComplexity), true + + case "ResearchSubjectProgress.endDate": + if e.complexity.ResearchSubjectProgress.EndDate == nil { + break + } + + return e.complexity.ResearchSubjectProgress.EndDate(childComplexity), true + + case "ResearchSubjectProgress.extension": + if e.complexity.ResearchSubjectProgress.Extension == nil { + break + } + + return e.complexity.ResearchSubjectProgress.Extension(childComplexity), true + + case "ResearchSubjectProgress.id": + if e.complexity.ResearchSubjectProgress.ID == nil { + break + } + + return e.complexity.ResearchSubjectProgress.ID(childComplexity), true + + case "ResearchSubjectProgress.milestone": + if e.complexity.ResearchSubjectProgress.Milestone == nil { + break + } + + return e.complexity.ResearchSubjectProgress.Milestone(childComplexity), true + + case "ResearchSubjectProgress.modifierExtension": + if e.complexity.ResearchSubjectProgress.ModifierExtension == nil { + break + } + + return e.complexity.ResearchSubjectProgress.ModifierExtension(childComplexity), true + + case "ResearchSubjectProgress.reason": + if e.complexity.ResearchSubjectProgress.Reason == nil { + break + } + + return e.complexity.ResearchSubjectProgress.Reason(childComplexity), true + + case "ResearchSubjectProgress.resourceType": + if e.complexity.ResearchSubjectProgress.ResourceType == nil { + break + } + + return e.complexity.ResearchSubjectProgress.ResourceType(childComplexity), true + + case "ResearchSubjectProgress.startDate": + if e.complexity.ResearchSubjectProgress.StartDate == nil { + break + } + + return e.complexity.ResearchSubjectProgress.StartDate(childComplexity), true + + case "ResearchSubjectProgress.subjectState": + if e.complexity.ResearchSubjectProgress.SubjectState == nil { + break + } + + return e.complexity.ResearchSubjectProgress.SubjectState(childComplexity), true + + case "ResearchSubjectProgress.type": + if e.complexity.ResearchSubjectProgress.Type == nil { + break + } + + return e.complexity.ResearchSubjectProgress.Type(childComplexity), true + + case "ResearchSubjectType.actualComparisonGroup": + if e.complexity.ResearchSubjectType.ActualComparisonGroup == nil { + break + } + + return e.complexity.ResearchSubjectType.ActualComparisonGroup(childComplexity), true + + case "ResearchSubjectType.assignedComparisonGroup": + if e.complexity.ResearchSubjectType.AssignedComparisonGroup == nil { + break + } + + return e.complexity.ResearchSubjectType.AssignedComparisonGroup(childComplexity), true + + case "ResearchSubjectType.contained": + if e.complexity.ResearchSubjectType.Contained == nil { + break + } + + return e.complexity.ResearchSubjectType.Contained(childComplexity), true + + case "ResearchSubjectType.extension": + if e.complexity.ResearchSubjectType.Extension == nil { + break + } + + return e.complexity.ResearchSubjectType.Extension(childComplexity), true + + case "ResearchSubjectType.id": + if e.complexity.ResearchSubjectType.ID == nil { + break + } + + return e.complexity.ResearchSubjectType.ID(childComplexity), true + + case "ResearchSubjectType.identifier": + if e.complexity.ResearchSubjectType.Identifier == nil { + break + } + + return e.complexity.ResearchSubjectType.Identifier(childComplexity), true + + case "ResearchSubjectType.implicitRules": + if e.complexity.ResearchSubjectType.ImplicitRules == nil { + break + } + + return e.complexity.ResearchSubjectType.ImplicitRules(childComplexity), true + + case "ResearchSubjectType.language": + if e.complexity.ResearchSubjectType.Language == nil { + break + } + + return e.complexity.ResearchSubjectType.Language(childComplexity), true + + case "ResearchSubjectType.meta": + if e.complexity.ResearchSubjectType.Meta == nil { + break + } + + return e.complexity.ResearchSubjectType.Meta(childComplexity), true + + case "ResearchSubjectType.modifierExtension": + if e.complexity.ResearchSubjectType.ModifierExtension == nil { + break + } + + return e.complexity.ResearchSubjectType.ModifierExtension(childComplexity), true + + case "ResearchSubjectType.period": + if e.complexity.ResearchSubjectType.Period == nil { + break + } + + return e.complexity.ResearchSubjectType.Period(childComplexity), true + + case "ResearchSubjectType.progress": + if e.complexity.ResearchSubjectType.Progress == nil { + break + } + + return e.complexity.ResearchSubjectType.Progress(childComplexity), true + + case "ResearchSubjectType.resourceType": + if e.complexity.ResearchSubjectType.ResourceType == nil { + break + } + + return e.complexity.ResearchSubjectType.ResourceType(childComplexity), true + + case "ResearchSubjectType.status": + if e.complexity.ResearchSubjectType.Status == nil { + break + } + + return e.complexity.ResearchSubjectType.Status(childComplexity), true + + case "ResearchSubjectType.study": + if e.complexity.ResearchSubjectType.Study == nil { + break + } + + args, err := ec.field_ResearchSubjectType_study_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ResearchSubjectType.Study(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ResearchSubjectType.subject": + if e.complexity.ResearchSubjectType.Subject == nil { + break + } + + args, err := ec.field_ResearchSubjectType_subject_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ResearchSubjectType.Subject(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "ResearchSubjectType.text": + if e.complexity.ResearchSubjectType.Text == nil { + break + } + + return e.complexity.ResearchSubjectType.Text(childComplexity), true + + case "SampledData.codeMap": + if e.complexity.SampledData.CodeMap == nil { + break + } + + return e.complexity.SampledData.CodeMap(childComplexity), true + + case "SampledData.data": + if e.complexity.SampledData.Data == nil { + break + } + + return e.complexity.SampledData.Data(childComplexity), true + + case "SampledData.dimensions": + if e.complexity.SampledData.Dimensions == nil { + break + } + + return e.complexity.SampledData.Dimensions(childComplexity), true + + case "SampledData.extension": + if e.complexity.SampledData.Extension == nil { + break + } + + return e.complexity.SampledData.Extension(childComplexity), true + + case "SampledData.factor": + if e.complexity.SampledData.Factor == nil { + break + } + + return e.complexity.SampledData.Factor(childComplexity), true + + case "SampledData.id": + if e.complexity.SampledData.ID == nil { + break + } + + return e.complexity.SampledData.ID(childComplexity), true + + case "SampledData.interval": + if e.complexity.SampledData.Interval == nil { + break + } + + return e.complexity.SampledData.Interval(childComplexity), true + + case "SampledData.intervalUnit": + if e.complexity.SampledData.IntervalUnit == nil { + break + } + + return e.complexity.SampledData.IntervalUnit(childComplexity), true + + case "SampledData.lowerLimit": + if e.complexity.SampledData.LowerLimit == nil { + break + } + + return e.complexity.SampledData.LowerLimit(childComplexity), true + + case "SampledData.offsets": + if e.complexity.SampledData.Offsets == nil { + break + } + + return e.complexity.SampledData.Offsets(childComplexity), true + + case "SampledData.origin": + if e.complexity.SampledData.Origin == nil { + break + } + + return e.complexity.SampledData.Origin(childComplexity), true + + case "SampledData.resourceType": + if e.complexity.SampledData.ResourceType == nil { + break + } + + return e.complexity.SampledData.ResourceType(childComplexity), true + + case "SampledData.upperLimit": + if e.complexity.SampledData.UpperLimit == nil { + break + } + + return e.complexity.SampledData.UpperLimit(childComplexity), true + + case "Signature.data": + if e.complexity.Signature.Data == nil { + break + } + + return e.complexity.Signature.Data(childComplexity), true + + case "Signature.extension": + if e.complexity.Signature.Extension == nil { + break + } + + return e.complexity.Signature.Extension(childComplexity), true + + case "Signature.id": + if e.complexity.Signature.ID == nil { + break + } + + return e.complexity.Signature.ID(childComplexity), true + + case "Signature.onBehalfOf": + if e.complexity.Signature.OnBehalfOf == nil { + break + } + + args, err := ec.field_Signature_onBehalfOf_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Signature.OnBehalfOf(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "Signature.resourceType": + if e.complexity.Signature.ResourceType == nil { + break + } + + return e.complexity.Signature.ResourceType(childComplexity), true + + case "Signature.sigFormat": + if e.complexity.Signature.SigFormat == nil { + break + } + + return e.complexity.Signature.SigFormat(childComplexity), true + + case "Signature.targetFormat": + if e.complexity.Signature.TargetFormat == nil { + break + } + + return e.complexity.Signature.TargetFormat(childComplexity), true + + case "Signature.type": + if e.complexity.Signature.Type == nil { + break + } + + return e.complexity.Signature.Type(childComplexity), true + + case "Signature.when": + if e.complexity.Signature.When == nil { + break + } + + return e.complexity.Signature.When(childComplexity), true + + case "Signature.who": + if e.complexity.Signature.Who == nil { + break + } + + args, err := ec.field_Signature_who_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Signature.Who(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SpecimenCollection.bodySite": + if e.complexity.SpecimenCollection.BodySite == nil { + break + } + + return e.complexity.SpecimenCollection.BodySite(childComplexity), true + + case "SpecimenCollection.collectedDateTime": + if e.complexity.SpecimenCollection.CollectedDateTime == nil { + break + } + + return e.complexity.SpecimenCollection.CollectedDateTime(childComplexity), true + + case "SpecimenCollection.collectedPeriod": + if e.complexity.SpecimenCollection.CollectedPeriod == nil { + break + } + + return e.complexity.SpecimenCollection.CollectedPeriod(childComplexity), true + + case "SpecimenCollection.collector": + if e.complexity.SpecimenCollection.Collector == nil { + break + } + + args, err := ec.field_SpecimenCollection_collector_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SpecimenCollection.Collector(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SpecimenCollection.device": + if e.complexity.SpecimenCollection.Device == nil { + break + } + + return e.complexity.SpecimenCollection.Device(childComplexity), true + + case "SpecimenCollection.duration": + if e.complexity.SpecimenCollection.Duration == nil { + break + } + + return e.complexity.SpecimenCollection.Duration(childComplexity), true + + case "SpecimenCollection.extension": + if e.complexity.SpecimenCollection.Extension == nil { + break + } + + return e.complexity.SpecimenCollection.Extension(childComplexity), true + + case "SpecimenCollection.fastingStatusCodeableConcept": + if e.complexity.SpecimenCollection.FastingStatusCodeableConcept == nil { + break + } + + return e.complexity.SpecimenCollection.FastingStatusCodeableConcept(childComplexity), true + + case "SpecimenCollection.fastingStatusDuration": + if e.complexity.SpecimenCollection.FastingStatusDuration == nil { + break + } + + return e.complexity.SpecimenCollection.FastingStatusDuration(childComplexity), true + + case "SpecimenCollection.id": + if e.complexity.SpecimenCollection.ID == nil { + break + } + + return e.complexity.SpecimenCollection.ID(childComplexity), true + + case "SpecimenCollection.method": + if e.complexity.SpecimenCollection.Method == nil { + break + } + + return e.complexity.SpecimenCollection.Method(childComplexity), true + + case "SpecimenCollection.modifierExtension": + if e.complexity.SpecimenCollection.ModifierExtension == nil { + break + } + + return e.complexity.SpecimenCollection.ModifierExtension(childComplexity), true + + case "SpecimenCollection.procedure": + if e.complexity.SpecimenCollection.Procedure == nil { + break + } + + args, err := ec.field_SpecimenCollection_procedure_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SpecimenCollection.Procedure(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SpecimenCollection.quantity": + if e.complexity.SpecimenCollection.Quantity == nil { + break + } + + return e.complexity.SpecimenCollection.Quantity(childComplexity), true + + case "SpecimenCollection.resourceType": + if e.complexity.SpecimenCollection.ResourceType == nil { + break + } + + return e.complexity.SpecimenCollection.ResourceType(childComplexity), true + + case "SpecimenContainer.extension": + if e.complexity.SpecimenContainer.Extension == nil { + break + } + + return e.complexity.SpecimenContainer.Extension(childComplexity), true + + case "SpecimenContainer.id": + if e.complexity.SpecimenContainer.ID == nil { + break + } + + return e.complexity.SpecimenContainer.ID(childComplexity), true + + case "SpecimenContainer.modifierExtension": + if e.complexity.SpecimenContainer.ModifierExtension == nil { + break + } + + return e.complexity.SpecimenContainer.ModifierExtension(childComplexity), true + + case "SpecimenContainer.resourceType": + if e.complexity.SpecimenContainer.ResourceType == nil { + break + } + + return e.complexity.SpecimenContainer.ResourceType(childComplexity), true + + case "SpecimenContainer.specimenQuantity": + if e.complexity.SpecimenContainer.SpecimenQuantity == nil { + break + } + + return e.complexity.SpecimenContainer.SpecimenQuantity(childComplexity), true + + case "SpecimenFeature.description": + if e.complexity.SpecimenFeature.Description == nil { + break + } + + return e.complexity.SpecimenFeature.Description(childComplexity), true + + case "SpecimenFeature.extension": + if e.complexity.SpecimenFeature.Extension == nil { + break + } + + return e.complexity.SpecimenFeature.Extension(childComplexity), true + + case "SpecimenFeature.id": + if e.complexity.SpecimenFeature.ID == nil { + break + } + + return e.complexity.SpecimenFeature.ID(childComplexity), true + + case "SpecimenFeature.modifierExtension": + if e.complexity.SpecimenFeature.ModifierExtension == nil { + break + } + + return e.complexity.SpecimenFeature.ModifierExtension(childComplexity), true + + case "SpecimenFeature.resourceType": + if e.complexity.SpecimenFeature.ResourceType == nil { + break + } + + return e.complexity.SpecimenFeature.ResourceType(childComplexity), true + + case "SpecimenFeature.type": + if e.complexity.SpecimenFeature.Type == nil { + break + } + + return e.complexity.SpecimenFeature.Type(childComplexity), true + + case "SpecimenProcessing.additive": + if e.complexity.SpecimenProcessing.Additive == nil { + break + } + + args, err := ec.field_SpecimenProcessing_additive_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SpecimenProcessing.Additive(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SpecimenProcessing.description": + if e.complexity.SpecimenProcessing.Description == nil { + break + } + + return e.complexity.SpecimenProcessing.Description(childComplexity), true + + case "SpecimenProcessing.extension": + if e.complexity.SpecimenProcessing.Extension == nil { + break + } + + return e.complexity.SpecimenProcessing.Extension(childComplexity), true + + case "SpecimenProcessing.id": + if e.complexity.SpecimenProcessing.ID == nil { + break + } + + return e.complexity.SpecimenProcessing.ID(childComplexity), true + + case "SpecimenProcessing.method": + if e.complexity.SpecimenProcessing.Method == nil { + break + } + + return e.complexity.SpecimenProcessing.Method(childComplexity), true + + case "SpecimenProcessing.modifierExtension": + if e.complexity.SpecimenProcessing.ModifierExtension == nil { + break + } + + return e.complexity.SpecimenProcessing.ModifierExtension(childComplexity), true + + case "SpecimenProcessing.resourceType": + if e.complexity.SpecimenProcessing.ResourceType == nil { + break + } + + return e.complexity.SpecimenProcessing.ResourceType(childComplexity), true + + case "SpecimenProcessing.timeDateTime": + if e.complexity.SpecimenProcessing.TimeDateTime == nil { + break + } + + return e.complexity.SpecimenProcessing.TimeDateTime(childComplexity), true + + case "SpecimenProcessing.timePeriod": + if e.complexity.SpecimenProcessing.TimePeriod == nil { + break + } + + return e.complexity.SpecimenProcessing.TimePeriod(childComplexity), true + + case "SpecimenType.accessionIdentifier": + if e.complexity.SpecimenType.AccessionIdentifier == nil { + break + } + + return e.complexity.SpecimenType.AccessionIdentifier(childComplexity), true + + case "SpecimenType.collection": + if e.complexity.SpecimenType.Collection == nil { + break + } + + args, err := ec.field_SpecimenType_collection_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SpecimenType.Collection(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SpecimenType.combined": + if e.complexity.SpecimenType.Combined == nil { + break + } + + return e.complexity.SpecimenType.Combined(childComplexity), true + + case "SpecimenType.condition": + if e.complexity.SpecimenType.Condition == nil { + break + } + + return e.complexity.SpecimenType.Condition(childComplexity), true + + case "SpecimenType.contained": + if e.complexity.SpecimenType.Contained == nil { + break + } + + return e.complexity.SpecimenType.Contained(childComplexity), true + + case "SpecimenType.container": + if e.complexity.SpecimenType.Container == nil { + break + } + + return e.complexity.SpecimenType.Container(childComplexity), true + + case "SpecimenType.extension": + if e.complexity.SpecimenType.Extension == nil { + break + } + + return e.complexity.SpecimenType.Extension(childComplexity), true + + case "SpecimenType.feature": + if e.complexity.SpecimenType.Feature == nil { + break + } + + return e.complexity.SpecimenType.Feature(childComplexity), true + + case "SpecimenType.id": + if e.complexity.SpecimenType.ID == nil { + break + } + + return e.complexity.SpecimenType.ID(childComplexity), true + + case "SpecimenType.identifier": + if e.complexity.SpecimenType.Identifier == nil { + break + } + + return e.complexity.SpecimenType.Identifier(childComplexity), true + + case "SpecimenType.implicitRules": + if e.complexity.SpecimenType.ImplicitRules == nil { + break + } + + return e.complexity.SpecimenType.ImplicitRules(childComplexity), true + + case "SpecimenType.language": + if e.complexity.SpecimenType.Language == nil { + break + } + + return e.complexity.SpecimenType.Language(childComplexity), true + + case "SpecimenType.meta": + if e.complexity.SpecimenType.Meta == nil { + break + } + + return e.complexity.SpecimenType.Meta(childComplexity), true + + case "SpecimenType.modifierExtension": + if e.complexity.SpecimenType.ModifierExtension == nil { + break + } + + return e.complexity.SpecimenType.ModifierExtension(childComplexity), true + + case "SpecimenType.note": + if e.complexity.SpecimenType.Note == nil { + break + } + + args, err := ec.field_SpecimenType_note_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SpecimenType.Note(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SpecimenType.parent": + if e.complexity.SpecimenType.Parent == nil { + break + } + + args, err := ec.field_SpecimenType_parent_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SpecimenType.Parent(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SpecimenType.processing": + if e.complexity.SpecimenType.Processing == nil { + break + } + + return e.complexity.SpecimenType.Processing(childComplexity), true + + case "SpecimenType.receivedTime": + if e.complexity.SpecimenType.ReceivedTime == nil { + break + } + + return e.complexity.SpecimenType.ReceivedTime(childComplexity), true + + case "SpecimenType.resourceType": + if e.complexity.SpecimenType.ResourceType == nil { + break + } + + return e.complexity.SpecimenType.ResourceType(childComplexity), true + + case "SpecimenType.role": + if e.complexity.SpecimenType.Role == nil { + break + } + + return e.complexity.SpecimenType.Role(childComplexity), true + + case "SpecimenType.status": + if e.complexity.SpecimenType.Status == nil { + break + } + + return e.complexity.SpecimenType.Status(childComplexity), true + + case "SpecimenType.subject": + if e.complexity.SpecimenType.Subject == nil { + break + } + + args, err := ec.field_SpecimenType_subject_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SpecimenType.Subject(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SpecimenType.text": + if e.complexity.SpecimenType.Text == nil { + break + } + + return e.complexity.SpecimenType.Text(childComplexity), true + + case "SpecimenType.type": + if e.complexity.SpecimenType.Type == nil { + break + } + + return e.complexity.SpecimenType.Type(childComplexity), true + + case "SubstanceDefinitionCharacterization.description": + if e.complexity.SubstanceDefinitionCharacterization.Description == nil { + break + } + + return e.complexity.SubstanceDefinitionCharacterization.Description(childComplexity), true + + case "SubstanceDefinitionCharacterization.extension": + if e.complexity.SubstanceDefinitionCharacterization.Extension == nil { + break + } + + return e.complexity.SubstanceDefinitionCharacterization.Extension(childComplexity), true + + case "SubstanceDefinitionCharacterization.file": + if e.complexity.SubstanceDefinitionCharacterization.File == nil { + break + } + + return e.complexity.SubstanceDefinitionCharacterization.File(childComplexity), true + + case "SubstanceDefinitionCharacterization.form": + if e.complexity.SubstanceDefinitionCharacterization.Form == nil { + break + } + + return e.complexity.SubstanceDefinitionCharacterization.Form(childComplexity), true + + case "SubstanceDefinitionCharacterization.id": + if e.complexity.SubstanceDefinitionCharacterization.ID == nil { + break + } + + return e.complexity.SubstanceDefinitionCharacterization.ID(childComplexity), true + + case "SubstanceDefinitionCharacterization.modifierExtension": + if e.complexity.SubstanceDefinitionCharacterization.ModifierExtension == nil { + break + } + + return e.complexity.SubstanceDefinitionCharacterization.ModifierExtension(childComplexity), true + + case "SubstanceDefinitionCharacterization.resourceType": + if e.complexity.SubstanceDefinitionCharacterization.ResourceType == nil { + break + } + + return e.complexity.SubstanceDefinitionCharacterization.ResourceType(childComplexity), true + + case "SubstanceDefinitionCharacterization.technique": + if e.complexity.SubstanceDefinitionCharacterization.Technique == nil { + break + } + + return e.complexity.SubstanceDefinitionCharacterization.Technique(childComplexity), true + + case "SubstanceDefinitionCode.code": + if e.complexity.SubstanceDefinitionCode.Code == nil { + break + } + + return e.complexity.SubstanceDefinitionCode.Code(childComplexity), true + + case "SubstanceDefinitionCode.extension": + if e.complexity.SubstanceDefinitionCode.Extension == nil { + break + } + + return e.complexity.SubstanceDefinitionCode.Extension(childComplexity), true + + case "SubstanceDefinitionCode.id": + if e.complexity.SubstanceDefinitionCode.ID == nil { + break + } + + return e.complexity.SubstanceDefinitionCode.ID(childComplexity), true + + case "SubstanceDefinitionCode.modifierExtension": + if e.complexity.SubstanceDefinitionCode.ModifierExtension == nil { + break + } + + return e.complexity.SubstanceDefinitionCode.ModifierExtension(childComplexity), true + + case "SubstanceDefinitionCode.note": + if e.complexity.SubstanceDefinitionCode.Note == nil { + break + } + + args, err := ec.field_SubstanceDefinitionCode_note_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SubstanceDefinitionCode.Note(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SubstanceDefinitionCode.resourceType": + if e.complexity.SubstanceDefinitionCode.ResourceType == nil { + break + } + + return e.complexity.SubstanceDefinitionCode.ResourceType(childComplexity), true + + case "SubstanceDefinitionCode.source": + if e.complexity.SubstanceDefinitionCode.Source == nil { + break + } + + args, err := ec.field_SubstanceDefinitionCode_source_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SubstanceDefinitionCode.Source(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SubstanceDefinitionCode.status": + if e.complexity.SubstanceDefinitionCode.Status == nil { + break + } + + return e.complexity.SubstanceDefinitionCode.Status(childComplexity), true + + case "SubstanceDefinitionCode.statusDate": + if e.complexity.SubstanceDefinitionCode.StatusDate == nil { + break + } + + return e.complexity.SubstanceDefinitionCode.StatusDate(childComplexity), true + + case "SubstanceDefinitionMoiety.amountQuantity": + if e.complexity.SubstanceDefinitionMoiety.AmountQuantity == nil { + break + } + + return e.complexity.SubstanceDefinitionMoiety.AmountQuantity(childComplexity), true + + case "SubstanceDefinitionMoiety.amountString": + if e.complexity.SubstanceDefinitionMoiety.AmountString == nil { + break + } + + return e.complexity.SubstanceDefinitionMoiety.AmountString(childComplexity), true + + case "SubstanceDefinitionMoiety.extension": + if e.complexity.SubstanceDefinitionMoiety.Extension == nil { + break + } + + return e.complexity.SubstanceDefinitionMoiety.Extension(childComplexity), true + + case "SubstanceDefinitionMoiety.id": + if e.complexity.SubstanceDefinitionMoiety.ID == nil { + break + } + + return e.complexity.SubstanceDefinitionMoiety.ID(childComplexity), true + + case "SubstanceDefinitionMoiety.identifier": + if e.complexity.SubstanceDefinitionMoiety.Identifier == nil { + break + } + + return e.complexity.SubstanceDefinitionMoiety.Identifier(childComplexity), true + + case "SubstanceDefinitionMoiety.measurementType": + if e.complexity.SubstanceDefinitionMoiety.MeasurementType == nil { + break + } + + return e.complexity.SubstanceDefinitionMoiety.MeasurementType(childComplexity), true + + case "SubstanceDefinitionMoiety.modifierExtension": + if e.complexity.SubstanceDefinitionMoiety.ModifierExtension == nil { + break + } + + return e.complexity.SubstanceDefinitionMoiety.ModifierExtension(childComplexity), true + + case "SubstanceDefinitionMoiety.molecularFormula": + if e.complexity.SubstanceDefinitionMoiety.MolecularFormula == nil { + break + } + + return e.complexity.SubstanceDefinitionMoiety.MolecularFormula(childComplexity), true + + case "SubstanceDefinitionMoiety.name": + if e.complexity.SubstanceDefinitionMoiety.Name == nil { + break + } + + return e.complexity.SubstanceDefinitionMoiety.Name(childComplexity), true + + case "SubstanceDefinitionMoiety.opticalActivity": + if e.complexity.SubstanceDefinitionMoiety.OpticalActivity == nil { + break + } + + return e.complexity.SubstanceDefinitionMoiety.OpticalActivity(childComplexity), true + + case "SubstanceDefinitionMoiety.resourceType": + if e.complexity.SubstanceDefinitionMoiety.ResourceType == nil { + break + } + + return e.complexity.SubstanceDefinitionMoiety.ResourceType(childComplexity), true + + case "SubstanceDefinitionMoiety.role": + if e.complexity.SubstanceDefinitionMoiety.Role == nil { + break + } + + return e.complexity.SubstanceDefinitionMoiety.Role(childComplexity), true + + case "SubstanceDefinitionMoiety.stereochemistry": + if e.complexity.SubstanceDefinitionMoiety.Stereochemistry == nil { + break + } + + return e.complexity.SubstanceDefinitionMoiety.Stereochemistry(childComplexity), true + + case "SubstanceDefinitionMolecularWeight.amount": + if e.complexity.SubstanceDefinitionMolecularWeight.Amount == nil { + break + } + + return e.complexity.SubstanceDefinitionMolecularWeight.Amount(childComplexity), true + + case "SubstanceDefinitionMolecularWeight.extension": + if e.complexity.SubstanceDefinitionMolecularWeight.Extension == nil { + break + } + + return e.complexity.SubstanceDefinitionMolecularWeight.Extension(childComplexity), true + + case "SubstanceDefinitionMolecularWeight.id": + if e.complexity.SubstanceDefinitionMolecularWeight.ID == nil { + break + } + + return e.complexity.SubstanceDefinitionMolecularWeight.ID(childComplexity), true + + case "SubstanceDefinitionMolecularWeight.method": + if e.complexity.SubstanceDefinitionMolecularWeight.Method == nil { + break + } + + return e.complexity.SubstanceDefinitionMolecularWeight.Method(childComplexity), true + + case "SubstanceDefinitionMolecularWeight.modifierExtension": + if e.complexity.SubstanceDefinitionMolecularWeight.ModifierExtension == nil { + break + } + + return e.complexity.SubstanceDefinitionMolecularWeight.ModifierExtension(childComplexity), true + + case "SubstanceDefinitionMolecularWeight.resourceType": + if e.complexity.SubstanceDefinitionMolecularWeight.ResourceType == nil { + break + } + + return e.complexity.SubstanceDefinitionMolecularWeight.ResourceType(childComplexity), true + + case "SubstanceDefinitionMolecularWeight.type": + if e.complexity.SubstanceDefinitionMolecularWeight.Type == nil { + break + } + + return e.complexity.SubstanceDefinitionMolecularWeight.Type(childComplexity), true + + case "SubstanceDefinitionName.domain": + if e.complexity.SubstanceDefinitionName.Domain == nil { + break + } + + return e.complexity.SubstanceDefinitionName.Domain(childComplexity), true + + case "SubstanceDefinitionName.extension": + if e.complexity.SubstanceDefinitionName.Extension == nil { + break + } + + return e.complexity.SubstanceDefinitionName.Extension(childComplexity), true + + case "SubstanceDefinitionName.id": + if e.complexity.SubstanceDefinitionName.ID == nil { + break + } + + return e.complexity.SubstanceDefinitionName.ID(childComplexity), true + + case "SubstanceDefinitionName.jurisdiction": + if e.complexity.SubstanceDefinitionName.Jurisdiction == nil { + break + } + + return e.complexity.SubstanceDefinitionName.Jurisdiction(childComplexity), true + + case "SubstanceDefinitionName.language": + if e.complexity.SubstanceDefinitionName.Language == nil { + break + } + + return e.complexity.SubstanceDefinitionName.Language(childComplexity), true + + case "SubstanceDefinitionName.modifierExtension": + if e.complexity.SubstanceDefinitionName.ModifierExtension == nil { + break + } + + return e.complexity.SubstanceDefinitionName.ModifierExtension(childComplexity), true + + case "SubstanceDefinitionName.name": + if e.complexity.SubstanceDefinitionName.Name == nil { + break + } + + return e.complexity.SubstanceDefinitionName.Name(childComplexity), true + + case "SubstanceDefinitionName.official": + if e.complexity.SubstanceDefinitionName.Official == nil { + break + } + + return e.complexity.SubstanceDefinitionName.Official(childComplexity), true + + case "SubstanceDefinitionName.preferred": + if e.complexity.SubstanceDefinitionName.Preferred == nil { + break + } + + return e.complexity.SubstanceDefinitionName.Preferred(childComplexity), true + + case "SubstanceDefinitionName.resourceType": + if e.complexity.SubstanceDefinitionName.ResourceType == nil { + break + } + + return e.complexity.SubstanceDefinitionName.ResourceType(childComplexity), true + + case "SubstanceDefinitionName.source": + if e.complexity.SubstanceDefinitionName.Source == nil { + break + } + + args, err := ec.field_SubstanceDefinitionName_source_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SubstanceDefinitionName.Source(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SubstanceDefinitionName.status": + if e.complexity.SubstanceDefinitionName.Status == nil { + break + } + + return e.complexity.SubstanceDefinitionName.Status(childComplexity), true + + case "SubstanceDefinitionName.synonym": + if e.complexity.SubstanceDefinitionName.Synonym == nil { + break + } + + return e.complexity.SubstanceDefinitionName.Synonym(childComplexity), true + + case "SubstanceDefinitionName.translation": + if e.complexity.SubstanceDefinitionName.Translation == nil { + break + } + + return e.complexity.SubstanceDefinitionName.Translation(childComplexity), true + + case "SubstanceDefinitionName.type": + if e.complexity.SubstanceDefinitionName.Type == nil { + break + } + + return e.complexity.SubstanceDefinitionName.Type(childComplexity), true + + case "SubstanceDefinitionNameOfficial.authority": + if e.complexity.SubstanceDefinitionNameOfficial.Authority == nil { + break + } + + return e.complexity.SubstanceDefinitionNameOfficial.Authority(childComplexity), true + + case "SubstanceDefinitionNameOfficial.date": + if e.complexity.SubstanceDefinitionNameOfficial.Date == nil { + break + } + + return e.complexity.SubstanceDefinitionNameOfficial.Date(childComplexity), true + + case "SubstanceDefinitionNameOfficial.extension": + if e.complexity.SubstanceDefinitionNameOfficial.Extension == nil { + break + } + + return e.complexity.SubstanceDefinitionNameOfficial.Extension(childComplexity), true + + case "SubstanceDefinitionNameOfficial.id": + if e.complexity.SubstanceDefinitionNameOfficial.ID == nil { + break + } + + return e.complexity.SubstanceDefinitionNameOfficial.ID(childComplexity), true + + case "SubstanceDefinitionNameOfficial.modifierExtension": + if e.complexity.SubstanceDefinitionNameOfficial.ModifierExtension == nil { + break + } + + return e.complexity.SubstanceDefinitionNameOfficial.ModifierExtension(childComplexity), true + + case "SubstanceDefinitionNameOfficial.resourceType": + if e.complexity.SubstanceDefinitionNameOfficial.ResourceType == nil { + break + } + + return e.complexity.SubstanceDefinitionNameOfficial.ResourceType(childComplexity), true + + case "SubstanceDefinitionNameOfficial.status": + if e.complexity.SubstanceDefinitionNameOfficial.Status == nil { + break + } + + return e.complexity.SubstanceDefinitionNameOfficial.Status(childComplexity), true + + case "SubstanceDefinitionProperty.extension": + if e.complexity.SubstanceDefinitionProperty.Extension == nil { + break + } + + return e.complexity.SubstanceDefinitionProperty.Extension(childComplexity), true + + case "SubstanceDefinitionProperty.id": + if e.complexity.SubstanceDefinitionProperty.ID == nil { + break + } + + return e.complexity.SubstanceDefinitionProperty.ID(childComplexity), true + + case "SubstanceDefinitionProperty.modifierExtension": + if e.complexity.SubstanceDefinitionProperty.ModifierExtension == nil { + break + } + + return e.complexity.SubstanceDefinitionProperty.ModifierExtension(childComplexity), true + + case "SubstanceDefinitionProperty.resourceType": + if e.complexity.SubstanceDefinitionProperty.ResourceType == nil { + break + } + + return e.complexity.SubstanceDefinitionProperty.ResourceType(childComplexity), true + + case "SubstanceDefinitionProperty.type": + if e.complexity.SubstanceDefinitionProperty.Type == nil { + break + } + + return e.complexity.SubstanceDefinitionProperty.Type(childComplexity), true + + case "SubstanceDefinitionProperty.valueAttachment": + if e.complexity.SubstanceDefinitionProperty.ValueAttachment == nil { + break + } + + return e.complexity.SubstanceDefinitionProperty.ValueAttachment(childComplexity), true + + case "SubstanceDefinitionProperty.valueBoolean": + if e.complexity.SubstanceDefinitionProperty.ValueBoolean == nil { + break + } + + return e.complexity.SubstanceDefinitionProperty.ValueBoolean(childComplexity), true + + case "SubstanceDefinitionProperty.valueCodeableConcept": + if e.complexity.SubstanceDefinitionProperty.ValueCodeableConcept == nil { + break + } + + return e.complexity.SubstanceDefinitionProperty.ValueCodeableConcept(childComplexity), true + + case "SubstanceDefinitionProperty.valueDate": + if e.complexity.SubstanceDefinitionProperty.ValueDate == nil { + break + } + + return e.complexity.SubstanceDefinitionProperty.ValueDate(childComplexity), true + + case "SubstanceDefinitionProperty.valueQuantity": + if e.complexity.SubstanceDefinitionProperty.ValueQuantity == nil { + break + } + + return e.complexity.SubstanceDefinitionProperty.ValueQuantity(childComplexity), true + + case "SubstanceDefinitionRelationship.amountQuantity": + if e.complexity.SubstanceDefinitionRelationship.AmountQuantity == nil { + break + } + + return e.complexity.SubstanceDefinitionRelationship.AmountQuantity(childComplexity), true + + case "SubstanceDefinitionRelationship.amountRatio": + if e.complexity.SubstanceDefinitionRelationship.AmountRatio == nil { + break + } + + return e.complexity.SubstanceDefinitionRelationship.AmountRatio(childComplexity), true + + case "SubstanceDefinitionRelationship.amountString": + if e.complexity.SubstanceDefinitionRelationship.AmountString == nil { + break + } + + return e.complexity.SubstanceDefinitionRelationship.AmountString(childComplexity), true + + case "SubstanceDefinitionRelationship.comparator": + if e.complexity.SubstanceDefinitionRelationship.Comparator == nil { + break + } + + return e.complexity.SubstanceDefinitionRelationship.Comparator(childComplexity), true + + case "SubstanceDefinitionRelationship.extension": + if e.complexity.SubstanceDefinitionRelationship.Extension == nil { + break + } + + return e.complexity.SubstanceDefinitionRelationship.Extension(childComplexity), true + + case "SubstanceDefinitionRelationship.id": + if e.complexity.SubstanceDefinitionRelationship.ID == nil { + break + } + + return e.complexity.SubstanceDefinitionRelationship.ID(childComplexity), true + + case "SubstanceDefinitionRelationship.isDefining": + if e.complexity.SubstanceDefinitionRelationship.IsDefining == nil { + break + } + + return e.complexity.SubstanceDefinitionRelationship.IsDefining(childComplexity), true + + case "SubstanceDefinitionRelationship.modifierExtension": + if e.complexity.SubstanceDefinitionRelationship.ModifierExtension == nil { + break + } + + return e.complexity.SubstanceDefinitionRelationship.ModifierExtension(childComplexity), true + + case "SubstanceDefinitionRelationship.ratioHighLimitAmount": + if e.complexity.SubstanceDefinitionRelationship.RatioHighLimitAmount == nil { + break + } + + return e.complexity.SubstanceDefinitionRelationship.RatioHighLimitAmount(childComplexity), true + + case "SubstanceDefinitionRelationship.resourceType": + if e.complexity.SubstanceDefinitionRelationship.ResourceType == nil { + break + } + + return e.complexity.SubstanceDefinitionRelationship.ResourceType(childComplexity), true + + case "SubstanceDefinitionRelationship.source": + if e.complexity.SubstanceDefinitionRelationship.Source == nil { + break + } + + args, err := ec.field_SubstanceDefinitionRelationship_source_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SubstanceDefinitionRelationship.Source(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SubstanceDefinitionRelationship.substanceDefinitionCodeableConcept": + if e.complexity.SubstanceDefinitionRelationship.SubstanceDefinitionCodeableConcept == nil { + break + } + + return e.complexity.SubstanceDefinitionRelationship.SubstanceDefinitionCodeableConcept(childComplexity), true + + case "SubstanceDefinitionRelationship.substanceDefinitionReference": + if e.complexity.SubstanceDefinitionRelationship.SubstanceDefinitionReference == nil { + break + } + + args, err := ec.field_SubstanceDefinitionRelationship_substanceDefinitionReference_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SubstanceDefinitionRelationship.SubstanceDefinitionReference(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SubstanceDefinitionRelationship.type": + if e.complexity.SubstanceDefinitionRelationship.Type == nil { + break + } + + return e.complexity.SubstanceDefinitionRelationship.Type(childComplexity), true + + case "SubstanceDefinitionSourceMaterial.countryOfOrigin": + if e.complexity.SubstanceDefinitionSourceMaterial.CountryOfOrigin == nil { + break + } + + return e.complexity.SubstanceDefinitionSourceMaterial.CountryOfOrigin(childComplexity), true + + case "SubstanceDefinitionSourceMaterial.extension": + if e.complexity.SubstanceDefinitionSourceMaterial.Extension == nil { + break + } + + return e.complexity.SubstanceDefinitionSourceMaterial.Extension(childComplexity), true + + case "SubstanceDefinitionSourceMaterial.genus": + if e.complexity.SubstanceDefinitionSourceMaterial.Genus == nil { + break + } + + return e.complexity.SubstanceDefinitionSourceMaterial.Genus(childComplexity), true + + case "SubstanceDefinitionSourceMaterial.id": + if e.complexity.SubstanceDefinitionSourceMaterial.ID == nil { + break + } + + return e.complexity.SubstanceDefinitionSourceMaterial.ID(childComplexity), true + + case "SubstanceDefinitionSourceMaterial.modifierExtension": + if e.complexity.SubstanceDefinitionSourceMaterial.ModifierExtension == nil { + break + } + + return e.complexity.SubstanceDefinitionSourceMaterial.ModifierExtension(childComplexity), true + + case "SubstanceDefinitionSourceMaterial.part": + if e.complexity.SubstanceDefinitionSourceMaterial.Part == nil { + break + } + + return e.complexity.SubstanceDefinitionSourceMaterial.Part(childComplexity), true + + case "SubstanceDefinitionSourceMaterial.resourceType": + if e.complexity.SubstanceDefinitionSourceMaterial.ResourceType == nil { + break + } + + return e.complexity.SubstanceDefinitionSourceMaterial.ResourceType(childComplexity), true + + case "SubstanceDefinitionSourceMaterial.species": + if e.complexity.SubstanceDefinitionSourceMaterial.Species == nil { + break + } + + return e.complexity.SubstanceDefinitionSourceMaterial.Species(childComplexity), true + + case "SubstanceDefinitionSourceMaterial.type": + if e.complexity.SubstanceDefinitionSourceMaterial.Type == nil { + break + } + + return e.complexity.SubstanceDefinitionSourceMaterial.Type(childComplexity), true + + case "SubstanceDefinitionStructure.extension": + if e.complexity.SubstanceDefinitionStructure.Extension == nil { + break + } + + return e.complexity.SubstanceDefinitionStructure.Extension(childComplexity), true + + case "SubstanceDefinitionStructure.id": + if e.complexity.SubstanceDefinitionStructure.ID == nil { + break + } + + return e.complexity.SubstanceDefinitionStructure.ID(childComplexity), true + + case "SubstanceDefinitionStructure.modifierExtension": + if e.complexity.SubstanceDefinitionStructure.ModifierExtension == nil { + break + } + + return e.complexity.SubstanceDefinitionStructure.ModifierExtension(childComplexity), true + + case "SubstanceDefinitionStructure.molecularFormula": + if e.complexity.SubstanceDefinitionStructure.MolecularFormula == nil { + break + } + + return e.complexity.SubstanceDefinitionStructure.MolecularFormula(childComplexity), true + + case "SubstanceDefinitionStructure.molecularFormulaByMoiety": + if e.complexity.SubstanceDefinitionStructure.MolecularFormulaByMoiety == nil { + break + } + + return e.complexity.SubstanceDefinitionStructure.MolecularFormulaByMoiety(childComplexity), true + + case "SubstanceDefinitionStructure.molecularWeight": + if e.complexity.SubstanceDefinitionStructure.MolecularWeight == nil { + break + } + + return e.complexity.SubstanceDefinitionStructure.MolecularWeight(childComplexity), true + + case "SubstanceDefinitionStructure.opticalActivity": + if e.complexity.SubstanceDefinitionStructure.OpticalActivity == nil { + break + } + + return e.complexity.SubstanceDefinitionStructure.OpticalActivity(childComplexity), true + + case "SubstanceDefinitionStructure.representation": + if e.complexity.SubstanceDefinitionStructure.Representation == nil { + break + } + + return e.complexity.SubstanceDefinitionStructure.Representation(childComplexity), true + + case "SubstanceDefinitionStructure.resourceType": + if e.complexity.SubstanceDefinitionStructure.ResourceType == nil { + break + } + + return e.complexity.SubstanceDefinitionStructure.ResourceType(childComplexity), true + + case "SubstanceDefinitionStructure.sourceDocument": + if e.complexity.SubstanceDefinitionStructure.SourceDocument == nil { + break + } + + args, err := ec.field_SubstanceDefinitionStructure_sourceDocument_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SubstanceDefinitionStructure.SourceDocument(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SubstanceDefinitionStructure.stereochemistry": + if e.complexity.SubstanceDefinitionStructure.Stereochemistry == nil { + break + } + + return e.complexity.SubstanceDefinitionStructure.Stereochemistry(childComplexity), true + + case "SubstanceDefinitionStructure.technique": + if e.complexity.SubstanceDefinitionStructure.Technique == nil { + break + } + + return e.complexity.SubstanceDefinitionStructure.Technique(childComplexity), true + + case "SubstanceDefinitionStructureRepresentation.document": + if e.complexity.SubstanceDefinitionStructureRepresentation.Document == nil { + break + } + + args, err := ec.field_SubstanceDefinitionStructureRepresentation_document_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SubstanceDefinitionStructureRepresentation.Document(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SubstanceDefinitionStructureRepresentation.extension": + if e.complexity.SubstanceDefinitionStructureRepresentation.Extension == nil { + break + } + + return e.complexity.SubstanceDefinitionStructureRepresentation.Extension(childComplexity), true + + case "SubstanceDefinitionStructureRepresentation.format": + if e.complexity.SubstanceDefinitionStructureRepresentation.Format == nil { + break + } + + return e.complexity.SubstanceDefinitionStructureRepresentation.Format(childComplexity), true + + case "SubstanceDefinitionStructureRepresentation.id": + if e.complexity.SubstanceDefinitionStructureRepresentation.ID == nil { + break + } + + return e.complexity.SubstanceDefinitionStructureRepresentation.ID(childComplexity), true + + case "SubstanceDefinitionStructureRepresentation.modifierExtension": + if e.complexity.SubstanceDefinitionStructureRepresentation.ModifierExtension == nil { + break + } + + return e.complexity.SubstanceDefinitionStructureRepresentation.ModifierExtension(childComplexity), true + + case "SubstanceDefinitionStructureRepresentation.representation": + if e.complexity.SubstanceDefinitionStructureRepresentation.Representation == nil { + break + } + + return e.complexity.SubstanceDefinitionStructureRepresentation.Representation(childComplexity), true + + case "SubstanceDefinitionStructureRepresentation.resourceType": + if e.complexity.SubstanceDefinitionStructureRepresentation.ResourceType == nil { + break + } + + return e.complexity.SubstanceDefinitionStructureRepresentation.ResourceType(childComplexity), true + + case "SubstanceDefinitionStructureRepresentation.type": + if e.complexity.SubstanceDefinitionStructureRepresentation.Type == nil { + break + } + + return e.complexity.SubstanceDefinitionStructureRepresentation.Type(childComplexity), true + + case "SubstanceDefinitionType.characterization": + if e.complexity.SubstanceDefinitionType.Characterization == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Characterization(childComplexity), true + + case "SubstanceDefinitionType.classification": + if e.complexity.SubstanceDefinitionType.Classification == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Classification(childComplexity), true + + case "SubstanceDefinitionType.code": + if e.complexity.SubstanceDefinitionType.Code == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Code(childComplexity), true + + case "SubstanceDefinitionType.contained": + if e.complexity.SubstanceDefinitionType.Contained == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Contained(childComplexity), true + + case "SubstanceDefinitionType.description": + if e.complexity.SubstanceDefinitionType.Description == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Description(childComplexity), true + + case "SubstanceDefinitionType.domain": + if e.complexity.SubstanceDefinitionType.Domain == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Domain(childComplexity), true + + case "SubstanceDefinitionType.extension": + if e.complexity.SubstanceDefinitionType.Extension == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Extension(childComplexity), true + + case "SubstanceDefinitionType.grade": + if e.complexity.SubstanceDefinitionType.Grade == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Grade(childComplexity), true + + case "SubstanceDefinitionType.id": + if e.complexity.SubstanceDefinitionType.ID == nil { + break + } + + return e.complexity.SubstanceDefinitionType.ID(childComplexity), true + + case "SubstanceDefinitionType.identifier": + if e.complexity.SubstanceDefinitionType.Identifier == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Identifier(childComplexity), true + + case "SubstanceDefinitionType.implicitRules": + if e.complexity.SubstanceDefinitionType.ImplicitRules == nil { + break + } + + return e.complexity.SubstanceDefinitionType.ImplicitRules(childComplexity), true + + case "SubstanceDefinitionType.language": + if e.complexity.SubstanceDefinitionType.Language == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Language(childComplexity), true + + case "SubstanceDefinitionType.manufacturer": + if e.complexity.SubstanceDefinitionType.Manufacturer == nil { + break + } + + args, err := ec.field_SubstanceDefinitionType_manufacturer_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SubstanceDefinitionType.Manufacturer(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SubstanceDefinitionType.meta": + if e.complexity.SubstanceDefinitionType.Meta == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Meta(childComplexity), true + + case "SubstanceDefinitionType.modifierExtension": + if e.complexity.SubstanceDefinitionType.ModifierExtension == nil { + break + } + + return e.complexity.SubstanceDefinitionType.ModifierExtension(childComplexity), true + + case "SubstanceDefinitionType.moiety": + if e.complexity.SubstanceDefinitionType.Moiety == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Moiety(childComplexity), true + + case "SubstanceDefinitionType.molecularWeight": + if e.complexity.SubstanceDefinitionType.MolecularWeight == nil { + break + } + + return e.complexity.SubstanceDefinitionType.MolecularWeight(childComplexity), true + + case "SubstanceDefinitionType.name": + if e.complexity.SubstanceDefinitionType.Name == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Name(childComplexity), true + + case "SubstanceDefinitionType.note": + if e.complexity.SubstanceDefinitionType.Note == nil { + break + } + + args, err := ec.field_SubstanceDefinitionType_note_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SubstanceDefinitionType.Note(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SubstanceDefinitionType.property": + if e.complexity.SubstanceDefinitionType.Property == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Property(childComplexity), true + + case "SubstanceDefinitionType.relationship": + if e.complexity.SubstanceDefinitionType.Relationship == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Relationship(childComplexity), true + + case "SubstanceDefinitionType.resourceType": + if e.complexity.SubstanceDefinitionType.ResourceType == nil { + break + } + + return e.complexity.SubstanceDefinitionType.ResourceType(childComplexity), true + + case "SubstanceDefinitionType.sourceMaterial": + if e.complexity.SubstanceDefinitionType.SourceMaterial == nil { + break + } + + return e.complexity.SubstanceDefinitionType.SourceMaterial(childComplexity), true + + case "SubstanceDefinitionType.status": + if e.complexity.SubstanceDefinitionType.Status == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Status(childComplexity), true + + case "SubstanceDefinitionType.structure": + if e.complexity.SubstanceDefinitionType.Structure == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Structure(childComplexity), true + + case "SubstanceDefinitionType.supplier": + if e.complexity.SubstanceDefinitionType.Supplier == nil { + break + } + + args, err := ec.field_SubstanceDefinitionType_supplier_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SubstanceDefinitionType.Supplier(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SubstanceDefinitionType.text": + if e.complexity.SubstanceDefinitionType.Text == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Text(childComplexity), true + + case "SubstanceDefinitionType.version": + if e.complexity.SubstanceDefinitionType.Version == nil { + break + } + + return e.complexity.SubstanceDefinitionType.Version(childComplexity), true + + case "SubstanceIngredient.extension": + if e.complexity.SubstanceIngredient.Extension == nil { + break + } + + return e.complexity.SubstanceIngredient.Extension(childComplexity), true + + case "SubstanceIngredient.id": + if e.complexity.SubstanceIngredient.ID == nil { + break + } + + return e.complexity.SubstanceIngredient.ID(childComplexity), true + + case "SubstanceIngredient.modifierExtension": + if e.complexity.SubstanceIngredient.ModifierExtension == nil { + break + } + + return e.complexity.SubstanceIngredient.ModifierExtension(childComplexity), true + + case "SubstanceIngredient.quantity": + if e.complexity.SubstanceIngredient.Quantity == nil { + break + } + + return e.complexity.SubstanceIngredient.Quantity(childComplexity), true + + case "SubstanceIngredient.resourceType": + if e.complexity.SubstanceIngredient.ResourceType == nil { + break + } + + return e.complexity.SubstanceIngredient.ResourceType(childComplexity), true + + case "SubstanceIngredient.substanceCodeableConcept": + if e.complexity.SubstanceIngredient.SubstanceCodeableConcept == nil { + break + } + + return e.complexity.SubstanceIngredient.SubstanceCodeableConcept(childComplexity), true + + case "SubstanceIngredient.substanceReference": + if e.complexity.SubstanceIngredient.SubstanceReference == nil { + break + } + + args, err := ec.field_SubstanceIngredient_substanceReference_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SubstanceIngredient.SubstanceReference(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "SubstanceType.category": + if e.complexity.SubstanceType.Category == nil { + break + } + + return e.complexity.SubstanceType.Category(childComplexity), true + + case "SubstanceType.code": + if e.complexity.SubstanceType.Code == nil { + break + } + + return e.complexity.SubstanceType.Code(childComplexity), true + + case "SubstanceType.contained": + if e.complexity.SubstanceType.Contained == nil { + break + } + + return e.complexity.SubstanceType.Contained(childComplexity), true + + case "SubstanceType.description": + if e.complexity.SubstanceType.Description == nil { + break + } + + return e.complexity.SubstanceType.Description(childComplexity), true + + case "SubstanceType.expiry": + if e.complexity.SubstanceType.Expiry == nil { + break + } + + return e.complexity.SubstanceType.Expiry(childComplexity), true + + case "SubstanceType.extension": + if e.complexity.SubstanceType.Extension == nil { + break + } + + return e.complexity.SubstanceType.Extension(childComplexity), true + + case "SubstanceType.id": + if e.complexity.SubstanceType.ID == nil { + break + } + + return e.complexity.SubstanceType.ID(childComplexity), true + + case "SubstanceType.identifier": + if e.complexity.SubstanceType.Identifier == nil { + break + } + + return e.complexity.SubstanceType.Identifier(childComplexity), true + + case "SubstanceType.implicitRules": + if e.complexity.SubstanceType.ImplicitRules == nil { + break + } + + return e.complexity.SubstanceType.ImplicitRules(childComplexity), true + + case "SubstanceType.ingredient": + if e.complexity.SubstanceType.Ingredient == nil { + break + } + + return e.complexity.SubstanceType.Ingredient(childComplexity), true + + case "SubstanceType.instance": + if e.complexity.SubstanceType.Instance == nil { + break + } + + return e.complexity.SubstanceType.Instance(childComplexity), true + + case "SubstanceType.language": + if e.complexity.SubstanceType.Language == nil { + break + } + + return e.complexity.SubstanceType.Language(childComplexity), true + + case "SubstanceType.meta": + if e.complexity.SubstanceType.Meta == nil { + break + } + + return e.complexity.SubstanceType.Meta(childComplexity), true + + case "SubstanceType.modifierExtension": + if e.complexity.SubstanceType.ModifierExtension == nil { + break + } + + return e.complexity.SubstanceType.ModifierExtension(childComplexity), true + + case "SubstanceType.quantity": + if e.complexity.SubstanceType.Quantity == nil { + break + } + + return e.complexity.SubstanceType.Quantity(childComplexity), true + + case "SubstanceType.resourceType": + if e.complexity.SubstanceType.ResourceType == nil { + break + } + + return e.complexity.SubstanceType.ResourceType(childComplexity), true + + case "SubstanceType.status": + if e.complexity.SubstanceType.Status == nil { + break + } + + return e.complexity.SubstanceType.Status(childComplexity), true + + case "SubstanceType.text": + if e.complexity.SubstanceType.Text == nil { + break + } + + return e.complexity.SubstanceType.Text(childComplexity), true + + case "TaskInput.extension": + if e.complexity.TaskInput.Extension == nil { + break + } + + return e.complexity.TaskInput.Extension(childComplexity), true + + case "TaskInput.id": + if e.complexity.TaskInput.ID == nil { + break + } + + return e.complexity.TaskInput.ID(childComplexity), true + + case "TaskInput.modifierExtension": + if e.complexity.TaskInput.ModifierExtension == nil { + break + } + + return e.complexity.TaskInput.ModifierExtension(childComplexity), true + + case "TaskInput.resourceType": + if e.complexity.TaskInput.ResourceType == nil { + break + } + + return e.complexity.TaskInput.ResourceType(childComplexity), true + + case "TaskInput.type": + if e.complexity.TaskInput.Type == nil { + break + } + + return e.complexity.TaskInput.Type(childComplexity), true + + case "TaskInput.valueAddress": + if e.complexity.TaskInput.ValueAddress == nil { + break + } + + return e.complexity.TaskInput.ValueAddress(childComplexity), true + + case "TaskInput.valueAge": + if e.complexity.TaskInput.ValueAge == nil { + break + } + + return e.complexity.TaskInput.ValueAge(childComplexity), true + + case "TaskInput.valueAnnotation": + if e.complexity.TaskInput.ValueAnnotation == nil { + break + } + + args, err := ec.field_TaskInput_valueAnnotation_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.TaskInput.ValueAnnotation(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "TaskInput.valueAttachment": + if e.complexity.TaskInput.ValueAttachment == nil { + break + } + + return e.complexity.TaskInput.ValueAttachment(childComplexity), true + + case "TaskInput.valueAvailability": + if e.complexity.TaskInput.ValueAvailability == nil { + break + } + + return e.complexity.TaskInput.ValueAvailability(childComplexity), true + + case "TaskInput.valueBase64Binary": + if e.complexity.TaskInput.ValueBase64Binary == nil { + break + } + + return e.complexity.TaskInput.ValueBase64Binary(childComplexity), true + + case "TaskInput.valueBoolean": + if e.complexity.TaskInput.ValueBoolean == nil { + break + } + + return e.complexity.TaskInput.ValueBoolean(childComplexity), true + + case "TaskInput.valueCanonical": + if e.complexity.TaskInput.ValueCanonical == nil { + break + } + + return e.complexity.TaskInput.ValueCanonical(childComplexity), true + + case "TaskInput.valueCode": + if e.complexity.TaskInput.ValueCode == nil { + break + } + + return e.complexity.TaskInput.ValueCode(childComplexity), true + + case "TaskInput.valueCodeableConcept": + if e.complexity.TaskInput.ValueCodeableConcept == nil { + break + } + + return e.complexity.TaskInput.ValueCodeableConcept(childComplexity), true + + case "TaskInput.valueCodeableReference": + if e.complexity.TaskInput.ValueCodeableReference == nil { + break + } + + return e.complexity.TaskInput.ValueCodeableReference(childComplexity), true + + case "TaskInput.valueCoding": + if e.complexity.TaskInput.ValueCoding == nil { + break + } + + return e.complexity.TaskInput.ValueCoding(childComplexity), true + + case "TaskInput.valueContactDetail": + if e.complexity.TaskInput.ValueContactDetail == nil { + break + } + + return e.complexity.TaskInput.ValueContactDetail(childComplexity), true + + case "TaskInput.valueContactPoint": + if e.complexity.TaskInput.ValueContactPoint == nil { + break + } + + return e.complexity.TaskInput.ValueContactPoint(childComplexity), true + + case "TaskInput.valueCount": + if e.complexity.TaskInput.ValueCount == nil { + break + } + + return e.complexity.TaskInput.ValueCount(childComplexity), true + + case "TaskInput.valueDataRequirement": + if e.complexity.TaskInput.ValueDataRequirement == nil { + break + } + + return e.complexity.TaskInput.ValueDataRequirement(childComplexity), true + + case "TaskInput.valueDate": + if e.complexity.TaskInput.ValueDate == nil { + break + } + + return e.complexity.TaskInput.ValueDate(childComplexity), true + + case "TaskInput.valueDateTime": + if e.complexity.TaskInput.ValueDateTime == nil { + break + } + + return e.complexity.TaskInput.ValueDateTime(childComplexity), true + + case "TaskInput.valueDecimal": + if e.complexity.TaskInput.ValueDecimal == nil { + break + } + + return e.complexity.TaskInput.ValueDecimal(childComplexity), true + + case "TaskInput.valueDistance": + if e.complexity.TaskInput.ValueDistance == nil { + break + } + + return e.complexity.TaskInput.ValueDistance(childComplexity), true + + case "TaskInput.valueDosage": + if e.complexity.TaskInput.ValueDosage == nil { + break + } + + return e.complexity.TaskInput.ValueDosage(childComplexity), true + + case "TaskInput.valueDuration": + if e.complexity.TaskInput.ValueDuration == nil { + break + } + + return e.complexity.TaskInput.ValueDuration(childComplexity), true + + case "TaskInput.valueExpression": + if e.complexity.TaskInput.ValueExpression == nil { + break + } + + return e.complexity.TaskInput.ValueExpression(childComplexity), true + + case "TaskInput.valueExtendedContactDetail": + if e.complexity.TaskInput.ValueExtendedContactDetail == nil { + break + } + + return e.complexity.TaskInput.ValueExtendedContactDetail(childComplexity), true + + case "TaskInput.valueHumanName": + if e.complexity.TaskInput.ValueHumanName == nil { + break + } + + return e.complexity.TaskInput.ValueHumanName(childComplexity), true + + case "TaskInput.valueId": + if e.complexity.TaskInput.ValueID == nil { + break + } + + return e.complexity.TaskInput.ValueID(childComplexity), true + + case "TaskInput.valueIdentifier": + if e.complexity.TaskInput.ValueIdentifier == nil { + break + } + + return e.complexity.TaskInput.ValueIdentifier(childComplexity), true + + case "TaskInput.valueInstant": + if e.complexity.TaskInput.ValueInstant == nil { + break + } + + return e.complexity.TaskInput.ValueInstant(childComplexity), true + + case "TaskInput.valueInteger": + if e.complexity.TaskInput.ValueInteger == nil { + break + } + + return e.complexity.TaskInput.ValueInteger(childComplexity), true + + case "TaskInput.valueInteger64": + if e.complexity.TaskInput.ValueInteger64 == nil { + break + } + + return e.complexity.TaskInput.ValueInteger64(childComplexity), true + + case "TaskInput.valueMarkdown": + if e.complexity.TaskInput.ValueMarkdown == nil { + break + } + + return e.complexity.TaskInput.ValueMarkdown(childComplexity), true + + case "TaskInput.valueMeta": + if e.complexity.TaskInput.ValueMeta == nil { + break + } + + return e.complexity.TaskInput.ValueMeta(childComplexity), true + + case "TaskInput.valueMoney": + if e.complexity.TaskInput.ValueMoney == nil { + break + } + + return e.complexity.TaskInput.ValueMoney(childComplexity), true + + case "TaskInput.valueOid": + if e.complexity.TaskInput.ValueOid == nil { + break + } + + return e.complexity.TaskInput.ValueOid(childComplexity), true + + case "TaskInput.valueParameterDefinition": + if e.complexity.TaskInput.ValueParameterDefinition == nil { + break + } + + return e.complexity.TaskInput.ValueParameterDefinition(childComplexity), true + + case "TaskInput.valuePeriod": + if e.complexity.TaskInput.ValuePeriod == nil { + break + } + + return e.complexity.TaskInput.ValuePeriod(childComplexity), true + + case "TaskInput.valuePositiveInt": + if e.complexity.TaskInput.ValuePositiveInt == nil { + break + } + + return e.complexity.TaskInput.ValuePositiveInt(childComplexity), true + + case "TaskInput.valueQuantity": + if e.complexity.TaskInput.ValueQuantity == nil { + break + } + + return e.complexity.TaskInput.ValueQuantity(childComplexity), true + + case "TaskInput.valueRange": + if e.complexity.TaskInput.ValueRange == nil { + break + } + + return e.complexity.TaskInput.ValueRange(childComplexity), true + + case "TaskInput.valueRatio": + if e.complexity.TaskInput.ValueRatio == nil { + break + } + + return e.complexity.TaskInput.ValueRatio(childComplexity), true + + case "TaskInput.valueRatioRange": + if e.complexity.TaskInput.ValueRatioRange == nil { + break + } + + return e.complexity.TaskInput.ValueRatioRange(childComplexity), true + + case "TaskInput.valueRelatedArtifact": + if e.complexity.TaskInput.ValueRelatedArtifact == nil { + break + } + + return e.complexity.TaskInput.ValueRelatedArtifact(childComplexity), true + + case "TaskInput.valueSampledData": + if e.complexity.TaskInput.ValueSampledData == nil { + break + } + + return e.complexity.TaskInput.ValueSampledData(childComplexity), true + + case "TaskInput.valueSignature": + if e.complexity.TaskInput.ValueSignature == nil { + break + } + + args, err := ec.field_TaskInput_valueSignature_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.TaskInput.ValueSignature(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "TaskInput.valueString": + if e.complexity.TaskInput.ValueString == nil { + break + } + + return e.complexity.TaskInput.ValueString(childComplexity), true + + case "TaskInput.valueTime": + if e.complexity.TaskInput.ValueTime == nil { + break + } + + return e.complexity.TaskInput.ValueTime(childComplexity), true + + case "TaskInput.valueTiming": + if e.complexity.TaskInput.ValueTiming == nil { + break + } + + return e.complexity.TaskInput.ValueTiming(childComplexity), true + + case "TaskInput.valueTriggerDefinition": + if e.complexity.TaskInput.ValueTriggerDefinition == nil { + break + } + + return e.complexity.TaskInput.ValueTriggerDefinition(childComplexity), true + + case "TaskInput.valueUri": + if e.complexity.TaskInput.ValueURI == nil { + break + } + + return e.complexity.TaskInput.ValueURI(childComplexity), true + + case "TaskInput.valueUrl": + if e.complexity.TaskInput.ValueURL == nil { + break + } + + return e.complexity.TaskInput.ValueURL(childComplexity), true + + case "TaskInput.valueUuid": + if e.complexity.TaskInput.ValueUUID == nil { + break + } + + return e.complexity.TaskInput.ValueUUID(childComplexity), true + + case "TaskInput.valueUnsignedInt": + if e.complexity.TaskInput.ValueUnsignedInt == nil { + break + } + + return e.complexity.TaskInput.ValueUnsignedInt(childComplexity), true + + case "TaskInput.valueUsageContext": + if e.complexity.TaskInput.ValueUsageContext == nil { + break + } + + args, err := ec.field_TaskInput_valueUsageContext_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.TaskInput.ValueUsageContext(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "TaskOutput.extension": + if e.complexity.TaskOutput.Extension == nil { + break + } + + return e.complexity.TaskOutput.Extension(childComplexity), true + + case "TaskOutput.id": + if e.complexity.TaskOutput.ID == nil { + break + } + + return e.complexity.TaskOutput.ID(childComplexity), true + + case "TaskOutput.modifierExtension": + if e.complexity.TaskOutput.ModifierExtension == nil { + break + } + + return e.complexity.TaskOutput.ModifierExtension(childComplexity), true + + case "TaskOutput.resourceType": + if e.complexity.TaskOutput.ResourceType == nil { + break + } + + return e.complexity.TaskOutput.ResourceType(childComplexity), true + + case "TaskOutput.type": + if e.complexity.TaskOutput.Type == nil { + break + } + + return e.complexity.TaskOutput.Type(childComplexity), true + + case "TaskOutput.valueAddress": + if e.complexity.TaskOutput.ValueAddress == nil { + break + } + + return e.complexity.TaskOutput.ValueAddress(childComplexity), true + + case "TaskOutput.valueAge": + if e.complexity.TaskOutput.ValueAge == nil { + break + } + + return e.complexity.TaskOutput.ValueAge(childComplexity), true + + case "TaskOutput.valueAnnotation": + if e.complexity.TaskOutput.ValueAnnotation == nil { + break + } + + args, err := ec.field_TaskOutput_valueAnnotation_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.TaskOutput.ValueAnnotation(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "TaskOutput.valueAttachment": + if e.complexity.TaskOutput.ValueAttachment == nil { + break + } + + return e.complexity.TaskOutput.ValueAttachment(childComplexity), true + + case "TaskOutput.valueAvailability": + if e.complexity.TaskOutput.ValueAvailability == nil { + break + } + + return e.complexity.TaskOutput.ValueAvailability(childComplexity), true + + case "TaskOutput.valueBase64Binary": + if e.complexity.TaskOutput.ValueBase64Binary == nil { + break + } + + return e.complexity.TaskOutput.ValueBase64Binary(childComplexity), true + + case "TaskOutput.valueBoolean": + if e.complexity.TaskOutput.ValueBoolean == nil { + break + } + + return e.complexity.TaskOutput.ValueBoolean(childComplexity), true + + case "TaskOutput.valueCanonical": + if e.complexity.TaskOutput.ValueCanonical == nil { + break + } + + return e.complexity.TaskOutput.ValueCanonical(childComplexity), true + + case "TaskOutput.valueCode": + if e.complexity.TaskOutput.ValueCode == nil { + break + } + + return e.complexity.TaskOutput.ValueCode(childComplexity), true + + case "TaskOutput.valueCodeableConcept": + if e.complexity.TaskOutput.ValueCodeableConcept == nil { + break + } + + return e.complexity.TaskOutput.ValueCodeableConcept(childComplexity), true + + case "TaskOutput.valueCodeableReference": + if e.complexity.TaskOutput.ValueCodeableReference == nil { + break + } + + return e.complexity.TaskOutput.ValueCodeableReference(childComplexity), true + + case "TaskOutput.valueCoding": + if e.complexity.TaskOutput.ValueCoding == nil { + break + } + + return e.complexity.TaskOutput.ValueCoding(childComplexity), true + + case "TaskOutput.valueContactDetail": + if e.complexity.TaskOutput.ValueContactDetail == nil { + break + } + + return e.complexity.TaskOutput.ValueContactDetail(childComplexity), true + + case "TaskOutput.valueContactPoint": + if e.complexity.TaskOutput.ValueContactPoint == nil { + break + } + + return e.complexity.TaskOutput.ValueContactPoint(childComplexity), true + + case "TaskOutput.valueCount": + if e.complexity.TaskOutput.ValueCount == nil { + break + } + + return e.complexity.TaskOutput.ValueCount(childComplexity), true + + case "TaskOutput.valueDataRequirement": + if e.complexity.TaskOutput.ValueDataRequirement == nil { + break + } + + return e.complexity.TaskOutput.ValueDataRequirement(childComplexity), true + + case "TaskOutput.valueDate": + if e.complexity.TaskOutput.ValueDate == nil { + break + } + + return e.complexity.TaskOutput.ValueDate(childComplexity), true + + case "TaskOutput.valueDateTime": + if e.complexity.TaskOutput.ValueDateTime == nil { + break + } + + return e.complexity.TaskOutput.ValueDateTime(childComplexity), true + + case "TaskOutput.valueDecimal": + if e.complexity.TaskOutput.ValueDecimal == nil { + break + } + + return e.complexity.TaskOutput.ValueDecimal(childComplexity), true + + case "TaskOutput.valueDistance": + if e.complexity.TaskOutput.ValueDistance == nil { + break + } + + return e.complexity.TaskOutput.ValueDistance(childComplexity), true + + case "TaskOutput.valueDosage": + if e.complexity.TaskOutput.ValueDosage == nil { + break + } + + return e.complexity.TaskOutput.ValueDosage(childComplexity), true + + case "TaskOutput.valueDuration": + if e.complexity.TaskOutput.ValueDuration == nil { + break + } + + return e.complexity.TaskOutput.ValueDuration(childComplexity), true + + case "TaskOutput.valueExpression": + if e.complexity.TaskOutput.ValueExpression == nil { + break + } + + return e.complexity.TaskOutput.ValueExpression(childComplexity), true + + case "TaskOutput.valueExtendedContactDetail": + if e.complexity.TaskOutput.ValueExtendedContactDetail == nil { + break + } + + return e.complexity.TaskOutput.ValueExtendedContactDetail(childComplexity), true + + case "TaskOutput.valueHumanName": + if e.complexity.TaskOutput.ValueHumanName == nil { + break + } + + return e.complexity.TaskOutput.ValueHumanName(childComplexity), true + + case "TaskOutput.valueId": + if e.complexity.TaskOutput.ValueID == nil { + break + } + + return e.complexity.TaskOutput.ValueID(childComplexity), true + + case "TaskOutput.valueIdentifier": + if e.complexity.TaskOutput.ValueIdentifier == nil { + break + } + + return e.complexity.TaskOutput.ValueIdentifier(childComplexity), true + + case "TaskOutput.valueInstant": + if e.complexity.TaskOutput.ValueInstant == nil { + break + } + + return e.complexity.TaskOutput.ValueInstant(childComplexity), true + + case "TaskOutput.valueInteger": + if e.complexity.TaskOutput.ValueInteger == nil { + break + } + + return e.complexity.TaskOutput.ValueInteger(childComplexity), true + + case "TaskOutput.valueInteger64": + if e.complexity.TaskOutput.ValueInteger64 == nil { + break + } + + return e.complexity.TaskOutput.ValueInteger64(childComplexity), true + + case "TaskOutput.valueMarkdown": + if e.complexity.TaskOutput.ValueMarkdown == nil { + break + } + + return e.complexity.TaskOutput.ValueMarkdown(childComplexity), true + + case "TaskOutput.valueMeta": + if e.complexity.TaskOutput.ValueMeta == nil { + break + } + + return e.complexity.TaskOutput.ValueMeta(childComplexity), true + + case "TaskOutput.valueMoney": + if e.complexity.TaskOutput.ValueMoney == nil { + break + } + + return e.complexity.TaskOutput.ValueMoney(childComplexity), true + + case "TaskOutput.valueOid": + if e.complexity.TaskOutput.ValueOid == nil { + break + } + + return e.complexity.TaskOutput.ValueOid(childComplexity), true + + case "TaskOutput.valueParameterDefinition": + if e.complexity.TaskOutput.ValueParameterDefinition == nil { + break + } + + return e.complexity.TaskOutput.ValueParameterDefinition(childComplexity), true + + case "TaskOutput.valuePeriod": + if e.complexity.TaskOutput.ValuePeriod == nil { + break + } + + return e.complexity.TaskOutput.ValuePeriod(childComplexity), true + + case "TaskOutput.valuePositiveInt": + if e.complexity.TaskOutput.ValuePositiveInt == nil { + break + } + + return e.complexity.TaskOutput.ValuePositiveInt(childComplexity), true + + case "TaskOutput.valueQuantity": + if e.complexity.TaskOutput.ValueQuantity == nil { + break + } + + return e.complexity.TaskOutput.ValueQuantity(childComplexity), true + + case "TaskOutput.valueRange": + if e.complexity.TaskOutput.ValueRange == nil { + break + } + + return e.complexity.TaskOutput.ValueRange(childComplexity), true + + case "TaskOutput.valueRatio": + if e.complexity.TaskOutput.ValueRatio == nil { + break + } + + return e.complexity.TaskOutput.ValueRatio(childComplexity), true + + case "TaskOutput.valueRatioRange": + if e.complexity.TaskOutput.ValueRatioRange == nil { + break + } + + return e.complexity.TaskOutput.ValueRatioRange(childComplexity), true + + case "TaskOutput.valueRelatedArtifact": + if e.complexity.TaskOutput.ValueRelatedArtifact == nil { + break + } + + return e.complexity.TaskOutput.ValueRelatedArtifact(childComplexity), true + + case "TaskOutput.valueSampledData": + if e.complexity.TaskOutput.ValueSampledData == nil { + break + } + + return e.complexity.TaskOutput.ValueSampledData(childComplexity), true + + case "TaskOutput.valueSignature": + if e.complexity.TaskOutput.ValueSignature == nil { + break + } + + args, err := ec.field_TaskOutput_valueSignature_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.TaskOutput.ValueSignature(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "TaskOutput.valueString": + if e.complexity.TaskOutput.ValueString == nil { + break + } + + return e.complexity.TaskOutput.ValueString(childComplexity), true + + case "TaskOutput.valueTime": + if e.complexity.TaskOutput.ValueTime == nil { + break + } + + return e.complexity.TaskOutput.ValueTime(childComplexity), true + + case "TaskOutput.valueTiming": + if e.complexity.TaskOutput.ValueTiming == nil { + break + } + + return e.complexity.TaskOutput.ValueTiming(childComplexity), true + + case "TaskOutput.valueTriggerDefinition": + if e.complexity.TaskOutput.ValueTriggerDefinition == nil { + break + } + + return e.complexity.TaskOutput.ValueTriggerDefinition(childComplexity), true + + case "TaskOutput.valueUri": + if e.complexity.TaskOutput.ValueURI == nil { + break + } + + return e.complexity.TaskOutput.ValueURI(childComplexity), true + + case "TaskOutput.valueUrl": + if e.complexity.TaskOutput.ValueURL == nil { + break + } + + return e.complexity.TaskOutput.ValueURL(childComplexity), true + + case "TaskOutput.valueUuid": + if e.complexity.TaskOutput.ValueUUID == nil { + break + } + + return e.complexity.TaskOutput.ValueUUID(childComplexity), true + + case "TaskOutput.valueUnsignedInt": + if e.complexity.TaskOutput.ValueUnsignedInt == nil { + break + } + + return e.complexity.TaskOutput.ValueUnsignedInt(childComplexity), true + + case "TaskOutput.valueUsageContext": + if e.complexity.TaskOutput.ValueUsageContext == nil { + break + } + + args, err := ec.field_TaskOutput_valueUsageContext_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.TaskOutput.ValueUsageContext(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "TaskPerformer.actor": + if e.complexity.TaskPerformer.Actor == nil { + break + } + + args, err := ec.field_TaskPerformer_actor_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.TaskPerformer.Actor(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "TaskPerformer.extension": + if e.complexity.TaskPerformer.Extension == nil { + break + } + + return e.complexity.TaskPerformer.Extension(childComplexity), true + + case "TaskPerformer.function": + if e.complexity.TaskPerformer.Function == nil { + break + } + + return e.complexity.TaskPerformer.Function(childComplexity), true + + case "TaskPerformer.id": + if e.complexity.TaskPerformer.ID == nil { + break + } + + return e.complexity.TaskPerformer.ID(childComplexity), true + + case "TaskPerformer.modifierExtension": + if e.complexity.TaskPerformer.ModifierExtension == nil { + break + } + + return e.complexity.TaskPerformer.ModifierExtension(childComplexity), true + + case "TaskPerformer.resourceType": + if e.complexity.TaskPerformer.ResourceType == nil { + break + } + + return e.complexity.TaskPerformer.ResourceType(childComplexity), true + + case "TaskRestriction.extension": + if e.complexity.TaskRestriction.Extension == nil { + break + } + + return e.complexity.TaskRestriction.Extension(childComplexity), true + + case "TaskRestriction.id": + if e.complexity.TaskRestriction.ID == nil { + break + } + + return e.complexity.TaskRestriction.ID(childComplexity), true + + case "TaskRestriction.modifierExtension": + if e.complexity.TaskRestriction.ModifierExtension == nil { + break + } + + return e.complexity.TaskRestriction.ModifierExtension(childComplexity), true + + case "TaskRestriction.period": + if e.complexity.TaskRestriction.Period == nil { + break + } + + return e.complexity.TaskRestriction.Period(childComplexity), true + + case "TaskRestriction.recipient": + if e.complexity.TaskRestriction.Recipient == nil { + break + } + + args, err := ec.field_TaskRestriction_recipient_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.TaskRestriction.Recipient(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "TaskRestriction.repetitions": + if e.complexity.TaskRestriction.Repetitions == nil { + break + } + + return e.complexity.TaskRestriction.Repetitions(childComplexity), true + + case "TaskRestriction.resourceType": + if e.complexity.TaskRestriction.ResourceType == nil { + break + } + + return e.complexity.TaskRestriction.ResourceType(childComplexity), true + + case "TaskType.authoredOn": + if e.complexity.TaskType.AuthoredOn == nil { + break + } + + return e.complexity.TaskType.AuthoredOn(childComplexity), true + + case "TaskType.basedOn": + if e.complexity.TaskType.BasedOn == nil { + break + } + + args, err := ec.field_TaskType_basedOn_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.TaskType.BasedOn(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "TaskType.businessStatus": + if e.complexity.TaskType.BusinessStatus == nil { + break + } + + return e.complexity.TaskType.BusinessStatus(childComplexity), true + + case "TaskType.code": + if e.complexity.TaskType.Code == nil { + break + } + + return e.complexity.TaskType.Code(childComplexity), true + + case "TaskType.contained": + if e.complexity.TaskType.Contained == nil { + break + } + + return e.complexity.TaskType.Contained(childComplexity), true + + case "TaskType.description": + if e.complexity.TaskType.Description == nil { + break + } + + return e.complexity.TaskType.Description(childComplexity), true + + case "TaskType.doNotPerform": + if e.complexity.TaskType.DoNotPerform == nil { + break + } + + return e.complexity.TaskType.DoNotPerform(childComplexity), true + + case "TaskType.executionPeriod": + if e.complexity.TaskType.ExecutionPeriod == nil { + break + } + + return e.complexity.TaskType.ExecutionPeriod(childComplexity), true + + case "TaskType.extension": + if e.complexity.TaskType.Extension == nil { + break + } + + return e.complexity.TaskType.Extension(childComplexity), true + + case "TaskType.focus": + if e.complexity.TaskType.Focus == nil { + break + } + + args, err := ec.field_TaskType_focus_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.TaskType.Focus(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "TaskType.groupIdentifier": + if e.complexity.TaskType.GroupIdentifier == nil { + break + } + + return e.complexity.TaskType.GroupIdentifier(childComplexity), true + + case "TaskType.id": + if e.complexity.TaskType.ID == nil { + break + } + + return e.complexity.TaskType.ID(childComplexity), true + + case "TaskType.identifier": + if e.complexity.TaskType.Identifier == nil { + break + } + + return e.complexity.TaskType.Identifier(childComplexity), true + + case "TaskType.implicitRules": + if e.complexity.TaskType.ImplicitRules == nil { + break + } + + return e.complexity.TaskType.ImplicitRules(childComplexity), true + + case "TaskType.input": + if e.complexity.TaskType.Input == nil { + break + } + + return e.complexity.TaskType.Input(childComplexity), true + + case "TaskType.instantiatesCanonical": + if e.complexity.TaskType.InstantiatesCanonical == nil { + break + } + + return e.complexity.TaskType.InstantiatesCanonical(childComplexity), true + + case "TaskType.instantiatesUri": + if e.complexity.TaskType.InstantiatesURI == nil { + break + } + + return e.complexity.TaskType.InstantiatesURI(childComplexity), true + + case "TaskType.intent": + if e.complexity.TaskType.Intent == nil { + break + } + + return e.complexity.TaskType.Intent(childComplexity), true + + case "TaskType.language": + if e.complexity.TaskType.Language == nil { + break + } + + return e.complexity.TaskType.Language(childComplexity), true + + case "TaskType.lastModified": + if e.complexity.TaskType.LastModified == nil { + break + } + + return e.complexity.TaskType.LastModified(childComplexity), true + + case "TaskType.meta": + if e.complexity.TaskType.Meta == nil { + break + } + + return e.complexity.TaskType.Meta(childComplexity), true + + case "TaskType.modifierExtension": + if e.complexity.TaskType.ModifierExtension == nil { + break + } + + return e.complexity.TaskType.ModifierExtension(childComplexity), true + + case "TaskType.note": + if e.complexity.TaskType.Note == nil { + break + } + + args, err := ec.field_TaskType_note_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.TaskType.Note(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "TaskType.output": + if e.complexity.TaskType.Output == nil { + break + } + + return e.complexity.TaskType.Output(childComplexity), true + + case "TaskType.owner": + if e.complexity.TaskType.Owner == nil { + break + } + + args, err := ec.field_TaskType_owner_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.TaskType.Owner(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "TaskType.partOf": + if e.complexity.TaskType.PartOf == nil { + break + } + + args, err := ec.field_TaskType_partOf_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.TaskType.PartOf(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "TaskType.performer": + if e.complexity.TaskType.Performer == nil { + break + } + + args, err := ec.field_TaskType_performer_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.TaskType.Performer(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "TaskType.priority": + if e.complexity.TaskType.Priority == nil { + break + } + + return e.complexity.TaskType.Priority(childComplexity), true + + case "TaskType.reason": + if e.complexity.TaskType.Reason == nil { + break + } + + return e.complexity.TaskType.Reason(childComplexity), true + + case "TaskType.requestedPerformer": + if e.complexity.TaskType.RequestedPerformer == nil { + break + } + + return e.complexity.TaskType.RequestedPerformer(childComplexity), true + + case "TaskType.requestedPeriod": + if e.complexity.TaskType.RequestedPeriod == nil { + break + } + + return e.complexity.TaskType.RequestedPeriod(childComplexity), true + + case "TaskType.requester": + if e.complexity.TaskType.Requester == nil { + break + } + + args, err := ec.field_TaskType_requester_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.TaskType.Requester(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "TaskType.resourceType": + if e.complexity.TaskType.ResourceType == nil { + break + } + + return e.complexity.TaskType.ResourceType(childComplexity), true + + case "TaskType.restriction": + if e.complexity.TaskType.Restriction == nil { + break + } + + args, err := ec.field_TaskType_restriction_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.TaskType.Restriction(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "TaskType.status": + if e.complexity.TaskType.Status == nil { + break + } + + return e.complexity.TaskType.Status(childComplexity), true + + case "TaskType.statusReason": + if e.complexity.TaskType.StatusReason == nil { + break + } + + return e.complexity.TaskType.StatusReason(childComplexity), true + + case "TaskType.text": + if e.complexity.TaskType.Text == nil { + break + } + + return e.complexity.TaskType.Text(childComplexity), true + + case "Timing.code": + if e.complexity.Timing.Code == nil { + break + } + + return e.complexity.Timing.Code(childComplexity), true + + case "Timing.event": + if e.complexity.Timing.Event == nil { + break + } + + return e.complexity.Timing.Event(childComplexity), true + + case "Timing.extension": + if e.complexity.Timing.Extension == nil { + break + } + + return e.complexity.Timing.Extension(childComplexity), true + + case "Timing.id": + if e.complexity.Timing.ID == nil { + break + } + + return e.complexity.Timing.ID(childComplexity), true + + case "Timing.modifierExtension": + if e.complexity.Timing.ModifierExtension == nil { + break + } + + return e.complexity.Timing.ModifierExtension(childComplexity), true + + case "Timing.repeat": + if e.complexity.Timing.Repeat == nil { + break + } + + return e.complexity.Timing.Repeat(childComplexity), true + + case "Timing.resourceType": + if e.complexity.Timing.ResourceType == nil { + break + } + + return e.complexity.Timing.ResourceType(childComplexity), true + + case "TimingRepeat.boundsDuration": + if e.complexity.TimingRepeat.BoundsDuration == nil { + break + } + + return e.complexity.TimingRepeat.BoundsDuration(childComplexity), true + + case "TimingRepeat.boundsPeriod": + if e.complexity.TimingRepeat.BoundsPeriod == nil { + break + } + + return e.complexity.TimingRepeat.BoundsPeriod(childComplexity), true + + case "TimingRepeat.boundsRange": + if e.complexity.TimingRepeat.BoundsRange == nil { + break + } + + return e.complexity.TimingRepeat.BoundsRange(childComplexity), true + + case "TimingRepeat.count": + if e.complexity.TimingRepeat.Count == nil { + break + } + + return e.complexity.TimingRepeat.Count(childComplexity), true + + case "TimingRepeat.countMax": + if e.complexity.TimingRepeat.CountMax == nil { + break + } + + return e.complexity.TimingRepeat.CountMax(childComplexity), true + + case "TimingRepeat.dayOfWeek": + if e.complexity.TimingRepeat.DayOfWeek == nil { + break + } + + return e.complexity.TimingRepeat.DayOfWeek(childComplexity), true + + case "TimingRepeat.duration": + if e.complexity.TimingRepeat.Duration == nil { + break + } + + return e.complexity.TimingRepeat.Duration(childComplexity), true + + case "TimingRepeat.durationMax": + if e.complexity.TimingRepeat.DurationMax == nil { + break + } + + return e.complexity.TimingRepeat.DurationMax(childComplexity), true + + case "TimingRepeat.durationUnit": + if e.complexity.TimingRepeat.DurationUnit == nil { + break + } + + return e.complexity.TimingRepeat.DurationUnit(childComplexity), true + + case "TimingRepeat.extension": + if e.complexity.TimingRepeat.Extension == nil { + break + } + + return e.complexity.TimingRepeat.Extension(childComplexity), true + + case "TimingRepeat.frequency": + if e.complexity.TimingRepeat.Frequency == nil { + break + } + + return e.complexity.TimingRepeat.Frequency(childComplexity), true + + case "TimingRepeat.frequencyMax": + if e.complexity.TimingRepeat.FrequencyMax == nil { + break + } + + return e.complexity.TimingRepeat.FrequencyMax(childComplexity), true + + case "TimingRepeat.id": + if e.complexity.TimingRepeat.ID == nil { + break + } + + return e.complexity.TimingRepeat.ID(childComplexity), true + + case "TimingRepeat.offset": + if e.complexity.TimingRepeat.Offset == nil { + break + } + + return e.complexity.TimingRepeat.Offset(childComplexity), true + + case "TimingRepeat.period": + if e.complexity.TimingRepeat.Period == nil { + break + } + + return e.complexity.TimingRepeat.Period(childComplexity), true + + case "TimingRepeat.periodMax": + if e.complexity.TimingRepeat.PeriodMax == nil { + break + } + + return e.complexity.TimingRepeat.PeriodMax(childComplexity), true + + case "TimingRepeat.periodUnit": + if e.complexity.TimingRepeat.PeriodUnit == nil { + break + } + + return e.complexity.TimingRepeat.PeriodUnit(childComplexity), true + + case "TimingRepeat.resourceType": + if e.complexity.TimingRepeat.ResourceType == nil { + break + } + + return e.complexity.TimingRepeat.ResourceType(childComplexity), true + + case "TimingRepeat.timeOfDay": + if e.complexity.TimingRepeat.TimeOfDay == nil { + break + } + + return e.complexity.TimingRepeat.TimeOfDay(childComplexity), true + + case "TimingRepeat.when": + if e.complexity.TimingRepeat.When == nil { + break + } + + return e.complexity.TimingRepeat.When(childComplexity), true + + case "TriggerDefinition.code": + if e.complexity.TriggerDefinition.Code == nil { + break + } + + return e.complexity.TriggerDefinition.Code(childComplexity), true + + case "TriggerDefinition.condition": + if e.complexity.TriggerDefinition.Condition == nil { + break + } + + return e.complexity.TriggerDefinition.Condition(childComplexity), true + + case "TriggerDefinition.data": + if e.complexity.TriggerDefinition.Data == nil { + break + } + + return e.complexity.TriggerDefinition.Data(childComplexity), true + + case "TriggerDefinition.extension": + if e.complexity.TriggerDefinition.Extension == nil { + break + } + + return e.complexity.TriggerDefinition.Extension(childComplexity), true + + case "TriggerDefinition.id": + if e.complexity.TriggerDefinition.ID == nil { + break + } + + return e.complexity.TriggerDefinition.ID(childComplexity), true + + case "TriggerDefinition.name": + if e.complexity.TriggerDefinition.Name == nil { + break + } + + return e.complexity.TriggerDefinition.Name(childComplexity), true + + case "TriggerDefinition.resourceType": + if e.complexity.TriggerDefinition.ResourceType == nil { + break + } + + return e.complexity.TriggerDefinition.ResourceType(childComplexity), true + + case "TriggerDefinition.subscriptionTopic": + if e.complexity.TriggerDefinition.SubscriptionTopic == nil { + break + } + + return e.complexity.TriggerDefinition.SubscriptionTopic(childComplexity), true + + case "TriggerDefinition.timingDate": + if e.complexity.TriggerDefinition.TimingDate == nil { + break + } + + return e.complexity.TriggerDefinition.TimingDate(childComplexity), true + + case "TriggerDefinition.timingDateTime": + if e.complexity.TriggerDefinition.TimingDateTime == nil { + break + } + + return e.complexity.TriggerDefinition.TimingDateTime(childComplexity), true + + case "TriggerDefinition.timingTiming": + if e.complexity.TriggerDefinition.TimingTiming == nil { + break + } + + return e.complexity.TriggerDefinition.TimingTiming(childComplexity), true + + case "TriggerDefinition.type": + if e.complexity.TriggerDefinition.Type == nil { + break + } + + return e.complexity.TriggerDefinition.Type(childComplexity), true + + case "UsageContext.code": + if e.complexity.UsageContext.Code == nil { + break + } + + return e.complexity.UsageContext.Code(childComplexity), true + + case "UsageContext.extension": + if e.complexity.UsageContext.Extension == nil { + break + } + + return e.complexity.UsageContext.Extension(childComplexity), true + + case "UsageContext.id": + if e.complexity.UsageContext.ID == nil { + break + } + + return e.complexity.UsageContext.ID(childComplexity), true + + case "UsageContext.resourceType": + if e.complexity.UsageContext.ResourceType == nil { + break + } + + return e.complexity.UsageContext.ResourceType(childComplexity), true + + case "UsageContext.valueCodeableConcept": + if e.complexity.UsageContext.ValueCodeableConcept == nil { + break + } + + return e.complexity.UsageContext.ValueCodeableConcept(childComplexity), true + + case "UsageContext.valueQuantity": + if e.complexity.UsageContext.ValueQuantity == nil { + break + } + + return e.complexity.UsageContext.ValueQuantity(childComplexity), true + + case "UsageContext.valueRange": + if e.complexity.UsageContext.ValueRange == nil { + break + } + + return e.complexity.UsageContext.ValueRange(childComplexity), true + + case "UsageContext.valueReference": + if e.complexity.UsageContext.ValueReference == nil { + break + } + + args, err := ec.field_UsageContext_valueReference_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.UsageContext.ValueReference(childComplexity, args["offset"].(*int), args["first"].(*int), args["filter"].(*string), args["sort"].(*string), args["accessibility"].(*model.Accessibility), args["format"].(*model.Format)), true + + case "VirtualServiceDetail.additionalInfo": + if e.complexity.VirtualServiceDetail.AdditionalInfo == nil { + break + } + + return e.complexity.VirtualServiceDetail.AdditionalInfo(childComplexity), true + + case "VirtualServiceDetail.addressContactPoint": + if e.complexity.VirtualServiceDetail.AddressContactPoint == nil { + break + } + + return e.complexity.VirtualServiceDetail.AddressContactPoint(childComplexity), true + + case "VirtualServiceDetail.addressExtendedContactDetail": + if e.complexity.VirtualServiceDetail.AddressExtendedContactDetail == nil { + break + } + + return e.complexity.VirtualServiceDetail.AddressExtendedContactDetail(childComplexity), true + + case "VirtualServiceDetail.addressString": + if e.complexity.VirtualServiceDetail.AddressString == nil { + break + } + + return e.complexity.VirtualServiceDetail.AddressString(childComplexity), true + + case "VirtualServiceDetail.addressUrl": + if e.complexity.VirtualServiceDetail.AddressURL == nil { + break + } + + return e.complexity.VirtualServiceDetail.AddressURL(childComplexity), true + + case "VirtualServiceDetail.channelType": + if e.complexity.VirtualServiceDetail.ChannelType == nil { + break + } + + return e.complexity.VirtualServiceDetail.ChannelType(childComplexity), true + + case "VirtualServiceDetail.extension": + if e.complexity.VirtualServiceDetail.Extension == nil { + break + } + + return e.complexity.VirtualServiceDetail.Extension(childComplexity), true + + case "VirtualServiceDetail.id": + if e.complexity.VirtualServiceDetail.ID == nil { + break + } + + return e.complexity.VirtualServiceDetail.ID(childComplexity), true + + case "VirtualServiceDetail.maxParticipants": + if e.complexity.VirtualServiceDetail.MaxParticipants == nil { + break + } + + return e.complexity.VirtualServiceDetail.MaxParticipants(childComplexity), true + + case "VirtualServiceDetail.resourceType": + if e.complexity.VirtualServiceDetail.ResourceType == nil { + break + } + + return e.complexity.VirtualServiceDetail.ResourceType(childComplexity), true + + case "VirtualServiceDetail.sessionKey": + if e.complexity.VirtualServiceDetail.SessionKey == nil { + break + } + + return e.complexity.VirtualServiceDetail.SessionKey(childComplexity), true + + } + return 0, false +} + +func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { + opCtx := graphql.GetOperationContext(ctx) + ec := executionContext{opCtx, e, 0, 0, make(chan graphql.DeferredResult)} + inputUnmarshalMap := graphql.BuildUnmarshalerMap() + first := true + + switch opCtx.Operation.Operation { + case ast.Query: + return func(ctx context.Context) *graphql.Response { + var response graphql.Response + var data graphql.Marshaler + if first { + first = false + ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) + data = ec._Query(ctx, opCtx.Operation.SelectionSet) + } else { + if atomic.LoadInt32(&ec.pendingDeferred) > 0 { + result := <-ec.deferredResults + atomic.AddInt32(&ec.pendingDeferred, -1) + data = result.Result + response.Path = result.Path + response.Label = result.Label + response.Errors = result.Errors + } else { + return nil + } + } + var buf bytes.Buffer + data.MarshalGQL(&buf) + response.Data = buf.Bytes() + if atomic.LoadInt32(&ec.deferred) > 0 { + hasNext := atomic.LoadInt32(&ec.pendingDeferred) > 0 + response.HasNext = &hasNext + } + + return &response + } + + default: + return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation")) + } +} + +type executionContext struct { + *graphql.OperationContext + *executableSchema + deferred int32 + pendingDeferred int32 + deferredResults chan graphql.DeferredResult +} + +func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) { + atomic.AddInt32(&ec.pendingDeferred, 1) + go func() { + ctx := graphql.WithFreshResponseContext(dg.Context) + dg.FieldSet.Dispatch(ctx) + ds := graphql.DeferredResult{ + Path: dg.Path, + Label: dg.Label, + Result: dg.FieldSet, + Errors: graphql.GetErrors(ctx), + } + // null fields should bubble up + if dg.FieldSet.Invalids > 0 { + ds.Result = graphql.Null + } + ec.deferredResults <- ds + }() +} + +func (ec *executionContext) introspectSchema() (*introspection.Schema, error) { + if ec.DisableIntrospection { + return nil, errors.New("introspection disabled") + } + return introspection.WrapSchema(ec.Schema()), nil +} + +func (ec *executionContext) introspectType(name string) (*introspection.Type, error) { + if ec.DisableIntrospection { + return nil, errors.New("introspection disabled") + } + return introspection.WrapTypeFromDef(ec.Schema(), ec.Schema().Types[name]), nil +} + +var sources = []*ast.Source{ + {Name: "../graph/schema.graphql", Input: `scalar JSON +enum Accessibility { + all + accessible + unaccessible +} +enum Format { + json + 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 = + 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 = + 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 + 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] + id: String + species: CodeableConcept + part: CodeableConcept +} +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 FamilyMemberHistoryParticipantActorUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type FamilyMemberHistoryParticipant { + actor( + 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] + meta: Meta + modifierExtension: [Extension] + dosage: MedicationAdministrationDosage + performer: [MedicationAdministrationPerformer] + status: String + recorded: String + id: String + occurenceTiming: Timing + subject( + offset: Int + first: Int + filter: JSON + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationAdministrationNoteUnion] + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ResourceUnion] + extension: [Extension] + contained: [ResourceUnion] +} +union PatientLinkOtherUnion = PatientType +type PatientLink { + modifierExtension: [Extension] + other( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [PatientLinkOtherUnion] + resourceType: String + type: String + extension: [Extension] + id: String +} +type RatioRange { + resourceType: String + denominator: Quantity + extension: [Extension] + highNumerator: Quantity + id: String + lowNumerator: Quantity +} +type ResearchStudyLabel { + value: String + extension: [Extension] + id: String + modifierExtension: [Extension] + resourceType: String + type: CodeableConcept +} +type DataRequirementSort { + direction: String + extension: [Extension] + id: String + path: String + resourceType: String +} +type FHIRPrimitiveExtension { + extension: [Extension] + id: String + resourceType: String +} +union ResearchStudyAssociatedPartyPartyUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType +type ResearchStudyAssociatedParty { + party( + 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 { + version: String + language: String + implicitRules: String + bodySite: [CodeableReference] + practiceSetting: CodeableConcept + author( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DocumentReferenceAuthorUnion] + basedOn( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DocumentReferenceAttesterUnion] + docStatus: String + meta: Meta + custodian( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [OrganizationType] + event: [CodeableReference] + relatesTo: [DocumentReferenceRelatesTo] + facilityType: CodeableConcept + id: String + securityLabel: [CodeableConcept] + identifier: [Identifier] + modifierExtension: [Extension] + description: String + extension: [Extension] + category: [CodeableConcept] + text: Narrative + contained: [ResourceUnion] + subject( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ResourceUnion] + content: [DocumentReferenceContent] + date: String +} +type DosageDoseAndRate { + id: String + doseRange: Range + resourceType: String + rateRange: Range + type: CodeableConcept + doseQuantity: Quantity + rateRatio: Ratio + extension: [Extension] + rateQuantity: Quantity +} +type EncounterReason { + resourceType: String + use: [CodeableConcept] + value: [CodeableReference] + extension: [Extension] + id: String + modifierExtension: [Extension] +} +type Expression { + expression: String + extension: [Extension] + id: String + language: String + name: String + reference: String + resourceType: String + description: String +} +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 + extension: [Extension] + ingredient: [MedicationIngredient] + id: String + marketingAuthorizationHolder( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [OrganizationType] +} +type ObservationComponent { + 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 +} +type SubstanceType { + id: String + language: String + ingredient: [SubstanceIngredient] + category: [CodeableConcept] + identifier: [Identifier] + contained: [ResourceUnion] + resourceType: String + instance: String + implicitRules: String + modifierExtension: [Extension] + expiry: String + description: String + status: String + meta: Meta + code: CodeableReference + extension: [Extension] + quantity: Quantity + text: Narrative +} +type Coding { + extension: [Extension] + id: String + resourceType: String + system: String + userSelected: String + version: String + code: String + display: String +} +type SubstanceDefinitionRelationship { + substanceDefinitionReference( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [SubstanceDefinitionType] + amountQuantity: Quantity + amountRatio: Ratio + id: String + ratioHighLimitAmount: Ratio + source( + 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 +} +union SubstanceDefinitionCodeNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type SubstanceDefinitionCode { + source( + 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( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [OrganizationType] + dispenserInstruction( + 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 + modifierExtension: [Extension] + period: Period +} +type SubstanceDefinitionStructureRepresentation { + document( + 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 { + resourceType: String + additionalInfo: String + addressContactPoint: ContactPoint + addressExtendedContactDetail: ExtendedContactDetail + sessionKey: String + extension: [Extension] + id: String + addressString: String + addressUrl: String + channelType: Coding + maxParticipants: String +} +type DocumentReferenceContentProfile { + valueUri: String + extension: [Extension] + id: String + modifierExtension: [Extension] + resourceType: String + valueCanonical: String + valueCoding: Coding +} +type Count { + extension: [Extension] + id: String + resourceType: String + system: String + unit: String + value: String + code: String + comparator: String +} +union SignatureOnBehalfOfUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union SignatureWhoUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type Signature { + who( + 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( + 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( + 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] + id: String + resourceType: String + system: String + unit: String + value: String +} +union FamilyMemberHistoryProcedureNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type FamilyMemberHistoryProcedure { + modifierExtension: [Extension] + note( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [FamilyMemberHistoryProcedureNoteUnion] + performedDateTime: String + performedRange: Range + contributedToDeath: String + performedAge: Age + performedPeriod: Period + performedString: String + resourceType: String + id: String + extension: [Extension] + code: CodeableConcept + outcome: CodeableConcept +} +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( + 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( + 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( + 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 +} +union SpecimenSubjectUnion = PatientType | GroupType | SubstanceType +union SpecimenCollectionUnion = + PractitionerType + | PractitionerRoleType + | PatientType +union SpecimenNoteUnion = + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [SpecimenCollectionUnion] + subject( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [SpecimenNoteUnion] +} +type DiagnosticReportMedia { + modifierExtension: [Extension] + resourceType: String + comment: String + extension: [Extension] + id: String + link( + 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( + 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 +} +type Reference { + resourceType: String + type: String + display: String + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ProcedureType] + device: CodeableReference + collectedDateTime: String + duration: Duration + id: String + resourceType: String +} +type BodyStructureIncludedStructure { + extension: [Extension] + id: String + laterality: CodeableConcept + modifierExtension: [Extension] + qualifier: [CodeableConcept] + resourceType: String + structure: CodeableConcept + bodyLandmarkOrientation: [BodyStructureIncludedStructureBodyLandmarkOrientation] +} +union MedicationRequestPerformerUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType + | PatientType +union MedicationRequestRecorderUnion = PractitionerType | PractitionerRoleType +union MedicationRequestRequesterUnion = + PractitionerType + | PractitionerRoleType + | 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ResourceUnion] + performer( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationRequestPerformerUnion] + authoredOn: String + note( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationRequestRequesterUnion] + groupIdentifier: Identifier + statusReason: CodeableConcept + intent: String + dosageInstruction: [Dosage] + informationSource( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationRequestInformationSourceUnion] + performerType: CodeableConcept + identifier: [Identifier] + modifierExtension: [Extension] + category: [CodeableConcept] + recorder( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationRequestRecorderUnion] + priorPrescription( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationRequestType] + meta: Meta + basedOn( + 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( + 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 + resourceType: String + date: String + extension: [Extension] + id: String +} +type Ratio { + 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] +} +union PatientGeneralPractitionerUnion = + OrganizationType + | PractitionerType + | PractitionerRoleType +union PatientLinkUnion = PatientType +type PatientType { + modifierExtension: [Extension] + gender: 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( + 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( + 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] + contained: [ResourceUnion] + contact: [PatientContact] + maritalStatus: CodeableConcept + communication: [PatientCommunication] + telecom: [ContactPoint] + language: String + resourceType: String +} +type SubstanceDefinitionStructure { + sourceDocument( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DocumentReferenceType] + modifierExtension: [Extension] + molecularFormula: String + resourceType: String + id: String + stereochemistry: CodeableConcept + technique: [CodeableConcept] + opticalActivity: CodeableConcept + molecularFormulaByMoiety: String + molecularWeight: SubstanceDefinitionMolecularWeight + representation: [SubstanceDefinitionStructureRepresentation] + extension: [Extension] +} +type AvailabilityAvailableTime { + availableStartTime: String + daysOfWeek: String + extension: [Extension] + id: String + resourceType: String + allDay: String + availableEndTime: String +} +type ContactDetail { + telecom: [ContactPoint] + extension: [Extension] + id: String + name: String + resourceType: String +} +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 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( + 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( + 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 + language: String +} +type PractitionerQualification { + issuer( + 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] +} +type ResearchStudyObjective { + description: String + extension: [Extension] + id: String + modifierExtension: [Extension] + name: String + resourceType: String + type: CodeableConcept +} +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] + extension: [Extension] + id: String + inactive: String + modifierExtension: [Extension] + period: Period + resourceType: String +} +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 + 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( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ConditionNoteUnion] + identifier: [Identifier] + onsetPeriod: Period +} +type EncounterDiagnosis { + resourceType: String + use: [CodeableConcept] + condition: [CodeableReference] + extension: [Extension] + id: String + modifierExtension: [Extension] +} +union FamilyMemberHistoryConditionNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type FamilyMemberHistoryCondition { + onsetPeriod: Period + extension: [Extension] + note( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [FamilyMemberHistoryConditionNoteUnion] + onsetAge: Age + onsetRange: Range + resourceType: String + contributedToDeath: String + id: String + code: CodeableConcept + onsetString: String + outcome: CodeableConcept + modifierExtension: [Extension] +} +type RelatedArtifact { + display: String + publicationDate: String + publicationStatus: String + classifier: [CodeableConcept] + document: Attachment + resourceReference( + 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 +} +type CodeableReference { + extension: [Extension] + id: String + resourceType: String + concept: CodeableConcept +} +type ImmunizationProtocolApplied { + seriesDoses: String + targetDisease: [CodeableConcept] + doseNumber: String + extension: [Extension] + id: String + modifierExtension: [Extension] + resourceType: String + series: String +} +union ObservationSpecimenUnion = SpecimenType | GroupType +union ObservationSubjectUnion = + PatientType + | GroupType + | OrganizationType + | ProcedureType + | PractitionerType + | MedicationType + | SubstanceType +union ObservationNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union ObservationBasedOnUnion = MedicationRequestType +union ObservationDerivedFromUnion = + DocumentReferenceType + | ImagingStudyType + | ObservationType +union ObservationHasMemberUnion = ObservationType +union ObservationPartOfUnion = + MedicationAdministrationType + | MedicationStatementType + | ProcedureType + | ImagingStudyType +union ObservationPerformerUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType + | PatientType +type ObservationType { + effectivePeriod: Period + derivedFrom( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ObservationPerformerUnion] + bodySite: CodeableConcept + text: Narrative + valueQuantity: Quantity + 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 + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResourceUnion + valueCodeableConcept: CodeableConcept + hasMember( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ObservationHasMemberUnion] + valueInteger: String + language: String + identifier: [Identifier] + valueSampledData: SampledData + subject( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ObservationSubjectUnion + extension: [Extension] + triggeredBy: [ObservationTriggeredBy] + specimen( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ObservationSpecimenUnion] + partOf( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ObservationPartOfUnion] + component: [ObservationComponent] + effectiveTiming: Timing + valueRange: Range + status: String +} +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 = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union ProcedurePerformerUnion = + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ProcedureReportedReferenceUnion] + occurrencePeriod: Period + reportedBoolean: String + extension: [Extension] + report( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ProcedureReportUnion] + code: CodeableConcept + category: [CodeableConcept] + used: [CodeableReference] + recorded: String + partOf( + 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] + text: Narrative + meta: Meta + supportingInfo( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ResourceUnion] + language: String + note( + offset: Int + first: Int + filter: JSON + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ProcedureFocusUnion] +} +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 + id: String + contained: [ResourceUnion] + identifier: [Identifier] + progress: [ResearchSubjectProgress] + actualComparisonGroup: String + language: String + modifierExtension: [Extension] + study( + 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 + id: String + line: String + country: String + postalCode: String + state: String + city: String + district: String + period: Period + resourceType: String + type: String + extension: [Extension] +} +type DocumentReferenceRelatesTo { + modifierExtension: [Extension] + resourceType: String + target( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ImagingStudySeriesPerformerUnion] + modifierExtension: [Extension] + description: String + number: String + instance: [ImagingStudySeriesInstance] + specimen( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [SpecimenType] +} +type Narrative { + div: String + 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] + 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] + resourceType: String +} +type Period { + extension: [Extension] + id: String + resourceType: String + start: String + end: String +} +type SubstanceDefinitionProperty { + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [TaskPerformerActorUnion] + extension: [Extension] + function: CodeableConcept +} +union FamilyMemberHistoryNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union FamilyMemberHistoryParticipantUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type FamilyMemberHistoryType { + condition: [FamilyMemberHistoryCondition] + ageAge: Age + deceasedRange: Range + deceasedAge: Age + status: String + language: String + identifier: [Identifier] + sex: CodeableConcept + note( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [FamilyMemberHistoryNoteUnion] + contained: [ResourceUnion] + id: String + resourceType: String + deceasedString: String + relationship: CodeableConcept + bornDate: String + dataAbsentReason: CodeableConcept + estimatedAge: String + modifierExtension: [Extension] + date: String + patient( + 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( + 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 +} +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 + ): [ConditionStageAssessmentUnion] + extension: [Extension] + id: String + modifierExtension: [Extension] +} +type ImmunizationProgramEligibility { + programStatus: CodeableConcept + resourceType: String + extension: [Extension] + id: String + modifierExtension: [Extension] + program: CodeableConcept +} +type ParameterDefinition { + profile: String + min: String + name: String + type: String + documentation: 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( + 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] + id: String + profile: String + subjectReference( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ProcedureType] + text: Narrative + meta: Meta + extension: [Extension] + language: String + basedOn( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ImagingStudyBasedOnUnion] + numberOfInstances: String + procedure: [CodeableReference] + identifier: [Identifier] + implicitRules: String + referrer( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ImagingStudyReferrerUnion] + modality: [CodeableConcept] + resourceType: String + note( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ImagingStudyNoteUnion] + contained: [ResourceUnion] + modifierExtension: [Extension] + series: [ImagingStudySeries] + reason: [CodeableReference] + started: String + status: String + subject( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ImagingStudySubjectUnion] + description: String + id: String + numberOfSeries: String +} +type ObservationTriggeredBy { + id: String + modifierExtension: [Extension] + observation( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ObservationType] + reason: String + resourceType: String + type: String + extension: [Extension] +} +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] + id: String + resourceType: String + 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 +} +union ResearchStudyAssociatedPartyUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType +union ResearchStudyNoteUnion = + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ResearchStudyResultUnion] + progressStatus: [ResearchStudyProgressStatus] + 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] + id: String + identifier: [Identifier] + objective: [ResearchStudyObjective] + 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] +} +type ResearchStudyComparisonGroup { + modifierExtension: [Extension] + observedGroup( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [GroupType] + name: String + resourceType: String + id: String + description: String + linkId: String + type: CodeableConcept + extension: [Extension] +} +type SubstanceDefinitionNameOfficial { + resourceType: String + status: CodeableConcept + authority: CodeableConcept + date: String + extension: [Extension] + id: String + modifierExtension: [Extension] +} +type Distance { + resourceType: String + system: String + unit: String + value: String + code: String + comparator: String + extension: [Extension] + id: 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] + resourceType: String + time: String + extension: [Extension] +} +union ExtensionValueAnnotationUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union ExtensionValueSignatureUnion = + 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( + 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( + 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( + 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 + resourceType: String + partOf( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [OrganizationType] + modifierExtension: [Extension] + period: Period + resourceType: String + code: CodeableConcept +} +type Quantity { + code: String + comparator: String + extension: [Extension] + id: String + resourceType: String + system: String + unit: String + value: String +} +type BodyStructureType { + patient( + 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 + language: String +} +union ImagingStudySeriesPerformerActorUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType + | PatientType +type ImagingStudySeriesPerformer { + modifierExtension: [Extension] + resourceType: String + actor( + 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 + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ObservationType] + implicitRules: String + language: String + performer( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DiagnosticReportPerformerUnion] + presentedForm: [Attachment] + text: Narrative + subject( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DiagnosticReportSubjectUnion] + specimen( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DiagnosticReportStudyUnion] + resourceType: String + meta: Meta + contained: [ResourceUnion] + id: String + note( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DiagnosticReportNoteUnion] + modifierExtension: [Extension] + basedOn( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DiagnosticReportBasedOnUnion] + conclusionCode: [CodeableConcept] + supportingInfo( + 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( + 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] +} +union AnnotationAuthorReferenceUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type Annotation { + authorString: String + extension: [Extension] + id: String + resourceType: String + text: String + time: String + authorReference( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [AnnotationAuthorReferenceUnion] +} +union DiagnosticReportSupportingInfoReferenceUnion = + ProcedureType + | ObservationType + | DiagnosticReportType +type DiagnosticReportSupportingInfo { + id: String + modifierExtension: [Extension] + reference( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [OrganizationType] + purpose: CodeableConcept + resourceType: String + telecom: [ContactPoint] + address: Address + id: String + extension: [Extension] + period: Period +} +type Money { + currency: String + extension: [Extension] + id: String + resourceType: 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] + 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 + 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( + 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 + 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 + resourceType: String + valuePositiveInt: String + valueRange: Range + valueAddress: Address + valueInteger: String + valueAvailability: Availability + valueUsageContext( + 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 + resourceType: String + type: [CodeableConcept] + extension: [Extension] +} +type SpecimenProcessing { + timePeriod: Period + additive( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [SubstanceType] + modifierExtension: [Extension] + description: String + id: String + resourceType: String + method: CodeableConcept + timeDateTime: String + extension: [Extension] +} +union TaskOwnerUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType + | PatientType +union TaskRequesterUnion = + OrganizationType + | PatientType + | PractitionerType + | PractitionerRoleType +union TaskNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union TaskPerformerUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType + | PatientType +union TaskRestrictionUnion = + PatientType + | PractitionerType + | PractitionerRoleType + | GroupType + | OrganizationType +type TaskType { + input: [TaskInput] + basedOn( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ResourceUnion] + output: [TaskOutput] + lastModified: String + authoredOn: String + modifierExtension: [Extension] + requester( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [TaskRequesterUnion] + intent: String + partOf( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [TaskType] + businessStatus: CodeableConcept + resourceType: String + code: CodeableConcept + instantiatesUri: String + instantiatesCanonical: String + reason: [CodeableReference] + contained: [ResourceUnion] + requestedPeriod: Period + groupIdentifier: Identifier + priority: String + text: Narrative + identifier: [Identifier] + description: String + performer( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [TaskPerformerUnion] + id: String + implicitRules: String + meta: Meta + restriction( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [TaskRestrictionUnion] + note( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResourceUnion + owner( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [TaskOwnerUnion] + statusReason: CodeableReference + doNotPerform: String +} +type EncounterAdmission { + extension: [Extension] + id: String + modifierExtension: [Extension] + preAdmissionIdentifier: Identifier + reAdmission: CodeableConcept + resourceType: String + admitSource: CodeableConcept + dischargeDisposition: CodeableConcept +} +union ResourceUnion = + OrganizationType + | GroupType + | PractitionerType + | PractitionerRoleType + | ResearchStudyType + | PatientType + | ResearchSubjectType + | SubstanceType + | SubstanceDefinitionType + | SpecimenType + | ObservationType + | DiagnosticReportType + | ConditionType + | MedicationType + | MedicationAdministrationType + | MedicationStatementType + | MedicationRequestType + | ProcedureType + | DocumentReferenceType + | TaskType + | ImagingStudyType + | FamilyMemberHistoryType + | BodyStructureType +type Query { + organization( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [OrganizationType!]! + group( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [GroupType!]! + practitioner( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [PractitionerType!]! + practitionerRole( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [PractitionerRoleType!]! + researchStudy( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ResearchStudyType!]! + patient( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [PatientType!]! + researchSubject( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ResearchSubjectType!]! + substance( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [SubstanceType!]! + substanceDefinition( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [SubstanceDefinitionType!]! + specimen( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [SpecimenType!]! + observation( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ObservationType!]! + diagnosticReport( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DiagnosticReportType!]! + condition( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ConditionType!]! + medication( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationType!]! + medicationAdministration( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationAdministrationType!]! + medicationStatement( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationStatementType!]! + medicationRequest( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationRequestType!]! + procedure( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ProcedureType!]! + documentReference( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DocumentReferenceType!]! + task( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [TaskType] + imagingStudy( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ImagingStudyType!]! + familyMemberHistory( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [FamilyMemberHistoryType!]! + bodyStructure( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [BodyStructureType!]! +} +`, BuiltIn: false}, +} +var parsedSchema = gqlparser.MustLoadSchema(sources...) + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +func (ec *executionContext) field_Annotation_authorReference_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Annotation_authorReference_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Annotation_authorReference_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Annotation_authorReference_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Annotation_authorReference_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Annotation_authorReference_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Annotation_authorReference_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Annotation_authorReference_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Annotation_authorReference_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Annotation_authorReference_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Annotation_authorReference_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Annotation_authorReference_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Annotation_authorReference_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_BodyStructureType_patient_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_BodyStructureType_patient_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_BodyStructureType_patient_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_BodyStructureType_patient_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_BodyStructureType_patient_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_BodyStructureType_patient_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_BodyStructureType_patient_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_BodyStructureType_patient_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_BodyStructureType_patient_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_BodyStructureType_patient_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_BodyStructureType_patient_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_BodyStructureType_patient_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_BodyStructureType_patient_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionParticipant_actor_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ConditionParticipant_actor_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ConditionParticipant_actor_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ConditionParticipant_actor_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ConditionParticipant_actor_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ConditionParticipant_actor_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ConditionParticipant_actor_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ConditionParticipant_actor_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionParticipant_actor_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionParticipant_actor_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionParticipant_actor_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionParticipant_actor_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionParticipant_actor_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionStage_assessment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ConditionStage_assessment_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ConditionStage_assessment_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ConditionStage_assessment_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ConditionStage_assessment_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ConditionStage_assessment_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ConditionStage_assessment_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ConditionStage_assessment_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionStage_assessment_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionStage_assessment_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionStage_assessment_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionStage_assessment_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionStage_assessment_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_note_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ConditionType_note_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ConditionType_note_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ConditionType_note_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ConditionType_note_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ConditionType_note_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ConditionType_note_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ConditionType_note_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_note_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_note_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_note_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_note_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_note_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_participant_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ConditionType_participant_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ConditionType_participant_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ConditionType_participant_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ConditionType_participant_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ConditionType_participant_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ConditionType_participant_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ConditionType_participant_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_participant_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_participant_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_participant_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_participant_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_participant_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_stage_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ConditionType_stage_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ConditionType_stage_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ConditionType_stage_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ConditionType_stage_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ConditionType_stage_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ConditionType_stage_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ConditionType_stage_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_stage_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_stage_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_stage_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_stage_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_stage_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_subject_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ConditionType_subject_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ConditionType_subject_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ConditionType_subject_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ConditionType_subject_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ConditionType_subject_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ConditionType_subject_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ConditionType_subject_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_subject_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_subject_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_subject_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_subject_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ConditionType_subject_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DataRequirement_subjectReference_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DataRequirement_subjectReference_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DataRequirement_subjectReference_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DataRequirement_subjectReference_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DataRequirement_subjectReference_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DataRequirement_subjectReference_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DataRequirement_subjectReference_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DataRequirement_subjectReference_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DataRequirement_subjectReference_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DataRequirement_subjectReference_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DataRequirement_subjectReference_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DataRequirement_subjectReference_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DataRequirement_subjectReference_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportMedia_link_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DiagnosticReportMedia_link_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DiagnosticReportMedia_link_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DiagnosticReportMedia_link_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DiagnosticReportMedia_link_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DiagnosticReportMedia_link_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DiagnosticReportMedia_link_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DiagnosticReportMedia_link_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportMedia_link_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportMedia_link_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportMedia_link_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportMedia_link_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportMedia_link_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportSupportingInfo_reference_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DiagnosticReportSupportingInfo_reference_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DiagnosticReportSupportingInfo_reference_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DiagnosticReportSupportingInfo_reference_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DiagnosticReportSupportingInfo_reference_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DiagnosticReportSupportingInfo_reference_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DiagnosticReportSupportingInfo_reference_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DiagnosticReportSupportingInfo_reference_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportSupportingInfo_reference_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportSupportingInfo_reference_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportSupportingInfo_reference_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportSupportingInfo_reference_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportSupportingInfo_reference_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_basedOn_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DiagnosticReportType_basedOn_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DiagnosticReportType_basedOn_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DiagnosticReportType_basedOn_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DiagnosticReportType_basedOn_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DiagnosticReportType_basedOn_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DiagnosticReportType_basedOn_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DiagnosticReportType_basedOn_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_basedOn_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_basedOn_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_basedOn_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_basedOn_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_basedOn_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_note_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DiagnosticReportType_note_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DiagnosticReportType_note_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DiagnosticReportType_note_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DiagnosticReportType_note_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DiagnosticReportType_note_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DiagnosticReportType_note_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DiagnosticReportType_note_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_note_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_note_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_note_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_note_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_note_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_performer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DiagnosticReportType_performer_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DiagnosticReportType_performer_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DiagnosticReportType_performer_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DiagnosticReportType_performer_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DiagnosticReportType_performer_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DiagnosticReportType_performer_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DiagnosticReportType_performer_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_performer_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_performer_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_performer_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_performer_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_performer_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_result_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DiagnosticReportType_result_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DiagnosticReportType_result_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DiagnosticReportType_result_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DiagnosticReportType_result_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DiagnosticReportType_result_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DiagnosticReportType_result_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DiagnosticReportType_result_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_result_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_result_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_result_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_result_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_result_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_resultsInterpreter_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DiagnosticReportType_resultsInterpreter_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DiagnosticReportType_resultsInterpreter_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DiagnosticReportType_resultsInterpreter_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DiagnosticReportType_resultsInterpreter_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DiagnosticReportType_resultsInterpreter_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DiagnosticReportType_resultsInterpreter_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DiagnosticReportType_resultsInterpreter_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_resultsInterpreter_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_resultsInterpreter_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_resultsInterpreter_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_resultsInterpreter_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_resultsInterpreter_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_specimen_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DiagnosticReportType_specimen_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DiagnosticReportType_specimen_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DiagnosticReportType_specimen_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DiagnosticReportType_specimen_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DiagnosticReportType_specimen_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DiagnosticReportType_specimen_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DiagnosticReportType_specimen_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_specimen_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_specimen_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_specimen_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_specimen_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_specimen_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_study_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DiagnosticReportType_study_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DiagnosticReportType_study_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DiagnosticReportType_study_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DiagnosticReportType_study_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DiagnosticReportType_study_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DiagnosticReportType_study_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DiagnosticReportType_study_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_study_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_study_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_study_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_study_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_study_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_subject_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DiagnosticReportType_subject_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DiagnosticReportType_subject_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DiagnosticReportType_subject_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DiagnosticReportType_subject_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DiagnosticReportType_subject_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DiagnosticReportType_subject_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DiagnosticReportType_subject_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_subject_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_subject_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_subject_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_subject_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_subject_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_supportingInfo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DiagnosticReportType_supportingInfo_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DiagnosticReportType_supportingInfo_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DiagnosticReportType_supportingInfo_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DiagnosticReportType_supportingInfo_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DiagnosticReportType_supportingInfo_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DiagnosticReportType_supportingInfo_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DiagnosticReportType_supportingInfo_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_supportingInfo_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_supportingInfo_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_supportingInfo_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_supportingInfo_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DiagnosticReportType_supportingInfo_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceAttester_party_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DocumentReferenceAttester_party_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DocumentReferenceAttester_party_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DocumentReferenceAttester_party_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DocumentReferenceAttester_party_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DocumentReferenceAttester_party_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DocumentReferenceAttester_party_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DocumentReferenceAttester_party_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceAttester_party_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceAttester_party_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceAttester_party_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceAttester_party_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceAttester_party_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceRelatesTo_target_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DocumentReferenceRelatesTo_target_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DocumentReferenceRelatesTo_target_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DocumentReferenceRelatesTo_target_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DocumentReferenceRelatesTo_target_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DocumentReferenceRelatesTo_target_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DocumentReferenceRelatesTo_target_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DocumentReferenceRelatesTo_target_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceRelatesTo_target_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceRelatesTo_target_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceRelatesTo_target_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceRelatesTo_target_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceRelatesTo_target_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_attester_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DocumentReferenceType_attester_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DocumentReferenceType_attester_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DocumentReferenceType_attester_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DocumentReferenceType_attester_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DocumentReferenceType_attester_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DocumentReferenceType_attester_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DocumentReferenceType_attester_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_attester_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_attester_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_attester_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_attester_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_attester_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_author_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DocumentReferenceType_author_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DocumentReferenceType_author_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DocumentReferenceType_author_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DocumentReferenceType_author_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DocumentReferenceType_author_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DocumentReferenceType_author_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DocumentReferenceType_author_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_author_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_author_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_author_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_author_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_author_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_basedOn_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DocumentReferenceType_basedOn_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DocumentReferenceType_basedOn_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DocumentReferenceType_basedOn_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DocumentReferenceType_basedOn_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DocumentReferenceType_basedOn_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DocumentReferenceType_basedOn_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DocumentReferenceType_basedOn_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_basedOn_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_basedOn_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_basedOn_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_basedOn_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_basedOn_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_custodian_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DocumentReferenceType_custodian_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DocumentReferenceType_custodian_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DocumentReferenceType_custodian_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DocumentReferenceType_custodian_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DocumentReferenceType_custodian_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DocumentReferenceType_custodian_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DocumentReferenceType_custodian_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_custodian_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_custodian_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_custodian_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_custodian_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_custodian_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_subject_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_DocumentReferenceType_subject_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_DocumentReferenceType_subject_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_DocumentReferenceType_subject_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_DocumentReferenceType_subject_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_DocumentReferenceType_subject_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_DocumentReferenceType_subject_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_DocumentReferenceType_subject_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_subject_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_subject_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_subject_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_subject_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_DocumentReferenceType_subject_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ExtendedContactDetail_organization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ExtendedContactDetail_organization_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ExtendedContactDetail_organization_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ExtendedContactDetail_organization_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ExtendedContactDetail_organization_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ExtendedContactDetail_organization_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ExtendedContactDetail_organization_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ExtendedContactDetail_organization_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ExtendedContactDetail_organization_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ExtendedContactDetail_organization_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ExtendedContactDetail_organization_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ExtendedContactDetail_organization_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ExtendedContactDetail_organization_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Extension_valueAnnotation_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Extension_valueAnnotation_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Extension_valueAnnotation_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Extension_valueAnnotation_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Extension_valueAnnotation_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Extension_valueAnnotation_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Extension_valueAnnotation_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Extension_valueAnnotation_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Extension_valueAnnotation_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Extension_valueAnnotation_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Extension_valueAnnotation_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Extension_valueAnnotation_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Extension_valueAnnotation_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Extension_valueSignature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Extension_valueSignature_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Extension_valueSignature_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Extension_valueSignature_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Extension_valueSignature_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Extension_valueSignature_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Extension_valueSignature_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Extension_valueSignature_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Extension_valueSignature_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Extension_valueSignature_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Extension_valueSignature_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Extension_valueSignature_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Extension_valueSignature_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Extension_valueUsageContext_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Extension_valueUsageContext_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Extension_valueUsageContext_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Extension_valueUsageContext_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Extension_valueUsageContext_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Extension_valueUsageContext_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Extension_valueUsageContext_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Extension_valueUsageContext_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Extension_valueUsageContext_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Extension_valueUsageContext_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Extension_valueUsageContext_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Extension_valueUsageContext_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Extension_valueUsageContext_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryCondition_note_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_FamilyMemberHistoryCondition_note_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_FamilyMemberHistoryCondition_note_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_FamilyMemberHistoryCondition_note_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_FamilyMemberHistoryCondition_note_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_FamilyMemberHistoryCondition_note_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_FamilyMemberHistoryCondition_note_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_FamilyMemberHistoryCondition_note_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryCondition_note_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryCondition_note_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryCondition_note_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryCondition_note_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryCondition_note_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryParticipant_actor_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_FamilyMemberHistoryParticipant_actor_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_FamilyMemberHistoryParticipant_actor_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_FamilyMemberHistoryParticipant_actor_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_FamilyMemberHistoryParticipant_actor_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_FamilyMemberHistoryParticipant_actor_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_FamilyMemberHistoryParticipant_actor_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_FamilyMemberHistoryParticipant_actor_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryParticipant_actor_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryParticipant_actor_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryParticipant_actor_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryParticipant_actor_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryParticipant_actor_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryProcedure_note_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_FamilyMemberHistoryProcedure_note_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_FamilyMemberHistoryProcedure_note_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_FamilyMemberHistoryProcedure_note_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_FamilyMemberHistoryProcedure_note_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_FamilyMemberHistoryProcedure_note_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_FamilyMemberHistoryProcedure_note_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_FamilyMemberHistoryProcedure_note_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryProcedure_note_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryProcedure_note_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryProcedure_note_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryProcedure_note_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryProcedure_note_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryType_note_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_FamilyMemberHistoryType_note_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_FamilyMemberHistoryType_note_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_FamilyMemberHistoryType_note_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_FamilyMemberHistoryType_note_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_FamilyMemberHistoryType_note_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_FamilyMemberHistoryType_note_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_FamilyMemberHistoryType_note_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryType_note_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryType_note_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryType_note_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryType_note_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryType_note_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryType_participant_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_FamilyMemberHistoryType_participant_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_FamilyMemberHistoryType_participant_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_FamilyMemberHistoryType_participant_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_FamilyMemberHistoryType_participant_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_FamilyMemberHistoryType_participant_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_FamilyMemberHistoryType_participant_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_FamilyMemberHistoryType_participant_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryType_participant_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryType_participant_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryType_participant_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryType_participant_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryType_participant_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryType_patient_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_FamilyMemberHistoryType_patient_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_FamilyMemberHistoryType_patient_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_FamilyMemberHistoryType_patient_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_FamilyMemberHistoryType_patient_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_FamilyMemberHistoryType_patient_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_FamilyMemberHistoryType_patient_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_FamilyMemberHistoryType_patient_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryType_patient_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryType_patient_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryType_patient_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryType_patient_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_FamilyMemberHistoryType_patient_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_GroupMember_entity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_GroupMember_entity_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_GroupMember_entity_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_GroupMember_entity_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_GroupMember_entity_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_GroupMember_entity_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_GroupMember_entity_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_GroupMember_entity_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_GroupMember_entity_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_GroupMember_entity_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_GroupMember_entity_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_GroupMember_entity_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_GroupMember_entity_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_GroupType_managingEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_GroupType_managingEntity_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_GroupType_managingEntity_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_GroupType_managingEntity_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_GroupType_managingEntity_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_GroupType_managingEntity_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_GroupType_managingEntity_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_GroupType_managingEntity_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_GroupType_managingEntity_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_GroupType_managingEntity_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_GroupType_managingEntity_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_GroupType_managingEntity_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_GroupType_managingEntity_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_GroupType_member_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_GroupType_member_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_GroupType_member_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_GroupType_member_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_GroupType_member_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_GroupType_member_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_GroupType_member_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_GroupType_member_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_GroupType_member_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_GroupType_member_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_GroupType_member_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_GroupType_member_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_GroupType_member_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Identifier_assigner_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Identifier_assigner_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Identifier_assigner_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Identifier_assigner_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Identifier_assigner_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Identifier_assigner_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Identifier_assigner_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Identifier_assigner_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Identifier_assigner_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Identifier_assigner_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Identifier_assigner_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Identifier_assigner_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Identifier_assigner_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudySeriesPerformer_actor_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ImagingStudySeriesPerformer_actor_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ImagingStudySeriesPerformer_actor_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ImagingStudySeriesPerformer_actor_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ImagingStudySeriesPerformer_actor_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ImagingStudySeriesPerformer_actor_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ImagingStudySeriesPerformer_actor_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ImagingStudySeriesPerformer_actor_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudySeriesPerformer_actor_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudySeriesPerformer_actor_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudySeriesPerformer_actor_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudySeriesPerformer_actor_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudySeriesPerformer_actor_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudySeries_performer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ImagingStudySeries_performer_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ImagingStudySeries_performer_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ImagingStudySeries_performer_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ImagingStudySeries_performer_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ImagingStudySeries_performer_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ImagingStudySeries_performer_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ImagingStudySeries_performer_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudySeries_performer_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudySeries_performer_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudySeries_performer_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudySeries_performer_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudySeries_performer_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudySeries_specimen_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ImagingStudySeries_specimen_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ImagingStudySeries_specimen_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ImagingStudySeries_specimen_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ImagingStudySeries_specimen_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ImagingStudySeries_specimen_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ImagingStudySeries_specimen_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ImagingStudySeries_specimen_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudySeries_specimen_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudySeries_specimen_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudySeries_specimen_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudySeries_specimen_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudySeries_specimen_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_basedOn_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ImagingStudyType_basedOn_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ImagingStudyType_basedOn_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ImagingStudyType_basedOn_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ImagingStudyType_basedOn_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ImagingStudyType_basedOn_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ImagingStudyType_basedOn_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ImagingStudyType_basedOn_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_basedOn_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_basedOn_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_basedOn_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_basedOn_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_basedOn_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_note_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ImagingStudyType_note_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ImagingStudyType_note_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ImagingStudyType_note_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ImagingStudyType_note_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ImagingStudyType_note_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ImagingStudyType_note_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ImagingStudyType_note_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_note_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_note_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_note_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_note_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_note_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_partOf_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ImagingStudyType_partOf_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ImagingStudyType_partOf_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ImagingStudyType_partOf_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ImagingStudyType_partOf_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ImagingStudyType_partOf_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ImagingStudyType_partOf_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ImagingStudyType_partOf_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_partOf_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_partOf_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_partOf_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_partOf_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_partOf_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_referrer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ImagingStudyType_referrer_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ImagingStudyType_referrer_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ImagingStudyType_referrer_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ImagingStudyType_referrer_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ImagingStudyType_referrer_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ImagingStudyType_referrer_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ImagingStudyType_referrer_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_referrer_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_referrer_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_referrer_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_referrer_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_referrer_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_subject_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ImagingStudyType_subject_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ImagingStudyType_subject_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ImagingStudyType_subject_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ImagingStudyType_subject_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ImagingStudyType_subject_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ImagingStudyType_subject_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ImagingStudyType_subject_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_subject_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_subject_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_subject_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_subject_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ImagingStudyType_subject_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_note_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationAdministrationType_note_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationAdministrationType_note_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationAdministrationType_note_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationAdministrationType_note_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationAdministrationType_note_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationAdministrationType_note_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationAdministrationType_note_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_note_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_note_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_note_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_note_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_note_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_partOf_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationAdministrationType_partOf_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationAdministrationType_partOf_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationAdministrationType_partOf_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationAdministrationType_partOf_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationAdministrationType_partOf_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationAdministrationType_partOf_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationAdministrationType_partOf_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_partOf_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_partOf_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_partOf_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_partOf_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_partOf_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_request_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationAdministrationType_request_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationAdministrationType_request_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationAdministrationType_request_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationAdministrationType_request_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationAdministrationType_request_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationAdministrationType_request_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationAdministrationType_request_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_request_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_request_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_request_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_request_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_request_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_subject_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationAdministrationType_subject_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationAdministrationType_subject_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationAdministrationType_subject_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationAdministrationType_subject_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationAdministrationType_subject_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationAdministrationType_subject_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationAdministrationType_subject_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_subject_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_subject_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_subject_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_subject_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_subject_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_supportingInformation_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationAdministrationType_supportingInformation_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationAdministrationType_supportingInformation_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationAdministrationType_supportingInformation_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationAdministrationType_supportingInformation_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationAdministrationType_supportingInformation_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationAdministrationType_supportingInformation_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationAdministrationType_supportingInformation_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_supportingInformation_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_supportingInformation_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_supportingInformation_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_supportingInformation_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationAdministrationType_supportingInformation_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestDispenseRequest_dispenserInstruction_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationRequestDispenseRequest_dispenserInstruction_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationRequestDispenseRequest_dispenserInstruction_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationRequestDispenseRequest_dispenserInstruction_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationRequestDispenseRequest_dispenserInstruction_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationRequestDispenseRequest_dispenserInstruction_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationRequestDispenseRequest_dispenserInstruction_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationRequestDispenseRequest_dispenserInstruction_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestDispenseRequest_dispenserInstruction_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestDispenseRequest_dispenserInstruction_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestDispenseRequest_dispenserInstruction_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestDispenseRequest_dispenserInstruction_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestDispenseRequest_dispenserInstruction_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestDispenseRequest_dispenser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationRequestDispenseRequest_dispenser_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationRequestDispenseRequest_dispenser_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationRequestDispenseRequest_dispenser_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationRequestDispenseRequest_dispenser_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationRequestDispenseRequest_dispenser_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationRequestDispenseRequest_dispenser_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationRequestDispenseRequest_dispenser_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestDispenseRequest_dispenser_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestDispenseRequest_dispenser_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestDispenseRequest_dispenser_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestDispenseRequest_dispenser_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestDispenseRequest_dispenser_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_basedOn_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationRequestType_basedOn_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationRequestType_basedOn_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationRequestType_basedOn_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationRequestType_basedOn_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationRequestType_basedOn_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationRequestType_basedOn_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationRequestType_basedOn_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_basedOn_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_basedOn_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_basedOn_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_basedOn_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_basedOn_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_informationSource_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationRequestType_informationSource_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationRequestType_informationSource_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationRequestType_informationSource_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationRequestType_informationSource_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationRequestType_informationSource_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationRequestType_informationSource_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationRequestType_informationSource_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_informationSource_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_informationSource_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_informationSource_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_informationSource_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_informationSource_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_note_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationRequestType_note_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationRequestType_note_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationRequestType_note_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationRequestType_note_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationRequestType_note_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationRequestType_note_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationRequestType_note_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_note_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_note_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_note_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_note_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_note_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_performer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationRequestType_performer_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationRequestType_performer_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationRequestType_performer_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationRequestType_performer_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationRequestType_performer_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationRequestType_performer_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationRequestType_performer_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_performer_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_performer_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_performer_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_performer_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_performer_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_priorPrescription_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationRequestType_priorPrescription_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationRequestType_priorPrescription_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationRequestType_priorPrescription_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationRequestType_priorPrescription_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationRequestType_priorPrescription_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationRequestType_priorPrescription_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationRequestType_priorPrescription_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_priorPrescription_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_priorPrescription_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_priorPrescription_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_priorPrescription_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_priorPrescription_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_recorder_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationRequestType_recorder_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationRequestType_recorder_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationRequestType_recorder_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationRequestType_recorder_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationRequestType_recorder_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationRequestType_recorder_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationRequestType_recorder_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_recorder_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_recorder_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_recorder_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_recorder_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_recorder_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_requester_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationRequestType_requester_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationRequestType_requester_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationRequestType_requester_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationRequestType_requester_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationRequestType_requester_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationRequestType_requester_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationRequestType_requester_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_requester_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_requester_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_requester_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_requester_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_requester_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_subject_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationRequestType_subject_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationRequestType_subject_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationRequestType_subject_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationRequestType_subject_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationRequestType_subject_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationRequestType_subject_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationRequestType_subject_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_subject_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_subject_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_subject_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_subject_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_subject_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_supportingInformation_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationRequestType_supportingInformation_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationRequestType_supportingInformation_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationRequestType_supportingInformation_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationRequestType_supportingInformation_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationRequestType_supportingInformation_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationRequestType_supportingInformation_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationRequestType_supportingInformation_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_supportingInformation_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_supportingInformation_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_supportingInformation_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_supportingInformation_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationRequestType_supportingInformation_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_derivedFrom_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationStatementType_derivedFrom_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationStatementType_derivedFrom_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationStatementType_derivedFrom_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationStatementType_derivedFrom_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationStatementType_derivedFrom_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationStatementType_derivedFrom_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationStatementType_derivedFrom_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_derivedFrom_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_derivedFrom_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_derivedFrom_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_derivedFrom_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_derivedFrom_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_informationSource_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationStatementType_informationSource_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationStatementType_informationSource_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationStatementType_informationSource_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationStatementType_informationSource_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationStatementType_informationSource_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationStatementType_informationSource_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationStatementType_informationSource_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_informationSource_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_informationSource_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_informationSource_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_informationSource_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_informationSource_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_note_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationStatementType_note_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationStatementType_note_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationStatementType_note_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationStatementType_note_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationStatementType_note_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationStatementType_note_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationStatementType_note_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_note_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_note_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_note_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_note_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_note_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_partOf_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationStatementType_partOf_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationStatementType_partOf_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationStatementType_partOf_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationStatementType_partOf_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationStatementType_partOf_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationStatementType_partOf_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationStatementType_partOf_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_partOf_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_partOf_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_partOf_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_partOf_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_partOf_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_relatedClinicalInformation_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationStatementType_relatedClinicalInformation_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationStatementType_relatedClinicalInformation_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationStatementType_relatedClinicalInformation_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationStatementType_relatedClinicalInformation_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationStatementType_relatedClinicalInformation_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationStatementType_relatedClinicalInformation_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationStatementType_relatedClinicalInformation_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_relatedClinicalInformation_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_relatedClinicalInformation_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_relatedClinicalInformation_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_relatedClinicalInformation_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_relatedClinicalInformation_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_subject_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationStatementType_subject_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationStatementType_subject_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationStatementType_subject_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationStatementType_subject_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationStatementType_subject_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationStatementType_subject_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationStatementType_subject_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_subject_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_subject_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_subject_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_subject_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationStatementType_subject_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationType_marketingAuthorizationHolder_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_MedicationType_marketingAuthorizationHolder_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_MedicationType_marketingAuthorizationHolder_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_MedicationType_marketingAuthorizationHolder_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_MedicationType_marketingAuthorizationHolder_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_MedicationType_marketingAuthorizationHolder_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_MedicationType_marketingAuthorizationHolder_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_MedicationType_marketingAuthorizationHolder_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationType_marketingAuthorizationHolder_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationType_marketingAuthorizationHolder_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationType_marketingAuthorizationHolder_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationType_marketingAuthorizationHolder_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_MedicationType_marketingAuthorizationHolder_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationTriggeredBy_observation_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ObservationTriggeredBy_observation_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ObservationTriggeredBy_observation_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ObservationTriggeredBy_observation_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ObservationTriggeredBy_observation_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ObservationTriggeredBy_observation_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ObservationTriggeredBy_observation_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ObservationTriggeredBy_observation_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationTriggeredBy_observation_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationTriggeredBy_observation_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationTriggeredBy_observation_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationTriggeredBy_observation_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationTriggeredBy_observation_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_basedOn_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ObservationType_basedOn_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ObservationType_basedOn_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ObservationType_basedOn_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ObservationType_basedOn_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ObservationType_basedOn_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ObservationType_basedOn_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ObservationType_basedOn_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_basedOn_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_basedOn_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_basedOn_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_basedOn_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_basedOn_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_bodyStructure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ObservationType_bodyStructure_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ObservationType_bodyStructure_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ObservationType_bodyStructure_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ObservationType_bodyStructure_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ObservationType_bodyStructure_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ObservationType_bodyStructure_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ObservationType_bodyStructure_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_bodyStructure_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_bodyStructure_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_bodyStructure_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_bodyStructure_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_bodyStructure_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_derivedFrom_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ObservationType_derivedFrom_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ObservationType_derivedFrom_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ObservationType_derivedFrom_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ObservationType_derivedFrom_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ObservationType_derivedFrom_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ObservationType_derivedFrom_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ObservationType_derivedFrom_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_derivedFrom_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_derivedFrom_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_derivedFrom_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_derivedFrom_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_derivedFrom_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_focus_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ObservationType_focus_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ObservationType_focus_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ObservationType_focus_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ObservationType_focus_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ObservationType_focus_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ObservationType_focus_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ObservationType_focus_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_focus_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_focus_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_focus_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_focus_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_focus_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_hasMember_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ObservationType_hasMember_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ObservationType_hasMember_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ObservationType_hasMember_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ObservationType_hasMember_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ObservationType_hasMember_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ObservationType_hasMember_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ObservationType_hasMember_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_hasMember_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_hasMember_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_hasMember_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_hasMember_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_hasMember_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_note_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ObservationType_note_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ObservationType_note_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ObservationType_note_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ObservationType_note_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ObservationType_note_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ObservationType_note_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ObservationType_note_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_note_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_note_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_note_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_note_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_note_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_partOf_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ObservationType_partOf_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ObservationType_partOf_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ObservationType_partOf_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ObservationType_partOf_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ObservationType_partOf_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ObservationType_partOf_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ObservationType_partOf_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_partOf_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_partOf_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_partOf_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_partOf_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_partOf_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_performer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ObservationType_performer_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ObservationType_performer_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ObservationType_performer_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ObservationType_performer_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ObservationType_performer_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ObservationType_performer_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ObservationType_performer_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_performer_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_performer_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_performer_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_performer_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_performer_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_specimen_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ObservationType_specimen_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ObservationType_specimen_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ObservationType_specimen_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ObservationType_specimen_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ObservationType_specimen_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ObservationType_specimen_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ObservationType_specimen_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_specimen_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_specimen_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_specimen_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_specimen_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_specimen_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_subject_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ObservationType_subject_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ObservationType_subject_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ObservationType_subject_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ObservationType_subject_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ObservationType_subject_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ObservationType_subject_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ObservationType_subject_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_subject_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_subject_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_subject_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_subject_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ObservationType_subject_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_OrganizationQualification_issuer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_OrganizationQualification_issuer_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_OrganizationQualification_issuer_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_OrganizationQualification_issuer_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_OrganizationQualification_issuer_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_OrganizationQualification_issuer_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_OrganizationQualification_issuer_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_OrganizationQualification_issuer_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_OrganizationQualification_issuer_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_OrganizationQualification_issuer_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_OrganizationQualification_issuer_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_OrganizationQualification_issuer_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_OrganizationQualification_issuer_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_OrganizationType_partOf_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_OrganizationType_partOf_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_OrganizationType_partOf_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_OrganizationType_partOf_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_OrganizationType_partOf_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_OrganizationType_partOf_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_OrganizationType_partOf_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_OrganizationType_partOf_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_OrganizationType_partOf_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_OrganizationType_partOf_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_OrganizationType_partOf_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_OrganizationType_partOf_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_OrganizationType_partOf_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_PatientContact_organization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_PatientContact_organization_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_PatientContact_organization_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_PatientContact_organization_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_PatientContact_organization_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_PatientContact_organization_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_PatientContact_organization_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_PatientContact_organization_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_PatientContact_organization_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_PatientContact_organization_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_PatientContact_organization_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_PatientContact_organization_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_PatientContact_organization_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_PatientLink_other_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_PatientLink_other_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_PatientLink_other_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_PatientLink_other_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_PatientLink_other_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_PatientLink_other_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_PatientLink_other_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_PatientLink_other_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_PatientLink_other_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_PatientLink_other_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_PatientLink_other_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_PatientLink_other_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_PatientLink_other_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_PatientType_generalPractitioner_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_PatientType_generalPractitioner_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_PatientType_generalPractitioner_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_PatientType_generalPractitioner_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_PatientType_generalPractitioner_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_PatientType_generalPractitioner_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_PatientType_generalPractitioner_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_PatientType_generalPractitioner_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_PatientType_generalPractitioner_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_PatientType_generalPractitioner_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_PatientType_generalPractitioner_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_PatientType_generalPractitioner_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_PatientType_generalPractitioner_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_PatientType_link_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_PatientType_link_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_PatientType_link_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_PatientType_link_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_PatientType_link_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_PatientType_link_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_PatientType_link_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_PatientType_link_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_PatientType_link_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_PatientType_link_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_PatientType_link_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_PatientType_link_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_PatientType_link_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_PatientType_managingOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_PatientType_managingOrganization_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_PatientType_managingOrganization_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_PatientType_managingOrganization_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_PatientType_managingOrganization_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_PatientType_managingOrganization_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_PatientType_managingOrganization_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_PatientType_managingOrganization_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_PatientType_managingOrganization_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_PatientType_managingOrganization_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_PatientType_managingOrganization_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_PatientType_managingOrganization_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_PatientType_managingOrganization_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_PractitionerQualification_issuer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_PractitionerQualification_issuer_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_PractitionerQualification_issuer_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_PractitionerQualification_issuer_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_PractitionerQualification_issuer_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_PractitionerQualification_issuer_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_PractitionerQualification_issuer_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_PractitionerQualification_issuer_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_PractitionerQualification_issuer_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_PractitionerQualification_issuer_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_PractitionerQualification_issuer_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_PractitionerQualification_issuer_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_PractitionerQualification_issuer_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_PractitionerRoleType_organization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_PractitionerRoleType_organization_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_PractitionerRoleType_organization_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_PractitionerRoleType_organization_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_PractitionerRoleType_organization_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_PractitionerRoleType_organization_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_PractitionerRoleType_organization_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_PractitionerRoleType_organization_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_PractitionerRoleType_organization_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_PractitionerRoleType_organization_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_PractitionerRoleType_organization_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_PractitionerRoleType_organization_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_PractitionerRoleType_organization_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_PractitionerRoleType_practitioner_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_PractitionerRoleType_practitioner_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_PractitionerRoleType_practitioner_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_PractitionerRoleType_practitioner_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_PractitionerRoleType_practitioner_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_PractitionerRoleType_practitioner_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_PractitionerRoleType_practitioner_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_PractitionerRoleType_practitioner_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_PractitionerRoleType_practitioner_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_PractitionerRoleType_practitioner_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_PractitionerRoleType_practitioner_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_PractitionerRoleType_practitioner_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_PractitionerRoleType_practitioner_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedurePerformer_actor_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ProcedurePerformer_actor_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ProcedurePerformer_actor_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ProcedurePerformer_actor_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ProcedurePerformer_actor_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ProcedurePerformer_actor_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ProcedurePerformer_actor_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ProcedurePerformer_actor_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedurePerformer_actor_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedurePerformer_actor_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedurePerformer_actor_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedurePerformer_actor_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedurePerformer_actor_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedurePerformer_onBehalfOf_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ProcedurePerformer_onBehalfOf_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ProcedurePerformer_onBehalfOf_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ProcedurePerformer_onBehalfOf_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ProcedurePerformer_onBehalfOf_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ProcedurePerformer_onBehalfOf_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ProcedurePerformer_onBehalfOf_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ProcedurePerformer_onBehalfOf_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedurePerformer_onBehalfOf_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedurePerformer_onBehalfOf_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedurePerformer_onBehalfOf_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedurePerformer_onBehalfOf_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedurePerformer_onBehalfOf_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_focus_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ProcedureType_focus_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ProcedureType_focus_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ProcedureType_focus_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ProcedureType_focus_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ProcedureType_focus_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ProcedureType_focus_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ProcedureType_focus_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_focus_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_focus_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_focus_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_focus_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_focus_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_note_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ProcedureType_note_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ProcedureType_note_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ProcedureType_note_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ProcedureType_note_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ProcedureType_note_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ProcedureType_note_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ProcedureType_note_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_note_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_note_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_note_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_note_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_note_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_partOf_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ProcedureType_partOf_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ProcedureType_partOf_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ProcedureType_partOf_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ProcedureType_partOf_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ProcedureType_partOf_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ProcedureType_partOf_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ProcedureType_partOf_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_partOf_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_partOf_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_partOf_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_partOf_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_partOf_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_performer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ProcedureType_performer_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ProcedureType_performer_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ProcedureType_performer_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ProcedureType_performer_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ProcedureType_performer_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ProcedureType_performer_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ProcedureType_performer_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_performer_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_performer_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_performer_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_performer_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_performer_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_recorder_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ProcedureType_recorder_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ProcedureType_recorder_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ProcedureType_recorder_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ProcedureType_recorder_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ProcedureType_recorder_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ProcedureType_recorder_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ProcedureType_recorder_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_recorder_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_recorder_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_recorder_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_recorder_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_recorder_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_report_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ProcedureType_report_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ProcedureType_report_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ProcedureType_report_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ProcedureType_report_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ProcedureType_report_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ProcedureType_report_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ProcedureType_report_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_report_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_report_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_report_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_report_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_report_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_reportedReference_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ProcedureType_reportedReference_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ProcedureType_reportedReference_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ProcedureType_reportedReference_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ProcedureType_reportedReference_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ProcedureType_reportedReference_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ProcedureType_reportedReference_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ProcedureType_reportedReference_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_reportedReference_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_reportedReference_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_reportedReference_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_reportedReference_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_reportedReference_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_subject_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ProcedureType_subject_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ProcedureType_subject_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ProcedureType_subject_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ProcedureType_subject_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ProcedureType_subject_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ProcedureType_subject_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ProcedureType_subject_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_subject_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_subject_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_subject_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_subject_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_subject_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_supportingInfo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ProcedureType_supportingInfo_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ProcedureType_supportingInfo_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ProcedureType_supportingInfo_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ProcedureType_supportingInfo_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ProcedureType_supportingInfo_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ProcedureType_supportingInfo_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ProcedureType_supportingInfo_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_supportingInfo_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_supportingInfo_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_supportingInfo_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_supportingInfo_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ProcedureType_supportingInfo_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["name"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query___type_argsName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["name"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + if tmp, ok := rawArgs["name"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_bodyStructure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_bodyStructure_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_bodyStructure_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_bodyStructure_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_bodyStructure_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_bodyStructure_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_bodyStructure_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_bodyStructure_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_bodyStructure_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_bodyStructure_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_bodyStructure_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_bodyStructure_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_bodyStructure_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_condition_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_condition_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_condition_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_condition_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_condition_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_condition_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_condition_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_condition_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_condition_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_condition_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_condition_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_condition_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_condition_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_diagnosticReport_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_diagnosticReport_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_diagnosticReport_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_diagnosticReport_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_diagnosticReport_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_diagnosticReport_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_diagnosticReport_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_diagnosticReport_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_diagnosticReport_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_diagnosticReport_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_diagnosticReport_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_diagnosticReport_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_diagnosticReport_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_documentReference_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_documentReference_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_documentReference_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_documentReference_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_documentReference_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_documentReference_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_documentReference_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_documentReference_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_documentReference_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_documentReference_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_documentReference_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_documentReference_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_documentReference_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_familyMemberHistory_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_familyMemberHistory_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_familyMemberHistory_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_familyMemberHistory_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_familyMemberHistory_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_familyMemberHistory_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_familyMemberHistory_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_familyMemberHistory_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_familyMemberHistory_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_familyMemberHistory_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_familyMemberHistory_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_familyMemberHistory_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_familyMemberHistory_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_group_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_group_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_group_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_group_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_group_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_group_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_group_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_group_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_group_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_group_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_group_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_group_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_group_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_imagingStudy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_imagingStudy_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_imagingStudy_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_imagingStudy_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_imagingStudy_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_imagingStudy_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_imagingStudy_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_imagingStudy_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_imagingStudy_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_imagingStudy_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_imagingStudy_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_imagingStudy_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_imagingStudy_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medicationAdministration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_medicationAdministration_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_medicationAdministration_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_medicationAdministration_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_medicationAdministration_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_medicationAdministration_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_medicationAdministration_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_medicationAdministration_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medicationAdministration_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medicationAdministration_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medicationAdministration_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medicationAdministration_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medicationAdministration_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medicationRequest_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_medicationRequest_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_medicationRequest_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_medicationRequest_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_medicationRequest_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_medicationRequest_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_medicationRequest_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_medicationRequest_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medicationRequest_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medicationRequest_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medicationRequest_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medicationRequest_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medicationRequest_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medicationStatement_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_medicationStatement_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_medicationStatement_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_medicationStatement_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_medicationStatement_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_medicationStatement_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_medicationStatement_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_medicationStatement_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medicationStatement_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medicationStatement_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medicationStatement_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medicationStatement_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medicationStatement_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medication_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_medication_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_medication_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_medication_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_medication_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_medication_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_medication_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_medication_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medication_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medication_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medication_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medication_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_medication_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_observation_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_observation_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_observation_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_observation_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_observation_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_observation_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_observation_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_observation_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_observation_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_observation_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_observation_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_observation_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_observation_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_organization_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_organization_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_organization_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_organization_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_organization_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_organization_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_organization_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organization_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organization_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organization_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organization_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organization_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_patient_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_patient_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_patient_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_patient_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_patient_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_patient_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_patient_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_patient_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_patient_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_patient_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_patient_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_patient_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_patient_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_practitionerRole_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_practitionerRole_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_practitionerRole_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_practitionerRole_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_practitionerRole_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_practitionerRole_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_practitionerRole_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_practitionerRole_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_practitionerRole_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_practitionerRole_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_practitionerRole_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_practitionerRole_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_practitionerRole_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_practitioner_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_practitioner_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_practitioner_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_practitioner_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_practitioner_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_practitioner_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_practitioner_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_practitioner_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_practitioner_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_practitioner_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_practitioner_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_practitioner_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_practitioner_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_procedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_procedure_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_procedure_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_procedure_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_procedure_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_procedure_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_procedure_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_procedure_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_procedure_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_procedure_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_procedure_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_procedure_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_procedure_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_researchStudy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_researchStudy_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_researchStudy_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_researchStudy_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_researchStudy_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_researchStudy_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_researchStudy_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_researchStudy_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_researchStudy_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_researchStudy_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_researchStudy_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_researchStudy_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_researchStudy_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_researchSubject_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_researchSubject_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_researchSubject_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_researchSubject_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_researchSubject_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_researchSubject_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_researchSubject_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_researchSubject_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_researchSubject_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_researchSubject_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_researchSubject_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_researchSubject_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_researchSubject_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_specimen_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_specimen_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_specimen_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_specimen_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_specimen_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_specimen_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_specimen_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_specimen_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_specimen_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_specimen_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_specimen_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_specimen_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_specimen_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_substanceDefinition_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_substanceDefinition_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_substanceDefinition_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_substanceDefinition_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_substanceDefinition_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_substanceDefinition_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_substanceDefinition_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_substanceDefinition_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_substanceDefinition_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_substanceDefinition_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_substanceDefinition_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_substanceDefinition_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_substanceDefinition_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_substance_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_substance_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_substance_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_substance_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_substance_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_substance_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_substance_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_substance_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_substance_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_substance_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_substance_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_substance_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_substance_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Query_task_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_task_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Query_task_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_task_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Query_task_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Query_task_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Query_task_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_task_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_task_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_task_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_task_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_task_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Query_task_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_RelatedArtifact_resourceReference_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_RelatedArtifact_resourceReference_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_RelatedArtifact_resourceReference_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_RelatedArtifact_resourceReference_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_RelatedArtifact_resourceReference_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_RelatedArtifact_resourceReference_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_RelatedArtifact_resourceReference_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_RelatedArtifact_resourceReference_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_RelatedArtifact_resourceReference_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_RelatedArtifact_resourceReference_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_RelatedArtifact_resourceReference_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_RelatedArtifact_resourceReference_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_RelatedArtifact_resourceReference_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyAssociatedParty_party_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ResearchStudyAssociatedParty_party_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ResearchStudyAssociatedParty_party_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ResearchStudyAssociatedParty_party_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ResearchStudyAssociatedParty_party_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ResearchStudyAssociatedParty_party_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ResearchStudyAssociatedParty_party_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ResearchStudyAssociatedParty_party_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyAssociatedParty_party_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyAssociatedParty_party_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyAssociatedParty_party_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyAssociatedParty_party_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyAssociatedParty_party_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyComparisonGroup_observedGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ResearchStudyComparisonGroup_observedGroup_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ResearchStudyComparisonGroup_observedGroup_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ResearchStudyComparisonGroup_observedGroup_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ResearchStudyComparisonGroup_observedGroup_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ResearchStudyComparisonGroup_observedGroup_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ResearchStudyComparisonGroup_observedGroup_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ResearchStudyComparisonGroup_observedGroup_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyComparisonGroup_observedGroup_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyComparisonGroup_observedGroup_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyComparisonGroup_observedGroup_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyComparisonGroup_observedGroup_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyComparisonGroup_observedGroup_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyRecruitment_actualGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ResearchStudyRecruitment_actualGroup_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ResearchStudyRecruitment_actualGroup_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ResearchStudyRecruitment_actualGroup_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ResearchStudyRecruitment_actualGroup_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ResearchStudyRecruitment_actualGroup_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ResearchStudyRecruitment_actualGroup_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ResearchStudyRecruitment_actualGroup_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyRecruitment_actualGroup_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyRecruitment_actualGroup_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyRecruitment_actualGroup_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyRecruitment_actualGroup_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyRecruitment_actualGroup_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyRecruitment_eligibility_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ResearchStudyRecruitment_eligibility_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ResearchStudyRecruitment_eligibility_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ResearchStudyRecruitment_eligibility_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ResearchStudyRecruitment_eligibility_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ResearchStudyRecruitment_eligibility_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ResearchStudyRecruitment_eligibility_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ResearchStudyRecruitment_eligibility_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyRecruitment_eligibility_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyRecruitment_eligibility_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyRecruitment_eligibility_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyRecruitment_eligibility_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyRecruitment_eligibility_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_associatedParty_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ResearchStudyType_associatedParty_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ResearchStudyType_associatedParty_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ResearchStudyType_associatedParty_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ResearchStudyType_associatedParty_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ResearchStudyType_associatedParty_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ResearchStudyType_associatedParty_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ResearchStudyType_associatedParty_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_associatedParty_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_associatedParty_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_associatedParty_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_associatedParty_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_associatedParty_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_note_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ResearchStudyType_note_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ResearchStudyType_note_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ResearchStudyType_note_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ResearchStudyType_note_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ResearchStudyType_note_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ResearchStudyType_note_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ResearchStudyType_note_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_note_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_note_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_note_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_note_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_note_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_partOf_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ResearchStudyType_partOf_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ResearchStudyType_partOf_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ResearchStudyType_partOf_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ResearchStudyType_partOf_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ResearchStudyType_partOf_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ResearchStudyType_partOf_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ResearchStudyType_partOf_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_partOf_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_partOf_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_partOf_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_partOf_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_partOf_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_recruitment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ResearchStudyType_recruitment_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ResearchStudyType_recruitment_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ResearchStudyType_recruitment_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ResearchStudyType_recruitment_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ResearchStudyType_recruitment_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ResearchStudyType_recruitment_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ResearchStudyType_recruitment_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_recruitment_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_recruitment_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_recruitment_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_recruitment_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_recruitment_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_result_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ResearchStudyType_result_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ResearchStudyType_result_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ResearchStudyType_result_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ResearchStudyType_result_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ResearchStudyType_result_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ResearchStudyType_result_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ResearchStudyType_result_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_result_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_result_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_result_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_result_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_result_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_site_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ResearchStudyType_site_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ResearchStudyType_site_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ResearchStudyType_site_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ResearchStudyType_site_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ResearchStudyType_site_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ResearchStudyType_site_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ResearchStudyType_site_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_site_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_site_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_site_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_site_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchStudyType_site_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchSubjectType_study_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ResearchSubjectType_study_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ResearchSubjectType_study_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ResearchSubjectType_study_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ResearchSubjectType_study_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ResearchSubjectType_study_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ResearchSubjectType_study_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ResearchSubjectType_study_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchSubjectType_study_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchSubjectType_study_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchSubjectType_study_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchSubjectType_study_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchSubjectType_study_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchSubjectType_subject_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ResearchSubjectType_subject_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_ResearchSubjectType_subject_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_ResearchSubjectType_subject_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_ResearchSubjectType_subject_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_ResearchSubjectType_subject_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_ResearchSubjectType_subject_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_ResearchSubjectType_subject_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchSubjectType_subject_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchSubjectType_subject_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchSubjectType_subject_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchSubjectType_subject_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_ResearchSubjectType_subject_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Signature_onBehalfOf_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Signature_onBehalfOf_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Signature_onBehalfOf_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Signature_onBehalfOf_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Signature_onBehalfOf_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Signature_onBehalfOf_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Signature_onBehalfOf_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Signature_onBehalfOf_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Signature_onBehalfOf_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Signature_onBehalfOf_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Signature_onBehalfOf_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Signature_onBehalfOf_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Signature_onBehalfOf_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_Signature_who_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Signature_who_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_Signature_who_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Signature_who_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_Signature_who_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_Signature_who_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_Signature_who_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_Signature_who_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Signature_who_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Signature_who_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Signature_who_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Signature_who_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_Signature_who_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenCollection_collector_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SpecimenCollection_collector_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_SpecimenCollection_collector_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SpecimenCollection_collector_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_SpecimenCollection_collector_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_SpecimenCollection_collector_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_SpecimenCollection_collector_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_SpecimenCollection_collector_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenCollection_collector_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenCollection_collector_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenCollection_collector_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenCollection_collector_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenCollection_collector_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenCollection_procedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SpecimenCollection_procedure_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_SpecimenCollection_procedure_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SpecimenCollection_procedure_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_SpecimenCollection_procedure_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_SpecimenCollection_procedure_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_SpecimenCollection_procedure_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_SpecimenCollection_procedure_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenCollection_procedure_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenCollection_procedure_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenCollection_procedure_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenCollection_procedure_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenCollection_procedure_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenProcessing_additive_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SpecimenProcessing_additive_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_SpecimenProcessing_additive_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SpecimenProcessing_additive_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_SpecimenProcessing_additive_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_SpecimenProcessing_additive_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_SpecimenProcessing_additive_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_SpecimenProcessing_additive_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenProcessing_additive_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenProcessing_additive_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenProcessing_additive_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenProcessing_additive_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenProcessing_additive_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_collection_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SpecimenType_collection_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_SpecimenType_collection_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SpecimenType_collection_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_SpecimenType_collection_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_SpecimenType_collection_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_SpecimenType_collection_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_SpecimenType_collection_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_collection_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_collection_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_collection_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_collection_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_collection_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_note_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SpecimenType_note_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_SpecimenType_note_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SpecimenType_note_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_SpecimenType_note_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_SpecimenType_note_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_SpecimenType_note_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_SpecimenType_note_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_note_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_note_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_note_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_note_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_note_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_parent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SpecimenType_parent_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_SpecimenType_parent_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SpecimenType_parent_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_SpecimenType_parent_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_SpecimenType_parent_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_SpecimenType_parent_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_SpecimenType_parent_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_parent_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_parent_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_parent_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_parent_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_parent_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_subject_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SpecimenType_subject_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_SpecimenType_subject_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SpecimenType_subject_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_SpecimenType_subject_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_SpecimenType_subject_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_SpecimenType_subject_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_SpecimenType_subject_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_subject_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_subject_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_subject_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_subject_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_SpecimenType_subject_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionCode_note_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SubstanceDefinitionCode_note_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_SubstanceDefinitionCode_note_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SubstanceDefinitionCode_note_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_SubstanceDefinitionCode_note_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_SubstanceDefinitionCode_note_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_SubstanceDefinitionCode_note_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_SubstanceDefinitionCode_note_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionCode_note_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionCode_note_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionCode_note_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionCode_note_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionCode_note_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionCode_source_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SubstanceDefinitionCode_source_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_SubstanceDefinitionCode_source_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SubstanceDefinitionCode_source_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_SubstanceDefinitionCode_source_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_SubstanceDefinitionCode_source_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_SubstanceDefinitionCode_source_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_SubstanceDefinitionCode_source_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionCode_source_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionCode_source_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionCode_source_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionCode_source_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionCode_source_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionName_source_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SubstanceDefinitionName_source_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_SubstanceDefinitionName_source_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SubstanceDefinitionName_source_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_SubstanceDefinitionName_source_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_SubstanceDefinitionName_source_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_SubstanceDefinitionName_source_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_SubstanceDefinitionName_source_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionName_source_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionName_source_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionName_source_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionName_source_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionName_source_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionRelationship_source_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SubstanceDefinitionRelationship_source_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_SubstanceDefinitionRelationship_source_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SubstanceDefinitionRelationship_source_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_SubstanceDefinitionRelationship_source_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_SubstanceDefinitionRelationship_source_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_SubstanceDefinitionRelationship_source_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_SubstanceDefinitionRelationship_source_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionRelationship_source_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionRelationship_source_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionRelationship_source_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionRelationship_source_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionRelationship_source_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionRelationship_substanceDefinitionReference_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SubstanceDefinitionRelationship_substanceDefinitionReference_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_SubstanceDefinitionRelationship_substanceDefinitionReference_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SubstanceDefinitionRelationship_substanceDefinitionReference_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_SubstanceDefinitionRelationship_substanceDefinitionReference_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_SubstanceDefinitionRelationship_substanceDefinitionReference_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_SubstanceDefinitionRelationship_substanceDefinitionReference_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_SubstanceDefinitionRelationship_substanceDefinitionReference_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionRelationship_substanceDefinitionReference_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionRelationship_substanceDefinitionReference_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionRelationship_substanceDefinitionReference_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionRelationship_substanceDefinitionReference_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionRelationship_substanceDefinitionReference_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionStructureRepresentation_document_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SubstanceDefinitionStructureRepresentation_document_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_SubstanceDefinitionStructureRepresentation_document_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SubstanceDefinitionStructureRepresentation_document_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_SubstanceDefinitionStructureRepresentation_document_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_SubstanceDefinitionStructureRepresentation_document_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_SubstanceDefinitionStructureRepresentation_document_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_SubstanceDefinitionStructureRepresentation_document_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionStructureRepresentation_document_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionStructureRepresentation_document_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionStructureRepresentation_document_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionStructureRepresentation_document_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionStructureRepresentation_document_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionStructure_sourceDocument_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SubstanceDefinitionStructure_sourceDocument_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_SubstanceDefinitionStructure_sourceDocument_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SubstanceDefinitionStructure_sourceDocument_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_SubstanceDefinitionStructure_sourceDocument_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_SubstanceDefinitionStructure_sourceDocument_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_SubstanceDefinitionStructure_sourceDocument_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_SubstanceDefinitionStructure_sourceDocument_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionStructure_sourceDocument_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionStructure_sourceDocument_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionStructure_sourceDocument_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionStructure_sourceDocument_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionStructure_sourceDocument_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionType_manufacturer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SubstanceDefinitionType_manufacturer_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_SubstanceDefinitionType_manufacturer_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SubstanceDefinitionType_manufacturer_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_SubstanceDefinitionType_manufacturer_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_SubstanceDefinitionType_manufacturer_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_SubstanceDefinitionType_manufacturer_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_SubstanceDefinitionType_manufacturer_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionType_manufacturer_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionType_manufacturer_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionType_manufacturer_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionType_manufacturer_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionType_manufacturer_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionType_note_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SubstanceDefinitionType_note_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_SubstanceDefinitionType_note_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SubstanceDefinitionType_note_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_SubstanceDefinitionType_note_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_SubstanceDefinitionType_note_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_SubstanceDefinitionType_note_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_SubstanceDefinitionType_note_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionType_note_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionType_note_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionType_note_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionType_note_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionType_note_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionType_supplier_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SubstanceDefinitionType_supplier_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_SubstanceDefinitionType_supplier_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SubstanceDefinitionType_supplier_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_SubstanceDefinitionType_supplier_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_SubstanceDefinitionType_supplier_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_SubstanceDefinitionType_supplier_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_SubstanceDefinitionType_supplier_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionType_supplier_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionType_supplier_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionType_supplier_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionType_supplier_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceDefinitionType_supplier_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceIngredient_substanceReference_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SubstanceIngredient_substanceReference_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_SubstanceIngredient_substanceReference_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SubstanceIngredient_substanceReference_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_SubstanceIngredient_substanceReference_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_SubstanceIngredient_substanceReference_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_SubstanceIngredient_substanceReference_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_SubstanceIngredient_substanceReference_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceIngredient_substanceReference_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceIngredient_substanceReference_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceIngredient_substanceReference_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceIngredient_substanceReference_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_SubstanceIngredient_substanceReference_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_TaskInput_valueAnnotation_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_TaskInput_valueAnnotation_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_TaskInput_valueAnnotation_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_TaskInput_valueAnnotation_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_TaskInput_valueAnnotation_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_TaskInput_valueAnnotation_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_TaskInput_valueAnnotation_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_TaskInput_valueAnnotation_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskInput_valueAnnotation_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskInput_valueAnnotation_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskInput_valueAnnotation_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskInput_valueAnnotation_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_TaskInput_valueAnnotation_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_TaskInput_valueSignature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_TaskInput_valueSignature_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_TaskInput_valueSignature_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_TaskInput_valueSignature_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_TaskInput_valueSignature_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_TaskInput_valueSignature_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_TaskInput_valueSignature_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_TaskInput_valueSignature_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskInput_valueSignature_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskInput_valueSignature_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskInput_valueSignature_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskInput_valueSignature_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_TaskInput_valueSignature_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_TaskInput_valueUsageContext_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_TaskInput_valueUsageContext_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_TaskInput_valueUsageContext_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_TaskInput_valueUsageContext_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_TaskInput_valueUsageContext_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_TaskInput_valueUsageContext_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_TaskInput_valueUsageContext_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_TaskInput_valueUsageContext_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskInput_valueUsageContext_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskInput_valueUsageContext_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskInput_valueUsageContext_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskInput_valueUsageContext_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_TaskInput_valueUsageContext_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_TaskOutput_valueAnnotation_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_TaskOutput_valueAnnotation_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_TaskOutput_valueAnnotation_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_TaskOutput_valueAnnotation_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_TaskOutput_valueAnnotation_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_TaskOutput_valueAnnotation_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_TaskOutput_valueAnnotation_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_TaskOutput_valueAnnotation_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskOutput_valueAnnotation_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskOutput_valueAnnotation_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskOutput_valueAnnotation_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskOutput_valueAnnotation_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_TaskOutput_valueAnnotation_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_TaskOutput_valueSignature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_TaskOutput_valueSignature_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_TaskOutput_valueSignature_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_TaskOutput_valueSignature_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_TaskOutput_valueSignature_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_TaskOutput_valueSignature_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_TaskOutput_valueSignature_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_TaskOutput_valueSignature_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskOutput_valueSignature_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskOutput_valueSignature_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskOutput_valueSignature_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskOutput_valueSignature_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_TaskOutput_valueSignature_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_TaskOutput_valueUsageContext_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_TaskOutput_valueUsageContext_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_TaskOutput_valueUsageContext_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_TaskOutput_valueUsageContext_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_TaskOutput_valueUsageContext_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_TaskOutput_valueUsageContext_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_TaskOutput_valueUsageContext_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_TaskOutput_valueUsageContext_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskOutput_valueUsageContext_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskOutput_valueUsageContext_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskOutput_valueUsageContext_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskOutput_valueUsageContext_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_TaskOutput_valueUsageContext_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_TaskPerformer_actor_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_TaskPerformer_actor_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_TaskPerformer_actor_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_TaskPerformer_actor_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_TaskPerformer_actor_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_TaskPerformer_actor_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_TaskPerformer_actor_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_TaskPerformer_actor_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskPerformer_actor_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskPerformer_actor_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskPerformer_actor_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskPerformer_actor_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_TaskPerformer_actor_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_TaskRestriction_recipient_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_TaskRestriction_recipient_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_TaskRestriction_recipient_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_TaskRestriction_recipient_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_TaskRestriction_recipient_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_TaskRestriction_recipient_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_TaskRestriction_recipient_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_TaskRestriction_recipient_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskRestriction_recipient_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskRestriction_recipient_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskRestriction_recipient_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskRestriction_recipient_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_TaskRestriction_recipient_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_basedOn_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_TaskType_basedOn_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_TaskType_basedOn_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_TaskType_basedOn_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_TaskType_basedOn_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_TaskType_basedOn_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_TaskType_basedOn_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_TaskType_basedOn_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_basedOn_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_basedOn_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_basedOn_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_basedOn_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_basedOn_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_focus_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_TaskType_focus_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_TaskType_focus_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_TaskType_focus_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_TaskType_focus_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_TaskType_focus_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_TaskType_focus_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_TaskType_focus_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_focus_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_focus_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_focus_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_focus_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_focus_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_note_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_TaskType_note_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_TaskType_note_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_TaskType_note_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_TaskType_note_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_TaskType_note_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_TaskType_note_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_TaskType_note_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_note_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_note_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_note_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_note_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_note_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_owner_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_TaskType_owner_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_TaskType_owner_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_TaskType_owner_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_TaskType_owner_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_TaskType_owner_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_TaskType_owner_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_TaskType_owner_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_owner_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_owner_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_owner_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_owner_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_owner_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_partOf_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_TaskType_partOf_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_TaskType_partOf_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_TaskType_partOf_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_TaskType_partOf_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_TaskType_partOf_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_TaskType_partOf_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_TaskType_partOf_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_partOf_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_partOf_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_partOf_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_partOf_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_partOf_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_performer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_TaskType_performer_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_TaskType_performer_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_TaskType_performer_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_TaskType_performer_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_TaskType_performer_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_TaskType_performer_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_TaskType_performer_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_performer_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_performer_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_performer_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_performer_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_performer_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_requester_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_TaskType_requester_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_TaskType_requester_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_TaskType_requester_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_TaskType_requester_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_TaskType_requester_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_TaskType_requester_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_TaskType_requester_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_requester_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_requester_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_requester_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_requester_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_requester_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_restriction_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_TaskType_restriction_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_TaskType_restriction_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_TaskType_restriction_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_TaskType_restriction_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_TaskType_restriction_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_TaskType_restriction_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_TaskType_restriction_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_restriction_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_restriction_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_restriction_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_restriction_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_TaskType_restriction_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field_UsageContext_valueReference_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_UsageContext_valueReference_argsOffset(ctx, rawArgs) + if err != nil { + return nil, err + } + args["offset"] = arg0 + arg1, err := ec.field_UsageContext_valueReference_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_UsageContext_valueReference_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg2 + arg3, err := ec.field_UsageContext_valueReference_argsSort(ctx, rawArgs) + if err != nil { + return nil, err + } + args["sort"] = arg3 + arg4, err := ec.field_UsageContext_valueReference_argsAccessibility(ctx, rawArgs) + if err != nil { + return nil, err + } + args["accessibility"] = arg4 + arg5, err := ec.field_UsageContext_valueReference_argsFormat(ctx, rawArgs) + if err != nil { + return nil, err + } + args["format"] = arg5 + return args, nil +} +func (ec *executionContext) field_UsageContext_valueReference_argsOffset( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["offset"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + if tmp, ok := rawArgs["offset"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_UsageContext_valueReference_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_UsageContext_valueReference_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_UsageContext_valueReference_argsSort( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["sort"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + if tmp, ok := rawArgs["sort"]; ok { + return ec.unmarshalOJSON2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_UsageContext_valueReference_argsAccessibility( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Accessibility, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["accessibility"] + if !ok { + var zeroVal *model.Accessibility + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("accessibility")) + if tmp, ok := rawArgs["accessibility"]; ok { + return ec.unmarshalOAccessibility2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAccessibility(ctx, tmp) + } + + var zeroVal *model.Accessibility + return zeroVal, nil +} + +func (ec *executionContext) field_UsageContext_valueReference_argsFormat( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.Format, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["format"] + if !ok { + var zeroVal *model.Format + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) + if tmp, ok := rawArgs["format"]; ok { + return ec.unmarshalOFormat2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFormat(ctx, tmp) + } + + var zeroVal *model.Format + return zeroVal, nil +} + +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) + if err != nil { + return nil, err + } + args["includeDeprecated"] = arg0 + return args, nil +} +func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( + ctx context.Context, + rawArgs map[string]interface{}, +) (bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["includeDeprecated"] + if !ok { + var zeroVal bool + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) + if tmp, ok := rawArgs["includeDeprecated"]; ok { + return ec.unmarshalOBoolean2bool(ctx, tmp) + } + + var zeroVal bool + return zeroVal, nil +} + +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) + if err != nil { + return nil, err + } + args["includeDeprecated"] = arg0 + return args, nil +} +func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( + ctx context.Context, + rawArgs map[string]interface{}, +) (bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["includeDeprecated"] + if !ok { + var zeroVal bool + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) + if tmp, ok := rawArgs["includeDeprecated"]; ok { + return ec.unmarshalOBoolean2bool(ctx, tmp) + } + + var zeroVal bool + return zeroVal, nil +} + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// 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) + 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_Address_text(_ 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") + }, + } + 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) + 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.Use, 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_Address_use(_ 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") + }, + } + 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Line, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Country, 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_Address_country(_ 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") + }, + } + 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) + 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.PostalCode, 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_Address_postalCode(_ 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") + }, + } + 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) + 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.State, 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_Address_state(_ 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") + }, + } + return fc, nil +} + +func (ec *executionContext) _Address_city(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Address_city(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.City, 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_Address_city(_ 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") + }, + } + 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) + 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.District, 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_Address_district(_ 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") + }, + } + 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) + 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_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) { + 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) _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 + } + 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_Address_resourceType(_ 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") + }, + } + return fc, nil +} + +func (ec *executionContext) _Address_type(ctx context.Context, field graphql.CollectedField, obj *model.Address) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Address_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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Address_type(_ 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") + }, + } + 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) + 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_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) { + 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) _Age_code(ctx context.Context, field graphql.CollectedField, obj *model.Age) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Age_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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Age_code(_ 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_comparator(ctx context.Context, field graphql.CollectedField, obj *model.Age) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Age_comparator(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.Comparator, 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_comparator(_ 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_extension(ctx context.Context, field graphql.CollectedField, obj *model.Age) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Age_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_Age_extension(_ 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) { + 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) _Age_id(ctx context.Context, field graphql.CollectedField, obj *model.Age) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Age_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_Age_id(_ 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_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Age) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Age_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_Age_resourceType(_ 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_system(ctx context.Context, field graphql.CollectedField, obj *model.Age) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Age_system(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.System, 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_system(_ 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_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 +} + +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 { + 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.AuthorString, 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_authorString(_ 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 String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Annotation_extension(ctx context.Context, field graphql.CollectedField, obj *model.Annotation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Annotation_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_Annotation_extension(_ 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) { + 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) _Annotation_id(ctx context.Context, field graphql.CollectedField, obj *model.Annotation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Annotation_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_Annotation_id(_ 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 String does not have child fields") + }, + } + 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) + 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_Annotation_resourceType(_ 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 String does not have child fields") + }, + } + 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) + 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_Annotation_text(_ 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 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, + 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_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 { + return graphql.Null + } + res := resTmp.([]model.AnnotationAuthorReferenceUnion) + fc.Result = res + return ec.marshalOAnnotationAuthorReferenceUnion2ᚕgithubᚗ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) _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 + } + 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.Width, 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_width(_ 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_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 + } + 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.Pages, 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_pages(_ 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_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 + } + 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_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) { + 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_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 + } + 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.Size, 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_size(_ 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_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 + } + 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.Duration, 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_duration(_ 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_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 + } + 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.Title, 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_title(_ 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_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 + } + 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.Creation, 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_creation(_ 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_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 + } + 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.Height, 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_height(_ 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_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 + } + 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.Frames, 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_frames(_ 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_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 + } + 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.Hash, 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_hash(_ 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_url(ctx context.Context, field graphql.CollectedField, obj *model.Attachment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Attachment_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_Attachment_url(_ 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_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) + 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_Attachment_id(_ 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_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 + } + 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.ContentType, 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_contentType(_ 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_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 + } + 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_Attachment_language(_ 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) _Availability_availableTime(ctx context.Context, field graphql.CollectedField, obj *model.Availability) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Availability_availableTime(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.AvailableTime, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.AvailabilityAvailableTime) + fc.Result = res + return ec.marshalOAvailabilityAvailableTime2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailabilityAvailableTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Availability_availableTime(_ 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 "availableStartTime": + return ec.fieldContext_AvailabilityAvailableTime_availableStartTime(ctx, field) + case "daysOfWeek": + return ec.fieldContext_AvailabilityAvailableTime_daysOfWeek(ctx, field) + case "extension": + return ec.fieldContext_AvailabilityAvailableTime_extension(ctx, field) + case "id": + return ec.fieldContext_AvailabilityAvailableTime_id(ctx, field) + case "resourceType": + return ec.fieldContext_AvailabilityAvailableTime_resourceType(ctx, field) + case "allDay": + return ec.fieldContext_AvailabilityAvailableTime_allDay(ctx, field) + case "availableEndTime": + return ec.fieldContext_AvailabilityAvailableTime_availableEndTime(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AvailabilityAvailableTime", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Availability_extension(ctx context.Context, field graphql.CollectedField, obj *model.Availability) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Availability_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_Availability_extension(_ 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 "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) _Availability_id(ctx context.Context, field graphql.CollectedField, obj *model.Availability) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Availability_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_Availability_id(_ 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) _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 { + 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.AvailableStartTime, 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_AvailabilityAvailableTime_availableStartTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AvailabilityAvailableTime", + Field: field, + IsMethod: false, + IsResolver: false, + 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_daysOfWeek(ctx context.Context, field graphql.CollectedField, obj *model.AvailabilityAvailableTime) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AvailabilityAvailableTime_daysOfWeek(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.DaysOfWeek, 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_AvailabilityAvailableTime_daysOfWeek(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AvailabilityAvailableTime", + Field: field, + IsMethod: false, + IsResolver: false, + 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_extension(ctx context.Context, field graphql.CollectedField, obj *model.AvailabilityAvailableTime) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AvailabilityAvailableTime_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_AvailabilityAvailableTime_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AvailabilityAvailableTime", + 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) _AvailabilityAvailableTime_id(ctx context.Context, field graphql.CollectedField, obj *model.AvailabilityAvailableTime) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AvailabilityAvailableTime_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_AvailabilityAvailableTime_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AvailabilityAvailableTime", + Field: field, + IsMethod: false, + IsResolver: false, + 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_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.AvailabilityAvailableTime) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AvailabilityAvailableTime_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_AvailabilityAvailableTime_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AvailabilityAvailableTime", + Field: field, + IsMethod: false, + IsResolver: false, + 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_allDay(ctx context.Context, field graphql.CollectedField, obj *model.AvailabilityAvailableTime) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AvailabilityAvailableTime_allDay(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.AllDay, 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_AvailabilityAvailableTime_allDay(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AvailabilityAvailableTime", + Field: field, + IsMethod: false, + IsResolver: false, + 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_availableEndTime(ctx context.Context, field graphql.CollectedField, obj *model.AvailabilityAvailableTime) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AvailabilityAvailableTime_availableEndTime(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.AvailableEndTime, 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_AvailabilityAvailableTime_availableEndTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AvailabilityAvailableTime", + Field: field, + IsMethod: false, + IsResolver: false, + 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_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 { + 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.During, 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_AvailabilityNotAvailableTime_during(_ 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) { + 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) _AvailabilityNotAvailableTime_extension(ctx context.Context, field graphql.CollectedField, obj *model.AvailabilityNotAvailableTime) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AvailabilityNotAvailableTime_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_AvailabilityNotAvailableTime_extension(_ 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) { + 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) _AvailabilityNotAvailableTime_id(ctx context.Context, field graphql.CollectedField, obj *model.AvailabilityNotAvailableTime) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AvailabilityNotAvailableTime_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_AvailabilityNotAvailableTime_id(_ 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) _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 + } + 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_BodyStructureIncludedStructure_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 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) + 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_BodyStructureIncludedStructure_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BodyStructureIncludedStructure", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _BodyStructureIncludedStructure_laterality(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructure_laterality(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.Laterality, 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_BodyStructureIncludedStructure_laterality(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 "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) _BodyStructureIncludedStructure_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructure_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_BodyStructureIncludedStructure_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 fc, nil +} + +func (ec *executionContext) _BodyStructureIncludedStructure_qualifier(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructure_qualifier(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.Qualifier, 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_BodyStructureIncludedStructure_qualifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 "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) _BodyStructureIncludedStructure_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructure_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_BodyStructureIncludedStructure_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BodyStructureIncludedStructure", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _BodyStructureIncludedStructure_structure(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructure_structure(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.Structure, 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_BodyStructureIncludedStructure_structure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 "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) _BodyStructureIncludedStructure_bodyLandmarkOrientation(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructure_bodyLandmarkOrientation(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.BodyLandmarkOrientation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.BodyStructureIncludedStructureBodyLandmarkOrientation) + fc.Result = res + return ec.marshalOBodyStructureIncludedStructureBodyLandmarkOrientation2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructureBodyLandmarkOrientation(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_BodyStructureIncludedStructure_bodyLandmarkOrientation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BodyStructureIncludedStructure", + 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_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": + return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_surfaceOrientation(ctx, field) + case "clockFacePosition": + return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_clockFacePosition(ctx, field) + case "distanceFromLandmark": + return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_distanceFromLandmark(ctx, field) + case "extension": + return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_extension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type BodyStructureIncludedStructureBodyLandmarkOrientation", field.Name) + }, + } + 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) + 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.LandmarkDescription, 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_BodyStructureIncludedStructureBodyLandmarkOrientation_landmarkDescription(_ 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 "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) _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 "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) _BodyStructureIncludedStructureBodyLandmarkOrientation_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_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_BodyStructureIncludedStructureBodyLandmarkOrientation_resourceType(_ 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_surfaceOrientation(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_surfaceOrientation(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.SurfaceOrientation, 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_BodyStructureIncludedStructureBodyLandmarkOrientation_surfaceOrientation(_ 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 "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) _BodyStructureIncludedStructureBodyLandmarkOrientation_clockFacePosition(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_clockFacePosition(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.ClockFacePosition, 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_BodyStructureIncludedStructureBodyLandmarkOrientation_clockFacePosition(_ 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 "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) _BodyStructureIncludedStructureBodyLandmarkOrientation_distanceFromLandmark(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_distanceFromLandmark(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.DistanceFromLandmark, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark) + fc.Result = res + return ec.marshalOBodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_distanceFromLandmark(_ 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 "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": + return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_resourceType(ctx, field) + case "value": + return ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientation_extension(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientation_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_BodyStructureIncludedStructureBodyLandmarkOrientation_extension(_ 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 "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) _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 + } + 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.Device, 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_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_device(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark", + 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, 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) + 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_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 "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) _BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_id(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_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_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_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_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 "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) _BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_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_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_value(ctx context.Context, field graphql.CollectedField, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_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.([]*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_BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark", + 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) _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 + } + 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.Patient, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.PatientType) + fc.Result = res + return ec.marshalOPatientType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_BodyStructureType_patient(ctx 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 "modifierExtension": + return ec.fieldContext_PatientType_modifierExtension(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 "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 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 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) + 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_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) { + 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) _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 + } + 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.Active, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_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) { + 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) _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 + } + 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.Image, nil + }) + if err != nil { + ec.Error(ctx, 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_BodyStructureType_image(_ 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 "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 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) + 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_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) { + 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) _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) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.BodyStructureIncludedStructure) + fc.Result = res + return ec.marshalOBodyStructureIncludedStructure2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureIncludedStructure(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_BodyStructureType_excludedStructure(_ 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 "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) + 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 +} + +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 + } + 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_BodyStructureType_resourceType(_ 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") + }, + } + 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_BodyStructureType_meta(_ 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 "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) _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 + } + 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.IncludedStructure, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.BodyStructureIncludedStructure) + fc.Result = res + 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) { + 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 "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) + 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 +} + +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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Morphology, 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_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) { + 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) _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 + } + 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_BodyStructureType_text(_ 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 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) + 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_BodyStructureType_description(_ 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") + }, + } + 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_CodeableConcept_text(_ 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") + }, + } + 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) + 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.Coding, 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_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) { + 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) _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 + } + 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_CodeableConcept_extension(_ 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 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) + 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_CodeableConcept_id(_ 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") + }, + } + 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_CodeableReference_extension(_ 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) { + 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) _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 + } + 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_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) _CodeableReference_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.CodeableReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CodeableReference_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_CodeableReference_resourceType(_ 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) _CodeableReference_concept(ctx context.Context, field graphql.CollectedField, obj *model.CodeableReference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CodeableReference_concept(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.Concept, 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_CodeableReference_concept(_ 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) { + 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) _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 + } + 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_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 "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) _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) + 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_id(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_Coding_resourceType(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.System, 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_system(_ 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) { + 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, + IsMethod: false, + IsResolver: false, + 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_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 + } + 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.Version, 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_version(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Coding_code(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_Coding_display(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ConditionParticipant_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ConditionParticipant) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionParticipant_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_ConditionParticipant_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ConditionParticipant", + 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) _ConditionParticipant_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ConditionParticipant) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionParticipant_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_ConditionParticipant_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ConditionParticipant", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _ConditionParticipant_actor(ctx context.Context, field graphql.CollectedField, obj *model.ConditionParticipant) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionParticipant_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 { + return graphql.Null + } + res := resTmp.([]model.ConditionParticipantActorUnion) + fc.Result = res + return ec.marshalOConditionParticipantActorUnion2ᚕgithubᚗ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) { + fc = &graphql.FieldContext{ + Object: "ConditionParticipant", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ConditionParticipantActorUnion 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_ConditionParticipant_actor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ConditionParticipant_extension(ctx context.Context, field graphql.CollectedField, obj *model.ConditionParticipant) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionParticipant_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_ConditionParticipant_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ConditionParticipant", + 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) _ConditionParticipant_function(ctx context.Context, field graphql.CollectedField, obj *model.ConditionParticipant) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionParticipant_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_ConditionParticipant_function(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ConditionParticipant", + 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) _ConditionParticipant_id(ctx context.Context, field graphql.CollectedField, obj *model.ConditionParticipant) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionParticipant_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_ConditionParticipant_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ConditionParticipant", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _ConditionStage_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ConditionStage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionStage_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_ConditionStage_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ConditionStage", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _ConditionStage_summary(ctx context.Context, field graphql.CollectedField, obj *model.ConditionStage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionStage_summary(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.Summary, 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_ConditionStage_summary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ConditionStage", + 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) _ConditionStage_type(ctx context.Context, field graphql.CollectedField, obj *model.ConditionStage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionStage_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_ConditionStage_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ConditionStage", + 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) _ConditionStage_assessment(ctx context.Context, field graphql.CollectedField, obj *model.ConditionStage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionStage_assessment(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.Assessment, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ConditionStageAssessmentUnion) + fc.Result = res + return ec.marshalOConditionStageAssessmentUnion2ᚕgithubᚗ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) { + fc = &graphql.FieldContext{ + Object: "ConditionStage", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ConditionStageAssessmentUnion 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_ConditionStage_assessment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ConditionStage_extension(ctx context.Context, field graphql.CollectedField, obj *model.ConditionStage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionStage_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_ConditionStage_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ConditionStage", + 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) _ConditionStage_id(ctx context.Context, field graphql.CollectedField, obj *model.ConditionStage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionStage_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_ConditionStage_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ConditionStage", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _ConditionStage_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ConditionStage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionStage_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_ConditionStage_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ConditionStage", + 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) _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 + } + 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_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 ResourceUnion does not have child fields") + }, + } + 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) + 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.AbatementAge, 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_abatementAge(_ 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 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) + 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.OnsetDateTime, 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_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) { + return nil, errors.New("field of type String 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) + 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.VerificationStatus, 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_ConditionType_verificationStatus(_ 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 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) + 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_ConditionType_code(_ 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 fc, nil +} + +func (ec *executionContext) _ConditionType_language(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_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_ConditionType_language(_ 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, 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) + 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_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) { + 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 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) + 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.AbatementString, 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_ConditionType_abatementString(_ 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, 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 { + 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.ClinicalStatus, 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_ConditionType_clinicalStatus(_ 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 fc, nil +} + +func (ec *executionContext) _ConditionType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_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_ConditionType_modifierExtension(_ 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 "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) _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 + } + 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.AbatementRange, 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_abatementRange(_ 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 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ConditionType_recordedDate(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_recordedDate(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.RecordedDate, 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_ConditionType_recordedDate(_ 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, 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) + 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.Severity, 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_ConditionType_severity(_ 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 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 + } + }() + 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_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, 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 "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 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) + 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.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 "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, nil +} + +func (ec *executionContext) _ConditionType_meta(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_meta(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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ConditionType_meta(_ 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 "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) _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 + } + 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.Stage, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ConditionStageUnion) + fc.Result = res + return ec.marshalOConditionStageUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionStageUnion(ctx, field.Selections, res) +} + +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) { + return nil, errors.New("field of type ConditionStageUnion 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_stage_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) + 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.Category, 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_ConditionType_category(_ 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 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 "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 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) + 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.Subject, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ConditionSubjectUnion) + fc.Result = res + return ec.marshalOConditionSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionSubjectUnion(ctx, field.Selections, res) +} + +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 ConditionSubjectUnion 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_subject_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) + 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.AbatementPeriod, 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_ConditionType_abatementPeriod(_ 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_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) _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 + } + 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_ConditionType_id(_ 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, 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) + 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.BodySite, 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_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) { + 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) _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 + } + 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.OnsetString, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ConditionType_abatementDateTime(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_abatementDateTime(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.AbatementDateTime, 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_ConditionType_abatementDateTime(_ 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, 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) + 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_ConditionType_extension(_ 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 "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) _ConditionType_participant(ctx context.Context, field graphql.CollectedField, obj *model.ConditionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConditionType_participant(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.Participant, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ConditionParticipantUnion) + fc.Result = res + return ec.marshalOConditionParticipantUnion2ᚕgithubᚗ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) { + 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 ConditionParticipantUnion 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_participant_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + 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) + 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) + 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_ConditionType_onsetPeriod(_ 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_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) _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 { + 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 fc, nil +} + +func (ec *executionContext) _ContactDetail_extension(ctx context.Context, field graphql.CollectedField, obj *model.ContactDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactDetail_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_ContactDetail_extension(_ 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 { + 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) _ContactDetail_id(ctx context.Context, field graphql.CollectedField, obj *model.ContactDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactDetail_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_ContactDetail_id(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactDetail_name(ctx context.Context, field graphql.CollectedField, obj *model.ContactDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactDetail_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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactDetail_name(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactDetail_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ContactDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactDetail_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_ContactDetail_resourceType(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_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) { + 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) _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 + } + 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_ContactPoint_id(_ 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") + }, + } + 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) + 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_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) { + 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) _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 + } + 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.Rank, 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_ContactPoint_rank(_ 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") + }, + } + 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) + 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_ContactPoint_resourceType(_ 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") + }, + } + 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) + 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.System, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Use, 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_ContactPoint_use(_ 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") + }, + } + 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) + 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_ContactPoint_value(_ 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") + }, + } + 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) + 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_Count_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Count", + 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) _Count_id(ctx context.Context, field graphql.CollectedField, obj *model.Count) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Count_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_Count_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + return fc, nil +} + +func (ec *executionContext) _Count_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Count) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Count_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_Count_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + return fc, nil +} + +func (ec *executionContext) _Count_system(ctx context.Context, field graphql.CollectedField, obj *model.Count) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Count_system(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.System, 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_Count_system(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + return fc, nil +} + +func (ec *executionContext) _Count_unit(ctx context.Context, field graphql.CollectedField, obj *model.Count) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Count_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_Count_unit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + return fc, nil +} + +func (ec *executionContext) _Count_value(ctx context.Context, field graphql.CollectedField, obj *model.Count) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Count_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_Count_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + return fc, nil +} + +func (ec *executionContext) _Count_code(ctx context.Context, field graphql.CollectedField, obj *model.Count) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Count_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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Count_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + return fc, nil +} + +func (ec *executionContext) _Count_comparator(ctx context.Context, field graphql.CollectedField, obj *model.Count) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Count_comparator(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.Comparator, 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_Count_comparator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + 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) + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueFilter, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.DataRequirementValueFilter) + fc.Result = res + return ec.marshalODataRequirementValueFilter2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementValueFilter(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DataRequirement_valueFilter(_ 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 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) + 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.DateFilter, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.DataRequirementDateFilter) + fc.Result = res + return ec.marshalODataRequirementDateFilter2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementDateFilter(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DataRequirement_dateFilter(_ 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 "id": + return ec.fieldContext_DataRequirementDateFilter_id(ctx, field) + case "path": + return ec.fieldContext_DataRequirementDateFilter_path(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_DataRequirementDateFilter_valueDateTime(ctx, field) + case "valueDuration": + return ec.fieldContext_DataRequirementDateFilter_valueDuration(ctx, field) + case "valuePeriod": + return ec.fieldContext_DataRequirementDateFilter_valuePeriod(ctx, field) + case "extension": + return ec.fieldContext_DataRequirementDateFilter_extension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DataRequirementDateFilter", 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) + 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.Limit, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.SubjectCodeableConcept, 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_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) { + 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) _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 + } + 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_DataRequirement_extension(_ 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 "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) _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 + } + 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.MustSupport, 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_DataRequirement_mustSupport(_ 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") + }, + } + 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) + 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.Sort, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.DataRequirementSort) + fc.Result = res + return ec.marshalODataRequirementSort2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementSort(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DataRequirement_sort(_ 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 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) + 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_DataRequirement_id(_ 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") + }, + } + 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) + 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.Profile, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.SubjectReference, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.GroupType) + fc.Result = res + return ec.marshalOGroupType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DataRequirement_subjectReference(ctx 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 "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) + }, + } + 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_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirement_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_DataRequirement_resourceType(_ 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") + }, + } + 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) + 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.CodeFilter, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.DataRequirementCodeFilter) + fc.Result = res + return ec.marshalODataRequirementCodeFilter2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirementCodeFilter(ctx, field.Selections, res) +} + +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) { + 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) + 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 nil, fmt.Errorf("no field named %q was found under type DataRequirementCodeFilter", 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) + 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_DataRequirementCodeFilter_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DataRequirementCodeFilter", + 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) _DataRequirementCodeFilter_id(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementCodeFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementCodeFilter_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_DataRequirementCodeFilter_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + return fc, nil +} + +func (ec *executionContext) _DataRequirementCodeFilter_path(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementCodeFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementCodeFilter_path(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.Path, 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_DataRequirementCodeFilter_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + return fc, nil +} + +func (ec *executionContext) _DataRequirementCodeFilter_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementCodeFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementCodeFilter_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_DataRequirementCodeFilter_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + return fc, nil +} + +func (ec *executionContext) _DataRequirementCodeFilter_searchParam(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementCodeFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementCodeFilter_searchParam(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.SearchParam, 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_DataRequirementCodeFilter_searchParam(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + return fc, nil +} + +func (ec *executionContext) _DataRequirementCodeFilter_valueSet(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementCodeFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementCodeFilter_valueSet(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.ValueSet, 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_DataRequirementCodeFilter_valueSet(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + return fc, nil +} + +func (ec *executionContext) _DataRequirementCodeFilter_code(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementCodeFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementCodeFilter_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.Coding) + fc.Result = res + return ec.marshalOCoding2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DataRequirementCodeFilter_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DataRequirementCodeFilter", + 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) _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 + } + 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_DataRequirementDateFilter_id(_ 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_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 + } + 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.Path, 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_path(_ 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_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 + } + 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_DataRequirementDateFilter_resourceType(_ 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_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 + } + 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.SearchParam, 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_searchParam(_ 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_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) + 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.ValueDuration, 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_DataRequirementDateFilter_valueDuration(_ 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) { + 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 fc, nil +} + +func (ec *executionContext) _DataRequirementDateFilter_valuePeriod(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementDateFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementDateFilter_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) +} + +func (ec *executionContext) fieldContext_DataRequirementDateFilter_valuePeriod(_ 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) { + 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) _DataRequirementDateFilter_extension(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementDateFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementDateFilter_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_DataRequirementDateFilter_extension(_ 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) { + 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) _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 + } + 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.Direction, 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_DataRequirementSort_direction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DataRequirementSort", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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_DataRequirementSort_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 "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) _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 + } + 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_DataRequirementSort_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DataRequirementSort", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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.Path, 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_DataRequirementSort_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DataRequirementSort", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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_DataRequirementSort_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DataRequirementSort", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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_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) { + 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) _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 + } + 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_DataRequirementValueFilter_id(_ 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") + }, + } + 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) + 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.Path, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Comparator, 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_DataRequirementValueFilter_comparator(_ 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") + }, + } + 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) + 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_DataRequirementValueFilter_resourceType(_ 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") + }, + } + 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) + 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.SearchParam, 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_DataRequirementValueFilter_searchParam(_ 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") + }, + } + 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) + 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_DataRequirementValueFilter_valueDateTime(_ 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") + }, + } + return fc, nil +} + +func (ec *executionContext) _DataRequirementValueFilter_valueDuration(ctx context.Context, field graphql.CollectedField, obj *model.DataRequirementValueFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DataRequirementValueFilter_valueDuration(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.ValueDuration, 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_DataRequirementValueFilter_valueDuration(_ 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 "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 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) + 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) +} + +func (ec *executionContext) fieldContext_DataRequirementValueFilter_valuePeriod(_ 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 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) + 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_DiagnosticReportMedia_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 "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) _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 + } + 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_DiagnosticReportMedia_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DiagnosticReportMedia_comment(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportMedia) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportMedia_comment(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.Comment, 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_DiagnosticReportMedia_comment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DiagnosticReportMedia_extension(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportMedia) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportMedia_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_DiagnosticReportMedia_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 "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) _DiagnosticReportMedia_id(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportMedia) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportMedia_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_DiagnosticReportMedia_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DiagnosticReportMedia_link(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportMedia) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportMedia_link(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.Link, 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_DiagnosticReportMedia_link(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiagnosticReportMedia", + 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_DiagnosticReportMedia_link_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + 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) + 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_DiagnosticReportSupportingInfo_modifierExtension(_ 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) { + 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) _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 + } + 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.Reference, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.DiagnosticReportSupportingInfoReferenceUnion) + fc.Result = res + return ec.marshalODiagnosticReportSupportingInfoReferenceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSupportingInfoReferenceUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiagnosticReportSupportingInfo_reference(ctx 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 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) _DiagnosticReportSupportingInfo_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportSupportingInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportSupportingInfo_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_DiagnosticReportSupportingInfo_resourceType(_ 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_type(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportSupportingInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportSupportingInfo_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_DiagnosticReportSupportingInfo_type(_ 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) { + 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) _DiagnosticReportSupportingInfo_extension(ctx context.Context, field graphql.CollectedField, obj *model.DiagnosticReportSupportingInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiagnosticReportSupportingInfo_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_DiagnosticReportSupportingInfo_extension(_ 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) { + 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) _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 + } + 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.Result, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ObservationType) + fc.Result = res + return ec.marshalOObservationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiagnosticReportType_result(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 "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) + }, + } + 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) + 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_DiagnosticReportType_implicitRules(_ 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_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 + } + 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_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 String does not have child fields") + }, + } + 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) + 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.Performer, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.DiagnosticReportPerformerUnion) + fc.Result = res + return ec.marshalODiagnosticReportPerformerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportPerformerUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiagnosticReportType_performer(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") + }, + } + 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) _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 + } + 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.PresentedForm, nil + }) + if err != nil { + ec.Error(ctx, 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_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) { + 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 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) + 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_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) { + 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 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) + 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.Subject, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.DiagnosticReportSubjectUnion) + fc.Result = res + return ec.marshalODiagnosticReportSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSubjectUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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.Specimen, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.SpecimenType) + fc.Result = res + return ec.marshalOSpecimenType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiagnosticReportType_specimen(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 "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_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) + 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_DiagnosticReportType_identifier(_ 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 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) + 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_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) { + 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) _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 + } + 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.EffectiveDateTime, 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_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 String does not have child fields") + }, + } + 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) + 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.Media, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.DiagnosticReportMedia) + fc.Result = res + return ec.marshalODiagnosticReportMedia2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportMedia(ctx, field.Selections, res) +} + +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) { + 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 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) + 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.EffectivePeriod, 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_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) { + 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) _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 + } + 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.Study, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.DiagnosticReportStudyUnion) + fc.Result = res + return ec.marshalODiagnosticReportStudyUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportStudyUnion(ctx, field.Selections, res) +} + +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 DiagnosticReportStudyUnion 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) + 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_DiagnosticReportType_resourceType(_ 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_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 + } + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiagnosticReportType_meta(_ 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 "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) _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 + } + 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_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) { + return nil, errors.New("field of type ResourceUnion does not have child fields") + }, + } + 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.DiagnosticReportNoteUnion) + fc.Result = res + return ec.marshalODiagnosticReportNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportNoteUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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_DiagnosticReportType_modifierExtension(_ 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 "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) _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 + } + 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.BasedOn, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.DiagnosticReportBasedOnUnion) + fc.Result = res + return ec.marshalODiagnosticReportBasedOnUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportBasedOnUnion(ctx, field.Selections, res) +} + +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 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_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 + } + 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.ConclusionCode, 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_DiagnosticReportType_conclusionCode(_ 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 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) + 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.SupportingInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.DiagnosticReportSupportingInfoUnion) + fc.Result = res + return ec.marshalODiagnosticReportSupportingInfoUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportSupportingInfoUnion(ctx, field.Selections, res) +} + +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 DiagnosticReportSupportingInfoUnion 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_supportingInfo_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) + 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.Conclusion, 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_conclusion(_ 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_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 + } + 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_DiagnosticReportType_status(_ 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_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 + } + 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_DiagnosticReportType_extension(_ 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 "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) _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 + } + 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.Category, 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_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) { + 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) _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") + }, + } + 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) _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 + } + 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_Distance_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 String does not have child fields") + }, + } + 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) + 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.System, 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_Distance_system(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 String does not have child fields") + }, + } + 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) + 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_Distance_unit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 String does not have child fields") + }, + } + 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) + 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_Distance_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 String does not have child fields") + }, + } + 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) + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Distance_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Distance_comparator(ctx context.Context, field graphql.CollectedField, obj *model.Distance) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Distance_comparator(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.Comparator, 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_Distance_comparator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Distance_extension(ctx context.Context, field graphql.CollectedField, obj *model.Distance) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Distance_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_Distance_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 fc, nil +} + +func (ec *executionContext) _Distance_id(ctx context.Context, field graphql.CollectedField, obj *model.Distance) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Distance_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_Distance_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 String does not have child fields") + }, + } + 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) + 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_DocumentReferenceAttester_id(_ 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) _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 "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) _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 + } + 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_DocumentReferenceAttester_modifierExtension(_ 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 "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) _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 { + return graphql.Null + } + res := resTmp.([]model.DocumentReferenceAttesterPartyUnion) + fc.Result = res + return ec.marshalODocumentReferenceAttesterPartyUnion2ᚕgithubᚗ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) _DocumentReferenceAttester_time(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceAttester) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceAttester_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_DocumentReferenceAttester_time(_ 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) _DocumentReferenceAttester_extension(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceAttester) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceAttester_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_DocumentReferenceAttester_extension(_ 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 "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) _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 + } + 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.Attachment, nil + }) + if err != nil { + ec.Error(ctx, 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_DocumentReferenceContent_attachment(_ 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 "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 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 "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) _DocumentReferenceContent_id(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceContent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceContent_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_DocumentReferenceContent_id(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentReferenceContent_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceContent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceContent_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_DocumentReferenceContent_modifierExtension(_ 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 "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) _DocumentReferenceContent_profile(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceContent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceContent_profile(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.Profile, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.DocumentReferenceContentProfile) + fc.Result = res + return ec.marshalODocumentReferenceContentProfile2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceContentProfile(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentReferenceContent_profile(_ 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 "valueUri": + return ec.fieldContext_DocumentReferenceContentProfile_valueUri(ctx, field) + case "extension": + return ec.fieldContext_DocumentReferenceContentProfile_extension(ctx, field) + case "id": + return ec.fieldContext_DocumentReferenceContentProfile_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_DocumentReferenceContentProfile_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_DocumentReferenceContentProfile_resourceType(ctx, field) + case "valueCanonical": + return ec.fieldContext_DocumentReferenceContentProfile_valueCanonical(ctx, field) + case "valueCoding": + return ec.fieldContext_DocumentReferenceContentProfile_valueCoding(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceContentProfile", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentReferenceContent_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceContent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceContent_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_DocumentReferenceContent_resourceType(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueURI, 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_DocumentReferenceContentProfile_valueUri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentReferenceContentProfile", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _DocumentReferenceContentProfile_extension(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceContentProfile) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceContentProfile_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_DocumentReferenceContentProfile_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 fc, nil +} + +func (ec *executionContext) _DocumentReferenceContentProfile_id(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceContentProfile) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceContentProfile_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_DocumentReferenceContentProfile_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentReferenceContentProfile", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _DocumentReferenceContentProfile_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceContentProfile) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceContentProfile_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_DocumentReferenceContentProfile_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 fc, nil +} + +func (ec *executionContext) _DocumentReferenceContentProfile_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceContentProfile) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceContentProfile_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_DocumentReferenceContentProfile_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentReferenceContentProfile", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _DocumentReferenceContentProfile_valueCanonical(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceContentProfile) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceContentProfile_valueCanonical(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.ValueCanonical, 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_DocumentReferenceContentProfile_valueCanonical(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentReferenceContentProfile", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _DocumentReferenceContentProfile_valueCoding(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceContentProfile) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceContentProfile_valueCoding(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.ValueCoding, 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_DocumentReferenceContentProfile_valueCoding(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentReferenceContentProfile", + 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) _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 + } + 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_DocumentReferenceRelatesTo_modifierExtension(_ 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 "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) _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 + } + 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_DocumentReferenceRelatesTo_resourceType(_ 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") + }, + } + 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) + 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.Target, 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_DocumentReferenceRelatesTo_target(ctx 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 "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_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) + 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_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) { + 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) _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 + } + 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_DocumentReferenceRelatesTo_extension(_ 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 "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) _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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Version, 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_DocumentReferenceType_version(_ 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, 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 + } + }() + 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_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, 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.BodySite, 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_DocumentReferenceType_bodySite(_ 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 "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, 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) + 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.PracticeSetting, 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_DocumentReferenceType_practiceSetting(_ 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 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) + 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.Author, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.DocumentReferenceAuthorUnion) + fc.Result = res + return ec.marshalODocumentReferenceAuthorUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAuthorUnion(ctx, field.Selections, res) +} + +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) { + return nil, errors.New("field of type DocumentReferenceAuthorUnion 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_author_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) + 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.BasedOn, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.DocumentReferenceBasedOnUnion) + fc.Result = res + return ec.marshalODocumentReferenceBasedOnUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceBasedOnUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_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 String 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) + 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_DocumentReferenceType_type(_ 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 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) + 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.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_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) { + 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) _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 "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) _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 + } + 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.Attester, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.DocumentReferenceAttesterUnion) + fc.Result = res + return ec.marshalODocumentReferenceAttesterUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceAttesterUnion(ctx, field.Selections, res) +} + +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 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_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 + } + 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.DocStatus, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentReferenceType_meta(_ 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 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) + 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.Custodian, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.OrganizationType) + fc.Result = res + return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentReferenceType_custodian(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) + }, + } + 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 +} + +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 + } + 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.Event, 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_DocumentReferenceType_event(_ 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 "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, 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) + 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.RelatesTo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.DocumentReferenceRelatesTo) + fc.Result = res + return ec.marshalODocumentReferenceRelatesTo2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceRelatesTo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentReferenceType_relatesTo(_ 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 "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) + case "extension": + return ec.fieldContext_DocumentReferenceRelatesTo_extension(ctx, field) + case "id": + return ec.fieldContext_DocumentReferenceRelatesTo_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceRelatesTo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentReferenceType_facilityType(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_facilityType(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.FacilityType, 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_DocumentReferenceType_facilityType(_ 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 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) + 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_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 String does not have child fields") + }, + } + 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) + 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.SecurityLabel, 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_DocumentReferenceType_securityLabel(_ 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 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) + 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_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) { + 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) _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 + } + 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_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) { + 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) _DocumentReferenceType_description(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_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_DocumentReferenceType_description(_ 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, 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) + 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_DocumentReferenceType_extension(_ 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 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) + 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.Category, 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_DocumentReferenceType_category(_ 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 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) + 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_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) { + 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 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) + 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_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 ResourceUnion 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) + 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.Subject, 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_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 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_DocumentReferenceType_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _DocumentReferenceType_content(ctx context.Context, field graphql.CollectedField, obj *model.DocumentReferenceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentReferenceType_content(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.Content, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.DocumentReferenceContent) + fc.Result = res + return ec.marshalODocumentReferenceContent2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDocumentReferenceContent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentReferenceType_content(_ 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 "attachment": + return ec.fieldContext_DocumentReferenceContent_attachment(ctx, field) + case "extension": + return ec.fieldContext_DocumentReferenceContent_extension(ctx, field) + case "id": + return ec.fieldContext_DocumentReferenceContent_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_DocumentReferenceContent_modifierExtension(ctx, field) + case "profile": + return ec.fieldContext_DocumentReferenceContent_profile(ctx, field) + case "resourceType": + return ec.fieldContext_DocumentReferenceContent_resourceType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentReferenceContent", field.Name) + }, + } + 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) + 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.Date, 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_DocumentReferenceType_date(_ 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, 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) + 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.AsNeededFor, 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_Dosage_asNeededFor(_ 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 fc, nil +} + +func (ec *executionContext) _Dosage_doseAndRate(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Dosage_doseAndRate(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.DoseAndRate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.DosageDoseAndRate) + fc.Result = res + return ec.marshalODosageDoseAndRate2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosageDoseAndRate(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Dosage_doseAndRate(_ 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 "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 "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) + } + return nil, fmt.Errorf("no field named %q was found under type DosageDoseAndRate", field.Name) + }, + } + 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) + 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.Route, 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_Dosage_route(_ 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 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) + 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.Method, 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_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) { + 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) _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 + } + 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_Dosage_modifierExtension(_ 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 "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) _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 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_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 "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) _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 + } + 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.Site, 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_Dosage_site(_ 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 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) + 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.MaxDosePerAdministration, 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_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) _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 + } + 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.MaxDosePerLifetime, 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_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) { + 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_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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.AdditionalInstruction, 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_Dosage_additionalInstruction(_ 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 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) + 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.AsNeeded, 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_asNeeded(_ 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 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) + 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.Timing, 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_Dosage_timing(_ 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 "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 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) + 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_Dosage_id(_ 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 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) + 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.Sequence, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Dosage_maxDosePerPeriod(ctx context.Context, field graphql.CollectedField, obj *model.Dosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Dosage_maxDosePerPeriod(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.MaxDosePerPeriod, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Ratio) + fc.Result = res + return ec.marshalORatio2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Dosage_maxDosePerPeriod(_ 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 "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 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) + 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_DosageDoseAndRate_id(_ 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_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 + } + 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.DoseRange, 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_DosageDoseAndRate_doseRange(_ 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 "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 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) + 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_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_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 + } + 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.RateRange, 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_DosageDoseAndRate_rateRange(_ 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 "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 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) + 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_DosageDoseAndRate_type(_ 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 "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) _DosageDoseAndRate_doseQuantity(ctx context.Context, field graphql.CollectedField, obj *model.DosageDoseAndRate) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DosageDoseAndRate_doseQuantity(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.DoseQuantity, 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_doseQuantity(_ 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) + 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_rateRatio(ctx context.Context, field graphql.CollectedField, obj *model.DosageDoseAndRate) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DosageDoseAndRate_rateRatio(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.RateRatio, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Ratio) + fc.Result = res + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DosageDoseAndRate_rateRatio(_ 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 "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 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) { + 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) _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) + 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) _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 + } + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Duration_code(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Comparator, 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_Duration_comparator(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_Duration_id(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_Duration_resourceType(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.System, 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_Duration_system(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_Duration_unit(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_Duration_value(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Length, 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_Encounter_length(_ 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 "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 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) + 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.ActualPeriod, 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_Encounter_actualPeriod(_ 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_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) _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 + } + 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.Priority, 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_Encounter_priority(_ 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 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) + 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.Class, 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_Encounter_class(_ 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 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) + 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.PlannedEndDate, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ServiceType, 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_Encounter_serviceType(_ 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_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, 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) + 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.Admission, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.EncounterAdmission) + fc.Result = res + return ec.marshalOEncounterAdmission2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterAdmission(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Encounter_admission(_ 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 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) + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Encounter_meta(_ 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 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) + 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_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) _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 + } + 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_Encounter_identifier(_ 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 "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) _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 + } + 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.PlannedStartDate, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_Encounter_type(_ 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 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) + 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.Diagnosis, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.EncounterDiagnosis) + fc.Result = res + return ec.marshalOEncounterDiagnosis2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterDiagnosis(ctx, field.Selections, res) +} + +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) { + 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) + 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) + } + return nil, fmt.Errorf("no field named %q was found under type EncounterDiagnosis", 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) + 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_Encounter_text(_ 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 "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 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) + 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.Participant, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.EncounterParticipant) + fc.Result = res + return ec.marshalOEncounterParticipant2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterParticipant(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.VirtualService, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.VirtualServiceDetail) + fc.Result = res + return ec.marshalOVirtualServiceDetail2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐVirtualServiceDetail(ctx, field.Selections, res) +} + +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) { + 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 fc, nil +} + +func (ec *executionContext) _Encounter_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_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_Encounter_modifierExtension(_ 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 "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) _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 + } + 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.SpecialCourtesy, 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_Encounter_specialCourtesy(_ 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 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.SpecialArrangement, 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_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) { + 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) _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 "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) _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_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 + } + 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.Location, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.EncounterLocation) + fc.Result = res + return ec.marshalOEncounterLocation2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterLocation(ctx, field.Selections, res) +} + +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) { + 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) + case "extension": + return ec.fieldContext_EncounterLocation_extension(ctx, field) + case "form": + return ec.fieldContext_EncounterLocation_form(ctx, field) + case "id": + return ec.fieldContext_EncounterLocation_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_EncounterLocation_modifierExtension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EncounterLocation", 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) + 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_Encounter_implicitRules(_ 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) _Encounter_dietPreference(ctx context.Context, field graphql.CollectedField, obj *model.Encounter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Encounter_dietPreference(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.DietPreference, 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_Encounter_dietPreference(_ 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 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) + 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.Reason, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.EncounterReason) + fc.Result = res + return ec.marshalOEncounterReason2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐEncounterReason(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Encounter_reason(_ 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_EncounterReason_resourceType(ctx, field) + case "use": + return ec.fieldContext_EncounterReason_use(ctx, field) + case "value": + return ec.fieldContext_EncounterReason_value(ctx, field) + case "extension": + return ec.fieldContext_EncounterReason_extension(ctx, field) + case "id": + return ec.fieldContext_EncounterReason_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_EncounterReason_modifierExtension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EncounterReason", 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) + 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.SubjectStatus, 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_Encounter_subjectStatus(_ 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 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) + 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_Encounter_language(_ 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_extension(ctx context.Context, field graphql.CollectedField, obj *model.EncounterAdmission) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterAdmission_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_EncounterAdmission_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EncounterAdmission", + 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) _EncounterAdmission_id(ctx context.Context, field graphql.CollectedField, obj *model.EncounterAdmission) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterAdmission_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_EncounterAdmission_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + return fc, nil +} + +func (ec *executionContext) _EncounterAdmission_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.EncounterAdmission) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterAdmission_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_EncounterAdmission_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EncounterAdmission", + 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) _EncounterAdmission_preAdmissionIdentifier(ctx context.Context, field graphql.CollectedField, obj *model.EncounterAdmission) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterAdmission_preAdmissionIdentifier(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.PreAdmissionIdentifier, 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_EncounterAdmission_preAdmissionIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EncounterAdmission", + 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) _EncounterAdmission_reAdmission(ctx context.Context, field graphql.CollectedField, obj *model.EncounterAdmission) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterAdmission_reAdmission(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.ReAdmission, 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_EncounterAdmission_reAdmission(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EncounterAdmission", + 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) _EncounterAdmission_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.EncounterAdmission) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterAdmission_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_EncounterAdmission_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + 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) + 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_EncounterAdmission_admitSource(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EncounterAdmission", + 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) _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 + } + 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.DischargeDisposition, 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_EncounterAdmission_dischargeDisposition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EncounterAdmission", + 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) _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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Use, 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_EncounterDiagnosis_use(_ 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 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) + 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.Condition, 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_EncounterDiagnosis_condition(_ 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 "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, 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) + 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_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) { + 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) _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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_EncounterDiagnosis_modifierExtension(_ 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 fc, nil +} + +func (ec *executionContext) _EncounterLocation_period(ctx context.Context, field graphql.CollectedField, obj *model.EncounterLocation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterLocation_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_EncounterLocation_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EncounterLocation", + 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) _EncounterLocation_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.EncounterLocation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterLocation_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_EncounterLocation_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EncounterLocation", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _EncounterLocation_status(ctx context.Context, field graphql.CollectedField, obj *model.EncounterLocation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterLocation_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_EncounterLocation_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EncounterLocation", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _EncounterLocation_extension(ctx context.Context, field graphql.CollectedField, obj *model.EncounterLocation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterLocation_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_EncounterLocation_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 "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) _EncounterLocation_form(ctx context.Context, field graphql.CollectedField, obj *model.EncounterLocation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterLocation_form(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.Form, 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_EncounterLocation_form(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EncounterLocation", + 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) _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 + } + 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_EncounterLocation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EncounterLocation", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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_EncounterLocation_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 "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) _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 "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) _EncounterParticipant_period(ctx context.Context, field graphql.CollectedField, obj *model.EncounterParticipant) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterParticipant_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_EncounterParticipant_period(_ 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 "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) _EncounterParticipant_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.EncounterParticipant) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterParticipant_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_EncounterParticipant_resourceType(_ 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_type(ctx context.Context, field graphql.CollectedField, obj *model.EncounterParticipant) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterParticipant_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_EncounterParticipant_type(_ 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 "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) _EncounterParticipant_extension(ctx context.Context, field graphql.CollectedField, obj *model.EncounterParticipant) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EncounterParticipant_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_EncounterParticipant_extension(_ 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 "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) _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 + } + 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_EncounterReason_resourceType(_ 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") + }, + } + 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) + 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.Use, 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_EncounterReason_use(_ 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 "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) _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 + } + 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.([]*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_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) { + 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, 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) + 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_EncounterReason_extension(_ 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 "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) _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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_EncounterReason_modifierExtension(_ 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 "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) _Expression_expression(ctx context.Context, field graphql.CollectedField, obj *model.Expression) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Expression_expression(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.Expression, 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_Expression_expression(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Expression", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _Expression_extension(ctx context.Context, field graphql.CollectedField, obj *model.Expression) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Expression_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_Expression_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Expression", + 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) _Expression_id(ctx context.Context, field graphql.CollectedField, obj *model.Expression) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Expression_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_Expression_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Expression", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _Expression_language(ctx context.Context, field graphql.CollectedField, obj *model.Expression) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Expression_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_Expression_language(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Expression", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _Expression_name(ctx context.Context, field graphql.CollectedField, obj *model.Expression) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Expression_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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Expression_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Expression", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _Expression_reference(ctx context.Context, field graphql.CollectedField, obj *model.Expression) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Expression_reference(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.Reference, 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_Expression_reference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Expression", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _Expression_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Expression) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Expression_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_Expression_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Expression", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _Expression_description(ctx context.Context, field graphql.CollectedField, obj *model.Expression) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Expression_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_Expression_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Expression", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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_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) { + 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 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) + 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.Organization, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.OrganizationType) + fc.Result = res + return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) +} + +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) { + 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) + }, + } + 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) + 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.Purpose, 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_ExtendedContactDetail_purpose(_ 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_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) _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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_ExtendedContactDetail_telecom(_ 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_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 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) + 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.Address, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Address) + fc.Result = res + return ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExtendedContactDetail_address(_ 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 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExtendedContactDetail_extension(ctx context.Context, field graphql.CollectedField, obj *model.ExtendedContactDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExtendedContactDetail_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_ExtendedContactDetail_extension(_ 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 "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) _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 + } + 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_ExtendedContactDetail_period(_ 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 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) + 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.ValueURI, 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_valueUri(_ 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_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 + } + 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.ValueInteger, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueAttachment, nil + }) + if err != nil { + ec.Error(ctx, 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_Extension_valueAttachment(_ 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 "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 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) + 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.ValueParameterDefinition, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.ParameterDefinition) + fc.Result = res + return ec.marshalOParameterDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐParameterDefinition(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Extension_valueParameterDefinition(_ 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 "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 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) + 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.ValueInteger64, 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_valueInteger64(_ 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_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 + } + 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.ValueHumanName, 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_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) { + 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 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) + 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.ValueAge, 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_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) { + 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 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) + 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.ValueCodeableConcept, 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_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) { + 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) _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) + 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) _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 + } + 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_Extension_valueDateTime(_ 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_valueExtendedContactDetail(ctx context.Context, field graphql.CollectedField, obj *model.Extension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Extension_valueExtendedContactDetail(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.ValueExtendedContactDetail, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.ExtendedContactDetail) + fc.Result = res + return ec.marshalOExtendedContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Extension_valueExtendedContactDetail(_ 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 "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 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) + 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_Extension_valueMarkdown(_ 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_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 + } + 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.ValueTriggerDefinition, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.TriggerDefinition) + fc.Result = res + return ec.marshalOTriggerDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTriggerDefinition(ctx, field.Selections, res) +} + +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) { + 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) + 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 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 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) + 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.ValueContactPoint, 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_Extension_valueContactPoint(_ 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_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 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 { + return graphql.Null + } + res := resTmp.([]model.ExtensionValueAnnotationUnion) + fc.Result = res + return ec.marshalOExtensionValueAnnotationUnion2ᚕgithubᚗ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() { + 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_valueAnnotation_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) + 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_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) { + 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 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) + 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.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_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) { + 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_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 + } + 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.ValueUUID, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueRange, 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_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) { + 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 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) + 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.ValueCanonical, 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_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 String does not have child fields") + }, + } + 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) + 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.ValueCodeableReference, 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_Extension_valueCodeableReference(_ 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 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueRatio, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Ratio) + fc.Result = res + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Extension_valueRatio(_ 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_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 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) + 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.ValueOid, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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_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) _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 + } + 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.ValueInstant, 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_valueInstant(_ 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_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 + } + 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.ValueDuration, 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_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) { + 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 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) + 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.ValueRelatedArtifact, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.RelatedArtifact) + fc.Result = res + return ec.marshalORelatedArtifact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Extension_valueRelatedArtifact(_ 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 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) + 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.ValueSignature, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ExtensionValueSignatureUnion) + fc.Result = res + return ec.marshalOExtensionValueSignatureUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueSignatureUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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.ValueDate, 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_valueDate(_ 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_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 + } + 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.ValueDosage, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Dosage) + fc.Result = res + return ec.marshalODosage2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Extension_valueDosage(_ 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 "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 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) + 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_Extension_valueBase64Binary(_ 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_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 + } + 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) +} + +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) { + 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) _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 + } + 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.ValueMoney, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Money) + fc.Result = res + return ec.marshalOMoney2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMoney(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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.ValueIdentifier, 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_Extension_valueIdentifier(_ 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 "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) _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_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 + } + 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.ValueCode, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValuePositiveInt, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueID, 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_valueId(_ 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_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 + } + 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.ValueUnsignedInt, 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_valueUnsignedInt(_ 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_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 + } + 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.ValueDataRequirement, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.DataRequirement) + fc.Result = res + return ec.marshalODataRequirement2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirement(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Extension_valueDataRequirement(_ 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 "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 "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 nil, fmt.Errorf("no field named %q was found under type DataRequirement", 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) + 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.ValueTime, 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_valueTime(_ 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_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 + } + 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.ValueCoding, 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_Extension_valueCoding(_ 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 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) + 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.ValueTiming, 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_Extension_valueTiming(_ 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 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) + 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.ValueExpression, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Expression) + fc.Result = res + return ec.marshalOExpression2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExpression(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Extension_valueExpression(_ 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 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) + 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.ValueDistance, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Distance) + fc.Result = res + return ec.marshalODistance2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDistance(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Extension_valueDistance(_ 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 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) + 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_Extension_valueCount(_ 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_Count_extension(ctx, field) + 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) + } + return nil, fmt.Errorf("no field named %q was found under type Count", 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueAvailability, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Availability) + fc.Result = res + return ec.marshalOAvailability2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Extension_valueAvailability(_ 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 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) + 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.ValueURL, 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_valueUrl(_ 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_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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueDecimal, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueMeta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +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) { + 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) _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 + } + 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.ValueAddress, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Address) + fc.Result = res + return ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Extension_valueAddress(_ 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 "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 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) + 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.ValueUsageContext, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ExtensionValueUsageContextUnion) + fc.Result = res + return ec.marshalOExtensionValueUsageContextUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtensionValueUsageContextUnion(ctx, field.Selections, res) +} + +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 ExtensionValueUsageContextUnion 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_valueUsageContext_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) + 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_Extension_extension(_ 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 "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) _FHIRPrimitiveExtension_extension(ctx context.Context, field graphql.CollectedField, obj *model.FHIRPrimitiveExtension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FHIRPrimitiveExtension_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_FHIRPrimitiveExtension_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 fc, nil +} + +func (ec *executionContext) _FHIRPrimitiveExtension_id(ctx context.Context, field graphql.CollectedField, obj *model.FHIRPrimitiveExtension) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FHIRPrimitiveExtension_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_FHIRPrimitiveExtension_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FHIRPrimitiveExtension", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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_FHIRPrimitiveExtension_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FHIRPrimitiveExtension", + Field: field, + IsMethod: false, + IsResolver: false, + 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_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 + } + 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) + 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_FamilyMemberHistoryCondition_onsetPeriod(_ 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 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) + 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_FamilyMemberHistoryCondition_extension(_ 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 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") + }, + } + 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) + 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_FamilyMemberHistoryCondition_onsetAge(_ 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 fc, nil +} + +func (ec *executionContext) _FamilyMemberHistoryCondition_onsetRange(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryCondition_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_FamilyMemberHistoryCondition_onsetRange(_ 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 "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 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) + 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.ContributedToDeath, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_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) { + 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) _FamilyMemberHistoryCondition_onsetString(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryCondition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryCondition_onsetString(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.OnsetString, 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_onsetString(_ 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_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 + } + 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.Outcome, 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_FamilyMemberHistoryCondition_outcome(_ 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 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) + 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_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) { + 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) _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 + } + 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 { + return graphql.Null + } + res := resTmp.([]model.FamilyMemberHistoryParticipantActorUnion) + fc.Result = res + return ec.marshalOFamilyMemberHistoryParticipantActorUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryParticipantActorUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FamilyMemberHistoryParticipant_actor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FamilyMemberHistoryParticipant", + 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") + }, + } + 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 +} + +func (ec *executionContext) _FamilyMemberHistoryParticipant_extension(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryParticipant) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryParticipant_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_FamilyMemberHistoryParticipant_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 fc, nil +} + +func (ec *executionContext) _FamilyMemberHistoryParticipant_function(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryParticipant) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryParticipant_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_FamilyMemberHistoryParticipant_function(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FamilyMemberHistoryParticipant", + 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) _FamilyMemberHistoryParticipant_id(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryParticipant) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryParticipant_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_FamilyMemberHistoryParticipant_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FamilyMemberHistoryParticipant", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _FamilyMemberHistoryParticipant_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryParticipant) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryParticipant_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_FamilyMemberHistoryParticipant_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 fc, nil +} + +func (ec *executionContext) _FamilyMemberHistoryParticipant_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryParticipant) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryParticipant_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_FamilyMemberHistoryParticipant_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FamilyMemberHistoryParticipant", + Field: field, + IsMethod: false, + IsResolver: false, + 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_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 + } + 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_FamilyMemberHistoryProcedure_modifierExtension(_ 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 "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) _FamilyMemberHistoryProcedure_note(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_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.FamilyMemberHistoryProcedureNoteUnion) + fc.Result = res + return ec.marshalOFamilyMemberHistoryProcedureNoteUnion2ᚕgithubᚗ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) { + 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 FamilyMemberHistoryProcedureNoteUnion 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_FamilyMemberHistoryProcedure_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + 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) + 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.PerformedDateTime, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.PerformedRange, 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_FamilyMemberHistoryProcedure_performedRange(_ 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 fc, nil +} + +func (ec *executionContext) _FamilyMemberHistoryProcedure_contributedToDeath(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_contributedToDeath(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.ContributedToDeath, 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_contributedToDeath(_ 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_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 + } + 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.PerformedAge, 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_FamilyMemberHistoryProcedure_performedAge(_ 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 fc, nil +} + +func (ec *executionContext) _FamilyMemberHistoryProcedure_performedPeriod(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_performedPeriod(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.PerformedPeriod, 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_FamilyMemberHistoryProcedure_performedPeriod(_ 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 "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) _FamilyMemberHistoryProcedure_performedString(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_performedString(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.PerformedString, 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_performedString(_ 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_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 { + 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_FamilyMemberHistoryProcedure_id(_ 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_extension(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryProcedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryProcedure_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_FamilyMemberHistoryProcedure_extension(_ 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 "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) _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 + } + 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_FamilyMemberHistoryProcedure_code(_ 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 "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) _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 + } + 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.Outcome, 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_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) { + 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_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 + } + 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.Condition, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.FamilyMemberHistoryCondition) + fc.Result = res + return ec.marshalOFamilyMemberHistoryCondition2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryCondition(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_condition(_ 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 "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 nil, fmt.Errorf("no field named %q was found under type FamilyMemberHistoryCondition", 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) + 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.AgeAge, 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_FamilyMemberHistoryType_ageAge(_ 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 "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 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) + 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.DeceasedRange, 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_FamilyMemberHistoryType_deceasedRange(_ 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 "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 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) + 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.DeceasedAge, 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_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) { + 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 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) + 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_FamilyMemberHistoryType_status(_ 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 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) + 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_FamilyMemberHistoryType_language(_ 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 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) + 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_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) { + 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) _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 + } + 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.Sex, 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_FamilyMemberHistoryType_sex(_ 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 "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 { + 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.FamilyMemberHistoryNoteUnion) + fc.Result = res + return ec.marshalOFamilyMemberHistoryNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryNoteUnion(ctx, field.Selections, res) +} + +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 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_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 + } + 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_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) { + return nil, errors.New("field of type ResourceUnion does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FamilyMemberHistoryType_id(ctx context.Context, field graphql.CollectedField, obj *model.FamilyMemberHistoryType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FamilyMemberHistoryType_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_FamilyMemberHistoryType_id(_ 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 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) + 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_FamilyMemberHistoryType_resourceType(_ 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 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) + 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.DeceasedString, 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_FamilyMemberHistoryType_deceasedString(_ 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 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) + 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.CodeableConcept) + fc.Result = res + return ec.marshalOCodeableConcept2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_relationship(_ 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 "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_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 + } + 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.BornDate, 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_FamilyMemberHistoryType_bornDate(_ 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 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) + 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.DataAbsentReason, 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_FamilyMemberHistoryType_dataAbsentReason(_ 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 "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_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 + } + 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.EstimatedAge, 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_FamilyMemberHistoryType_estimatedAge(_ 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 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) + 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_FamilyMemberHistoryType_modifierExtension(_ 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 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) + 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.Date, 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_FamilyMemberHistoryType_date(_ 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 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) + 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.Patient, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.PatientType) + fc.Result = res + return ec.marshalOPatientType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_patient(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) { + switch field.Name { + case "modifierExtension": + return ec.fieldContext_PatientType_modifierExtension(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 "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 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_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 + } + 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_FamilyMemberHistoryType_extension(_ 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 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) + 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.Procedure, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.FamilyMemberHistoryProcedure) + fc.Result = res + return ec.marshalOFamilyMemberHistoryProcedure2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryProcedure(ctx, field.Selections, res) +} + +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) { + 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 "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) + case "outcome": + return ec.fieldContext_FamilyMemberHistoryProcedure_outcome(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FamilyMemberHistoryProcedure", 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) + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_meta(_ 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 "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) _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 + } + 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.AgeRange, 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_FamilyMemberHistoryType_ageRange(_ 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 "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 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) + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FamilyMemberHistoryType_name(_ 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 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) + 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.DeceasedDate, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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) + 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_FamilyMemberHistoryType_deceasedBoolean(_ 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 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.InstantiatesCanonical, 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_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 String does not have child fields") + }, + } + 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) + 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.AgeString, 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_FamilyMemberHistoryType_ageString(_ 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 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) + 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_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) { + 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 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) + 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_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 String does not have child fields") + }, + } + 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) + 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.Reason, 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_FamilyMemberHistoryType_reason(_ 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 "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, 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) + 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.InstantiatesURI, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.BornString, 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_FamilyMemberHistoryType_bornString(_ 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 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) + 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.Participant, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.FamilyMemberHistoryParticipantUnion) + fc.Result = res + return ec.marshalOFamilyMemberHistoryParticipantUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryParticipantUnion(ctx, field.Selections, res) +} + +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 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_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 + } + 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.BornPeriod, 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_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) { + 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) _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 { + 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) _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 + } + 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_GroupCharacteristic_code(_ 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 "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) _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_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 { + 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.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_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) _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 + } + 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.ValueRange, 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_GroupCharacteristic_valueRange(_ 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 "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 fc, nil +} + +func (ec *executionContext) _GroupCharacteristic_extension(ctx context.Context, field graphql.CollectedField, obj *model.GroupCharacteristic) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupCharacteristic_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_GroupCharacteristic_extension(_ 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 "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) _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 + } + 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_GroupCharacteristic_modifierExtension(_ 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 "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) _GroupCharacteristic_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.GroupCharacteristic) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupCharacteristic_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_GroupCharacteristic_resourceType(_ 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 { + 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.Exclude, 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_exclude(_ 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_valueCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.GroupCharacteristic) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupCharacteristic_valueCodeableConcept(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.ValueCodeableConcept, 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_GroupCharacteristic_valueCodeableConcept(_ 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 "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) _GroupCharacteristic_id(ctx context.Context, field graphql.CollectedField, obj *model.GroupCharacteristic) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupCharacteristic_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_GroupCharacteristic_id(_ 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) _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 + } + 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.Entity, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.GroupMemberEntityUnion) + fc.Result = res + return ec.marshalOGroupMemberEntityUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupMemberEntityUnion(ctx, field.Selections, res) +} + +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 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_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 + } + 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_GroupMember_extension(_ 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 "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) _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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Inactive, 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_GroupMember_inactive(_ 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 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) + 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_GroupMember_modifierExtension(_ 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 "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) _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 + } + 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_GroupMember_period(_ 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 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) + 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_GroupMember_resourceType(_ 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 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) + 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_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) { + 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) _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 + } + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupType_meta(_ 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 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) + 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_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) { + return nil, errors.New("field of type ResourceUnion does not have child fields") + }, + } + 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) + 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.Membership, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_GroupType_resourceType(_ 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") + }, + } + 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) + 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.Characteristic, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.GroupCharacteristic) + fc.Result = res + return ec.marshalOGroupCharacteristic2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupCharacteristic(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupType_characteristic(_ 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 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) + 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.Quantity, 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_GroupType_quantity(_ 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") + }, + } + 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) + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +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 String does not have child fields") + }, + } + 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) + 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.Active, 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_GroupType_active(_ 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") + }, + } + 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) + 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_GroupType_description(_ 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") + }, + } + 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) + 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_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) { + 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) _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 + } + 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_GroupType_id(_ 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") + }, + } + 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _GroupType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.GroupType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupType_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_GroupType_modifierExtension(_ 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 "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) _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 + } + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupType_name(_ 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") + }, + } + 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) + 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_GroupType_implicitRules(_ 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") + }, + } + 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) + 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_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) { + 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 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) + 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.ManagingEntity, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.GroupManagingEntityUnion) + fc.Result = res + return ec.marshalOGroupManagingEntityUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupManagingEntityUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupType_managingEntity(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 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) _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 + } + 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_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) { + 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) _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 + } + 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.Suffix, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Use, 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_use(_ 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 +} + +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 + } + 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.Family, 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_family(_ 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 +} + +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 + } + 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.Given, 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_given(_ 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 +} + +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 + } + 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_HumanName_id(_ 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 +} + +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 + } + 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.Prefix, 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_prefix(_ 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 +} + +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 + } + 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_HumanName_extension(_ 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 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) + 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_HumanName_resourceType(_ 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 +} + +func (ec *executionContext) _HumanName_period(ctx context.Context, field graphql.CollectedField, obj *model.HumanName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HumanName_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_HumanName_period(_ 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 "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) _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 +} + +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 { + 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_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 "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) _Identifier_extension(ctx context.Context, field graphql.CollectedField, obj *model.Identifier) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Identifier_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_Identifier_extension(_ 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 "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) _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 + } + 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_Identifier_period(_ 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 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) + 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.System, 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_Identifier_system(_ 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") + }, + } + 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) + 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_Identifier_value(_ 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") + }, + } + 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) + 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.Assigner, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.OrganizationType) + fc.Result = res + return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) +} + +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) { + 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) + }, + } + 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_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 + } + 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_Identifier_id(_ 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") + }, + } + 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Use, 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_Identifier_use(_ 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") + }, + } + 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) + 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.BodySite, 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_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) { + 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, 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_ImagingStudySeries_id(_ 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 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) + 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.Started, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_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) { + 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) _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 + } + 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.NumberOfInstances, 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_ImagingStudySeries_numberOfInstances(_ 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 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) + 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.UID, 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_ImagingStudySeries_uid(_ 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 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) + 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.Laterality, 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_ImagingStudySeries_laterality(_ 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 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) + 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.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_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) { + 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) _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 + } + 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.Performer, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ImagingStudySeriesPerformerUnion) + fc.Result = res + return ec.marshalOImagingStudySeriesPerformerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesPerformerUnion(ctx, field.Selections, res) +} + +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 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_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeries_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_ImagingStudySeries_modifierExtension(_ 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 "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) _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 + } + 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_ImagingStudySeries_description(_ 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 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) + 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.Number, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Instance, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ImagingStudySeriesInstance) + fc.Result = res + return ec.marshalOImagingStudySeriesInstance2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesInstance(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ImagingStudySeries_instance(_ 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 fc, nil +} + +func (ec *executionContext) _ImagingStudySeries_specimen(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeries_specimen(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.Specimen, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.SpecimenType) + fc.Result = res + return ec.marshalOSpecimenType2ᚕᚖ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) { + 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 "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_ImagingStudySeries_specimen_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + 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 { + 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.Title, 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_ImagingStudySeriesInstance_title(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ImagingStudySeriesInstance_uid(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeriesInstance) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeriesInstance_uid(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.UID, 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_ImagingStudySeriesInstance_uid(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ImagingStudySeriesInstance_extension(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeriesInstance) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeriesInstance_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_ImagingStudySeriesInstance_extension(_ 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 "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) _ImagingStudySeriesInstance_id(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeriesInstance) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeriesInstance_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_ImagingStudySeriesInstance_id(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ImagingStudySeriesInstance_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeriesInstance) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeriesInstance_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_ImagingStudySeriesInstance_modifierExtension(_ 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 "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) _ImagingStudySeriesInstance_number(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeriesInstance) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeriesInstance_number(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.Number, 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_ImagingStudySeriesInstance_number(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ImagingStudySeriesInstance_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeriesInstance) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeriesInstance_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_ImagingStudySeriesInstance_resourceType(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_ImagingStudySeriesPerformer_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ImagingStudySeriesPerformer", + 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) _ImagingStudySeriesPerformer_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeriesPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeriesPerformer_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_ImagingStudySeriesPerformer_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ImagingStudySeriesPerformer", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _ImagingStudySeriesPerformer_actor(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeriesPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeriesPerformer_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 { + return graphql.Null + } + res := resTmp.([]model.ImagingStudySeriesPerformerActorUnion) + fc.Result = res + return ec.marshalOImagingStudySeriesPerformerActorUnion2ᚕgithubᚗ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) { + fc = &graphql.FieldContext{ + Object: "ImagingStudySeriesPerformer", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ImagingStudySeriesPerformerActorUnion 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_ImagingStudySeriesPerformer_actor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ImagingStudySeriesPerformer_extension(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeriesPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeriesPerformer_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_ImagingStudySeriesPerformer_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ImagingStudySeriesPerformer", + 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) _ImagingStudySeriesPerformer_function(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeriesPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeriesPerformer_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_ImagingStudySeriesPerformer_function(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ImagingStudySeriesPerformer", + 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) _ImagingStudySeriesPerformer_id(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudySeriesPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudySeriesPerformer_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_ImagingStudySeriesPerformer_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ImagingStudySeriesPerformer", + Field: field, + IsMethod: false, + IsResolver: false, + 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_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 + } + 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.PartOf, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ProcedureType) + fc.Result = res + return ec.marshalOProcedureType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureType(ctx, field.Selections, res) +} + +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) { + 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 "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 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 +} + +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 + } + 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_ImagingStudyType_text(_ 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 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) + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ImagingStudyType_meta(_ 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 "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) _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 + } + 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_ImagingStudyType_extension(_ 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 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) + 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_ImagingStudyType_language(_ 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_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 + } + 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.BasedOn, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ImagingStudyBasedOnUnion) + fc.Result = res + return ec.marshalOImagingStudyBasedOnUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyBasedOnUnion(ctx, field.Selections, res) +} + +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 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_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 + } + 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.NumberOfInstances, 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_numberOfInstances(_ 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_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 + } + 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.Procedure, 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_ImagingStudyType_procedure(_ 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 "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, 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) + 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_ImagingStudyType_identifier(_ 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 "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) _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 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) + 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.Referrer, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ImagingStudyReferrerUnion) + fc.Result = res + return ec.marshalOImagingStudyReferrerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyReferrerUnion(ctx, field.Selections, res) +} + +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) { + 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_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 { + 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 "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 { + 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_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 + } + 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.ImagingStudyNoteUnion) + fc.Result = res + return ec.marshalOImagingStudyNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyNoteUnion(ctx, field.Selections, res) +} + +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 ImagingStudyNoteUnion 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_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + 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) + 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_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) { + return nil, errors.New("field of type ResourceUnion does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ImagingStudyType_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_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_ImagingStudyType_modifierExtension(_ 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 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) + 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.([]*model.ImagingStudySeries) + fc.Result = res + return ec.marshalOImagingStudySeries2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeries(ctx, field.Selections, res) +} + +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) { + 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 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) + 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.Reason, 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_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) { + 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, nil +} + +func (ec *executionContext) _ImagingStudyType_started(ctx context.Context, field graphql.CollectedField, obj *model.ImagingStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImagingStudyType_started(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.Started, 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_started(_ 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_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 + } + 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_ImagingStudyType_status(_ 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_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 + } + 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.Subject, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ImagingStudySubjectUnion) + fc.Result = res + return ec.marshalOImagingStudySubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySubjectUnion(ctx, field.Selections, res) +} + +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 ImagingStudySubjectUnion 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_subject_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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_ImagingStudyType_id(_ 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_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 + } + 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.NumberOfSeries, 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_numberOfSeries(_ 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) _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 + } + 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.StatusReason, 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_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) { + 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) _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 + } + 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.AdministeredProduct, 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_Immunization_administeredProduct(_ 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 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) + 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.DoseQuantity, 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_Immunization_doseQuantity(_ 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 "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) _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 + } + 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.LotNumber, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_Immunization_status(_ 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 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) + 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.Manufacturer, 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_Immunization_manufacturer(_ 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 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) + 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_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) { + 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) _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 + } + 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.ExpirationDate, 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_expirationDate(_ 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 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) + 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_Immunization_identifier(_ 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 "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) _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 + } + 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.Annotation) + fc.Result = res + return ec.marshalOAnnotation2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAnnotation(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Immunization_note(_ 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 "authorString": + return ec.fieldContext_Annotation_authorString(ctx, field) + case "extension": + return ec.fieldContext_Annotation_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 nil, fmt.Errorf("no field named %q was found under type Annotation", 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) + 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.Reaction, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ImmunizationReaction) + fc.Result = res + return ec.marshalOImmunizationReaction2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationReaction(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Immunization_reaction(_ 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 "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) + case "extension": + return ec.fieldContext_ImmunizationReaction_extension(ctx, field) + case "id": + return ec.fieldContext_ImmunizationReaction_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ImmunizationReaction", 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) + 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.ProtocolApplied, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ImmunizationProtocolApplied) + fc.Result = res + return ec.marshalOImmunizationProtocolApplied2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationProtocolApplied(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Immunization_protocolApplied(_ 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 "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_ImmunizationProtocolApplied_extension(ctx, field) + case "id": + return ec.fieldContext_ImmunizationProtocolApplied_id(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) + } + return nil, fmt.Errorf("no field named %q was found under type ImmunizationProtocolApplied", 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) + 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.Site, 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_Immunization_site(_ 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 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 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) + 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.Reason, 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_Immunization_reason(_ 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 fc, nil +} + +func (ec *executionContext) _Immunization_fundingSource(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_fundingSource(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.FundingSource, 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_Immunization_fundingSource(_ 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 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) + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Immunization_meta(_ 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 "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) _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 + } + 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.SubpotentReason, 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_Immunization_subpotentReason(_ 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 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) + 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_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 String does not have child fields") + }, + } + 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) + 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.VaccineCode, 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_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) { + 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) _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 + } + 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_Immunization_text(_ 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 "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 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) + 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_Immunization_implicitRules(_ 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 fc, nil +} + +func (ec *executionContext) _Immunization_informationSource(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_informationSource(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.InformationSource, 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_Immunization_informationSource(_ 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 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) + 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.OccurrenceString, 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_occurrenceString(_ 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 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) + 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.Performer, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ImmunizationPerformer) + fc.Result = res + return ec.marshalOImmunizationPerformer2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationPerformer(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Immunization_performer(_ 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 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) + 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.ProgramEligibility, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ImmunizationProgramEligibility) + fc.Result = res + return ec.marshalOImmunizationProgramEligibility2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationProgramEligibility(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Immunization_programEligibility(_ 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 "programStatus": + return ec.fieldContext_ImmunizationProgramEligibility_programStatus(ctx, field) + case "resourceType": + return ec.fieldContext_ImmunizationProgramEligibility_resourceType(ctx, field) + case "extension": + return ec.fieldContext_ImmunizationProgramEligibility_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 nil, fmt.Errorf("no field named %q was found under type ImmunizationProgramEligibility", 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) + 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.Route, 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_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) { + 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) _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 + } + 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_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) { + return nil, errors.New("field of type ResourceUnion 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) + 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_Immunization_id(_ 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 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) + 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.PrimarySource, 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_primarySource(_ 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 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) + 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.IsSubpotent, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Immunization_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.Immunization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Immunization_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_Immunization_modifierExtension(_ 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 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 "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) _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 + } + 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_ImmunizationPerformer_id(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_ImmunizationPerformer_modifierExtension(_ 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 "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) _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 + } + 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_ImmunizationPerformer_resourceType(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_ImmunizationPerformer_extension(_ 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 "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) _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 + } + 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.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 "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) _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) + 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_ImmunizationProgramEligibility_resourceType(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_ImmunizationProgramEligibility_extension(_ 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 "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) _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 + } + 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_ImmunizationProgramEligibility_id(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_ImmunizationProgramEligibility_modifierExtension(_ 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 "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) _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 "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) _ImmunizationProtocolApplied_seriesDoses(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProtocolApplied) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationProtocolApplied_seriesDoses(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.SeriesDoses, 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_seriesDoses(_ 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_targetDisease(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProtocolApplied) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationProtocolApplied_targetDisease(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.TargetDisease, 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_ImmunizationProtocolApplied_targetDisease(_ 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 "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) _ImmunizationProtocolApplied_doseNumber(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProtocolApplied) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationProtocolApplied_doseNumber(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.DoseNumber, 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_doseNumber(_ 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_extension(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationProtocolApplied) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationProtocolApplied_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_ImmunizationProtocolApplied_extension(_ 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 "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) _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 "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) _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 + } + 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_ImmunizationProtocolApplied_resourceType(_ 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_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 +} + +func (ec *executionContext) _ImmunizationReaction_manifestation(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationReaction) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationReaction_manifestation(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.Manifestation, 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_ImmunizationReaction_manifestation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ImmunizationReaction", + 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, nil +} + +func (ec *executionContext) _ImmunizationReaction_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationReaction) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationReaction_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_ImmunizationReaction_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ImmunizationReaction", + 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) _ImmunizationReaction_reported(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationReaction) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationReaction_reported(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.Reported, 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_ImmunizationReaction_reported(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ImmunizationReaction", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _ImmunizationReaction_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationReaction) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationReaction_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_ImmunizationReaction_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ImmunizationReaction", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _ImmunizationReaction_date(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationReaction) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationReaction_date(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.Date, 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_ImmunizationReaction_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ImmunizationReaction", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _ImmunizationReaction_extension(ctx context.Context, field graphql.CollectedField, obj *model.ImmunizationReaction) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ImmunizationReaction_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_ImmunizationReaction_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ImmunizationReaction", + 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) _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 + } + 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_ImmunizationReaction_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ImmunizationReaction", + Field: field, + IsMethod: false, + IsResolver: false, + 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_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 + } + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +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) { + 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) _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 + } + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Location_name(_ 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_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 + } + 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_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) { + return nil, errors.New("field of type ResourceUnion does not have child fields") + }, + } + 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) + 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.Form, 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_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) { + 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) _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 + } + 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_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_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 + } + 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_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) { + 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) _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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_Location_id(_ 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_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 + } + 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.Characteristic, 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_Location_characteristic(_ 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 "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) _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 + } + 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_Location_modifierExtension(_ 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 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) + 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.Address, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Address) + fc.Result = res + return ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Location_address(_ 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 "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 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.OperationalStatus, 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_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) { + 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) _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 + } + 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.Position, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.LocationPosition) + fc.Result = res + return ec.marshalOLocationPosition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐLocationPosition(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Location_position(_ 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 fc, nil +} + +func (ec *executionContext) _Location_virtualService(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_virtualService(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.VirtualService, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.VirtualServiceDetail) + fc.Result = res + return ec.marshalOVirtualServiceDetail2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐVirtualServiceDetail(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Location_virtualService(_ 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 "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 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, + 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 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) + 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.Contact, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ExtendedContactDetail) + fc.Result = res + return ec.marshalOExtendedContactDetail2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, field.Selections, res) +} + +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) { + 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 fc, nil +} + +func (ec *executionContext) _Location_status(ctx context.Context, field graphql.CollectedField, obj *model.Location) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Location_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_Location_status(_ 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 { + 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.HoursOfOperation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Availability) + fc.Result = res + return ec.marshalOAvailability2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Location_hoursOfOperation(_ 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 "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 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) + 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_Location_identifier(_ 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 "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) _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 + } + 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.Alias, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_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) { + 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) _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) _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 + } + 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.Altitude, 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_altitude(_ 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_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 + } + 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_LocationPosition_extension(_ 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) { + 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) _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) + 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.Latitude, 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_latitude(_ 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_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 + } + 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.Longitude, 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_longitude(_ 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_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 + } + 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_LocationPosition_modifierExtension(_ 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) { + 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) _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 + } + 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_LocationPosition_resourceType(_ 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) _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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_MedicationAdministrationDosage_modifierExtension(_ 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 fc, nil +} + +func (ec *executionContext) _MedicationAdministrationDosage_rateQuantity(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationDosage_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_MedicationAdministrationDosage_rateQuantity(_ 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 "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) _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 + } + 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_MedicationAdministrationDosage_text(_ 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) _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 + } + 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_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) { + 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) _MedicationAdministrationDosage_dose(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationDosage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationDosage_dose(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.Dose, 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_MedicationAdministrationDosage_dose(_ 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 "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) _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 + } + 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.Site, 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_MedicationAdministrationDosage_site(_ 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 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) + 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.Method, 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_MedicationAdministrationDosage_method(_ 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 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) + 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.RateRatio, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Ratio) + fc.Result = res + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) +} + +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) { + 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 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) + 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.Route, 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_MedicationAdministrationDosage_route(_ 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 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 { + 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_MedicationAdministrationPerformer_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationAdministrationPerformer", + Field: field, + IsMethod: false, + IsResolver: false, + 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_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationPerformer_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_MedicationAdministrationPerformer_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationAdministrationPerformer", + 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) _MedicationAdministrationPerformer_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationPerformer_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_MedicationAdministrationPerformer_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationAdministrationPerformer", + Field: field, + IsMethod: false, + IsResolver: false, + 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_actor(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationPerformer_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 { + 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_MedicationAdministrationPerformer_actor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationAdministrationPerformer", + 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, nil +} + +func (ec *executionContext) _MedicationAdministrationPerformer_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationPerformer_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_MedicationAdministrationPerformer_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationAdministrationPerformer", + 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) _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 + } + 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_MedicationAdministrationPerformer_function(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationAdministrationPerformer", + 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) _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 + } + 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.SubPotentReason, 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_MedicationAdministrationType_subPotentReason(_ 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 "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) _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 + } + 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.Device, 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_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) { + 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, 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) + 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.Category, 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_MedicationAdministrationType_category(_ 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 "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) _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 + } + }() + 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 { + 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, 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) + 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.Medication, 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_MedicationAdministrationType_medication(_ 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 fc, nil +} + +func (ec *executionContext) _MedicationAdministrationType_occurencePeriod(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_occurencePeriod(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.OccurencePeriod, 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_MedicationAdministrationType_occurencePeriod(_ 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_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) _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 + } + 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.IsSubPotent, 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_isSubPotent(_ 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, 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) + 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_MedicationAdministrationType_identifier(_ 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 "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) _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 + } + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MedicationAdministrationType_meta(_ 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 "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) _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 + } + 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_MedicationAdministrationType_modifierExtension(_ 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 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) + 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.Dosage, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.MedicationAdministrationDosage) + fc.Result = res + return ec.marshalOMedicationAdministrationDosage2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationDosage(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MedicationAdministrationType_dosage(_ 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 "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 "text": + return ec.fieldContext_MedicationAdministrationDosage_text(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 nil, fmt.Errorf("no field named %q was found under type MedicationAdministrationDosage", 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) + 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.Performer, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.MedicationAdministrationPerformer) + fc.Result = res + return ec.marshalOMedicationAdministrationPerformer2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationPerformer(ctx, field.Selections, res) +} + +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) { + 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 "extension": + return ec.fieldContext_MedicationAdministrationPerformer_extension(ctx, field) + case "function": + return ec.fieldContext_MedicationAdministrationPerformer_function(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MedicationAdministrationPerformer", 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) + 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_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 String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MedicationAdministrationType_recorded(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_recorded(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.Recorded, 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_recorded(_ 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, 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.OccurenceTiming, 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_MedicationAdministrationType_occurenceTiming(_ 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 "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 fc, nil +} + +func (ec *executionContext) _MedicationAdministrationType_subject(ctx context.Context, field graphql.CollectedField, obj *model.MedicationAdministrationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationAdministrationType_subject(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.Subject, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.MedicationAdministrationSubjectUnion) + fc.Result = res + return ec.marshalOMedicationAdministrationSubjectUnion2ᚕgithubᚗ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) { + 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 MedicationAdministrationSubjectUnion 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_subject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + 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) + 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_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) { + return nil, errors.New("field of type String 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) + 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.Request, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.MedicationRequestType) + fc.Result = res + return ec.marshalOMedicationRequestType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MedicationAdministrationType_request(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) { + 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 "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 nil, fmt.Errorf("no field named %q was found under type MedicationRequestType", 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) + 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.MedicationAdministrationNoteUnion) + fc.Result = res + return ec.marshalOMedicationAdministrationNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationNoteUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MedicationAdministrationType_note(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") + }, + } + 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_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 + } + 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_MedicationAdministrationType_text(_ 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 "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 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 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) + 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.StatusReason, 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_MedicationAdministrationType_statusReason(_ 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 "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) _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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.PartOf, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.MedicationAdministrationPartOfUnion) + fc.Result = res + return ec.marshalOMedicationAdministrationPartOfUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationPartOfUnion(ctx, field.Selections, res) +} + +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 MedicationAdministrationPartOfUnion 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) + 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.Reason, 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_MedicationAdministrationType_reason(_ 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 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) + 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.SupportingInformation, 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_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 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_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 + } + 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_MedicationAdministrationType_extension(_ 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 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) + 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_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 ResourceUnion does not have child fields") + }, + } + 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) + 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_MedicationBatch_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationBatch", + 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) _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 + } + 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_MedicationBatch_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationBatch", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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.ExpirationDate, 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_MedicationBatch_expirationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationBatch", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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_MedicationBatch_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationBatch", + 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) _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 + } + 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_MedicationBatch_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationBatch", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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.LotNumber, 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_MedicationBatch_lotNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationBatch", + Field: field, + IsMethod: false, + IsResolver: false, + 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_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 + } + 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.StrengthCodeableConcept, 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_MedicationIngredient_strengthCodeableConcept(_ 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 "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) _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) + 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) _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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_MedicationIngredient_extension(_ 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) + 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) _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 + } + 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.IsActive, 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_isActive(_ 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_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 + } + 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.Item, 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_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) { + 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, 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) + 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.StrengthQuantity, 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_MedicationIngredient_strengthQuantity(_ 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 "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) _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 + } + 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.StrengthRatio, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Ratio) + fc.Result = res + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) +} + +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) { + 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 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 { + 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.ExpectedSupplyDuration, 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_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 "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 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) + 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.InitialFill, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.MedicationRequestDispenseRequestInitialFill) + fc.Result = res + return ec.marshalOMedicationRequestDispenseRequestInitialFill2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestDispenseRequestInitialFill(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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_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) { + 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) _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 + } + 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_MedicationRequestDispenseRequest_resourceType(_ 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_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 + } + 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.ValidityPeriod, 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_MedicationRequestDispenseRequest_validityPeriod(_ 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 "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) _MedicationRequestDispenseRequest_doseAdministrationAid(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequest_doseAdministrationAid(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.DoseAdministrationAid, 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_MedicationRequestDispenseRequest_doseAdministrationAid(_ 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 "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) _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) + 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_id(_ 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_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 + } + 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.DispenseInterval, 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_MedicationRequestDispenseRequest_dispenseInterval(_ 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 "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 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) + 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.Dispenser, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.OrganizationType) + fc.Result = res + return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MedicationRequestDispenseRequest_dispenser(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) { + 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) + }, + } + 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 +} + +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 + } + 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.DispenserInstruction, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.MedicationRequestDispenseRequestDispenserInstructionUnion) + fc.Result = res + return ec.marshalOMedicationRequestDispenseRequestDispenserInstructionUnion2ᚕgithubᚗ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_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 + } + 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.Quantity, 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_MedicationRequestDispenseRequest_quantity(_ 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 "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) _MedicationRequestDispenseRequest_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequest_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_MedicationRequestDispenseRequest_extension(_ 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 "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) _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 { + 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.NumberOfRepeatsAllowed, 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_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) _MedicationRequestDispenseRequestInitialFill_duration(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequestInitialFill) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequestInitialFill_duration(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.Duration, 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_MedicationRequestDispenseRequestInitialFill_duration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationRequestDispenseRequestInitialFill", + 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 fc, nil +} + +func (ec *executionContext) _MedicationRequestDispenseRequestInitialFill_extension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequestInitialFill) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequestInitialFill_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_MedicationRequestDispenseRequestInitialFill_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationRequestDispenseRequestInitialFill", + 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) _MedicationRequestDispenseRequestInitialFill_id(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequestInitialFill) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequestInitialFill_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_MedicationRequestDispenseRequestInitialFill_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationRequestDispenseRequestInitialFill", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _MedicationRequestDispenseRequestInitialFill_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequestInitialFill) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequestInitialFill_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_MedicationRequestDispenseRequestInitialFill_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationRequestDispenseRequestInitialFill", + 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) _MedicationRequestDispenseRequestInitialFill_quantity(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequestInitialFill) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequestInitialFill_quantity(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.Quantity, 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_MedicationRequestDispenseRequestInitialFill_quantity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationRequestDispenseRequestInitialFill", + 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) _MedicationRequestDispenseRequestInitialFill_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestDispenseRequestInitialFill) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestDispenseRequestInitialFill_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_MedicationRequestDispenseRequestInitialFill_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationRequestDispenseRequestInitialFill", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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.Reason, 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_MedicationRequestSubstitution_reason(_ 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 "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) _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 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) + 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.AllowedBoolean, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.AllowedCodeableConcept, 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_MedicationRequestSubstitution_allowedCodeableConcept(_ 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 "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) _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 + } + 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_MedicationRequestSubstitution_extension(_ 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 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) + 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_MedicationRequestSubstitution_id(_ 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 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) + 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_MedicationRequestSubstitution_modifierExtension(_ 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 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) + 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.Medication, 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_MedicationRequestType_medication(_ 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 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) + 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_MedicationRequestType_resourceType(_ 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_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 + } + 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.Reason, 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_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) { + 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, 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) + 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.StatusChanged, 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_statusChanged(_ 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_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 + } + 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.CourseOfTherapyType, 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_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) { + 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) _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 + } + 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.EffectiveDosePeriod, 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_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) { + 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) _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 + } + 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.Device, 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_MedicationRequestType_device(_ 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 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) + 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.SupportingInformation, 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_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) { + 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) + 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.Performer, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.MedicationRequestPerformerUnion) + fc.Result = res + return ec.marshalOMedicationRequestPerformerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestPerformerUnion(ctx, field.Selections, res) +} + +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) { + return nil, errors.New("field of type MedicationRequestPerformerUnion 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_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) + 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.AuthoredOn, 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_authoredOn(_ 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_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 + } + 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.MedicationRequestNoteUnion) + fc.Result = res + return ec.marshalOMedicationRequestNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestNoteUnion(ctx, field.Selections, res) +} + +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 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_text(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_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_MedicationRequestType_text(_ 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 "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 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_MedicationRequestType_status(_ 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") + }, + } + 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) + 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.Requester, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.MedicationRequestRequesterUnion) + fc.Result = res + return ec.marshalOMedicationRequestRequesterUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestRequesterUnion(ctx, field.Selections, res) +} + +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 MedicationRequestRequesterUnion 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_requester_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _MedicationRequestType_groupIdentifier(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_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_MedicationRequestType_groupIdentifier(_ 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 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) + 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.StatusReason, 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_MedicationRequestType_statusReason(_ 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, 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) + 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.Intent, 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_intent(_ 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_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 + } + 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.DosageInstruction, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Dosage) + fc.Result = res + return ec.marshalODosage2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MedicationRequestType_dosageInstruction(_ 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 fc, nil +} + +func (ec *executionContext) _MedicationRequestType_informationSource(ctx context.Context, field graphql.CollectedField, obj *model.MedicationRequestType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationRequestType_informationSource(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.InformationSource, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.MedicationRequestInformationSourceUnion) + fc.Result = res + return ec.marshalOMedicationRequestInformationSourceUnion2ᚕgithubᚗ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) { + 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 MedicationRequestInformationSourceUnion 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_informationSource_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + 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) + 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.PerformerType, 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_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) { + 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) _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 + } + 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_MedicationRequestType_identifier(_ 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 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) + 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_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) { + 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) _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 + } + }() + 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 { + 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, 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) + 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.Recorder, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.MedicationRequestRecorderUnion) + fc.Result = res + return ec.marshalOMedicationRequestRecorderUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestRecorderUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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.PriorPrescription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.MedicationRequestType) + fc.Result = res + return ec.marshalOMedicationRequestType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MedicationRequestType_priorPrescription(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 "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 "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 nil, fmt.Errorf("no field named %q was found under type MedicationRequestType", 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) + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +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) { + 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) _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 + } + 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.BasedOn, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.MedicationRequestBasedOnUnion) + fc.Result = res + return ec.marshalOMedicationRequestBasedOnUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestBasedOnUnion(ctx, field.Selections, res) +} + +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 MedicationRequestBasedOnUnion 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) + 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_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) { + 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) _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 + } + 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.RenderedDosageInstruction, 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_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 String does not have child fields") + }, + } + 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) + 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.Reported, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Substitution, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.MedicationRequestSubstitution) + fc.Result = res + return ec.marshalOMedicationRequestSubstitution2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestSubstitution(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MedicationRequestType_substitution(_ 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 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) + 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.DoNotPerform, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_MedicationRequestType_contained(_ 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") + }, + } + 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) + 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.Subject, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.MedicationRequestSubjectUnion) + fc.Result = res + return ec.marshalOMedicationRequestSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestSubjectUnion(ctx, field.Selections, res) +} + +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 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_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 + } + 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.DispenseRequest, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.MedicationRequestDispenseRequest) + fc.Result = res + return ec.marshalOMedicationRequestDispenseRequest2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestDispenseRequest(ctx, field.Selections, res) +} + +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) { + switch field.Name { + case "expectedSupplyDuration": + return ec.fieldContext_MedicationRequestDispenseRequest_expectedSupplyDuration(ctx, field) + case "initialFill": + return ec.fieldContext_MedicationRequestDispenseRequest_initialFill(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) + case "extension": + return ec.fieldContext_MedicationRequestDispenseRequest_extension(ctx, field) + case "numberOfRepeatsAllowed": + return ec.fieldContext_MedicationRequestDispenseRequest_numberOfRepeatsAllowed(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MedicationRequestDispenseRequest", 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 + } + }() + 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 { + 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, 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) + 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_MedicationStatementAdherence_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationStatementAdherence", + 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) _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 + } + 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_MedicationStatementAdherence_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 String does not have child fields") + }, + } + 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) + 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_MedicationStatementAdherence_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationStatementAdherence", + 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) _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 + } + 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.Reason, 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_MedicationStatementAdherence_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationStatementAdherence", + 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) _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 + } + 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_MedicationStatementAdherence_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MedicationStatementAdherence_code(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementAdherence) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementAdherence_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_MedicationStatementAdherence_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MedicationStatementAdherence", + 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) _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) + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MedicationStatementType_meta(_ 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 "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) _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 + } + 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.EffectivePeriod, 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_MedicationStatementType_effectivePeriod(_ 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_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) _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 + } + 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.Dosage, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Dosage) + fc.Result = res + return ec.marshalODosage2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MedicationStatementType_dosage(_ 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 "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 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) + 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.Category, 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_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) { + 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) _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 + } + 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_MedicationStatementType_contained(_ 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") + }, + } + 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) + 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.EffectiveDateTime, 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_effectiveDateTime(_ 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 fc, nil +} + +func (ec *executionContext) _MedicationStatementType_identifier(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_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_MedicationStatementType_identifier(_ 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 "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) _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 + } + 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.MedicationStatementNoteUnion) + fc.Result = res + return ec.marshalOMedicationStatementNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementNoteUnion(ctx, field.Selections, res) +} + +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 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_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_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_MedicationStatementType_implicitRules(_ 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 fc, nil +} + +func (ec *executionContext) _MedicationStatementType_medication(ctx context.Context, field graphql.CollectedField, obj *model.MedicationStatementType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationStatementType_medication(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.Medication, 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_MedicationStatementType_medication(_ 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 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) + 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.RenderedDosageInstruction, 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_renderedDosageInstruction(_ 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 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) + 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.ResourceUnion) + fc.Result = res + return ec.marshalOResourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) +} + +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 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_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 + } + 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.Subject, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.MedicationStatementSubjectUnion) + fc.Result = res + return ec.marshalOMedicationStatementSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementSubjectUnion(ctx, field.Selections, res) +} + +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 MedicationStatementSubjectUnion 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) + 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.Adherence, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.MedicationStatementAdherence) + fc.Result = res + return ec.marshalOMedicationStatementAdherence2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementAdherence(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MedicationStatementType_adherence(_ 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 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) + 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.Reason, 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_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) { + 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, 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) + 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_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) { + 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 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) + 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_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 String does not have child fields") + }, + } + 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) + 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.PartOf, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.MedicationStatementPartOfUnion) + fc.Result = res + return ec.marshalOMedicationStatementPartOfUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementPartOfUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MedicationStatementType_partOf(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") + }, + } + 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) _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 + } + 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_MedicationStatementType_modifierExtension(_ 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 "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) _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 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) + 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_MedicationStatementType_extension(_ 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 "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) _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 + } + 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_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 String does not have child fields") + }, + } + 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) + 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_MedicationStatementType_effectiveTiming(_ 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 "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 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) + 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.InformationSource, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.MedicationStatementInformationSourceUnion) + fc.Result = res + return ec.marshalOMedicationStatementInformationSourceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementInformationSourceUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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_MedicationStatementType_status(_ 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 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) + 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_MedicationStatementType_resourceType(_ 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 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) + 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.DoseForm, 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_MedicationType_doseForm(_ 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 "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) _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 + } + 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_MedicationType_code(_ 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 "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) _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 + } + 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_MedicationType_identifier(_ 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 "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) _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 + } + 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_MedicationType_text(_ 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 "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 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) + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +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) { + 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) _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 + } + 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_MedicationType_resourceType(_ 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") + }, + } + 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) + 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_MedicationType_status(_ 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") + }, + } + 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_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) { + 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) _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 + } + 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_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 + } + }() + 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) + fc.Result = res + return ec.marshalOMedicationBatch2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationBatch(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MedicationType_batch(_ 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 "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) + case "id": + return ec.fieldContext_MedicationBatch_id(ctx, field) + case "lotNumber": + return ec.fieldContext_MedicationBatch_lotNumber(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MedicationBatch", field.Name) + }, + } + 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MedicationType_totalVolume(ctx context.Context, field graphql.CollectedField, obj *model.MedicationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MedicationType_totalVolume(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.TotalVolume, 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_MedicationType_totalVolume(_ 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 "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) _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 + } + 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_MedicationType_extension(_ 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 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) + 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.Ingredient, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.MedicationIngredient) + fc.Result = res + return ec.marshalOMedicationIngredient2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationIngredient(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MedicationType_ingredient(_ 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 "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) + 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 nil, fmt.Errorf("no field named %q was found under type MedicationIngredient", 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) + 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_MedicationType_id(_ 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") + }, + } + 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) + 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.MarketingAuthorizationHolder, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.OrganizationType) + fc.Result = res + return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MedicationType_marketingAuthorizationHolder(ctx 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) + }, + } + 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) + 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.Profile, 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_Meta_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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) _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 + } + 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.Security, 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_Meta_security(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Meta", + 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) _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 + } + 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 { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Meta_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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) _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 + } + 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.Tag, 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_Meta_tag(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Meta", + 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) _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 + } + 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.VersionID, 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_Meta_versionId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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) _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 + } + 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.LastUpdated, 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_Meta_lastUpdated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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) _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 + } + 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_Meta_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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) _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() { + 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_Meta_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 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) + 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_Meta_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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_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 + } + 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.Currency, 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_Money_currency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + 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 + } + 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_Money_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Money", + 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) _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 + } + 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_Money_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + 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) + 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_Money_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + 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) + 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_Money_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + 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) + 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.Div, 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_Narrative_div(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Narrative", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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_Narrative_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 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) + 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_Narrative_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Narrative", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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_Narrative_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Narrative", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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_Narrative_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Narrative", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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_ObservationComponent_id(_ 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") + }, + } + 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) + 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) +} + +func (ec *executionContext) fieldContext_ObservationComponent_valuePeriod(_ 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 "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) _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 + } + 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.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_ObservationComponent_valueQuantity(_ 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 "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) _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 + } + 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.ValueRange, 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_ObservationComponent_valueRange(_ 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 "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 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) + 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.ValueAttachment, nil + }) + if err != nil { + ec.Error(ctx, 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_ObservationComponent_valueAttachment(_ 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 "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 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) + 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_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) { + 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) _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 + } + 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_ObservationComponent_valueSampledData(_ 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 "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) _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 + } + 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_ObservationComponent_valueString(_ 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") + }, + } + 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) + 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_ObservationComponent_modifierExtension(_ 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 "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) _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 + } + 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_ObservationComponent_code(_ 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 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) + 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.DataAbsentReason, 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_ObservationComponent_dataAbsentReason(_ 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 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) + 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_ObservationComponent_valueBoolean(_ 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") + }, + } + 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) + 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_ObservationComponent_valueDateTime(_ 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") + }, + } + 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) + 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.ValueInteger, 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_ObservationComponent_valueInteger(_ 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") + }, + } + 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) + 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.ValueTime, 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_ObservationComponent_valueTime(_ 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") + }, + } + 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) + 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.Interpretation, 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_ObservationComponent_interpretation(_ 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 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) + 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.ReferenceRange, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ObservationReferenceRange) + fc.Result = res + return ec.marshalOObservationReferenceRange2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationReferenceRange(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ObservationComponent_referenceRange(_ 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 "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 "resourceType": + return ec.fieldContext_ObservationReferenceRange_resourceType(ctx, field) + case "modifierExtension": + return ec.fieldContext_ObservationReferenceRange_modifierExtension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ObservationReferenceRange", 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueCodeableConcept, 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_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) { + 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) _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 + } + 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.ValueRatio, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Ratio) + fc.Result = res + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ObservationComponent_valueRatio(_ 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 "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 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) + 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_ObservationReferenceRange_extension(_ 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 "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) _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 + } + 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.High, 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_ObservationReferenceRange_high(_ 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 "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) _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 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) + 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_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 "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) _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 + } + 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.AppliesTo, 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_appliesTo(_ 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 "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) _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 + } + 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.Age, 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_ObservationReferenceRange_age(_ 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_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 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) + 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_ObservationReferenceRange_text(_ 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 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) + 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_ObservationReferenceRange_low(_ 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 "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) _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 + } + 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.NormalValue, 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_normalValue(_ 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 "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) _ObservationReferenceRange_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ObservationReferenceRange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationReferenceRange_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_ObservationReferenceRange_resourceType(_ 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 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) + 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_ObservationReferenceRange_modifierExtension(_ 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 "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) _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 + } + 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_ObservationTriggeredBy_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ObservationTriggeredBy", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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_ObservationTriggeredBy_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ObservationTriggeredBy", + 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) _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 + } + 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.Observation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ObservationType) + fc.Result = res + return ec.marshalOObservationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ObservationTriggeredBy_observation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ObservationTriggeredBy", + 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) + }, + } + 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) + 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.Reason, 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_ObservationTriggeredBy_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ObservationTriggeredBy", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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_ObservationTriggeredBy_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ObservationTriggeredBy", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ObservationTriggeredBy_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ObservationTriggeredBy", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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_ObservationTriggeredBy_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ObservationTriggeredBy", + 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) _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 + } + 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.EffectivePeriod, 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_ObservationType_effectivePeriod(_ 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_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) _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") + }, + } + 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) + 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.EffectiveInstant, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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) +} + +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) { + 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) _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 + } + 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.InstantiatesCanonical, 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_instantiatesCanonical(_ 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_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 + } + 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.ReferenceRange, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ObservationReferenceRange) + fc.Result = res + return ec.marshalOObservationReferenceRange2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationReferenceRange(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ObservationType_referenceRange(_ 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_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 "resourceType": + return ec.fieldContext_ObservationReferenceRange_resourceType(ctx, field) + case "modifierExtension": + return ec.fieldContext_ObservationReferenceRange_modifierExtension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ObservationReferenceRange", 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 "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) _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 + } + 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.Category, 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_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) { + 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) _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 + } + 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_ObservationType_valueBoolean(_ 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_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 + } + 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.Performer, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ObservationPerformerUnion) + fc.Result = res + return ec.marshalOObservationPerformerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationPerformerUnion(ctx, field.Selections, res) +} + +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 ObservationPerformerUnion 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_performer_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) + 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.BodySite, 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_bodySite(_ 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 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) + 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_ObservationType_text(_ 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 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) + 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.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_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) { + 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_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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_ObservationType_id(_ 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_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 + } + 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_ObservationType_modifierExtension(_ 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 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) + 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_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 ResourceUnion does not have child fields") + }, + } + 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) + 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.ValueAttachment, nil + }) + if err != nil { + ec.Error(ctx, 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_ObservationType_valueAttachment(_ 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 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) + 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_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) { + return nil, errors.New("field of type String 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) + 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_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_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 + } + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +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) { + 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) _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 + } + 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.Method, 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_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) { + 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) _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 + } + 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.BodyStructure, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.BodyStructureType) + fc.Result = res + return ec.marshalOBodyStructureType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureType(ctx, field.Selections, res) +} + +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) { + 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) + 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 nil, fmt.Errorf("no field named %q was found under type BodyStructureType", 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) + 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.EffectiveDateTime, 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_effectiveDateTime(_ 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_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 + } + 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.ValueRatio, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Ratio) + fc.Result = res + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) +} + +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) { + 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 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) + 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.Interpretation, 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_interpretation(_ 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 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueTime, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.DataAbsentReason, 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_dataAbsentReason(_ 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 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) + 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_ObservationType_resourceType(_ 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_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 + } + 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.ObservationNoteUnion) + fc.Result = res + return ec.marshalOObservationNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationNoteUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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.BasedOn, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ObservationBasedOnUnion) + fc.Result = res + return ec.marshalOObservationBasedOnUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationBasedOnUnion(ctx, field.Selections, res) +} + +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 ObservationBasedOnUnion 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_basedOn_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) + 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 { + return graphql.Null + } + res := resTmp.(model.ResourceUnion) + fc.Result = res + return ec.marshalOResourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, field.Selections, res) +} + +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 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_ObservationType_focus_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ObservationType_valueCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_valueCodeableConcept(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.ValueCodeableConcept, 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_valueCodeableConcept(_ 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 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) + 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.HasMember, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ObservationHasMemberUnion) + fc.Result = res + return ec.marshalOObservationHasMemberUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationHasMemberUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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.ValueInteger, 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_valueInteger(_ 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) + 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_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 +} + +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 + } + 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_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) { + 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) _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 + } + 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_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) { + 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) _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 + } + 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.Subject, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(model.ObservationSubjectUnion) + fc.Result = res + return ec.marshalOObservationSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationSubjectUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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_ObservationType_extension(_ 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 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) + 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.TriggeredBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ObservationTriggeredBy) + fc.Result = res + return ec.marshalOObservationTriggeredBy2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationTriggeredBy(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ObservationType_triggeredBy(_ 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 "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) + case "extension": + return ec.fieldContext_ObservationTriggeredBy_extension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ObservationTriggeredBy", 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) + 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.Specimen, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ObservationSpecimenUnion) + fc.Result = res + return ec.marshalOObservationSpecimenUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationSpecimenUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ObservationType_specimen(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 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_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 + } + 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.PartOf, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ObservationPartOfUnion) + fc.Result = res + return ec.marshalOObservationPartOfUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationPartOfUnion(ctx, field.Selections, res) +} + +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 ObservationPartOfUnion 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_partOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ObservationType_component(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_component(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.Component, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ObservationComponent) + fc.Result = res + return ec.marshalOObservationComponent2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationComponent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ObservationType_component(_ 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 "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 "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 "valueBoolean": + return ec.fieldContext_ObservationComponent_valueBoolean(ctx, field) + case "valueDateTime": + return ec.fieldContext_ObservationComponent_valueDateTime(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 "valueRatio": + return ec.fieldContext_ObservationComponent_valueRatio(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ObservationComponent", field.Name) + }, + } + 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 "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 fc, nil +} + +func (ec *executionContext) _ObservationType_valueRange(ctx context.Context, field graphql.CollectedField, obj *model.ObservationType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ObservationType_valueRange(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.ValueRange, 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_ObservationType_valueRange(_ 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_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 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) + 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_ObservationType_status(_ 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) _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 + } + 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_OrganizationQualification_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 "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) _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 + } + 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_OrganizationQualification_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + 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) + 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_OrganizationQualification_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationQualification", + 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) _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 + } + 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.Issuer, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.OrganizationType) + fc.Result = res + return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationQualification_issuer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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_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) + }, + } + 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) + 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_OrganizationQualification_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 "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) _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 + } + 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_OrganizationQualification_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationQualification", + 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) _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 + } + 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_OrganizationQualification_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + 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) + 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_OrganizationQualification_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationQualification", + 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) _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 + } + 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.(*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 + } + }() + 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) + fc.Result = res + return ec.marshalOExtendedContactDetail2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationType_contact(_ 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 "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 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 + } + }() + 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 { + 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, 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) + 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_OrganizationType_extension(_ 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 "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) _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 + } + 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_OrganizationType_text(_ 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 "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 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) + 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_OrganizationType_language(_ 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_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 + } + 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_OrganizationType_resourceType(_ 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_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 + } + 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.PartOf, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.OrganizationType) + fc.Result = res + return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationType_partOf(ctx 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 "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) + }, + } + 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) + 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.Alias, 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_alias(_ 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_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 + } + 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_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 ResourceUnion 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) + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +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) { + 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") + }, + } + 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) + 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.Qualification, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.OrganizationQualification) + fc.Result = res + return ec.marshalOOrganizationQualification2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationQualification(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationType_qualification(_ 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 "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) _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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_OrganizationType_modifierExtension(_ 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 "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) _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 + } + 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_OrganizationType_identifier(_ 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 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) + 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.Active, 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_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 String does not have child fields") + }, + } + 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) + 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.Profile, 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_ParameterDefinition_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ParameterDefinition", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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.Min, 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_ParameterDefinition_min(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ParameterDefinition", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ParameterDefinition_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ParameterDefinition", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ParameterDefinition_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ParameterDefinition", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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.Documentation, 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_ParameterDefinition_documentation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ParameterDefinition", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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_ParameterDefinition_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 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) + 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_ParameterDefinition_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ParameterDefinition", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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.Max, 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_ParameterDefinition_max(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ParameterDefinition", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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_ParameterDefinition_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ParameterDefinition", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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.Use, 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_ParameterDefinition_use(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ParameterDefinition", + Field: field, + IsMethod: false, + IsResolver: false, + 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_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 + } + 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_PatientCommunication_resourceType(_ 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) { + 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 "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) _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 + } + 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_PatientCommunication_id(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_PatientCommunication_language(_ 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_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) _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 + } + 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_PatientCommunication_modifierExtension(_ 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 "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) _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 + } + 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_PatientCommunication_preferred(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.CodeableConcept) + fc.Result = res + return ec.marshalOCodeableConcept2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableConcept(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PatientContact_relationship(_ 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 "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) _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 + } + 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_PatientContact_telecom(_ 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_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 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) + 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_PatientContact_extension(_ 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 "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) _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 + } + 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_PatientContact_name(_ 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 "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 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) + 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.Address, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Address) + fc.Result = res + return ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PatientContact_address(_ 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 "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 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) + 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.Gender, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_PatientContact_id(_ 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") + }, + } + 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) + 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_PatientContact_modifierExtension(_ 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 "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) _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 + } + 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.Organization, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.OrganizationType) + fc.Result = res + return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PatientContact_organization(ctx 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 "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) + }, + } + 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) + 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_PatientContact_resourceType(_ 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") + }, + } + 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) + 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_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) { + 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) _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 + } + 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_PatientLink_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 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) + 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.Other, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.PatientLinkOtherUnion) + fc.Result = res + return ec.marshalOPatientLinkOtherUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientLinkOtherUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PatientLink_other(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 PatientLinkOtherUnion 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_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) + 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_PatientLink_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 String does not have child fields") + }, + } + 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) + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PatientLink_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 String does not have child fields") + }, + } + 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) + 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_PatientLink_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 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) + 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_PatientLink_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 String does not have child fields") + }, + } + 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) + 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_PatientType_modifierExtension(_ 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 "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) _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 + } + 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.Gender, 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_PatientType_gender(_ 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) _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 + } + 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_PatientType_extension(_ 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 "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) _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 + } + 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) + 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_PatientType_deceasedBoolean(_ 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) _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 + } + 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.Address, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Address) + fc.Result = res + return ec.marshalOAddress2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PatientType_address(_ 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_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 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) + 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.Link, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.PatientLinkUnion) + fc.Result = res + return ec.marshalOPatientLinkUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientLinkUnion(ctx, field.Selections, res) +} + +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 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_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 + } + 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_PatientType_identifier(_ 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 "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) _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 + } + 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.GeneralPractitioner, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.PatientGeneralPractitionerUnion) + fc.Result = res + return ec.marshalOPatientGeneralPractitionerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientGeneralPractitionerUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +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) { + 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) _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 + } + 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.MultipleBirthInteger, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.MultipleBirthBoolean, 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_PatientType_multipleBirthBoolean(_ 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) _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 + } + 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_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) { + 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 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) + 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.ManagingOrganization, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.OrganizationType) + fc.Result = res + return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) +} + +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) { + 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) + }, + } + 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) + 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.Active, 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_PatientType_active(_ 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) _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 + } + 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.BirthDate, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.DeceasedDateTime, 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_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) { + return nil, errors.New("field of type String 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) + 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_PatientType_id(_ 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) _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 + } + 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_PatientType_name(_ 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 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) + 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.Photo, nil + }) + if err != nil { + ec.Error(ctx, 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_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) { + 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 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) + 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_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 ResourceUnion 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) + 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.Contact, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.PatientContact) + fc.Result = res + return ec.marshalOPatientContact2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientContact(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PatientType_contact(_ 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 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) + 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.MaritalStatus, 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_PatientType_maritalStatus(_ 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 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) + 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.Communication, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.PatientCommunication) + fc.Result = res + return ec.marshalOPatientCommunication2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientCommunication(ctx, field.Selections, res) +} + +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) { + 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 fc, nil +} + +func (ec *executionContext) _PatientType_telecom(ctx context.Context, field graphql.CollectedField, obj *model.PatientType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PatientType_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_PatientType_telecom(_ 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 "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 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_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 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 "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) _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 + } + 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_Period_id(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_Period_resourceType(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Start, 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_Period_start(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.End, 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_Period_end(_ 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) { + 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") + }, + } + 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) + 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 + } + 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_PractitionerCommunication_extension(_ 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 "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) _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 "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) _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 "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) _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 + } + 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.Issuer, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.OrganizationType) + fc.Result = res + return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PractitionerQualification_issuer(ctx 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 "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) + }, + } + 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) + 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_PractitionerQualification_modifierExtension(_ 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 "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) _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 + } + 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_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 "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) _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) + 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_PractitionerQualification_resourceType(_ 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") + }, + } + 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) + 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_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) { + 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) _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 + } + 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_PractitionerQualification_extension(_ 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 "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) _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 + } + 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_PractitionerQualification_id(_ 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") + }, + } + 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) + 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_PractitionerQualification_identifier(_ 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 "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) _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 + } + 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.Availability, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Availability) + fc.Result = res + return ec.marshalOAvailability2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PractitionerRoleType_availability(_ 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 "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 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) + 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_PractitionerRoleType_identifier(_ 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 "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) _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 + } + 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.Practitioner, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.PractitionerType) + fc.Result = res + return ec.marshalOPractitionerType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PractitionerRoleType_practitioner(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) { + 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) + 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 "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) + } + 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) _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 + } + 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_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 ResourceUnion 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 +} + +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 { + 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_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 "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) _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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Specialty, 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_PractitionerRoleType_specialty(_ 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 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_PractitionerRoleType_resourceType(_ 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 +} + +func (ec *executionContext) _PractitionerRoleType_extension(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_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_PractitionerRoleType_extension(_ 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 "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) _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 + } + 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.Organization, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.OrganizationType) + fc.Result = res + return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) +} + +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) { + 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) + }, + } + 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_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_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_PractitionerRoleType_modifierExtension(_ 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 "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) _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 + } + 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.Communication, 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_PractitionerRoleType_communication(_ 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 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) + 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.Active, 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_active(_ 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 +} + +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 + } + 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.Characteristic, 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_PractitionerRoleType_characteristic(_ 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 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) + 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.Contact, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ExtendedContactDetail) + fc.Result = res + return ec.marshalOExtendedContactDetail2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PractitionerRoleType_contact(_ 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 fc, nil +} + +func (ec *executionContext) _PractitionerRoleType_meta(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_meta(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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PractitionerRoleType_meta(_ 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 "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) _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 + } + 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_PractitionerRoleType_period(_ 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 "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) _PractitionerRoleType_text(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerRoleType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerRoleType_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_PractitionerRoleType_text(_ 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 "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 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) + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PractitionerType_meta(_ 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 "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) _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) + 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_PractitionerType_deceasedBoolean(_ 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_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 + } + 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.BirthDate, 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_PractitionerType_birthDate(_ 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_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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_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) { + 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) _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 + } + 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.Gender, 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_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_qualification(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_qualification(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.Qualification, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.PractitionerQualification) + fc.Result = res + return ec.marshalOPractitionerQualification2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerQualification(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PractitionerType_qualification(_ 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 "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": + return ec.fieldContext_PractitionerQualification_extension(ctx, field) + case "id": + return ec.fieldContext_PractitionerQualification_id(ctx, field) + case "identifier": + return ec.fieldContext_PractitionerQualification_identifier(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PractitionerQualification", field.Name) + }, + } + 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) + 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_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) { + return nil, errors.New("field of type ResourceUnion does not have child fields") + }, + } + 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) + 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_PractitionerType_telecom(_ 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_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 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) + 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_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 "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) _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 + } + 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.Address, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.Address) + fc.Result = res + return ec.marshalOAddress2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) +} + +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) { + 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 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) + 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_PractitionerType_modifierExtension(_ 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 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) + 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_PractitionerType_resourceType(_ 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_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 + } + 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_PractitionerType_implicitRules(_ 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_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 + } + 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_PractitionerType_language(_ 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, + 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 fc, nil +} + +func (ec *executionContext) _PractitionerType_photo(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_photo(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.Photo, nil + }) + if err != nil { + ec.Error(ctx, 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_PractitionerType_photo(_ 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 "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 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) + 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_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) { + 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 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) + 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.Active, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PractitionerType_communication(ctx context.Context, field graphql.CollectedField, obj *model.PractitionerType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PractitionerType_communication(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.Communication, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.PractitionerCommunication) + fc.Result = res + return ec.marshalOPractitionerCommunication2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerCommunication(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PractitionerType_communication(_ 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 "preferred": + return ec.fieldContext_PractitionerCommunication_preferred(ctx, field) + case "resourceType": + return ec.fieldContext_PractitionerCommunication_resourceType(ctx, field) + case "extension": + return ec.fieldContext_PractitionerCommunication_extension(ctx, field) + case "id": + return ec.fieldContext_PractitionerCommunication_id(ctx, field) + case "language": + return ec.fieldContext_PractitionerCommunication_language(ctx, field) + case "modifierExtension": + return ec.fieldContext_PractitionerCommunication_modifierExtension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PractitionerCommunication", field.Name) + }, + } + 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) + 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.DeceasedDateTime, 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_PractitionerType_deceasedDateTime(_ 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) _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 "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) _ProcedureFocalDevice_extension(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureFocalDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureFocalDevice_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_ProcedureFocalDevice_extension(_ 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 "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) _ProcedureFocalDevice_id(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureFocalDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureFocalDevice_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_ProcedureFocalDevice_id(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ProcedureFocalDevice_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureFocalDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureFocalDevice_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_ProcedureFocalDevice_modifierExtension(_ 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 "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) _ProcedureFocalDevice_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureFocalDevice) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureFocalDevice_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_ProcedureFocalDevice_resourceType(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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 { + 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_ProcedurePerformer_function(_ 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 "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) _ProcedurePerformer_id(ctx context.Context, field graphql.CollectedField, obj *model.ProcedurePerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedurePerformer_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_ProcedurePerformer_id(_ 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_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ProcedurePerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedurePerformer_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_ProcedurePerformer_modifierExtension(_ 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 "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) _ProcedurePerformer_onBehalfOf(ctx context.Context, field graphql.CollectedField, obj *model.ProcedurePerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedurePerformer_onBehalfOf(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.OnBehalfOf, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.OrganizationType) + fc.Result = res + return ec.marshalOOrganizationType2ᚕᚖ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) { + 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 "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) + }, + } + 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_onBehalfOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ProcedurePerformer_period(ctx context.Context, field graphql.CollectedField, obj *model.ProcedurePerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedurePerformer_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_ProcedurePerformer_period(_ 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 "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) _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 { + return graphql.Null + } + res := resTmp.([]model.ProcedurePerformerActorUnion) + fc.Result = res + return ec.marshalOProcedurePerformerActorUnion2ᚕgithubᚗ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 "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) _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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Recorder, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ProcedureRecorderUnion) + fc.Result = res + return ec.marshalOProcedureRecorderUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureRecorderUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProcedureType_recorder(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") + }, + } + 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) _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 + } + 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.OccurrenceTiming, 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_ProcedureType_occurrenceTiming(_ 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 "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 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) + 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.OccurrenceString, 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_occurrenceString(_ 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_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 + } + 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.Outcome, 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_ProcedureType_outcome(_ 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, 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) + 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.Reason, 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_ProcedureType_reason(_ 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_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, 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) + 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.ReportedReference, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ProcedureReportedReferenceUnion) + fc.Result = res + return ec.marshalOProcedureReportedReferenceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureReportedReferenceUnion(ctx, field.Selections, res) +} + +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 ProcedureReportedReferenceUnion 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) + 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.OccurrencePeriod, 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_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) { + 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) _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 + } + 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.ReportedBoolean, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_ProcedureType_extension(_ 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 "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) _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 + } + 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.Report, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ProcedureReportUnion) + fc.Result = res + return ec.marshalOProcedureReportUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureReportUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProcedureType_report(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 ProcedureReportUnion 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_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) + 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_ProcedureType_code(_ 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, 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) + 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.Category, 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_ProcedureType_category(_ 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, 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) + 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.Used, 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_ProcedureType_used(_ 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_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, 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) + 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.Recorded, 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_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 String does not have child fields") + }, + } + 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) + 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.PartOf, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ProcedurePartOfUnion) + fc.Result = res + return ec.marshalOProcedurePartOfUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePartOfUnion(ctx, field.Selections, res) +} + +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) { + return nil, errors.New("field of type ProcedurePartOfUnion 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_partOf_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) + 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.StatusReason, 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_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) { + 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) _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 + } + 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_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) { + 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) _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 + } + 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.OccurrenceRange, 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_ProcedureType_occurrenceRange(_ 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 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 + } + }() + 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 { + 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, 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) + 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.OccurrenceAge, 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_ProcedureType_occurrenceAge(_ 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 "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 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) + 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.BodySite, 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_ProcedureType_bodySite(_ 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, 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) + 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.FocalDevice, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ProcedureFocalDevice) + fc.Result = res + return ec.marshalOProcedureFocalDevice2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureFocalDevice(ctx, field.Selections, res) +} + +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) { + 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) + 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) + 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 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) + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +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) { + 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) _ProcedureType_supportingInfo(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_supportingInfo(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.SupportingInfo, 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_ProcedureType_supportingInfo(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 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_ProcedureType_supportingInfo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ProcedureType_language(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_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_ProcedureType_language(_ 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_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 + } + 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.ProcedureNoteUnion) + fc.Result = res + return ec.marshalOProcedureNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureNoteUnion(ctx, field.Selections, res) +} + +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 ProcedureNoteUnion 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_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) + 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_ProcedureType_status(_ 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_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 + } + 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_ProcedureType_implicitRules(_ 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_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 + } + 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_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) { + return nil, errors.New("field of type ResourceUnion does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ProcedureType_performer(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureType_performer(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.Performer, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ProcedurePerformerUnion) + fc.Result = res + return ec.marshalOProcedurePerformerUnion2ᚕgithubᚗ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) { + 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 ProcedurePerformerUnion 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_performer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + 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) + 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.InstantiatesCanonical, 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_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 String does not have child fields") + }, + } + 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) + 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.Complication, 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_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) { + 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, 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) + 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_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 String does not have child fields") + }, + } + 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) + 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_ProcedureType_identifier(_ 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 "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) _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 + } + 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.InstantiatesURI, 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_instantiatesUri(_ 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_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 + } + 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.Subject, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ProcedureSubjectUnion) + fc.Result = res + return ec.marshalOProcedureSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureSubjectUnion(ctx, field.Selections, res) +} + +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 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_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 + } + 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 { + return graphql.Null + } + res := resTmp.([]model.ProcedureFocusUnion) + fc.Result = res + return ec.marshalOProcedureFocusUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureFocusUnion(ctx, field.Selections, res) +} + +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 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) _Quantity_code(ctx context.Context, field graphql.CollectedField, obj *model.Quantity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Quantity_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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Quantity_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Quantity", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _Quantity_comparator(ctx context.Context, field graphql.CollectedField, obj *model.Quantity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Quantity_comparator(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.Comparator, 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_Quantity_comparator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Quantity", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _Quantity_extension(ctx context.Context, field graphql.CollectedField, obj *model.Quantity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Quantity_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_Quantity_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Quantity", + 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) _Quantity_id(ctx context.Context, field graphql.CollectedField, obj *model.Quantity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Quantity_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_Quantity_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Quantity", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _Quantity_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Quantity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Quantity_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_Quantity_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Quantity", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _Quantity_system(ctx context.Context, field graphql.CollectedField, obj *model.Quantity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Quantity_system(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.System, 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_Quantity_system(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Quantity", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _Quantity_unit(ctx context.Context, field graphql.CollectedField, obj *model.Quantity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Quantity_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_Quantity_unit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Quantity", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _Quantity_value(ctx context.Context, field graphql.CollectedField, obj *model.Quantity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Quantity_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_Quantity_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Quantity", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _Query_organization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_organization(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 ec.resolvers.Query().Organization(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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) + fc.Result = res + return ec.marshalNOrganizationType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_organization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "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) + }, + } + 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_Query_organization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_group(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_group(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 ec.resolvers.Query().Group(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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.GroupType) + fc.Result = res + return ec.marshalNGroupType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_group(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "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) + }, + } + 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_Query_group_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_practitioner(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_practitioner(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 ec.resolvers.Query().Practitioner(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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) + fc.Result = res + return ec.marshalNPractitionerType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_practitioner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "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 "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) + } + 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_Query_practitioner_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_practitionerRole(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_practitionerRole(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 ec.resolvers.Query().PractitionerRole(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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.PractitionerRoleType) + fc.Result = res + return ec.marshalNPractitionerRoleType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerRoleTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_practitionerRole(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "contained": + return ec.fieldContext_PractitionerRoleType_contained(ctx, field) + case "language": + return ec.fieldContext_PractitionerRoleType_language(ctx, field) + case "code": + return ec.fieldContext_PractitionerRoleType_code(ctx, field) + case "implicitRules": + return ec.fieldContext_PractitionerRoleType_implicitRules(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 "meta": + return ec.fieldContext_PractitionerRoleType_meta(ctx, field) + case "period": + return ec.fieldContext_PractitionerRoleType_period(ctx, field) + case "text": + return ec.fieldContext_PractitionerRoleType_text(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PractitionerRoleType", 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_Query_practitionerRole_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_researchStudy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_researchStudy(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 ec.resolvers.Query().ResearchStudy(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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.ResearchStudyType) + fc.Result = res + return ec.marshalNResearchStudyType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_researchStudy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + 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) + }, + } + 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_Query_researchStudy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_patient(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_patient(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 ec.resolvers.Query().Patient(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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.PatientType) + fc.Result = res + return ec.marshalNPatientType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_patient(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "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 "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 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_Query_patient_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_researchSubject(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_researchSubject(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 ec.resolvers.Query().ResearchSubject(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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.ResearchSubjectType) + fc.Result = res + return ec.marshalNResearchSubjectType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_researchSubject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "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 "modifierExtension": + return ec.fieldContext_ResearchSubjectType_modifierExtension(ctx, field) + case "study": + return ec.fieldContext_ResearchSubjectType_study(ctx, field) + case "extension": + return ec.fieldContext_ResearchSubjectType_extension(ctx, field) + case "period": + return ec.fieldContext_ResearchSubjectType_period(ctx, field) + case "assignedComparisonGroup": + return ec.fieldContext_ResearchSubjectType_assignedComparisonGroup(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ResearchSubjectType", 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_Query_researchSubject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_substance(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_substance(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 ec.resolvers.Query().Substance(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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_Query_substance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "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) + }, + } + 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_Query_substance_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_substanceDefinition(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_substanceDefinition(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 ec.resolvers.Query().SubstanceDefinition(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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.SubstanceDefinitionType) + fc.Result = res + return ec.marshalNSubstanceDefinitionType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_substanceDefinition(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "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 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_Query_substanceDefinition_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_specimen(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_specimen(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 ec.resolvers.Query().Specimen(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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.SpecimenType) + fc.Result = res + return ec.marshalNSpecimenType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_specimen(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "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_Query_specimen_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_observation(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_observation(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 ec.resolvers.Query().Observation(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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.ObservationType) + fc.Result = res + return ec.marshalNObservationType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_observation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "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) + }, + } + 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_Query_observation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_diagnosticReport(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_diagnosticReport(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 ec.resolvers.Query().DiagnosticReport(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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.DiagnosticReportType) + fc.Result = res + return ec.marshalNDiagnosticReportType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDiagnosticReportTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_diagnosticReport(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "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 "id": + return ec.fieldContext_DiagnosticReportType_id(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 "category": + return ec.fieldContext_DiagnosticReportType_category(ctx, field) + case "issued": + return ec.fieldContext_DiagnosticReportType_issued(ctx, field) + case "resultsInterpreter": + return ec.fieldContext_DiagnosticReportType_resultsInterpreter(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DiagnosticReportType", 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_Query_diagnosticReport_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_condition(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_condition(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 ec.resolvers.Query().Condition(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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.ConditionType) + fc.Result = res + return ec.marshalNConditionType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐConditionTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_condition(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "verificationStatus": + return ec.fieldContext_ConditionType_verificationStatus(ctx, field) + case "code": + return ec.fieldContext_ConditionType_code(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 "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 "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 "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 "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 "note": + return ec.fieldContext_ConditionType_note(ctx, field) + case "identifier": + return ec.fieldContext_ConditionType_identifier(ctx, field) + case "onsetPeriod": + return ec.fieldContext_ConditionType_onsetPeriod(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConditionType", 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_Query_condition_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_medication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_medication(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 ec.resolvers.Query().Medication(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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.MedicationType) + fc.Result = res + return ec.marshalNMedicationType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_medication(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "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 "ingredient": + return ec.fieldContext_MedicationType_ingredient(ctx, field) + case "id": + return ec.fieldContext_MedicationType_id(ctx, field) + case "marketingAuthorizationHolder": + return ec.fieldContext_MedicationType_marketingAuthorizationHolder(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MedicationType", 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_Query_medication_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_medicationAdministration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_medicationAdministration(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 ec.resolvers.Query().MedicationAdministration(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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.MedicationAdministrationType) + fc.Result = res + return ec.marshalNMedicationAdministrationType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_medicationAdministration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "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 "resourceType": + return ec.fieldContext_MedicationAdministrationType_resourceType(ctx, field) + case "statusReason": + return ec.fieldContext_MedicationAdministrationType_statusReason(ctx, field) + case "implicitRules": + return ec.fieldContext_MedicationAdministrationType_implicitRules(ctx, field) + case "partOf": + return ec.fieldContext_MedicationAdministrationType_partOf(ctx, field) + case "reason": + return ec.fieldContext_MedicationAdministrationType_reason(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) + } + return nil, fmt.Errorf("no field named %q was found under type MedicationAdministrationType", 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_Query_medicationAdministration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_medicationStatement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_medicationStatement(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 ec.resolvers.Query().MedicationStatement(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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.MedicationStatementType) + fc.Result = res + return ec.marshalNMedicationStatementType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_medicationStatement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "identifier": + return ec.fieldContext_MedicationStatementType_identifier(ctx, field) + case "note": + return ec.fieldContext_MedicationStatementType_note(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 "subject": + return ec.fieldContext_MedicationStatementType_subject(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 "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) + } + return nil, fmt.Errorf("no field named %q was found under type MedicationStatementType", 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_Query_medicationStatement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_medicationRequest(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_medicationRequest(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 ec.resolvers.Query().MedicationRequest(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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.MedicationRequestType) + fc.Result = res + return ec.marshalNMedicationRequestType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_medicationRequest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + 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 "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 nil, fmt.Errorf("no field named %q was found under type MedicationRequestType", 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_Query_medicationRequest_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_procedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_procedure(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 ec.resolvers.Query().Procedure(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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.ProcedureType) + fc.Result = res + return ec.marshalNProcedureType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_procedure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "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 "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 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_Query_procedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_documentReference(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_documentReference(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 ec.resolvers.Query().DocumentReference(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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_Query_documentReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "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_Query_documentReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_task(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_task(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 ec.resolvers.Query().Task(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.TaskType) + fc.Result = res + return ec.marshalOTaskType2ᚕᚖ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) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "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) + }, + } + 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_Query_task_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_imagingStudy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_imagingStudy(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 ec.resolvers.Query().ImagingStudy(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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.ImagingStudyType) + fc.Result = res + return ec.marshalNImagingStudyType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudyTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_imagingStudy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "identifier": + return ec.fieldContext_ImagingStudyType_identifier(ctx, field) + case "implicitRules": + return ec.fieldContext_ImagingStudyType_implicitRules(ctx, field) + case "referrer": + return ec.fieldContext_ImagingStudyType_referrer(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 "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 "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) + } + return nil, fmt.Errorf("no field named %q was found under type ImagingStudyType", 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_Query_imagingStudy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_familyMemberHistory(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_familyMemberHistory(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 ec.resolvers.Query().FamilyMemberHistory(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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.FamilyMemberHistoryType) + fc.Result = res + return ec.marshalNFamilyMemberHistoryType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐFamilyMemberHistoryTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_familyMemberHistory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + 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 "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 "sex": + return ec.fieldContext_FamilyMemberHistoryType_sex(ctx, field) + case "note": + return ec.fieldContext_FamilyMemberHistoryType_note(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 "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 "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 "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 "participant": + return ec.fieldContext_FamilyMemberHistoryType_participant(ctx, field) + case "bornPeriod": + return ec.fieldContext_FamilyMemberHistoryType_bornPeriod(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FamilyMemberHistoryType", 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_Query_familyMemberHistory_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_bodyStructure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_bodyStructure(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 ec.resolvers.Query().BodyStructure(rctx, fc.Args["offset"].(*int), fc.Args["first"].(*int), fc.Args["filter"].(*string), fc.Args["sort"].(*string), fc.Args["accessibility"].(*model.Accessibility), fc.Args["format"].(*model.Format)) + }) + 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.BodyStructureType) + fc.Result = res + return ec.marshalNBodyStructureType2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐBodyStructureTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_bodyStructure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + 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) + 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 nil, fmt.Errorf("no field named %q was found under type BodyStructureType", 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_Query_bodyStructure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query___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 ec.introspectType(fc.Args["name"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", 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_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query___schema(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 ec.introspectSchema() + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*introspection.Schema) + fc.Result = res + return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "description": + return ec.fieldContext___Schema_description(ctx, field) + case "types": + return ec.fieldContext___Schema_types(ctx, field) + case "queryType": + return ec.fieldContext___Schema_queryType(ctx, field) + case "mutationType": + return ec.fieldContext___Schema_mutationType(ctx, field) + case "subscriptionType": + return ec.fieldContext___Schema_subscriptionType(ctx, field) + case "directives": + return ec.fieldContext___Schema_directives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Schema", 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 { + 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_Range_resourceType(_ 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_extension(ctx context.Context, field graphql.CollectedField, obj *model.Range) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Range_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_Range_extension(_ 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 "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) _Range_high(ctx context.Context, field graphql.CollectedField, obj *model.Range) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Range_high(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.High, 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_high(_ 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_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) _Ratio_extension(ctx context.Context, field graphql.CollectedField, obj *model.Ratio) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Ratio_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_Ratio_extension(_ 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 "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) _Ratio_id(ctx context.Context, field graphql.CollectedField, obj *model.Ratio) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Ratio_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_Ratio_id(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Ratio_numerator(ctx context.Context, field graphql.CollectedField, obj *model.Ratio) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Ratio_numerator(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.Numerator, 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_numerator(_ 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) _Ratio_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.Ratio) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Ratio_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_Ratio_resourceType(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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 { + 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_RatioRange_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RatioRange", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _RatioRange_denominator(ctx context.Context, field graphql.CollectedField, obj *model.RatioRange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RatioRange_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_RatioRange_denominator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RatioRange", + 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_extension(ctx context.Context, field graphql.CollectedField, obj *model.RatioRange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RatioRange_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_RatioRange_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RatioRange", + 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) _RatioRange_highNumerator(ctx context.Context, field graphql.CollectedField, obj *model.RatioRange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RatioRange_highNumerator(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.HighNumerator, 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_RatioRange_highNumerator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RatioRange", + 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_id(ctx context.Context, field graphql.CollectedField, obj *model.RatioRange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RatioRange_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_RatioRange_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RatioRange", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _RatioRange_lowNumerator(ctx context.Context, field graphql.CollectedField, obj *model.RatioRange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RatioRange_lowNumerator(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.LowNumerator, 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_RatioRange_lowNumerator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RatioRange", + 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) _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 + } + 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_Reference_resourceType(_ 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_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 + } + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +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, + 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) _Reference_id(ctx context.Context, field graphql.CollectedField, obj *model.Reference) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Reference_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_Reference_id(_ 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_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 + } + 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_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) { + 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) _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 + } + 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.Reference, 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_reference(_ 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) _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 + } + 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_RelatedArtifact_display(_ 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 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) + 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.PublicationDate, 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_RelatedArtifact_publicationDate(_ 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 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) + 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.PublicationStatus, 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_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 String does not have child fields") + }, + } + 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) + 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.Classifier, 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_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) { + 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) _RelatedArtifact_document(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RelatedArtifact_document(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.Document, nil + }) + if err != nil { + ec.Error(ctx, 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_RelatedArtifact_document(_ 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 "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 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) + 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.ResourceReference, 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_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 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_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 + } + 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_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) { + 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) _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 + } + 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_RelatedArtifact_id(_ 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 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) + 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.Label, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _RelatedArtifact_citation(ctx context.Context, field graphql.CollectedField, obj *model.RelatedArtifact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RelatedArtifact_citation(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.Citation, 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_RelatedArtifact_citation(_ 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 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) + 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.Resource, 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_RelatedArtifact_resource(_ 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 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) + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_RelatedArtifact_type(_ 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 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ResearchStudyAssociatedParty_party(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyAssociatedParty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyAssociatedParty_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 { + return graphql.Null + } + res := resTmp.([]model.ResearchStudyAssociatedPartyPartyUnion) + fc.Result = res + return ec.marshalOResearchStudyAssociatedPartyPartyUnion2ᚕgithubᚗ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) { + fc = &graphql.FieldContext{ + 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 ResearchStudyAssociatedPartyPartyUnion 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_ResearchStudyAssociatedParty_party_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + 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) + 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_ResearchStudyAssociatedParty_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ResearchStudyAssociatedParty", + 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) _ResearchStudyAssociatedParty_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyAssociatedParty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyAssociatedParty_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_ResearchStudyAssociatedParty_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ResearchStudyAssociatedParty", + 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) _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 + } + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchStudyAssociatedParty_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + 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) + 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.Role, 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_ResearchStudyAssociatedParty_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ResearchStudyAssociatedParty", + 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) _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 + } + 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_ResearchStudyAssociatedParty_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + 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) + 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_ResearchStudyAssociatedParty_period(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ResearchStudyAssociatedParty", + 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) _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 + } + 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_ResearchStudyAssociatedParty_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + 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) + 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.Classifier, 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_ResearchStudyAssociatedParty_classifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ResearchStudyAssociatedParty", + 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) _ResearchStudyComparisonGroup_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyComparisonGroup) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyComparisonGroup_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_ResearchStudyComparisonGroup_modifierExtension(_ 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 "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) _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 + } + 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.ObservedGroup, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.GroupType) + fc.Result = res + return ec.marshalOGroupType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupType(ctx, field.Selections, res) +} + +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) { + 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) + }, + } + 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_name(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyComparisonGroup) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyComparisonGroup_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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchStudyComparisonGroup_name(_ 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 +} + +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 + } + 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_ResearchStudyComparisonGroup_resourceType(_ 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 +} + +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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ResearchStudyComparisonGroup_description(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyComparisonGroup) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyComparisonGroup_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_ResearchStudyComparisonGroup_description(_ 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 +} + +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 +} + +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 + } + 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_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) { + 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) _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 + } + 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_ResearchStudyComparisonGroup_extension(_ 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 "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) _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 + } + 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_ResearchStudyLabel_value(_ 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_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 + } + 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_ResearchStudyLabel_extension(_ 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 "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) _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 "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) _ResearchStudyLabel_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyLabel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyLabel_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_ResearchStudyLabel_resourceType(_ 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_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 { + 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_ResearchStudyObjective_extension(_ 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) { + 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) _ResearchStudyObjective_id(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyObjective_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_ResearchStudyObjective_id(_ 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_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyObjective_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_ResearchStudyObjective_modifierExtension(_ 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) { + 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) _ResearchStudyObjective_name(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyObjective_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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchStudyObjective_name(_ 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_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyObjective_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_ResearchStudyObjective_resourceType(_ 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_type(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyObjective_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_ResearchStudyObjective_type(_ 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) { + 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) _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 + } + 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_ResearchStudyOutcomeMeasure_id(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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 { + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchStudyOutcomeMeasure_name(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ResearchStudyOutcomeMeasure_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyOutcomeMeasure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyOutcomeMeasure_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_ResearchStudyOutcomeMeasure_resourceType(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ResearchStudyOutcomeMeasure_type(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyOutcomeMeasure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyOutcomeMeasure_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_ResearchStudyOutcomeMeasure_type(_ 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 "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) _ResearchStudyOutcomeMeasure_description(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyOutcomeMeasure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyOutcomeMeasure_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_ResearchStudyOutcomeMeasure_description(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ResearchStudyOutcomeMeasure_extension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyOutcomeMeasure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyOutcomeMeasure_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_ResearchStudyOutcomeMeasure_extension(_ 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) _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 + } + 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_ResearchStudyProgressStatus_resourceType(_ 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 +} + +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 + } + 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.State, 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_ResearchStudyProgressStatus_state(_ 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) { + 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) _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 fc, nil +} + +func (ec *executionContext) _ResearchStudyProgressStatus_extension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyProgressStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyProgressStatus_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_ResearchStudyProgressStatus_extension(_ 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) { + 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) _ResearchStudyProgressStatus_id(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyProgressStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyProgressStatus_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_ResearchStudyProgressStatus_id(_ 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 +} + +func (ec *executionContext) _ResearchStudyProgressStatus_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyProgressStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyProgressStatus_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_ResearchStudyProgressStatus_modifierExtension(_ 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) { + 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) _ResearchStudyProgressStatus_period(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyProgressStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyProgressStatus_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_ResearchStudyProgressStatus_period(_ 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) { + 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) _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 + } + 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.TargetNumber, 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_ResearchStudyRecruitment_targetNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ResearchStudyRecruitment", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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.ActualGroup, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.GroupType) + fc.Result = res + return ec.marshalOGroupType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐGroupType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchStudyRecruitment_actualGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ResearchStudyRecruitment", + 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) + }, + } + 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_ResearchStudyRecruitment_actualGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ResearchStudyRecruitment_actualNumber(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyRecruitment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyRecruitment_actualNumber(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.ActualNumber, 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_ResearchStudyRecruitment_actualNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ResearchStudyRecruitment", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _ResearchStudyRecruitment_eligibility(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyRecruitment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyRecruitment_eligibility(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.Eligibility, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ResearchStudyRecruitmentEligibilityUnion) + fc.Result = res + return ec.marshalOResearchStudyRecruitmentEligibilityUnion2ᚕgithubᚗ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) { + fc = &graphql.FieldContext{ + Object: "ResearchStudyRecruitment", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ResearchStudyRecruitmentEligibilityUnion 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_ResearchStudyRecruitment_eligibility_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ResearchStudyRecruitment_extension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyRecruitment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyRecruitment_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_ResearchStudyRecruitment_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ResearchStudyRecruitment", + 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) _ResearchStudyRecruitment_id(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyRecruitment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyRecruitment_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_ResearchStudyRecruitment_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ResearchStudyRecruitment", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _ResearchStudyRecruitment_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyRecruitment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyRecruitment_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_ResearchStudyRecruitment_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ResearchStudyRecruitment", + 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) _ResearchStudyRecruitment_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyRecruitment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyRecruitment_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_ResearchStudyRecruitment_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ResearchStudyRecruitment", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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) + 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.Title, 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_ResearchStudyType_title(_ 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 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) + 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.Condition, 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_condition(_ 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_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 + } + }() + 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 { + 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, 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) + 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.DescriptionSummary, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.PrimaryPurposeType, 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_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) { + 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_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 + } + 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.ComparisonGroup, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ResearchStudyComparisonGroup) + fc.Result = res + return ec.marshalOResearchStudyComparisonGroup2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyComparisonGroup(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchStudyType_comparisonGroup(_ 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 "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 "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) + case "type": + return ec.fieldContext_ResearchStudyComparisonGroup_type(ctx, field) + case "extension": + return ec.fieldContext_ResearchStudyComparisonGroup_extension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ResearchStudyComparisonGroup", 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) + 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.WhyStopped, 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_whyStopped(_ 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_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 + } + 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.Date, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Recruitment, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ResearchStudyRecruitmentUnion) + fc.Result = res + return ec.marshalOResearchStudyRecruitmentUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyRecruitmentUnion(ctx, field.Selections, res) +} + +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 ResearchStudyRecruitmentUnion 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_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) + 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.Classifier, 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_classifier(_ 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_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 { + 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.Phase, 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_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 "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_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 + } + 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_ResearchStudyType_language(_ 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 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) + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchStudyType_meta(_ 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 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) + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +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 String does not have child fields") + }, + } + 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) + 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_ResearchStudyType_text(_ 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 "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 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) + 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.Result, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ResearchStudyResultUnion) + fc.Result = res + return ec.marshalOResearchStudyResultUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyResultUnion(ctx, field.Selections, res) +} + +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 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_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 + } + 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.ProgressStatus, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ResearchStudyProgressStatus) + fc.Result = res + return ec.marshalOResearchStudyProgressStatus2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyProgressStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchStudyType_progressStatus(_ 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_ResearchStudyProgressStatus_resourceType(ctx, field) + case "state": + return ec.fieldContext_ResearchStudyProgressStatus_state(ctx, field) + case "actual": + return ec.fieldContext_ResearchStudyProgressStatus_actual(ctx, field) + case "extension": + return ec.fieldContext_ResearchStudyProgressStatus_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 nil, fmt.Errorf("no field named %q was found under type ResearchStudyProgressStatus", 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) + 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_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) { + 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) _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 + } + 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.AssociatedParty, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ResearchStudyAssociatedPartyUnion) + fc.Result = res + return ec.marshalOResearchStudyAssociatedPartyUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyAssociatedPartyUnion(ctx, field.Selections, res) +} + +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 ResearchStudyAssociatedPartyUnion 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_associatedParty_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) + 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_ResearchStudyType_description(_ 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 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) + 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.Site, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ResearchStudySiteUnion) + fc.Result = res + return ec.marshalOResearchStudySiteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudySiteUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchStudyType_site(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") + }, + } + 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) _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 + } + 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_ResearchStudyType_url(_ 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 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) + 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_ResearchStudyType_implicitRules(_ 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 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) + 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.Version, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.OutcomeMeasure, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ResearchStudyOutcomeMeasure) + fc.Result = res + return ec.marshalOResearchStudyOutcomeMeasure2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyOutcomeMeasure(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchStudyType_outcomeMeasure(_ 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 "id": + return ec.fieldContext_ResearchStudyOutcomeMeasure_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_ResearchStudyOutcomeMeasure_modifierExtension(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_ResearchStudyOutcomeMeasure_extension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ResearchStudyOutcomeMeasure", 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) + 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_ResearchStudyType_id(_ 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 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) + 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_ResearchStudyType_identifier(_ 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 "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) _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 + } + 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.Objective, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ResearchStudyObjective) + fc.Result = res + return ec.marshalOResearchStudyObjective2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyObjective(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchStudyType_objective(_ 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 "description": + return ec.fieldContext_ResearchStudyObjective_description(ctx, field) + case "extension": + return ec.fieldContext_ResearchStudyObjective_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 nil, fmt.Errorf("no field named %q was found under type ResearchStudyObjective", 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ResearchStudyType_keyword(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_keyword(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.Keyword, 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_keyword(_ 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_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 + } + 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.ResearchStudyNoteUnion) + fc.Result = res + return ec.marshalOResearchStudyNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyNoteUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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_ResearchStudyType_status(_ 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 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) + 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.Label, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ResearchStudyLabel) + fc.Result = res + return ec.marshalOResearchStudyLabel2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyLabel(ctx, field.Selections, res) +} + +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) { + 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 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) + 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.RelatedArtifact, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.RelatedArtifact) + fc.Result = res + return ec.marshalORelatedArtifact2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchStudyType_relatedArtifact(_ 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 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) + 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.StudyDesign, 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_studyDesign(_ 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_extension(ctx context.Context, field graphql.CollectedField, obj *model.ResearchStudyType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchStudyType_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_ResearchStudyType_extension(_ 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 "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) _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 + } + 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 { + 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_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) { + 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, 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) + 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.PartOf, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ResearchStudyType) + fc.Result = res + return ec.marshalOResearchStudyType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchStudyType_partOf(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 "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) + }, + } + 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) _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 + } + 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.EndDate, 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_ResearchSubjectProgress_endDate(_ 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) _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 + } + 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_ResearchSubjectProgress_modifierExtension(_ 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 "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) _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 + } + 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_ResearchSubjectProgress_type(_ 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 "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) _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 + } + 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_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) { + 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) _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 "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) _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 { + 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_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) _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 { + 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.Reason, 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_reason(_ 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 "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) _ResearchSubjectProgress_startDate(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectProgress) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectProgress_startDate(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.StartDate, 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_ResearchSubjectProgress_startDate(_ 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) _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 + } + 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.SubjectState, 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_subjectState(_ 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 "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) _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 + } + 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_ResearchSubjectProgress_id(_ 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_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 + } + 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.Subject, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.ResearchSubjectSubjectUnion) + fc.Result = res + return ec.marshalOResearchSubjectSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectSubjectUnion(ctx, field.Selections, res) +} + +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 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) _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 + } + 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_ResearchSubjectType_text(_ 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 "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 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) + 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_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 String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ResearchSubjectType_implicitRules(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectType_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_ResearchSubjectType_implicitRules(_ 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_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 + } + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +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) { + 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) _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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_ResearchSubjectType_id(_ 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_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 + } + 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_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 ResourceUnion 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) + 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_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) { + 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) _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 + } + 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.Progress, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ResearchSubjectProgress) + fc.Result = res + return ec.marshalOResearchSubjectProgress2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectProgress(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ResearchSubjectType_progress(_ 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 "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) + case "id": + return ec.fieldContext_ResearchSubjectProgress_id(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ResearchSubjectProgress", 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) + 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.ActualComparisonGroup, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_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) { + return nil, errors.New("field of type String 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) + 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_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) { + 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) _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 + } + 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.Study, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ResearchStudyType) + fc.Result = res + return ec.marshalOResearchStudyType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyType(ctx, field.Selections, res) +} + +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) { + 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) + }, + } + 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 +} + +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 + } + 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_ResearchSubjectType_extension(_ 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 "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) _ResearchSubjectType_period(ctx context.Context, field graphql.CollectedField, obj *model.ResearchSubjectType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ResearchSubjectType_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_ResearchSubjectType_period(_ 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 "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) _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 { + 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.AssignedComparisonGroup, 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_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) _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 + } + 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_SampledData_resourceType(_ 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_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 + } + 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.Origin, 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_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) { + 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) _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 + } + 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.CodeMap, 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_codeMap(_ 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_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 + } + 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.IntervalUnit, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.LowerLimit, 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_lowerLimit(_ 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_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 + } + 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.UpperLimit, 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_upperLimit(_ 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_extension(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SampledData_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_SampledData_extension(_ 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 "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) _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 + } + 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_SampledData_id(_ 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_dimensions(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SampledData_dimensions(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.Dimensions, 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_dimensions(_ 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_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 { + 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.Interval, 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_interval(_ 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_offsets(ctx context.Context, field graphql.CollectedField, obj *model.SampledData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SampledData_offsets(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.Offsets, 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_offsets(_ 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_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 + } + 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_SampledData_data(_ 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") + }, + } + 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) + 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_Signature_resourceType(_ 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") + }, + } + 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) + 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.SigFormat, 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_sigFormat(_ 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") + }, + } + 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) + 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_Signature_id(_ 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") + }, + } + return fc, nil +} + +func (ec *executionContext) _Signature_when(ctx context.Context, field graphql.CollectedField, obj *model.Signature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Signature_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_Signature_when(_ 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") + }, + } + return fc, nil +} + +func (ec *executionContext) _Signature_onBehalfOf(ctx context.Context, field graphql.CollectedField, obj *model.Signature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Signature_onBehalfOf(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.OnBehalfOf, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.SignatureOnBehalfOfUnion) + fc.Result = res + return ec.marshalOSignatureOnBehalfOfUnion2ᚕgithubᚗ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) { + 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 SignatureOnBehalfOfUnion 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_onBehalfOf_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Signature_type(ctx context.Context, field graphql.CollectedField, obj *model.Signature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Signature_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.Coding) + fc.Result = res + return ec.marshalOCoding2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Signature_type(_ 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) { + 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) _Signature_extension(ctx context.Context, field graphql.CollectedField, obj *model.Signature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Signature_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_Signature_extension(_ 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) { + 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) _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 + } + 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.TargetFormat, 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_targetFormat(_ 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") + }, + } + 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) + 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_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) { + 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) _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 + } + 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.Method, 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_SpecimenCollection_method(_ 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 "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) _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 + } + 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_SpecimenCollection_modifierExtension(_ 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 "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) _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 + } + 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.Quantity, 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_SpecimenCollection_quantity(_ 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 "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) _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 + } + }() + 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 { + 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, 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) + 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.Collector, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.SpecimenCollectionCollectorUnion) + fc.Result = res + return ec.marshalOSpecimenCollectionCollectorUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenCollectionCollectorUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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.FastingStatusCodeableConcept, 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_SpecimenCollection_fastingStatusCodeableConcept(_ 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 "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) _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 "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) _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 + } + 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.FastingStatusDuration, 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_SpecimenCollection_fastingStatusDuration(_ 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 "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 fc, nil +} + +func (ec *executionContext) _SpecimenCollection_procedure(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenCollection_procedure(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.Procedure, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ProcedureType) + fc.Result = res + return ec.marshalOProcedureType2ᚕᚖ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) { + 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 "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 "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 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_SpecimenCollection_procedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + 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) + 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.Device, 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_SpecimenCollection_device(_ 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, 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) + 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.CollectedDateTime, 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_SpecimenCollection_collectedDateTime(_ 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") + }, + } + 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) + 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.Duration, 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_SpecimenCollection_duration(_ 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 "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 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) + 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_SpecimenCollection_id(_ 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") + }, + } + 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_SpecimenContainer_modifierExtension(_ 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) { + 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) _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 + } + 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_SpecimenContainer_resourceType(_ 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 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) + 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.SpecimenQuantity, 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_SpecimenContainer_specimenQuantity(_ 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) { + 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) _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 + } + 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_SpecimenContainer_extension(_ 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) { + 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) _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 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) + 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_SpecimenFeature_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 "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) _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 + } + 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_SpecimenFeature_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + 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) + 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_SpecimenFeature_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 "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) _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 + } + 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_SpecimenFeature_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + 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) + 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_SpecimenFeature_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SpecimenFeature", + 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) _SpecimenFeature_description(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenFeature_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_SpecimenFeature_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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") + }, + } + 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) + 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.TimePeriod, 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_SpecimenProcessing_timePeriod(_ 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 "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) _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 { + return graphql.Null + } + res := resTmp.([]*model.SubstanceType) + fc.Result = res + return ec.marshalOSubstanceType2ᚕᚖ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 "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) + }, + } + 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) + 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_SpecimenProcessing_modifierExtension(_ 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 "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) _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) + 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_SpecimenProcessing_id(_ 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_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 + } + 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_SpecimenProcessing_resourceType(_ 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_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 + } + 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.Method, 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_SpecimenProcessing_method(_ 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 "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) _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 + } + 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.TimeDateTime, 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_timeDateTime(_ 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_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 + } + 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_SpecimenProcessing_extension(_ 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 "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) _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 + } + 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_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) { + 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) _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 + } + 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_SpecimenType_text(_ 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 "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 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) + 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_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) { + return nil, errors.New("field of type ResourceUnion 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) + 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.Combined, 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_combined(_ 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) _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 + } + 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.Role, 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_SpecimenType_role(_ 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 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) + 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_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) { + 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) _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 + } + 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_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) { + 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) _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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_SpecimenType_id(_ 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) _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 + } + 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.Parent, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.SpecimenType) + fc.Result = res + return ec.marshalOSpecimenType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SpecimenType_parent(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 "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 "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) _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) _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 + } + 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.Condition, 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_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) { + 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) _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 + } + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +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) { + 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) _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 + } + 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.ReceivedTime, 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_receivedTime(_ 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) _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 + } + 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.Feature, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.SpecimenFeature) + fc.Result = res + return ec.marshalOSpecimenFeature2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenFeature(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SpecimenType_feature(_ 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 "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) + case "type": + return ec.fieldContext_SpecimenFeature_type(ctx, field) + case "description": + return ec.fieldContext_SpecimenFeature_description(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SpecimenFeature", field.Name) + }, + } + 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) + 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.Collection, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.SpecimenCollectionUnion) + fc.Result = res + return ec.marshalOSpecimenCollectionUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenCollectionUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SpecimenType_collection(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) { + 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) _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 + } + 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.Subject, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.SpecimenSubjectUnion) + fc.Result = res + return ec.marshalOSpecimenSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenSubjectUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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.AccessionIdentifier, 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_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) { + 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) _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 + } + 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.Container, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.SpecimenContainer) + fc.Result = res + return ec.marshalOSpecimenContainer2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenContainer(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SpecimenType_container(_ 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 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) + 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_SpecimenType_language(_ 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) _SpecimenType_processing(ctx context.Context, field graphql.CollectedField, obj *model.SpecimenType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SpecimenType_processing(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.Processing, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.SpecimenProcessing) + fc.Result = res + return ec.marshalOSpecimenProcessing2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenProcessing(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SpecimenType_processing(_ 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 "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 "description": + return ec.fieldContext_SpecimenProcessing_description(ctx, field) + case "id": + return ec.fieldContext_SpecimenProcessing_id(ctx, field) + case "resourceType": + return ec.fieldContext_SpecimenProcessing_resourceType(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) + } + return nil, fmt.Errorf("no field named %q was found under type SpecimenProcessing", field.Name) + }, + } + 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) + 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_SpecimenType_implicitRules(_ 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) _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 + } + 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.SpecimenNoteUnion) + fc.Result = res + return ec.marshalOSpecimenNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenNoteUnion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SpecimenType_note(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) { + 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) _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 "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) _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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Technique, 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_SubstanceDefinitionCharacterization_technique(_ 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 "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) _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 + } + 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_SubstanceDefinitionCharacterization_description(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_SubstanceDefinitionCharacterization_extension(_ 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 "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) _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 { + 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.File, nil + }) + if err != nil { + ec.Error(ctx, 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 "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 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) + 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.Form, 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_SubstanceDefinitionCharacterization_form(_ 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 "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) _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 + } + 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_SubstanceDefinitionCharacterization_id(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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 { + 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_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 "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_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 "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) _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 + } + 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_SubstanceDefinitionCode_resourceType(_ 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_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 + } + 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_SubstanceDefinitionCode_modifierExtension(_ 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 "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) _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) + 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_SubstanceDefinitionCode_extension(_ 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 "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) _SubstanceDefinitionCode_note(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCode) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionCode_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.SubstanceDefinitionCodeNoteUnion) + fc.Result = res + return ec.marshalOSubstanceDefinitionCodeNoteUnion2ᚕgithubᚗ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) { + 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 SubstanceDefinitionCodeNoteUnion 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_SubstanceDefinitionCode_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + 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) + 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_SubstanceDefinitionCode_code(_ 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 fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionCode_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionCode) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionCode_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_SubstanceDefinitionCode_id(_ 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) _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 + } + 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.MeasurementType, 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_measurementType(_ 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 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) + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionMoiety_name(_ 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_amountString(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMoiety_amountString(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.AmountString, 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_amountString(_ 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_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMoiety_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_SubstanceDefinitionMoiety_extension(_ 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 "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) _SubstanceDefinitionMoiety_identifier(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMoiety_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_SubstanceDefinitionMoiety_identifier(_ 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 "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) _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 + } + 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.MolecularFormula, 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_molecularFormula(_ 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_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 + } + 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.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 "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) _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 "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) _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 + } + 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.Role, 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_role(_ 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 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 { + 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_SubstanceDefinitionMoiety_modifierExtension(_ 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 "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) _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) + 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_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) _SubstanceDefinitionMoiety_amountQuantity(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionMoiety) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionMoiety_amountQuantity(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.AmountQuantity, 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_SubstanceDefinitionMoiety_amountQuantity(_ 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 "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_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 + } + 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_SubstanceDefinitionMolecularWeight_id(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Method, 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_SubstanceDefinitionMolecularWeight_method(_ 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 "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) _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 + } + 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_SubstanceDefinitionMolecularWeight_modifierExtension(_ 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 "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) _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, + IsMethod: false, + IsResolver: false, + 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_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 + } + 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_SubstanceDefinitionMolecularWeight_type(_ 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 "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) _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) + 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_SubstanceDefinitionMolecularWeight_extension(_ 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 "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) _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) + 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 "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 fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionName_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionName_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_SubstanceDefinitionName_modifierExtension(_ 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 "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) _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 + } + 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.Translation, 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_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) { + 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 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) + 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_SubstanceDefinitionName_type(_ 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_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 + } + 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.Official, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.SubstanceDefinitionNameOfficial) + fc.Result = res + return ec.marshalOSubstanceDefinitionNameOfficial2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionNameOfficial(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionName_official(_ 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 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) + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_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) { + 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_domain(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionName) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionName_domain(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.Domain, 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_domain(_ 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_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 "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) _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 + } + 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.Jurisdiction, 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_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) { + 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_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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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 { + 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_SubstanceDefinitionName_source(ctx 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 "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_SubstanceDefinitionName_source_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionNameOfficial_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionNameOfficial) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionNameOfficial_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_SubstanceDefinitionNameOfficial_resourceType(_ 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_status(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionNameOfficial) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionNameOfficial_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_SubstanceDefinitionNameOfficial_status(_ 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) { + 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) _SubstanceDefinitionNameOfficial_authority(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionNameOfficial) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionNameOfficial_authority(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.Authority, 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_SubstanceDefinitionNameOfficial_authority(_ 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) { + 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) _SubstanceDefinitionNameOfficial_date(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionNameOfficial) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionNameOfficial_date(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.Date, 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_date(_ 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_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionNameOfficial) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionNameOfficial_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_SubstanceDefinitionNameOfficial_extension(_ 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) { + 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) _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) + 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_SubstanceDefinitionNameOfficial_modifierExtension(_ 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) { + 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) _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 + } + 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_SubstanceDefinitionProperty_extension(_ 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 "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) _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 "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) _SubstanceDefinitionProperty_valueAttachment(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionProperty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionProperty_valueAttachment(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.ValueAttachment, nil + }) + if err != nil { + ec.Error(ctx, 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_SubstanceDefinitionProperty_valueAttachment(_ 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 "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 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) + 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.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) + 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_SubstanceDefinitionProperty_id(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionProperty_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionProperty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionProperty_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_SubstanceDefinitionProperty_resourceType(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionProperty_type(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionProperty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionProperty_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_SubstanceDefinitionProperty_type(_ 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 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueCodeableConcept, 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_SubstanceDefinitionProperty_valueCodeableConcept(_ 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 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) + 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.ValueDate, 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_SubstanceDefinitionProperty_valueDate(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.SubstanceDefinitionReference, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.SubstanceDefinitionType) + fc.Result = res + return ec.marshalOSubstanceDefinitionType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_substanceDefinitionReference(ctx 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 "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 "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 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_amountQuantity(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionRelationship_amountQuantity(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.AmountQuantity, 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_SubstanceDefinitionRelationship_amountQuantity(_ 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 "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) _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 + } + 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.AmountRatio, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Ratio) + fc.Result = res + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionRelationship_amountRatio(_ 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 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.RatioHighLimitAmount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Ratio) + fc.Result = res + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) +} + +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) { + 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 fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionRelationship_source(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionRelationship) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionRelationship_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 { + 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_SubstanceDefinitionRelationship_source(ctx 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 "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_SubstanceDefinitionRelationship_source_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + 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) + 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_SubstanceDefinitionRelationship_resourceType(_ 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") + }, + } + 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) + 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.AmountString, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.IsDefining, 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_SubstanceDefinitionRelationship_isDefining(_ 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") + }, + } + 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) + 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_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) { + 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) _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 + } + 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.Comparator, 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_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) { + 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) _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 + } + 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_SubstanceDefinitionRelationship_type(_ 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 "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) _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 { + 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_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 "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) _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 + } + 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.SubstanceDefinitionCodeableConcept, 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_SubstanceDefinitionRelationship_substanceDefinitionCodeableConcept(_ 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 "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) _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 + } + 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.Genus, 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_SubstanceDefinitionSourceMaterial_genus(_ 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) { + 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) _SubstanceDefinitionSourceMaterial_type(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionSourceMaterial) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionSourceMaterial_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_SubstanceDefinitionSourceMaterial_type(_ 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) { + 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) _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 + } + 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_SubstanceDefinitionSourceMaterial_extension(_ 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) { + 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) _SubstanceDefinitionSourceMaterial_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionSourceMaterial) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionSourceMaterial_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_SubstanceDefinitionSourceMaterial_modifierExtension(_ 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) { + 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) _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) + 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.CountryOfOrigin, 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_SubstanceDefinitionSourceMaterial_countryOfOrigin(_ 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) { + 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) _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) + 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) + 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_SubstanceDefinitionSourceMaterial_species(_ 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) { + 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) _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 + } + 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.Part, 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_SubstanceDefinitionSourceMaterial_part(_ 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) { + 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 "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) _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 + } + 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.MolecularFormula, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_SubstanceDefinitionStructure_resourceType(_ 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") + }, + } + 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) + 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_SubstanceDefinitionStructure_id(_ 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") + }, + } + 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) + 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_SubstanceDefinitionStructure_stereochemistry(_ 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 "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_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 + } + 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.Technique, 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_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) { + 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_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 + } + 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.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_SubstanceDefinitionStructure_opticalActivity(_ 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 "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_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 + } + 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.MolecularFormulaByMoiety, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.MolecularWeight, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.SubstanceDefinitionMolecularWeight) + fc.Result = res + return ec.marshalOSubstanceDefinitionMolecularWeight2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMolecularWeight(ctx, field.Selections, res) +} + +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) { + 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 fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionStructure_representation(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructure_representation(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.Representation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.SubstanceDefinitionStructureRepresentation) + fc.Result = res + return ec.marshalOSubstanceDefinitionStructureRepresentation2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionStructureRepresentation(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionStructure_representation(_ 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 "document": + return ec.fieldContext_SubstanceDefinitionStructureRepresentation_document(ctx, field) + case "extension": + return ec.fieldContext_SubstanceDefinitionStructureRepresentation_extension(ctx, field) + case "format": + return ec.fieldContext_SubstanceDefinitionStructureRepresentation_format(ctx, field) + case "id": + return ec.fieldContext_SubstanceDefinitionStructureRepresentation_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_SubstanceDefinitionStructureRepresentation_modifierExtension(ctx, field) + case "representation": + return ec.fieldContext_SubstanceDefinitionStructureRepresentation_representation(ctx, field) + case "resourceType": + return ec.fieldContext_SubstanceDefinitionStructureRepresentation_resourceType(ctx, field) + case "type": + return ec.fieldContext_SubstanceDefinitionStructureRepresentation_type(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionStructureRepresentation", field.Name) + }, + } + 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) + 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_SubstanceDefinitionStructure_extension(_ 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 fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionStructureRepresentation_document(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructureRepresentation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructureRepresentation_document(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.Document, 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_SubstanceDefinitionStructureRepresentation_document(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionStructureRepresentation", + 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_SubstanceDefinitionStructureRepresentation_document_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionStructureRepresentation_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructureRepresentation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructureRepresentation_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_SubstanceDefinitionStructureRepresentation_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionStructureRepresentation", + 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) _SubstanceDefinitionStructureRepresentation_format(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructureRepresentation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructureRepresentation_format(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.Format, 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_SubstanceDefinitionStructureRepresentation_format(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionStructureRepresentation", + 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) _SubstanceDefinitionStructureRepresentation_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructureRepresentation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructureRepresentation_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_SubstanceDefinitionStructureRepresentation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionStructureRepresentation", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _SubstanceDefinitionStructureRepresentation_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructureRepresentation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructureRepresentation_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_SubstanceDefinitionStructureRepresentation_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionStructureRepresentation", + 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) _SubstanceDefinitionStructureRepresentation_representation(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructureRepresentation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructureRepresentation_representation(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.Representation, 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_SubstanceDefinitionStructureRepresentation_representation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionStructureRepresentation", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _SubstanceDefinitionStructureRepresentation_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructureRepresentation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructureRepresentation_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_SubstanceDefinitionStructureRepresentation_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionStructureRepresentation", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _SubstanceDefinitionStructureRepresentation_type(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionStructureRepresentation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionStructureRepresentation_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_SubstanceDefinitionStructureRepresentation_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubstanceDefinitionStructureRepresentation", + 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) _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 { + 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_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 "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 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) + 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.Moiety, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.SubstanceDefinitionMoiety) + fc.Result = res + return ec.marshalOSubstanceDefinitionMoiety2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMoiety(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionType_moiety(_ 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 "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 "id": + return ec.fieldContext_SubstanceDefinitionMoiety_id(ctx, field) + case "modifierExtension": + return ec.fieldContext_SubstanceDefinitionMoiety_modifierExtension(ctx, field) + case "resourceType": + return ec.fieldContext_SubstanceDefinitionMoiety_resourceType(ctx, field) + case "amountQuantity": + return ec.fieldContext_SubstanceDefinitionMoiety_amountQuantity(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionMoiety", 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) + 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_SubstanceDefinitionType_implicitRules(_ 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") + }, + } + 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) + 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_SubstanceDefinitionType_modifierExtension(_ 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 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) + 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.Characterization, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.SubstanceDefinitionCharacterization) + fc.Result = res + return ec.marshalOSubstanceDefinitionCharacterization2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCharacterization(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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.Supplier, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.OrganizationType) + fc.Result = res + return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionType_supplier(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 "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) + }, + } + 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) + 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.SubstanceDefinitionNoteUnion) + fc.Result = res + return ec.marshalOSubstanceDefinitionNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionNoteUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Structure, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.SubstanceDefinitionStructure) + fc.Result = res + return ec.marshalOSubstanceDefinitionStructure2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionStructure(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionType_structure(_ 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 "sourceDocument": + return ec.fieldContext_SubstanceDefinitionStructure_sourceDocument(ctx, field) + case "modifierExtension": + return ec.fieldContext_SubstanceDefinitionStructure_modifierExtension(ctx, field) + case "molecularFormula": + return ec.fieldContext_SubstanceDefinitionStructure_molecularFormula(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) + case "extension": + return ec.fieldContext_SubstanceDefinitionStructure_extension(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionStructure", field.Name) + }, + } + 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _SubstanceDefinitionType_contained(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceDefinitionType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceDefinitionType_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_SubstanceDefinitionType_contained(_ 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 ResourceUnion does not have child fields") + }, + } + 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) + 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.Domain, 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_SubstanceDefinitionType_domain(_ 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 "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) _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 + } + 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_SubstanceDefinitionType_extension(_ 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 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) + 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_SubstanceDefinitionType_identifier(_ 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 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) + 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.Version, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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 "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 "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) + case "extension": + return ec.fieldContext_SubstanceDefinitionRelationship_extension(ctx, field) + case "substanceDefinitionCodeableConcept": + return ec.fieldContext_SubstanceDefinitionRelationship_substanceDefinitionCodeableConcept(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionRelationship", 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) + 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.Manufacturer, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.OrganizationType) + fc.Result = res + return ec.marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, field.Selections, res) +} + +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) { + 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) + }, + } + 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_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 + } + 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.Grade, 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_SubstanceDefinitionType_grade(_ 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 "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) _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 + } + 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_SubstanceDefinitionType_resourceType(_ 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") + }, + } + 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) + 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.SubstanceDefinitionName) + fc.Result = res + return ec.marshalOSubstanceDefinitionName2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionName(ctx, field.Selections, res) +} + +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) { + 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 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) + 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_SubstanceDefinitionType_status(_ 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 "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) _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 + } + 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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionType_meta(_ 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 "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) _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 + } + 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.MolecularWeight, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.SubstanceDefinitionMolecularWeight) + fc.Result = res + return ec.marshalOSubstanceDefinitionMolecularWeight2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMolecularWeight(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionType_molecularWeight(_ 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 "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 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) + 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.SourceMaterial, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.SubstanceDefinitionSourceMaterial) + fc.Result = res + return ec.marshalOSubstanceDefinitionSourceMaterial2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionSourceMaterial(ctx, field.Selections, res) +} + +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) { + 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 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) + 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.Classification, 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_SubstanceDefinitionType_classification(_ 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 "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) _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 + } + 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.SubstanceDefinitionCode) + fc.Result = res + return ec.marshalOSubstanceDefinitionCode2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCode(ctx, field.Selections, res) +} + +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) { + 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 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) + 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.Property, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.SubstanceDefinitionProperty) + fc.Result = res + return ec.marshalOSubstanceDefinitionProperty2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionProperty(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceDefinitionType_property(_ 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_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) + 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 nil, fmt.Errorf("no field named %q was found under type SubstanceDefinitionProperty", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _SubstanceIngredient_substanceReference(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceIngredient) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceIngredient_substanceReference(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.SubstanceReference, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.SubstanceType) + fc.Result = res + return ec.marshalOSubstanceType2ᚕᚖ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) { + 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 "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) + }, + } + 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_SubstanceIngredient_substanceReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _SubstanceIngredient_extension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceIngredient) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceIngredient_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_SubstanceIngredient_extension(_ 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 "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) _SubstanceIngredient_id(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceIngredient) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceIngredient_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_SubstanceIngredient_id(_ 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_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceIngredient) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceIngredient_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_SubstanceIngredient_modifierExtension(_ 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 "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) _SubstanceIngredient_quantity(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceIngredient) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceIngredient_quantity(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.Quantity, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Ratio) + fc.Result = res + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceIngredient_quantity(_ 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 "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 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) + 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_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 String does not have child fields") + }, + } + 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) + 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.Ingredient, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.SubstanceIngredient) + fc.Result = res + return ec.marshalOSubstanceIngredient2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceIngredient(ctx, field.Selections, res) +} + +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) { + switch field.Name { + 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) + case "resourceType": + return ec.fieldContext_SubstanceIngredient_resourceType(ctx, field) + case "substanceCodeableConcept": + return ec.fieldContext_SubstanceIngredient_substanceCodeableConcept(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubstanceIngredient", 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) + 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.Category, 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_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) { + 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_identifier(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceType_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_SubstanceType_identifier(_ 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 "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) _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 + } + 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_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) { + return nil, errors.New("field of type ResourceUnion 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) + 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_SubstanceType_resourceType(_ 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_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 + } + 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.Instance, 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_instance(_ 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_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 + } + 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_SubstanceType_implicitRules(_ 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_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceType_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_SubstanceType_modifierExtension(_ 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 "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) _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 + } + 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.Expiry, 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_expiry(_ 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_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_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 + } + 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_SubstanceType_status(_ 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_meta(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceType_meta(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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceType_meta(_ 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 "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) _SubstanceType_code(ctx context.Context, field graphql.CollectedField, obj *model.SubstanceType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubstanceType_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.CodeableReference) + fc.Result = res + return ec.marshalOCodeableReference2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCodeableReference(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubstanceType_code(_ 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 "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, 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 { + 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_SubstanceType_extension(_ 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 "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) _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 + } + 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.Quantity, 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_SubstanceType_quantity(_ 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 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) + 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_SubstanceType_text(_ 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 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) + 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.ValueAddress, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Address) + fc.Result = res + return ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskInput_valueAddress(_ 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 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) + 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.ValueURL, 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_valueUrl(_ 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_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 + } + 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.ValueDosage, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Dosage) + fc.Result = res + return ec.marshalODosage2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskInput_valueDosage(_ 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 "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 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) + 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.ValueRelatedArtifact, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.RelatedArtifact) + fc.Result = res + return ec.marshalORelatedArtifact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskInput_valueRelatedArtifact(_ 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 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueExpression, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Expression) + fc.Result = res + return ec.marshalOExpression2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExpression(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskInput_valueExpression(_ 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 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) + 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.ValueCanonical, 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_valueCanonical(_ 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_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 + } + 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.ValueContactPoint, 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_TaskInput_valueContactPoint(_ 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_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 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) + 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.ValueUnsignedInt, 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_valueUnsignedInt(_ 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_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 + } + 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.ValueInstant, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueMoney, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Money) + fc.Result = res + return ec.marshalOMoney2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMoney(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskInput_valueMoney(_ 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 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) + 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.ValueParameterDefinition, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.ParameterDefinition) + fc.Result = res + return ec.marshalOParameterDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐParameterDefinition(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskInput_valueParameterDefinition(_ 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 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) + 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.ValueUUID, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueAttachment, nil + }) + if err != nil { + ec.Error(ctx, 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_TaskInput_valueAttachment(_ 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 "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 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) + 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.ValueUsageContext, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.TaskInputValueUsageContextUnion) + fc.Result = res + return ec.marshalOTaskInputValueUsageContextUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueUsageContextUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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.ValueTime, 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_valueTime(_ 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_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 + } + 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.ValueURI, 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_valueUri(_ 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_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 + } + 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.ValueSignature, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.TaskInputValueSignatureUnion) + fc.Result = res + return ec.marshalOTaskInputValueSignatureUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueSignatureUnion(ctx, field.Selections, res) +} + +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 TaskInputValueSignatureUnion 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_valueSignature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + 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) + 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.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_TaskInput_valueQuantity(_ 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 "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) _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, + 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 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) + 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.ValueMeta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskInput_valueMeta(_ 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_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) _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 + } + 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.ValueCode, 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_valueCode(_ 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_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 + } + 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.ValueTriggerDefinition, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.TriggerDefinition) + fc.Result = res + return ec.marshalOTriggerDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTriggerDefinition(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskInput_valueTriggerDefinition(_ 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 "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) + 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 nil, fmt.Errorf("no field named %q was found under type TriggerDefinition", 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) + 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.ValueOid, 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_valueOid(_ 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_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 + } + 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.ValueInteger64, 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_valueInteger64(_ 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_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 + } + 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.ValueDataRequirement, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.DataRequirement) + fc.Result = res + return ec.marshalODataRequirement2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirement(ctx, field.Selections, res) +} + +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) { + 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 "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 nil, fmt.Errorf("no field named %q was found under type DataRequirement", 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) + 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_TaskInput_valueBoolean(_ 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_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 + } + 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.ValueCoding, 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_TaskInput_valueCoding(_ 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_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) _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 + } + 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.ValueDecimal, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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 { + return graphql.Null + } + res := resTmp.([]model.TaskInputValueAnnotationUnion) + fc.Result = res + return ec.marshalOTaskInputValueAnnotationUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueAnnotationUnion(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) { + 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_Count_extension(ctx, field) + 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) + } + 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 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) + 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.ValueCodeableReference, 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_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) { + 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, 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) + 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.ValueDistance, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Distance) + fc.Result = res + return ec.marshalODistance2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDistance(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskInput_valueDistance(_ 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_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 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) + 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.ValueHumanName, 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_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) { + 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 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) + 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.ValueID, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_TaskInput_resourceType(_ 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_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 + } + 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.ValueRatio, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Ratio) + fc.Result = res + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskInput_valueRatio(_ 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 fc, nil +} + +func (ec *executionContext) _TaskInput_valueExtendedContactDetail(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueExtendedContactDetail(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.ValueExtendedContactDetail, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.ExtendedContactDetail) + fc.Result = res + return ec.marshalOExtendedContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskInput_valueExtendedContactDetail(_ 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 "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 fc, nil +} + +func (ec *executionContext) _TaskInput_valueRatioRange(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_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_TaskInput_valueRatioRange(_ 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_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) _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) + 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_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) { + 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) _TaskInput_id(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_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_TaskInput_id(_ 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_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) + 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_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) { + 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) _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) + 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) _TaskInput_valueTiming(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueTiming(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.ValueTiming, 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_TaskInput_valueTiming(_ 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 "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 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) + 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.ValueIdentifier, 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_TaskInput_valueIdentifier(_ 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 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) + 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.ValuePositiveInt, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueAvailability, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Availability) + fc.Result = res + return ec.marshalOAvailability2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx, field.Selections, res) +} + +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) { + 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 fc, nil +} + +func (ec *executionContext) _TaskInput_valueDuration(ctx context.Context, field graphql.CollectedField, obj *model.TaskInput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskInput_valueDuration(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.ValueDuration, 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_TaskInput_valueDuration(_ 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 "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 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 { + 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_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_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 + } + 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.ValueCodeableConcept, 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_TaskInput_valueCodeableConcept(_ 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_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) _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 + } + 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.ValueAge, 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_TaskInput_valueAge(_ 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 "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 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) + 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.ValueDate, 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_valueDate(_ 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) +} + +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) { + 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) _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 + } + 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.ValueInteger, 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_valueInteger(_ 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_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 + } + 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.ValueRange, 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_TaskInput_valueRange(_ 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 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) + 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) +} + +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) { + 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) _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 + } + 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_TaskOutput_id(_ 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 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) + 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_TaskOutput_valueString(_ 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 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) + 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.ValueOid, 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_TaskOutput_valueOid(_ 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 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) + 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.ValueRatio, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Ratio) + fc.Result = res + return ec.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskOutput_valueRatio(_ 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_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 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) + 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.ValueAge, 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_TaskOutput_valueAge(_ 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_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 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) + 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_TaskOutput_valueSampledData(_ 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_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) _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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueMeta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskOutput_valueMeta(_ 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 "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) _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 + } + 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.ValueSignature, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.TaskOutputValueSignatureUnion) + fc.Result = res + return ec.marshalOTaskOutputValueSignatureUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueSignatureUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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.ValueTime, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueDistance, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Distance) + fc.Result = res + return ec.marshalODistance2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDistance(ctx, field.Selections, res) +} + +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) { + 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 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) + 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.ValueDate, 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_TaskOutput_valueDate(_ 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 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) + 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.ValueTiming, 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_TaskOutput_valueTiming(_ 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 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) + 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 { + return graphql.Null + } + res := resTmp.([]model.TaskOutputValueAnnotationUnion) + fc.Result = res + return ec.marshalOTaskOutputValueAnnotationUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueAnnotationUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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.ValueCanonical, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueURL, 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_TaskOutput_valueUrl(_ 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 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) + 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_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) { + 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 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) + 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.ValueCodeableConcept, 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_TaskOutput_valueCodeableConcept(_ 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 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) + 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.ValueUUID, 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_TaskOutput_valueUuid(_ 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 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) + 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.ValueInstant, 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_TaskOutput_valueInstant(_ 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 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) + 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.ValueExpression, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Expression) + fc.Result = res + return ec.marshalOExpression2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExpression(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskOutput_valueExpression(_ 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 fc, nil +} + +func (ec *executionContext) _TaskOutput_valueUnsignedInt(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueUnsignedInt(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.ValueUnsignedInt, 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_TaskOutput_valueUnsignedInt(_ 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 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) + 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_TaskOutput_type(_ 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 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) + 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.ValueParameterDefinition, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.ParameterDefinition) + fc.Result = res + return ec.marshalOParameterDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐParameterDefinition(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskOutput_valueParameterDefinition(_ 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 "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 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) + 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.ValueMoney, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Money) + fc.Result = res + return ec.marshalOMoney2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMoney(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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_TaskOutput_extension(_ 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 "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) _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 + } + 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.ValueExtendedContactDetail, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.ExtendedContactDetail) + fc.Result = res + return ec.marshalOExtendedContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, field.Selections, res) +} + +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) { + 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 fc, nil +} + +func (ec *executionContext) _TaskOutput_valueCode(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueCode(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.ValueCode, 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_TaskOutput_valueCode(_ 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 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) + 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.ValueIdentifier, 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_TaskOutput_valueIdentifier(_ 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 "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) _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 + } + 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.ValueHumanName, 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_TaskOutput_valueHumanName(_ 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 "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 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) + 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.ValueDuration, 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_TaskOutput_valueDuration(_ 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 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) + 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.ValueInteger64, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueURI, 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_TaskOutput_valueUri(_ 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 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) + 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.ValueContactPoint, 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_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) { + 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 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) + 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_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) { + switch field.Name { + case "extension": + return ec.fieldContext_Count_extension(ctx, field) + 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) + } + return nil, fmt.Errorf("no field named %q was found under type Count", 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) + 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.ValueCodeableReference, 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_TaskOutput_valueCodeableReference(_ 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 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) + 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.ValueRelatedArtifact, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.RelatedArtifact) + fc.Result = res + return ec.marshalORelatedArtifact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskOutput_valueRelatedArtifact(_ 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 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) + 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.ValueID, 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_TaskOutput_valueId(_ 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 fc, nil +} + +func (ec *executionContext) _TaskOutput_valueDosage(ctx context.Context, field graphql.CollectedField, obj *model.TaskOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskOutput_valueDosage(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.ValueDosage, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Dosage) + fc.Result = res + return ec.marshalODosage2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDosage(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskOutput_valueDosage(_ 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 "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 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) + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueAttachment, nil + }) + if err != nil { + ec.Error(ctx, 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_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) { + 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 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) + 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.ValueTriggerDefinition, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.TriggerDefinition) + fc.Result = res + return ec.marshalOTriggerDefinition2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTriggerDefinition(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskOutput_valueTriggerDefinition(_ 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 "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) + 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 nil, fmt.Errorf("no field named %q was found under type TriggerDefinition", 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) + 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_TaskOutput_resourceType(_ 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 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) + 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.ValuePositiveInt, 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_TaskOutput_valuePositiveInt(_ 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 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) + 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.ValueRange, 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_TaskOutput_valueRange(_ 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 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) + 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.ValueAddress, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Address) + fc.Result = res + return ec.marshalOAddress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAddress(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskOutput_valueAddress(_ 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_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 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) + 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.ValueInteger, 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_TaskOutput_valueInteger(_ 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 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) + 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.ValueAvailability, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Availability) + fc.Result = res + return ec.marshalOAvailability2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐAvailability(ctx, field.Selections, res) +} + +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) { + 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 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) + 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.ValueUsageContext, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.TaskOutputValueUsageContextUnion) + fc.Result = res + return ec.marshalOTaskOutputValueUsageContextUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueUsageContextUnion(ctx, field.Selections, res) +} + +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 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 +} + +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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.ValueDataRequirement, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.DataRequirement) + fc.Result = res + return ec.marshalODataRequirement2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirement(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskOutput_valueDataRequirement(_ 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 "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 "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 nil, fmt.Errorf("no field named %q was found under type DataRequirement", 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) + 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_TaskOutput_modifierExtension(_ 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 "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) _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 + } + 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.ValueCoding, 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_TaskOutput_valueCoding(_ 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_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) _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 { + 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_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_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 + } + 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.ValueDecimal, 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_TaskOutput_valueDecimal(_ 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 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) + 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.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_TaskOutput_valueQuantity(_ 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_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) _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 + } + 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_TaskPerformer_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaskPerformer", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _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 + } + 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_TaskPerformer_modifierExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 "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) _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 + } + 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_TaskPerformer_resourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaskPerformer", + Field: field, + IsMethod: false, + IsResolver: false, + 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) _TaskPerformer_actor(ctx context.Context, field graphql.CollectedField, obj *model.TaskPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskPerformer_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 { + return graphql.Null + } + res := resTmp.([]model.TaskPerformerActorUnion) + fc.Result = res + return ec.marshalOTaskPerformerActorUnion2ᚕgithubᚗ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) { + fc = &graphql.FieldContext{ + Object: "TaskPerformer", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TaskPerformerActorUnion 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_TaskPerformer_actor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _TaskPerformer_extension(ctx context.Context, field graphql.CollectedField, obj *model.TaskPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskPerformer_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_TaskPerformer_extension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + 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 "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) _TaskPerformer_function(ctx context.Context, field graphql.CollectedField, obj *model.TaskPerformer) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskPerformer_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_TaskPerformer_function(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaskPerformer", + 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) _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 + } + 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_TaskRestriction_resourceType(_ 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 String does not have child fields") + }, + } + 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) + 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_TaskRestriction_extension(_ 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_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 + } + 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_TaskRestriction_id(_ 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 String does not have child fields") + }, + } + 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) + 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_TaskRestriction_modifierExtension(_ 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") + }, + } + 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) + 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.Repetitions, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.Input, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.TaskInput) + fc.Result = res + return ec.marshalOTaskInput2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInput(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskType_input(_ 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 "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 "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) + 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) + 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) + 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) + 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) + 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) + 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) + case "valueString": + return ec.fieldContext_TaskInput_valueString(ctx, field) + case "valueCodeableConcept": + return ec.fieldContext_TaskInput_valueCodeableConcept(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 nil, fmt.Errorf("no field named %q was found under type TaskInput", 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) + 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.BasedOn, 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_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 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_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) + 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.Output, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.TaskOutput) + fc.Result = res + return ec.marshalOTaskOutput2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutput(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskType_output(_ 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 "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) + 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) + 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) + 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) + case "valueExtendedContactDetail": + return ec.fieldContext_TaskOutput_valueExtendedContactDetail(ctx, field) + case "valueCode": + return ec.fieldContext_TaskOutput_valueCode(ctx, field) + case "valueIdentifier": + return ec.fieldContext_TaskOutput_valueIdentifier(ctx, field) + case "valueHumanName": + return ec.fieldContext_TaskOutput_valueHumanName(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) + 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) + 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) + case "resourceType": + return ec.fieldContext_TaskOutput_resourceType(ctx, field) + case "valuePositiveInt": + return ec.fieldContext_TaskOutput_valuePositiveInt(ctx, field) + case "valueRange": + return ec.fieldContext_TaskOutput_valueRange(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) + 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) + 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 nil, fmt.Errorf("no field named %q was found under type TaskOutput", 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) + 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.LastModified, 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_TaskType_lastModified(_ 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 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) + 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.AuthoredOn, 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_TaskType_authoredOn(_ 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 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) + 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_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) { + 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) _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 + } + 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.Requester, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.TaskRequesterUnion) + fc.Result = res + return ec.marshalOTaskRequesterUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRequesterUnion(ctx, field.Selections, res) +} + +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 TaskRequesterUnion 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_requester_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) + 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.Intent, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.PartOf, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.TaskType) + fc.Result = res + return ec.marshalOTaskType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskType_partOf(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 "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) + }, + } + 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) + 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.BusinessStatus, 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_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) { + 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) _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 + } + 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_TaskType_resourceType(_ 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 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) + 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_TaskType_code(_ 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 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) + 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.InstantiatesURI, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.InstantiatesCanonical, 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_TaskType_instantiatesCanonical(_ 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 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) + 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.Reason, 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_reason(_ 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 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) + 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_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) { + return nil, errors.New("field of type ResourceUnion 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) + 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.RequestedPeriod, 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_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) { + 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) _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 "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) _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 + } + 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.Priority, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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_TaskType_text(_ 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 "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 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) + 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_TaskType_identifier(_ 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 "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) _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 + } + 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_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 String does not have child fields") + }, + } + 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) + 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.Performer, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.TaskPerformerUnion) + fc.Result = res + return ec.marshalOTaskPerformerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskPerformerUnion(ctx, field.Selections, res) +} + +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 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_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 + } + 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_TaskType_id(_ 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 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) + 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_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 String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TaskType_meta(ctx context.Context, field graphql.CollectedField, obj *model.TaskType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskType_meta(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.Meta, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Meta) + fc.Result = res + return ec.marshalOMeta2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskType_meta(_ 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 "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) _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 + } + 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.Restriction, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.TaskRestrictionUnion) + fc.Result = res + return ec.marshalOTaskRestrictionUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRestrictionUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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.TaskNoteUnion) + fc.Result = res + return ec.marshalOTaskNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskNoteUnion(ctx, field.Selections, res) +} + +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) { + 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_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 + } + 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.ExecutionPeriod, 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_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) { + 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) _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 + } + 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_TaskType_language(_ 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 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 "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, 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) + 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_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 String does not have child fields") + }, + } + 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) + 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_TaskType_extension(_ 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 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 { + return graphql.Null + } + res := resTmp.(model.ResourceUnion) + fc.Result = res + return ec.marshalOResourceUnion2githubᚗ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() { + 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_focus_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) + 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.Owner, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.TaskOwnerUnion) + fc.Result = res + return ec.marshalOTaskOwnerUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOwnerUnion(ctx, field.Selections, res) +} + +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 TaskOwnerUnion 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_owner_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) + 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.StatusReason, 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_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) { + 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, 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) + 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.DoNotPerform, 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_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 String does not have child fields") + }, + } + 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 "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) + case "extension": + return ec.fieldContext_TimingRepeat_extension(ctx, field) + case "when": + return ec.fieldContext_TimingRepeat_when(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 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) _Timing_code(ctx context.Context, field graphql.CollectedField, obj *model.Timing) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Timing_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_Timing_code(_ 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 "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) _Timing_event(ctx context.Context, field graphql.CollectedField, obj *model.Timing) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Timing_event(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.Event, 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_event(_ 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) _Timing_extension(ctx context.Context, field graphql.CollectedField, obj *model.Timing) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Timing_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_Timing_extension(_ 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 "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) _Timing_id(ctx context.Context, field graphql.CollectedField, obj *model.Timing) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Timing_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_Timing_id(_ 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) _Timing_modifierExtension(ctx context.Context, field graphql.CollectedField, obj *model.Timing) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Timing_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_Timing_modifierExtension(_ 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 "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_boundsRange(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_boundsRange(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.BoundsRange, 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_TimingRepeat_boundsRange(_ 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 "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 fc, nil +} + +func (ec *executionContext) _TimingRepeat_countMax(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_countMax(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.CountMax, 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_countMax(_ 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 +} + +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 { + 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.DurationUnit, 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_durationUnit(_ 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 +} + +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 + } + 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.Duration, 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_duration(_ 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 +} + +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 + } + 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.PeriodUnit, 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_periodUnit(_ 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 +} + +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 +} + +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 + } + 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.Count, 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_count(_ 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 +} + +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 + } + 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_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) { + 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 +} + +func (ec *executionContext) _TimingRepeat_id(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_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_TimingRepeat_id(_ 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 +} + +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 + } + 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.DurationMax, 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_durationMax(_ 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 +} + +func (ec *executionContext) _TimingRepeat_period(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TimingRepeat_period(_ 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 +} + +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 "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 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) + 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.FrequencyMax, 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_frequencyMax(_ 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 +} + +func (ec *executionContext) _TimingRepeat_frequency(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_frequency(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.Frequency, 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_frequency(_ 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 +} + +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 + } + 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.PeriodMax, 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_periodMax(_ 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 +} + +func (ec *executionContext) _TimingRepeat_boundsPeriod(ctx context.Context, field graphql.CollectedField, obj *model.TimingRepeat) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TimingRepeat_boundsPeriod(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.BoundsPeriod, 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_TimingRepeat_boundsPeriod(_ 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 "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) _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 + } + 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.DayOfWeek, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.TimeOfDay, 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_timeOfDay(_ 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 +} + +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 + } + 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.Offset, 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_offset(_ 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 +} + +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 + } + 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.Condition, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Expression) + fc.Result = res + return ec.marshalOExpression2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExpression(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TriggerDefinition_condition(_ 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 fc, nil +} + +func (ec *executionContext) _TriggerDefinition_name(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TriggerDefinition_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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TriggerDefinition_name(_ 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 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) + 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.([]*model.DataRequirement) + fc.Result = res + return ec.marshalODataRequirement2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐDataRequirement(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TriggerDefinition_data(_ 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 "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 "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 nil, fmt.Errorf("no field named %q was found under type DataRequirement", 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) + 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_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) { + 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) _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 fc, nil +} + +func (ec *executionContext) _TriggerDefinition_timingTiming(ctx context.Context, field graphql.CollectedField, obj *model.TriggerDefinition) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TriggerDefinition_timingTiming(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.TimingTiming, 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_TriggerDefinition_timingTiming(_ 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 "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 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) + 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_TriggerDefinition_code(_ 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 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) + 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.TimingDateTime, 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_timingDateTime(_ 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 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) + 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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TriggerDefinition_type(_ 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 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) + 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_TriggerDefinition_resourceType(_ 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 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) + 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.TimingDate, 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_timingDate(_ 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 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) + 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.SubscriptionTopic, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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 { + 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_UsageContext_id(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UsageContext_resourceType(ctx context.Context, field graphql.CollectedField, obj *model.UsageContext) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UsageContext_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_UsageContext_resourceType(_ 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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UsageContext_valueCodeableConcept(ctx context.Context, field graphql.CollectedField, obj *model.UsageContext) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UsageContext_valueCodeableConcept(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.ValueCodeableConcept, 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_UsageContext_valueCodeableConcept(_ 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 "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) _UsageContext_valueQuantity(ctx context.Context, field graphql.CollectedField, obj *model.UsageContext) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UsageContext_valueQuantity(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.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_UsageContext_valueQuantity(_ 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 "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) _UsageContext_valueRange(ctx context.Context, field graphql.CollectedField, obj *model.UsageContext) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UsageContext_valueRange(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.ValueRange, 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_UsageContext_valueRange(_ 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 "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 fc, nil +} + +func (ec *executionContext) _UsageContext_valueReference(ctx context.Context, field graphql.CollectedField, obj *model.UsageContext) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UsageContext_valueReference(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.ValueReference, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]model.UsageContextValueReferenceUnion) + fc.Result = res + return ec.marshalOUsageContextValueReferenceUnion2ᚕgithubᚗ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) { + fc = &graphql.FieldContext{ + Object: "UsageContext", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UsageContextValueReferenceUnion 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_UsageContext_valueReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _UsageContext_code(ctx context.Context, field graphql.CollectedField, obj *model.UsageContext) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UsageContext_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.Coding) + fc.Result = res + return ec.marshalOCoding2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐCoding(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UsageContext_code(_ 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 "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) _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 + } + 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_VirtualServiceDetail_resourceType(_ 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") + }, + } + 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) + 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.AdditionalInfo, 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.AddressContactPoint, 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_VirtualServiceDetail_addressContactPoint(_ 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 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) + 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.AddressExtendedContactDetail, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.ExtendedContactDetail) + fc.Result = res + return ec.marshalOExtendedContactDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐExtendedContactDetail(ctx, field.Selections, res) +} + +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) { + 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 fc, nil +} + +func (ec *executionContext) _VirtualServiceDetail_sessionKey(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VirtualServiceDetail_sessionKey(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.SessionKey, 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_VirtualServiceDetail_sessionKey(_ 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") + }, + } + 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) + 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_VirtualServiceDetail_extension(_ 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 "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) _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 + } + 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_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) { + return nil, errors.New("field of type String does not have child fields") + }, + } + 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) + 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.AddressString, 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_VirtualServiceDetail_addressString(_ 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") + }, + } + return fc, nil +} + +func (ec *executionContext) _VirtualServiceDetail_addressUrl(ctx context.Context, field graphql.CollectedField, obj *model.VirtualServiceDetail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_VirtualServiceDetail_addressUrl(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.AddressURL, 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_VirtualServiceDetail_addressUrl(_ 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") + }, + } + 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) + 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.ChannelType, 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_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) { + 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) _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) + 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_VirtualServiceDetail_maxParticipants(_ 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") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_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 { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Directive_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Directive", + Field: field, + IsMethod: false, + IsResolver: false, + 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) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_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___Directive_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Directive", + Field: field, + IsMethod: true, + IsResolver: false, + 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) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_locations(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.Locations, 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) + fc.Result = res + return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Directive_locations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Directive", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type __DirectiveLocation does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_args(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.Args, 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.([]introspection.InputValue) + fc.Result = res + return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Directive_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Directive", + 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___InputValue_name(ctx, field) + case "description": + return ec.fieldContext___InputValue_description(ctx, field) + case "type": + return ec.fieldContext___InputValue_type(ctx, field) + case "defaultValue": + return ec.fieldContext___InputValue_defaultValue(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_isRepeatable(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.IsRepeatable, 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.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Directive_isRepeatable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Directive", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___EnumValue_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 { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___EnumValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__EnumValue", + Field: field, + IsMethod: false, + IsResolver: false, + 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) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___EnumValue_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___EnumValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__EnumValue", + Field: field, + IsMethod: true, + IsResolver: false, + 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) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___EnumValue_isDeprecated(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.IsDeprecated(), 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.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__EnumValue", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___EnumValue_deprecationReason(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.DeprecationReason(), 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___EnumValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__EnumValue", + Field: field, + IsMethod: true, + IsResolver: false, + 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) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_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 { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Field_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Field", + Field: field, + IsMethod: false, + IsResolver: false, + 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) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_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___Field_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Field", + Field: field, + IsMethod: true, + IsResolver: false, + 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) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_args(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.Args, 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.([]introspection.InputValue) + fc.Result = res + return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Field_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Field", + 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___InputValue_name(ctx, field) + case "description": + return ec.fieldContext___InputValue_description(ctx, field) + case "type": + return ec.fieldContext___InputValue_type(ctx, field) + case "defaultValue": + return ec.fieldContext___InputValue_defaultValue(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_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 { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Field_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Field", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_isDeprecated(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.IsDeprecated(), 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.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Field_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Field", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_deprecationReason(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.DeprecationReason(), 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___Field_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Field", + Field: field, + IsMethod: true, + IsResolver: false, + 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) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___InputValue_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 { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___InputValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__InputValue", + Field: field, + IsMethod: false, + IsResolver: false, + 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) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___InputValue_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___InputValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__InputValue", + Field: field, + IsMethod: true, + IsResolver: false, + 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) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___InputValue_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 { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__InputValue", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___InputValue_defaultValue(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.DefaultValue, 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___InputValue_defaultValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__InputValue", + Field: field, + IsMethod: false, + IsResolver: false, + 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) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_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___Schema_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Schema", + Field: field, + IsMethod: true, + IsResolver: false, + 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) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_types(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.Types(), 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.([]introspection.Type) + fc.Result = res + return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Schema", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_queryType(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.QueryType(), 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.(*introspection.Type) + fc.Result = res + return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Schema", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_mutationType(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.MutationType(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Schema", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_subscriptionType(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.SubscriptionType(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Schema", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_directives(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.Directives(), 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.([]introspection.Directive) + fc.Result = res + return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Schema_directives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Schema", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext___Directive_name(ctx, field) + case "description": + return ec.fieldContext___Directive_description(ctx, field) + case "locations": + return ec.fieldContext___Directive_locations(ctx, field) + case "args": + return ec.fieldContext___Directive_args(ctx, field) + case "isRepeatable": + return ec.fieldContext___Directive_isRepeatable(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_kind(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.Kind(), 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) + fc.Result = res + return ec.marshalN__TypeKind2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type __TypeKind does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_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.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + 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) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_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___Type_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + 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) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_fields(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.Fields(fc.Args["includeDeprecated"].(bool)), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]introspection.Field) + fc.Result = res + return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext___Field_name(ctx, field) + case "description": + return ec.fieldContext___Field_description(ctx, field) + case "args": + return ec.fieldContext___Field_args(ctx, field) + case "type": + return ec.fieldContext___Field_type(ctx, field) + case "isDeprecated": + return ec.fieldContext___Field_isDeprecated(ctx, field) + case "deprecationReason": + return ec.fieldContext___Field_deprecationReason(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Field", 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___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_interfaces(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.Interfaces(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]introspection.Type) + fc.Result = res + return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_possibleTypes(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.PossibleTypes(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]introspection.Type) + fc.Result = res + return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_enumValues(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.EnumValues(fc.Args["includeDeprecated"].(bool)), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]introspection.EnumValue) + fc.Result = res + return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext___EnumValue_name(ctx, field) + case "description": + return ec.fieldContext___EnumValue_description(ctx, field) + case "isDeprecated": + return ec.fieldContext___EnumValue_isDeprecated(ctx, field) + case "deprecationReason": + return ec.fieldContext___EnumValue_deprecationReason(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __EnumValue", 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___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_inputFields(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.InputFields(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]introspection.InputValue) + fc.Result = res + return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext___InputValue_name(ctx, field) + case "description": + return ec.fieldContext___InputValue_description(ctx, field) + case "type": + return ec.fieldContext___InputValue_type(ctx, field) + case "defaultValue": + return ec.fieldContext___InputValue_defaultValue(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_ofType(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.OfType(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_specifiedByURL(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.SpecifiedByURL(), 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___Type_specifiedByURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + 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 +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +func (ec *executionContext) _AnnotationAuthorReferenceUnion(ctx context.Context, sel ast.SelectionSet, obj model.AnnotationAuthorReferenceUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ConditionNoteUnion(ctx context.Context, sel ast.SelectionSet, obj model.ConditionNoteUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ConditionParticipantActorUnion(ctx context.Context, sel ast.SelectionSet, obj model.ConditionParticipantActorUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ConditionParticipantUnion(ctx context.Context, sel ast.SelectionSet, obj model.ConditionParticipantUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ConditionStageAssessmentUnion(ctx context.Context, sel ast.SelectionSet, obj model.ConditionStageAssessmentUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.DiagnosticReportType: + return ec._DiagnosticReportType(ctx, sel, &obj) + case *model.DiagnosticReportType: + if obj == nil { + return graphql.Null + } + return ec._DiagnosticReportType(ctx, sel, obj) + case model.ObservationType: + return ec._ObservationType(ctx, sel, &obj) + case *model.ObservationType: + if obj == nil { + return graphql.Null + } + return ec._ObservationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ConditionStageUnion(ctx context.Context, sel ast.SelectionSet, obj model.ConditionStageUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.DiagnosticReportType: + return ec._DiagnosticReportType(ctx, sel, &obj) + case *model.DiagnosticReportType: + if obj == nil { + return graphql.Null + } + return ec._DiagnosticReportType(ctx, sel, obj) + case model.ObservationType: + return ec._ObservationType(ctx, sel, &obj) + case *model.ObservationType: + if obj == nil { + return graphql.Null + } + return ec._ObservationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ConditionSubjectUnion(ctx context.Context, sel ast.SelectionSet, obj model.ConditionSubjectUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _DiagnosticReportBasedOnUnion(ctx context.Context, sel ast.SelectionSet, obj model.DiagnosticReportBasedOnUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.MedicationRequestType: + return ec._MedicationRequestType(ctx, sel, &obj) + case *model.MedicationRequestType: + if obj == nil { + return graphql.Null + } + return ec._MedicationRequestType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _DiagnosticReportNoteUnion(ctx context.Context, sel ast.SelectionSet, obj model.DiagnosticReportNoteUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _DiagnosticReportPerformerUnion(ctx context.Context, sel ast.SelectionSet, obj model.DiagnosticReportPerformerUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _DiagnosticReportResultsInterpreterUnion(ctx context.Context, sel ast.SelectionSet, obj model.DiagnosticReportResultsInterpreterUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _DiagnosticReportStudyUnion(ctx context.Context, sel ast.SelectionSet, obj model.DiagnosticReportStudyUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.ImagingStudyType: + return ec._ImagingStudyType(ctx, sel, &obj) + case *model.ImagingStudyType: + if obj == nil { + return graphql.Null + } + return ec._ImagingStudyType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _DiagnosticReportSubjectUnion(ctx context.Context, sel ast.SelectionSet, obj model.DiagnosticReportSubjectUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.MedicationType: + return ec._MedicationType(ctx, sel, &obj) + case *model.MedicationType: + if obj == nil { + return graphql.Null + } + return ec._MedicationType(ctx, sel, obj) + case model.SubstanceType: + return ec._SubstanceType(ctx, sel, &obj) + case *model.SubstanceType: + if obj == nil { + return graphql.Null + } + return ec._SubstanceType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _DiagnosticReportSupportingInfoReferenceUnion(ctx context.Context, sel ast.SelectionSet, obj model.DiagnosticReportSupportingInfoReferenceUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.ProcedureType: + return ec._ProcedureType(ctx, sel, &obj) + case *model.ProcedureType: + if obj == nil { + return graphql.Null + } + return ec._ProcedureType(ctx, sel, obj) + case model.ObservationType: + return ec._ObservationType(ctx, sel, &obj) + case *model.ObservationType: + if obj == nil { + return graphql.Null + } + return ec._ObservationType(ctx, sel, obj) + case model.DiagnosticReportType: + return ec._DiagnosticReportType(ctx, sel, &obj) + case *model.DiagnosticReportType: + if obj == nil { + return graphql.Null + } + return ec._DiagnosticReportType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _DiagnosticReportSupportingInfoUnion(ctx context.Context, sel ast.SelectionSet, obj model.DiagnosticReportSupportingInfoUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.ProcedureType: + return ec._ProcedureType(ctx, sel, &obj) + case *model.ProcedureType: + if obj == nil { + return graphql.Null + } + return ec._ProcedureType(ctx, sel, obj) + case model.ObservationType: + return ec._ObservationType(ctx, sel, &obj) + case *model.ObservationType: + if obj == nil { + return graphql.Null + } + return ec._ObservationType(ctx, sel, obj) + case model.DiagnosticReportType: + return ec._DiagnosticReportType(ctx, sel, &obj) + case *model.DiagnosticReportType: + if obj == nil { + return graphql.Null + } + return ec._DiagnosticReportType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _DocumentReferenceAttesterPartyUnion(ctx context.Context, sel ast.SelectionSet, obj model.DocumentReferenceAttesterPartyUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _DocumentReferenceAttesterUnion(ctx context.Context, sel ast.SelectionSet, obj model.DocumentReferenceAttesterUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _DocumentReferenceAuthorUnion(ctx context.Context, sel ast.SelectionSet, obj model.DocumentReferenceAuthorUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _DocumentReferenceBasedOnUnion(ctx context.Context, sel ast.SelectionSet, obj model.DocumentReferenceBasedOnUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.MedicationRequestType: + return ec._MedicationRequestType(ctx, sel, &obj) + case *model.MedicationRequestType: + if obj == nil { + return graphql.Null + } + return ec._MedicationRequestType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ExtensionValueAnnotationUnion(ctx context.Context, sel ast.SelectionSet, obj model.ExtensionValueAnnotationUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ExtensionValueSignatureUnion(ctx context.Context, sel ast.SelectionSet, obj model.ExtensionValueSignatureUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ExtensionValueUsageContextUnion(ctx context.Context, sel ast.SelectionSet, obj model.ExtensionValueUsageContextUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.ResearchStudyType: + return ec._ResearchStudyType(ctx, sel, &obj) + case *model.ResearchStudyType: + if obj == nil { + return graphql.Null + } + return ec._ResearchStudyType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _FamilyMemberHistoryConditionNoteUnion(ctx context.Context, sel ast.SelectionSet, obj model.FamilyMemberHistoryConditionNoteUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _FamilyMemberHistoryNoteUnion(ctx context.Context, sel ast.SelectionSet, obj model.FamilyMemberHistoryNoteUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _FamilyMemberHistoryParticipantActorUnion(ctx context.Context, sel ast.SelectionSet, obj model.FamilyMemberHistoryParticipantActorUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _FamilyMemberHistoryParticipantUnion(ctx context.Context, sel ast.SelectionSet, obj model.FamilyMemberHistoryParticipantUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _FamilyMemberHistoryProcedureNoteUnion(ctx context.Context, sel ast.SelectionSet, obj model.FamilyMemberHistoryProcedureNoteUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _GroupManagingEntityUnion(ctx context.Context, sel ast.SelectionSet, obj model.GroupManagingEntityUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _GroupMemberEntityUnion(ctx context.Context, sel ast.SelectionSet, obj model.GroupMemberEntityUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.SpecimenType: + return ec._SpecimenType(ctx, sel, &obj) + case *model.SpecimenType: + if obj == nil { + return graphql.Null + } + return ec._SpecimenType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _GroupMemberUnion(ctx context.Context, sel ast.SelectionSet, obj model.GroupMemberUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.SpecimenType: + return ec._SpecimenType(ctx, sel, &obj) + case *model.SpecimenType: + if obj == nil { + return graphql.Null + } + return ec._SpecimenType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ImagingStudyBasedOnUnion(ctx context.Context, sel ast.SelectionSet, obj model.ImagingStudyBasedOnUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.TaskType: + return ec._TaskType(ctx, sel, &obj) + case *model.TaskType: + if obj == nil { + return graphql.Null + } + return ec._TaskType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ImagingStudyNoteUnion(ctx context.Context, sel ast.SelectionSet, obj model.ImagingStudyNoteUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ImagingStudyReferrerUnion(ctx context.Context, sel ast.SelectionSet, obj model.ImagingStudyReferrerUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ImagingStudySeriesPerformerActorUnion(ctx context.Context, sel ast.SelectionSet, obj model.ImagingStudySeriesPerformerActorUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ImagingStudySeriesPerformerUnion(ctx context.Context, sel ast.SelectionSet, obj model.ImagingStudySeriesPerformerUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ImagingStudySubjectUnion(ctx context.Context, sel ast.SelectionSet, obj model.ImagingStudySubjectUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _MedicationAdministrationNoteUnion(ctx context.Context, sel ast.SelectionSet, obj model.MedicationAdministrationNoteUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _MedicationAdministrationPartOfUnion(ctx context.Context, sel ast.SelectionSet, obj model.MedicationAdministrationPartOfUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.MedicationAdministrationType: + return ec._MedicationAdministrationType(ctx, sel, &obj) + case *model.MedicationAdministrationType: + if obj == nil { + return graphql.Null + } + return ec._MedicationAdministrationType(ctx, sel, obj) + case model.ProcedureType: + return ec._ProcedureType(ctx, sel, &obj) + case *model.ProcedureType: + if obj == nil { + return graphql.Null + } + return ec._ProcedureType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _MedicationAdministrationSubjectUnion(ctx context.Context, sel ast.SelectionSet, obj model.MedicationAdministrationSubjectUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _MedicationRequestBasedOnUnion(ctx context.Context, sel ast.SelectionSet, obj model.MedicationRequestBasedOnUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.MedicationRequestType: + return ec._MedicationRequestType(ctx, sel, &obj) + case *model.MedicationRequestType: + if obj == nil { + return graphql.Null + } + return ec._MedicationRequestType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _MedicationRequestDispenseRequestDispenserInstructionUnion(ctx context.Context, sel ast.SelectionSet, obj model.MedicationRequestDispenseRequestDispenserInstructionUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _MedicationRequestInformationSourceUnion(ctx context.Context, sel ast.SelectionSet, obj model.MedicationRequestInformationSourceUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _MedicationRequestNoteUnion(ctx context.Context, sel ast.SelectionSet, obj model.MedicationRequestNoteUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _MedicationRequestPerformerUnion(ctx context.Context, sel ast.SelectionSet, obj model.MedicationRequestPerformerUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _MedicationRequestRecorderUnion(ctx context.Context, sel ast.SelectionSet, obj model.MedicationRequestRecorderUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _MedicationRequestRequesterUnion(ctx context.Context, sel ast.SelectionSet, obj model.MedicationRequestRequesterUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _MedicationRequestSubjectUnion(ctx context.Context, sel ast.SelectionSet, obj model.MedicationRequestSubjectUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _MedicationStatementInformationSourceUnion(ctx context.Context, sel ast.SelectionSet, obj model.MedicationStatementInformationSourceUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _MedicationStatementNoteUnion(ctx context.Context, sel ast.SelectionSet, obj model.MedicationStatementNoteUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _MedicationStatementPartOfUnion(ctx context.Context, sel ast.SelectionSet, obj model.MedicationStatementPartOfUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.ProcedureType: + return ec._ProcedureType(ctx, sel, &obj) + case *model.ProcedureType: + if obj == nil { + return graphql.Null + } + return ec._ProcedureType(ctx, sel, obj) + case model.MedicationStatementType: + return ec._MedicationStatementType(ctx, sel, &obj) + case *model.MedicationStatementType: + if obj == nil { + return graphql.Null + } + return ec._MedicationStatementType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _MedicationStatementRelatedClinicalInformationUnion(ctx context.Context, sel ast.SelectionSet, obj model.MedicationStatementRelatedClinicalInformationUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.ObservationType: + return ec._ObservationType(ctx, sel, &obj) + case *model.ObservationType: + if obj == nil { + return graphql.Null + } + return ec._ObservationType(ctx, sel, obj) + case model.ConditionType: + return ec._ConditionType(ctx, sel, &obj) + case *model.ConditionType: + if obj == nil { + return graphql.Null + } + return ec._ConditionType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _MedicationStatementSubjectUnion(ctx context.Context, sel ast.SelectionSet, obj model.MedicationStatementSubjectUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ObservationBasedOnUnion(ctx context.Context, sel ast.SelectionSet, obj model.ObservationBasedOnUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.MedicationRequestType: + return ec._MedicationRequestType(ctx, sel, &obj) + case *model.MedicationRequestType: + if obj == nil { + return graphql.Null + } + return ec._MedicationRequestType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ObservationDerivedFromUnion(ctx context.Context, sel ast.SelectionSet, obj model.ObservationDerivedFromUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.DocumentReferenceType: + return ec._DocumentReferenceType(ctx, sel, &obj) + case *model.DocumentReferenceType: + if obj == nil { + return graphql.Null + } + return ec._DocumentReferenceType(ctx, sel, obj) + case model.ImagingStudyType: + return ec._ImagingStudyType(ctx, sel, &obj) + case *model.ImagingStudyType: + if obj == nil { + return graphql.Null + } + return ec._ImagingStudyType(ctx, sel, obj) + case model.ObservationType: + return ec._ObservationType(ctx, sel, &obj) + case *model.ObservationType: + if obj == nil { + return graphql.Null + } + return ec._ObservationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ObservationHasMemberUnion(ctx context.Context, sel ast.SelectionSet, obj model.ObservationHasMemberUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.ObservationType: + return ec._ObservationType(ctx, sel, &obj) + case *model.ObservationType: + if obj == nil { + return graphql.Null + } + return ec._ObservationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ObservationNoteUnion(ctx context.Context, sel ast.SelectionSet, obj model.ObservationNoteUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ObservationPartOfUnion(ctx context.Context, sel ast.SelectionSet, obj model.ObservationPartOfUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.MedicationAdministrationType: + return ec._MedicationAdministrationType(ctx, sel, &obj) + case *model.MedicationAdministrationType: + if obj == nil { + return graphql.Null + } + return ec._MedicationAdministrationType(ctx, sel, obj) + case model.MedicationStatementType: + return ec._MedicationStatementType(ctx, sel, &obj) + case *model.MedicationStatementType: + if obj == nil { + return graphql.Null + } + return ec._MedicationStatementType(ctx, sel, obj) + case model.ProcedureType: + return ec._ProcedureType(ctx, sel, &obj) + case *model.ProcedureType: + if obj == nil { + return graphql.Null + } + return ec._ProcedureType(ctx, sel, obj) + case model.ImagingStudyType: + return ec._ImagingStudyType(ctx, sel, &obj) + case *model.ImagingStudyType: + if obj == nil { + return graphql.Null + } + return ec._ImagingStudyType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ObservationPerformerUnion(ctx context.Context, sel ast.SelectionSet, obj model.ObservationPerformerUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ObservationSpecimenUnion(ctx context.Context, sel ast.SelectionSet, obj model.ObservationSpecimenUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.SpecimenType: + return ec._SpecimenType(ctx, sel, &obj) + case *model.SpecimenType: + if obj == nil { + return graphql.Null + } + return ec._SpecimenType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ObservationSubjectUnion(ctx context.Context, sel ast.SelectionSet, obj model.ObservationSubjectUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.ProcedureType: + return ec._ProcedureType(ctx, sel, &obj) + case *model.ProcedureType: + if obj == nil { + return graphql.Null + } + return ec._ProcedureType(ctx, sel, obj) + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.MedicationType: + return ec._MedicationType(ctx, sel, &obj) + case *model.MedicationType: + if obj == nil { + return graphql.Null + } + return ec._MedicationType(ctx, sel, obj) + case model.SubstanceType: + return ec._SubstanceType(ctx, sel, &obj) + case *model.SubstanceType: + if obj == nil { + return graphql.Null + } + return ec._SubstanceType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _PatientGeneralPractitionerUnion(ctx context.Context, sel ast.SelectionSet, obj model.PatientGeneralPractitionerUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _PatientLinkOtherUnion(ctx context.Context, sel ast.SelectionSet, obj model.PatientLinkOtherUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _PatientLinkUnion(ctx context.Context, sel ast.SelectionSet, obj model.PatientLinkUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ProcedureFocusUnion(ctx context.Context, sel ast.SelectionSet, obj model.ProcedureFocusUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.SpecimenType: + return ec._SpecimenType(ctx, sel, &obj) + case *model.SpecimenType: + if obj == nil { + return graphql.Null + } + return ec._SpecimenType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ProcedureNoteUnion(ctx context.Context, sel ast.SelectionSet, obj model.ProcedureNoteUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ProcedurePartOfUnion(ctx context.Context, sel ast.SelectionSet, obj model.ProcedurePartOfUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.ProcedureType: + return ec._ProcedureType(ctx, sel, &obj) + case *model.ProcedureType: + if obj == nil { + return graphql.Null + } + return ec._ProcedureType(ctx, sel, obj) + case model.ObservationType: + return ec._ObservationType(ctx, sel, &obj) + case *model.ObservationType: + if obj == nil { + return graphql.Null + } + return ec._ObservationType(ctx, sel, obj) + case model.MedicationAdministrationType: + return ec._MedicationAdministrationType(ctx, sel, &obj) + case *model.MedicationAdministrationType: + if obj == nil { + return graphql.Null + } + return ec._MedicationAdministrationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ProcedurePerformerActorUnion(ctx context.Context, sel ast.SelectionSet, obj model.ProcedurePerformerActorUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ProcedurePerformerUnion(ctx context.Context, sel ast.SelectionSet, obj model.ProcedurePerformerUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ProcedureRecorderUnion(ctx context.Context, sel ast.SelectionSet, obj model.ProcedureRecorderUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ProcedureReportUnion(ctx context.Context, sel ast.SelectionSet, obj model.ProcedureReportUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.DiagnosticReportType: + return ec._DiagnosticReportType(ctx, sel, &obj) + case *model.DiagnosticReportType: + if obj == nil { + return graphql.Null + } + return ec._DiagnosticReportType(ctx, sel, obj) + case model.DocumentReferenceType: + return ec._DocumentReferenceType(ctx, sel, &obj) + case *model.DocumentReferenceType: + if obj == nil { + return graphql.Null + } + return ec._DocumentReferenceType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ProcedureReportedReferenceUnion(ctx context.Context, sel ast.SelectionSet, obj model.ProcedureReportedReferenceUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ProcedureSubjectUnion(ctx context.Context, sel ast.SelectionSet, obj model.ProcedureSubjectUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ResearchStudyAssociatedPartyPartyUnion(ctx context.Context, sel ast.SelectionSet, obj model.ResearchStudyAssociatedPartyPartyUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ResearchStudyAssociatedPartyUnion(ctx context.Context, sel ast.SelectionSet, obj model.ResearchStudyAssociatedPartyUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ResearchStudyNoteUnion(ctx context.Context, sel ast.SelectionSet, obj model.ResearchStudyNoteUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ResearchStudyRecruitmentEligibilityUnion(ctx context.Context, sel ast.SelectionSet, obj model.ResearchStudyRecruitmentEligibilityUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ResearchStudyRecruitmentUnion(ctx context.Context, sel ast.SelectionSet, obj model.ResearchStudyRecruitmentUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ResearchStudyResultUnion(ctx context.Context, sel ast.SelectionSet, obj model.ResearchStudyResultUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.DiagnosticReportType: + return ec._DiagnosticReportType(ctx, sel, &obj) + case *model.DiagnosticReportType: + if obj == nil { + return graphql.Null + } + return ec._DiagnosticReportType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ResearchStudySiteUnion(ctx context.Context, sel ast.SelectionSet, obj model.ResearchStudySiteUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.ResearchStudyType: + return ec._ResearchStudyType(ctx, sel, &obj) + case *model.ResearchStudyType: + if obj == nil { + return graphql.Null + } + return ec._ResearchStudyType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ResearchSubjectSubjectUnion(ctx context.Context, sel ast.SelectionSet, obj model.ResearchSubjectSubjectUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + case model.SpecimenType: + return ec._SpecimenType(ctx, sel, &obj) + case *model.SpecimenType: + if obj == nil { + return graphql.Null + } + return ec._SpecimenType(ctx, sel, obj) + case model.MedicationType: + return ec._MedicationType(ctx, sel, &obj) + case *model.MedicationType: + if obj == nil { + return graphql.Null + } + return ec._MedicationType(ctx, sel, obj) + case model.SubstanceType: + return ec._SubstanceType(ctx, sel, &obj) + case *model.SubstanceType: + if obj == nil { + return graphql.Null + } + return ec._SubstanceType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _ResourceUnion(ctx context.Context, sel ast.SelectionSet, obj model.ResourceUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.ResearchStudyType: + return ec._ResearchStudyType(ctx, sel, &obj) + case *model.ResearchStudyType: + if obj == nil { + return graphql.Null + } + return ec._ResearchStudyType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.ResearchSubjectType: + return ec._ResearchSubjectType(ctx, sel, &obj) + case *model.ResearchSubjectType: + if obj == nil { + return graphql.Null + } + return ec._ResearchSubjectType(ctx, sel, obj) + case model.SubstanceType: + return ec._SubstanceType(ctx, sel, &obj) + case *model.SubstanceType: + if obj == nil { + return graphql.Null + } + return ec._SubstanceType(ctx, sel, obj) + case model.SubstanceDefinitionType: + return ec._SubstanceDefinitionType(ctx, sel, &obj) + case *model.SubstanceDefinitionType: + if obj == nil { + return graphql.Null + } + return ec._SubstanceDefinitionType(ctx, sel, obj) + case model.SpecimenType: + return ec._SpecimenType(ctx, sel, &obj) + case *model.SpecimenType: + if obj == nil { + return graphql.Null + } + return ec._SpecimenType(ctx, sel, obj) + case model.ObservationType: + return ec._ObservationType(ctx, sel, &obj) + case *model.ObservationType: + if obj == nil { + return graphql.Null + } + return ec._ObservationType(ctx, sel, obj) + case model.DiagnosticReportType: + return ec._DiagnosticReportType(ctx, sel, &obj) + case *model.DiagnosticReportType: + if obj == nil { + return graphql.Null + } + return ec._DiagnosticReportType(ctx, sel, obj) + case model.ConditionType: + return ec._ConditionType(ctx, sel, &obj) + case *model.ConditionType: + if obj == nil { + return graphql.Null + } + return ec._ConditionType(ctx, sel, obj) + case model.MedicationType: + return ec._MedicationType(ctx, sel, &obj) + case *model.MedicationType: + if obj == nil { + return graphql.Null + } + return ec._MedicationType(ctx, sel, obj) + case model.MedicationAdministrationType: + return ec._MedicationAdministrationType(ctx, sel, &obj) + case *model.MedicationAdministrationType: + if obj == nil { + return graphql.Null + } + return ec._MedicationAdministrationType(ctx, sel, obj) + case model.MedicationStatementType: + return ec._MedicationStatementType(ctx, sel, &obj) + case *model.MedicationStatementType: + if obj == nil { + return graphql.Null + } + return ec._MedicationStatementType(ctx, sel, obj) + case model.MedicationRequestType: + return ec._MedicationRequestType(ctx, sel, &obj) + case *model.MedicationRequestType: + if obj == nil { + return graphql.Null + } + return ec._MedicationRequestType(ctx, sel, obj) + case model.ProcedureType: + return ec._ProcedureType(ctx, sel, &obj) + case *model.ProcedureType: + if obj == nil { + return graphql.Null + } + return ec._ProcedureType(ctx, sel, obj) + case model.DocumentReferenceType: + return ec._DocumentReferenceType(ctx, sel, &obj) + case *model.DocumentReferenceType: + if obj == nil { + return graphql.Null + } + return ec._DocumentReferenceType(ctx, sel, obj) + case model.TaskType: + return ec._TaskType(ctx, sel, &obj) + case *model.TaskType: + if obj == nil { + return graphql.Null + } + return ec._TaskType(ctx, sel, obj) + case model.ImagingStudyType: + return ec._ImagingStudyType(ctx, sel, &obj) + case *model.ImagingStudyType: + if obj == nil { + return graphql.Null + } + return ec._ImagingStudyType(ctx, sel, obj) + case model.FamilyMemberHistoryType: + return ec._FamilyMemberHistoryType(ctx, sel, &obj) + case *model.FamilyMemberHistoryType: + if obj == nil { + return graphql.Null + } + return ec._FamilyMemberHistoryType(ctx, sel, obj) + case model.BodyStructureType: + return ec._BodyStructureType(ctx, sel, &obj) + case *model.BodyStructureType: + if obj == nil { + return graphql.Null + } + return ec._BodyStructureType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _SignatureOnBehalfOfUnion(ctx context.Context, sel ast.SelectionSet, obj model.SignatureOnBehalfOfUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _SignatureWhoUnion(ctx context.Context, sel ast.SelectionSet, obj model.SignatureWhoUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _SpecimenCollectionCollectorUnion(ctx context.Context, sel ast.SelectionSet, obj model.SpecimenCollectionCollectorUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _SpecimenCollectionUnion(ctx context.Context, sel ast.SelectionSet, obj model.SpecimenCollectionUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _SpecimenNoteUnion(ctx context.Context, sel ast.SelectionSet, obj model.SpecimenNoteUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _SpecimenSubjectUnion(ctx context.Context, sel ast.SelectionSet, obj model.SpecimenSubjectUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + case model.SubstanceType: + return ec._SubstanceType(ctx, sel, &obj) + case *model.SubstanceType: + if obj == nil { + return graphql.Null + } + return ec._SubstanceType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _SubstanceDefinitionCodeNoteUnion(ctx context.Context, sel ast.SelectionSet, obj model.SubstanceDefinitionCodeNoteUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _SubstanceDefinitionNoteUnion(ctx context.Context, sel ast.SelectionSet, obj model.SubstanceDefinitionNoteUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _TaskInputValueAnnotationUnion(ctx context.Context, sel ast.SelectionSet, obj model.TaskInputValueAnnotationUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _TaskInputValueSignatureUnion(ctx context.Context, sel ast.SelectionSet, obj model.TaskInputValueSignatureUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _TaskInputValueUsageContextUnion(ctx context.Context, sel ast.SelectionSet, obj model.TaskInputValueUsageContextUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.ResearchStudyType: + return ec._ResearchStudyType(ctx, sel, &obj) + case *model.ResearchStudyType: + if obj == nil { + return graphql.Null + } + return ec._ResearchStudyType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _TaskNoteUnion(ctx context.Context, sel ast.SelectionSet, obj model.TaskNoteUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _TaskOutputValueAnnotationUnion(ctx context.Context, sel ast.SelectionSet, obj model.TaskOutputValueAnnotationUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _TaskOutputValueSignatureUnion(ctx context.Context, sel ast.SelectionSet, obj model.TaskOutputValueSignatureUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _TaskOutputValueUsageContextUnion(ctx context.Context, sel ast.SelectionSet, obj model.TaskOutputValueUsageContextUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.ResearchStudyType: + return ec._ResearchStudyType(ctx, sel, &obj) + case *model.ResearchStudyType: + if obj == nil { + return graphql.Null + } + return ec._ResearchStudyType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _TaskOwnerUnion(ctx context.Context, sel ast.SelectionSet, obj model.TaskOwnerUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _TaskPerformerActorUnion(ctx context.Context, sel ast.SelectionSet, obj model.TaskPerformerActorUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _TaskPerformerUnion(ctx context.Context, sel ast.SelectionSet, obj model.TaskPerformerUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _TaskRequesterUnion(ctx context.Context, sel ast.SelectionSet, obj model.TaskRequesterUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _TaskRestrictionRecipientUnion(ctx context.Context, sel ast.SelectionSet, obj model.TaskRestrictionRecipientUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _TaskRestrictionUnion(ctx context.Context, sel ast.SelectionSet, obj model.TaskRestrictionUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.PatientType: + return ec._PatientType(ctx, sel, &obj) + case *model.PatientType: + if obj == nil { + return graphql.Null + } + return ec._PatientType(ctx, sel, obj) + case model.PractitionerType: + return ec._PractitionerType(ctx, sel, &obj) + case *model.PractitionerType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerType(ctx, sel, obj) + case model.PractitionerRoleType: + return ec._PractitionerRoleType(ctx, sel, &obj) + case *model.PractitionerRoleType: + if obj == nil { + return graphql.Null + } + return ec._PractitionerRoleType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _UsageContextValueReferenceUnion(ctx context.Context, sel ast.SelectionSet, obj model.UsageContextValueReferenceUnion) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.ResearchStudyType: + return ec._ResearchStudyType(ctx, sel, &obj) + case *model.ResearchStudyType: + if obj == nil { + return graphql.Null + } + return ec._ResearchStudyType(ctx, sel, obj) + case model.GroupType: + return ec._GroupType(ctx, sel, &obj) + case *model.GroupType: + if obj == nil { + return graphql.Null + } + return ec._GroupType(ctx, sel, obj) + case model.OrganizationType: + return ec._OrganizationType(ctx, sel, &obj) + case *model.OrganizationType: + if obj == nil { + return graphql.Null + } + return ec._OrganizationType(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var addressImplementors = []string{"Address"} + +func (ec *executionContext) _Address(ctx context.Context, sel ast.SelectionSet, obj *model.Address) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, addressImplementors) + + 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("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 "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 "type": + out.Values[i] = ec._Address_type(ctx, field, obj) + case "extension": + out.Values[i] = ec._Address_extension(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 ageImplementors = []string{"Age"} + +func (ec *executionContext) _Age(ctx context.Context, sel ast.SelectionSet, obj *model.Age) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, ageImplementors) + + 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("Age") + case "code": + out.Values[i] = ec._Age_code(ctx, field, obj) + case "comparator": + out.Values[i] = ec._Age_comparator(ctx, field, obj) + case "extension": + out.Values[i] = ec._Age_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._Age_id(ctx, field, obj) + case "resourceType": + 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)) + } + } + 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 annotationImplementors = []string{"Annotation"} + +func (ec *executionContext) _Annotation(ctx context.Context, sel ast.SelectionSet, obj *model.Annotation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, annotationImplementors) + + 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("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": + out.Values[i] = ec._Annotation_text(ctx, field, obj) + case "time": + out.Values[i] = ec._Annotation_time(ctx, field, obj) + case "authorReference": + out.Values[i] = ec._Annotation_authorReference(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 attachmentImplementors = []string{"Attachment"} + +func (ec *executionContext) _Attachment(ctx context.Context, sel ast.SelectionSet, obj *model.Attachment) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, attachmentImplementors) + + 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("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 "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 "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 "contentType": + out.Values[i] = ec._Attachment_contentType(ctx, field, obj) + case "language": + out.Values[i] = ec._Attachment_language(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 availabilityImplementors = []string{"Availability"} + +func (ec *executionContext) _Availability(ctx context.Context, sel ast.SelectionSet, obj *model.Availability) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, availabilityImplementors) + + 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("Availability") + 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)) + } + } + 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 availabilityAvailableTimeImplementors = []string{"AvailabilityAvailableTime"} + +func (ec *executionContext) _AvailabilityAvailableTime(ctx context.Context, sel ast.SelectionSet, obj *model.AvailabilityAvailableTime) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, availabilityAvailableTimeImplementors) + + 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("AvailabilityAvailableTime") + case "availableStartTime": + out.Values[i] = ec._AvailabilityAvailableTime_availableStartTime(ctx, field, obj) + case "daysOfWeek": + out.Values[i] = ec._AvailabilityAvailableTime_daysOfWeek(ctx, field, obj) + case "extension": + out.Values[i] = ec._AvailabilityAvailableTime_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._AvailabilityAvailableTime_id(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._AvailabilityAvailableTime_resourceType(ctx, field, obj) + case "allDay": + out.Values[i] = ec._AvailabilityAvailableTime_allDay(ctx, field, obj) + case "availableEndTime": + out.Values[i] = ec._AvailabilityAvailableTime_availableEndTime(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 availabilityNotAvailableTimeImplementors = []string{"AvailabilityNotAvailableTime"} + +func (ec *executionContext) _AvailabilityNotAvailableTime(ctx context.Context, sel ast.SelectionSet, obj *model.AvailabilityNotAvailableTime) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, availabilityNotAvailableTimeImplementors) + + 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("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) + 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 bodyStructureIncludedStructureImplementors = []string{"BodyStructureIncludedStructure"} + +func (ec *executionContext) _BodyStructureIncludedStructure(ctx context.Context, sel ast.SelectionSet, obj *model.BodyStructureIncludedStructure) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, bodyStructureIncludedStructureImplementors) + + 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("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": + out.Values[i] = ec._BodyStructureIncludedStructure_modifierExtension(ctx, field, obj) + case "qualifier": + out.Values[i] = ec._BodyStructureIncludedStructure_qualifier(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._BodyStructureIncludedStructure_resourceType(ctx, field, obj) + case "structure": + out.Values[i] = ec._BodyStructureIncludedStructure_structure(ctx, field, obj) + case "bodyLandmarkOrientation": + out.Values[i] = ec._BodyStructureIncludedStructure_bodyLandmarkOrientation(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 bodyStructureIncludedStructureBodyLandmarkOrientationImplementors = []string{"BodyStructureIncludedStructureBodyLandmarkOrientation"} + +func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientation(ctx context.Context, sel ast.SelectionSet, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, bodyStructureIncludedStructureBodyLandmarkOrientationImplementors) + + 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("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": + out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientation_surfaceOrientation(ctx, field, obj) + case "clockFacePosition": + out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientation_clockFacePosition(ctx, field, obj) + case "distanceFromLandmark": + out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientation_distanceFromLandmark(ctx, field, obj) + case "extension": + out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientation_extension(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 bodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmarkImplementors = []string{"BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark"} + +func (ec *executionContext) _BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark(ctx context.Context, sel ast.SelectionSet, obj *model.BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, bodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmarkImplementors) + + 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("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": + out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_resourceType(ctx, field, obj) + case "value": + out.Values[i] = ec._BodyStructureIncludedStructureBodyLandmarkOrientationDistanceFromLandmark_value(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 bodyStructureTypeImplementors = []string{"BodyStructureType", "ResourceUnion"} + +func (ec *executionContext) _BodyStructureType(ctx context.Context, sel ast.SelectionSet, obj *model.BodyStructureType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, bodyStructureTypeImplementors) + + 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("BodyStructureType") + case "patient": + out.Values[i] = ec._BodyStructureType_patient(ctx, field, obj) + case "contained": + out.Values[i] = ec._BodyStructureType_contained(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 "excludedStructure": + out.Values[i] = ec._BodyStructureType_excludedStructure(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._BodyStructureType_resourceType(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 "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) + 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 codeableConceptImplementors = []string{"CodeableConcept"} + +func (ec *executionContext) _CodeableConcept(ctx context.Context, sel ast.SelectionSet, obj *model.CodeableConcept) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, codeableConceptImplementors) + + 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("CodeableConcept") + case "text": + out.Values[i] = ec._CodeableConcept_text(ctx, field, obj) + case "coding": + out.Values[i] = ec._CodeableConcept_coding(ctx, field, obj) + case "extension": + 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)) + } + } + 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 codeableReferenceImplementors = []string{"CodeableReference"} + +func (ec *executionContext) _CodeableReference(ctx context.Context, sel ast.SelectionSet, obj *model.CodeableReference) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, codeableReferenceImplementors) + + 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("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) + 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 codingImplementors = []string{"Coding"} + +func (ec *executionContext) _Coding(ctx context.Context, sel ast.SelectionSet, obj *model.Coding) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, codingImplementors) + + 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("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": + out.Values[i] = ec._Coding_version(ctx, field, obj) + case "code": + 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) + 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) + 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)) + } + } + 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 conditionTypeImplementors = []string{"ConditionType", "MedicationStatementRelatedClinicalInformationUnion", "ResourceUnion"} + +func (ec *executionContext) _ConditionType(ctx context.Context, sel ast.SelectionSet, obj *model.ConditionType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, conditionTypeImplementors) + + 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("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 "verificationStatus": + out.Values[i] = ec._ConditionType_verificationStatus(ctx, field, obj) + case "code": + out.Values[i] = ec._ConditionType_code(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 "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 "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 "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) + 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 "note": + out.Values[i] = ec._ConditionType_note(ctx, field, obj) + case "identifier": + out.Values[i] = ec._ConditionType_identifier(ctx, field, obj) + case "onsetPeriod": + out.Values[i] = ec._ConditionType_onsetPeriod(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 contactDetailImplementors = []string{"ContactDetail"} + +func (ec *executionContext) _ContactDetail(ctx context.Context, sel ast.SelectionSet, obj *model.ContactDetail) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactDetailImplementors) + + 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("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": + out.Values[i] = ec._ContactDetail_id(ctx, field, obj) + case "name": + out.Values[i] = ec._ContactDetail_name(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._ContactDetail_resourceType(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 contactPointImplementors = []string{"ContactPoint"} + +func (ec *executionContext) _ContactPoint(ctx context.Context, sel ast.SelectionSet, obj *model.ContactPoint) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactPointImplementors) + + 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("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": + out.Values[i] = ec._ContactPoint_system(ctx, field, obj) + case "use": + out.Values[i] = ec._ContactPoint_use(ctx, field, obj) + case "value": + out.Values[i] = ec._ContactPoint_value(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 countImplementors = []string{"Count"} + +func (ec *executionContext) _Count(ctx context.Context, sel ast.SelectionSet, obj *model.Count) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, countImplementors) + + 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("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": + out.Values[i] = ec._Count_resourceType(ctx, field, obj) + case "system": + out.Values[i] = ec._Count_system(ctx, field, obj) + case "unit": + out.Values[i] = ec._Count_unit(ctx, field, obj) + case "value": + out.Values[i] = ec._Count_value(ctx, field, obj) + case "code": + out.Values[i] = ec._Count_code(ctx, field, obj) + case "comparator": + out.Values[i] = ec._Count_comparator(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 dataRequirementImplementors = []string{"DataRequirement"} + +func (ec *executionContext) _DataRequirement(ctx context.Context, sel ast.SelectionSet, obj *model.DataRequirement) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, dataRequirementImplementors) + + 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("DataRequirement") + case "type": + 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) + case "codeFilter": + out.Values[i] = ec._DataRequirement_codeFilter(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 dataRequirementCodeFilterImplementors = []string{"DataRequirementCodeFilter"} + +func (ec *executionContext) _DataRequirementCodeFilter(ctx context.Context, sel ast.SelectionSet, obj *model.DataRequirementCodeFilter) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, dataRequirementCodeFilterImplementors) + + 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("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": + out.Values[i] = ec._DataRequirementCodeFilter_path(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._DataRequirementCodeFilter_resourceType(ctx, field, obj) + case "searchParam": + out.Values[i] = ec._DataRequirementCodeFilter_searchParam(ctx, field, obj) + case "valueSet": + out.Values[i] = ec._DataRequirementCodeFilter_valueSet(ctx, field, obj) + case "code": + out.Values[i] = ec._DataRequirementCodeFilter_code(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 dataRequirementDateFilterImplementors = []string{"DataRequirementDateFilter"} + +func (ec *executionContext) _DataRequirementDateFilter(ctx context.Context, sel ast.SelectionSet, obj *model.DataRequirementDateFilter) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, dataRequirementDateFilterImplementors) + + 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("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": + out.Values[i] = ec._DataRequirementDateFilter_searchParam(ctx, field, obj) + case "valueDateTime": + out.Values[i] = ec._DataRequirementDateFilter_valueDateTime(ctx, field, obj) + case "valueDuration": + out.Values[i] = ec._DataRequirementDateFilter_valueDuration(ctx, field, obj) + case "valuePeriod": + out.Values[i] = ec._DataRequirementDateFilter_valuePeriod(ctx, field, obj) + case "extension": + out.Values[i] = ec._DataRequirementDateFilter_extension(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 dataRequirementSortImplementors = []string{"DataRequirementSort"} + +func (ec *executionContext) _DataRequirementSort(ctx context.Context, sel ast.SelectionSet, obj *model.DataRequirementSort) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, dataRequirementSortImplementors) + + 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("DataRequirementSort") + 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)) + } + } + 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 dataRequirementValueFilterImplementors = []string{"DataRequirementValueFilter"} + +func (ec *executionContext) _DataRequirementValueFilter(ctx context.Context, sel ast.SelectionSet, obj *model.DataRequirementValueFilter) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, dataRequirementValueFilterImplementors) + + 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("DataRequirementValueFilter") + 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 "valuePeriod": + out.Values[i] = ec._DataRequirementValueFilter_valuePeriod(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 diagnosticReportMediaImplementors = []string{"DiagnosticReportMedia"} + +func (ec *executionContext) _DiagnosticReportMedia(ctx context.Context, sel ast.SelectionSet, obj *model.DiagnosticReportMedia) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, diagnosticReportMediaImplementors) + + 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("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": + out.Values[i] = ec._DiagnosticReportMedia_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._DiagnosticReportMedia_id(ctx, field, obj) + case "link": + out.Values[i] = ec._DiagnosticReportMedia_link(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 diagnosticReportSupportingInfoImplementors = []string{"DiagnosticReportSupportingInfo"} + +func (ec *executionContext) _DiagnosticReportSupportingInfo(ctx context.Context, sel ast.SelectionSet, obj *model.DiagnosticReportSupportingInfo) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, diagnosticReportSupportingInfoImplementors) + + 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("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) + 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 diagnosticReportTypeImplementors = []string{"DiagnosticReportType", "ConditionStageUnion", "ProcedureReportUnion", "ConditionStageAssessmentUnion", "ResearchStudyResultUnion", "DiagnosticReportSupportingInfoUnion", "DiagnosticReportSupportingInfoReferenceUnion", "ResourceUnion"} + +func (ec *executionContext) _DiagnosticReportType(ctx context.Context, sel ast.SelectionSet, obj *model.DiagnosticReportType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, diagnosticReportTypeImplementors) + + 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("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 "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) + case "contained": + out.Values[i] = ec._DiagnosticReportType_contained(ctx, field, obj) + case "id": + out.Values[i] = ec._DiagnosticReportType_id(ctx, field, obj) + case "note": + out.Values[i] = ec._DiagnosticReportType_note(ctx, field, obj) + 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 "category": + out.Values[i] = ec._DiagnosticReportType_category(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) + 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 distanceImplementors = []string{"Distance"} + +func (ec *executionContext) _Distance(ctx context.Context, sel ast.SelectionSet, obj *model.Distance) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, distanceImplementors) + + 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("Distance") + case "resourceType": + out.Values[i] = ec._Distance_resourceType(ctx, field, obj) + case "system": + out.Values[i] = ec._Distance_system(ctx, field, obj) + case "unit": + out.Values[i] = ec._Distance_unit(ctx, field, obj) + case "value": + 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)) + } + } + 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 documentReferenceAttesterImplementors = []string{"DocumentReferenceAttester"} + +func (ec *executionContext) _DocumentReferenceAttester(ctx context.Context, sel ast.SelectionSet, obj *model.DocumentReferenceAttester) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentReferenceAttesterImplementors) + + 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("DocumentReferenceAttester") + case "id": + out.Values[i] = ec._DocumentReferenceAttester_id(ctx, field, obj) + case "mode": + out.Values[i] = ec._DocumentReferenceAttester_mode(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._DocumentReferenceAttester_modifierExtension(ctx, field, obj) + case "party": + out.Values[i] = ec._DocumentReferenceAttester_party(ctx, field, obj) + 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)) + } + } + 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 documentReferenceContentImplementors = []string{"DocumentReferenceContent"} + +func (ec *executionContext) _DocumentReferenceContent(ctx context.Context, sel ast.SelectionSet, obj *model.DocumentReferenceContent) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentReferenceContentImplementors) + + 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("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": + out.Values[i] = ec._DocumentReferenceContent_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._DocumentReferenceContent_modifierExtension(ctx, field, obj) + case "profile": + out.Values[i] = ec._DocumentReferenceContent_profile(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._DocumentReferenceContent_resourceType(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 documentReferenceContentProfileImplementors = []string{"DocumentReferenceContentProfile"} + +func (ec *executionContext) _DocumentReferenceContentProfile(ctx context.Context, sel ast.SelectionSet, obj *model.DocumentReferenceContentProfile) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentReferenceContentProfileImplementors) + + 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("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": + out.Values[i] = ec._DocumentReferenceContentProfile_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._DocumentReferenceContentProfile_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._DocumentReferenceContentProfile_resourceType(ctx, field, obj) + case "valueCanonical": + out.Values[i] = ec._DocumentReferenceContentProfile_valueCanonical(ctx, field, obj) + case "valueCoding": + out.Values[i] = ec._DocumentReferenceContentProfile_valueCoding(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 documentReferenceRelatesToImplementors = []string{"DocumentReferenceRelatesTo"} + +func (ec *executionContext) _DocumentReferenceRelatesTo(ctx context.Context, sel ast.SelectionSet, obj *model.DocumentReferenceRelatesTo) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentReferenceRelatesToImplementors) + + 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("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) + 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 documentReferenceTypeImplementors = []string{"DocumentReferenceType", "ObservationDerivedFromUnion", "ProcedureReportUnion", "ResourceUnion"} + +func (ec *executionContext) _DocumentReferenceType(ctx context.Context, sel ast.SelectionSet, obj *model.DocumentReferenceType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentReferenceTypeImplementors) + + 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("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 "practiceSetting": + out.Values[i] = ec._DocumentReferenceType_practiceSetting(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) + case "type": + out.Values[i] = ec._DocumentReferenceType_type(ctx, field, obj) + case "modality": + out.Values[i] = ec._DocumentReferenceType_modality(ctx, field, obj) + case "period": + out.Values[i] = ec._DocumentReferenceType_period(ctx, field, obj) + case "attester": + out.Values[i] = ec._DocumentReferenceType_attester(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) + 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 "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) + 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 dosageImplementors = []string{"Dosage"} + +func (ec *executionContext) _Dosage(ctx context.Context, sel ast.SelectionSet, obj *model.Dosage) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, dosageImplementors) + + 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("Dosage") + case "asNeededFor": + out.Values[i] = ec._Dosage_asNeededFor(ctx, field, obj) + case "doseAndRate": + out.Values[i] = ec._Dosage_doseAndRate(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 "modifierExtension": + out.Values[i] = ec._Dosage_modifierExtension(ctx, field, obj) + case "patientInstruction": + out.Values[i] = ec._Dosage_patientInstruction(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 "site": + out.Values[i] = ec._Dosage_site(ctx, field, obj) + case "maxDosePerAdministration": + out.Values[i] = ec._Dosage_maxDosePerAdministration(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 "maxDosePerPeriod": + out.Values[i] = ec._Dosage_maxDosePerPeriod(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 dosageDoseAndRateImplementors = []string{"DosageDoseAndRate"} + +func (ec *executionContext) _DosageDoseAndRate(ctx context.Context, sel ast.SelectionSet, obj *model.DosageDoseAndRate) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, dosageDoseAndRateImplementors) + + 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("DosageDoseAndRate") + 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 "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) + 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 durationImplementors = []string{"Duration"} + +func (ec *executionContext) _Duration(ctx context.Context, sel ast.SelectionSet, obj *model.Duration) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, durationImplementors) + + 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("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": + out.Values[i] = ec._Duration_resourceType(ctx, field, obj) + case "system": + out.Values[i] = ec._Duration_system(ctx, field, obj) + case "unit": + out.Values[i] = ec._Duration_unit(ctx, field, obj) + case "value": + out.Values[i] = ec._Duration_value(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 encounterImplementors = []string{"Encounter"} + +func (ec *executionContext) _Encounter(ctx context.Context, sel ast.SelectionSet, obj *model.Encounter) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, encounterImplementors) + + 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("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 "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 "specialArrangement": + out.Values[i] = ec._Encounter_specialArrangement(ctx, field, obj) + case "extension": + out.Values[i] = ec._Encounter_extension(ctx, field, obj) + case "contained": + out.Values[i] = ec._Encounter_contained(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) + 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 encounterAdmissionImplementors = []string{"EncounterAdmission"} + +func (ec *executionContext) _EncounterAdmission(ctx context.Context, sel ast.SelectionSet, obj *model.EncounterAdmission) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, encounterAdmissionImplementors) + + 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("EncounterAdmission") + case "extension": + out.Values[i] = ec._EncounterAdmission_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._EncounterAdmission_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._EncounterAdmission_modifierExtension(ctx, field, obj) + case "preAdmissionIdentifier": + out.Values[i] = ec._EncounterAdmission_preAdmissionIdentifier(ctx, field, obj) + case "reAdmission": + 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)) + } + } + 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 encounterDiagnosisImplementors = []string{"EncounterDiagnosis"} + +func (ec *executionContext) _EncounterDiagnosis(ctx context.Context, sel ast.SelectionSet, obj *model.EncounterDiagnosis) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, encounterDiagnosisImplementors) + + 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("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": + out.Values[i] = ec._EncounterDiagnosis_condition(ctx, field, obj) + case "extension": + out.Values[i] = ec._EncounterDiagnosis_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._EncounterDiagnosis_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._EncounterDiagnosis_modifierExtension(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 encounterLocationImplementors = []string{"EncounterLocation"} + +func (ec *executionContext) _EncounterLocation(ctx context.Context, sel ast.SelectionSet, obj *model.EncounterLocation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, encounterLocationImplementors) + + 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("EncounterLocation") + case "period": + out.Values[i] = ec._EncounterLocation_period(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._EncounterLocation_resourceType(ctx, field, obj) + case "status": + out.Values[i] = ec._EncounterLocation_status(ctx, field, obj) + case "extension": + 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)) + } + } + 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 encounterParticipantImplementors = []string{"EncounterParticipant"} + +func (ec *executionContext) _EncounterParticipant(ctx context.Context, sel ast.SelectionSet, obj *model.EncounterParticipant) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, encounterParticipantImplementors) + + 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("EncounterParticipant") + case "id": + out.Values[i] = ec._EncounterParticipant_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._EncounterParticipant_modifierExtension(ctx, field, obj) + case "period": + out.Values[i] = ec._EncounterParticipant_period(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._EncounterParticipant_resourceType(ctx, field, obj) + case "type": + out.Values[i] = ec._EncounterParticipant_type(ctx, field, obj) + case "extension": + out.Values[i] = ec._EncounterParticipant_extension(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 encounterReasonImplementors = []string{"EncounterReason"} + +func (ec *executionContext) _EncounterReason(ctx context.Context, sel ast.SelectionSet, obj *model.EncounterReason) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, encounterReasonImplementors) + + 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("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": + out.Values[i] = ec._EncounterReason_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._EncounterReason_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._EncounterReason_modifierExtension(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 expressionImplementors = []string{"Expression"} + +func (ec *executionContext) _Expression(ctx context.Context, sel ast.SelectionSet, obj *model.Expression) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, expressionImplementors) + + 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("Expression") + case "expression": + out.Values[i] = ec._Expression_expression(ctx, field, obj) + case "extension": + out.Values[i] = ec._Expression_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._Expression_id(ctx, field, obj) + case "language": + out.Values[i] = ec._Expression_language(ctx, field, obj) + case "name": + out.Values[i] = ec._Expression_name(ctx, field, obj) + case "reference": + out.Values[i] = ec._Expression_reference(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._Expression_resourceType(ctx, field, obj) + case "description": + out.Values[i] = ec._Expression_description(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 extendedContactDetailImplementors = []string{"ExtendedContactDetail"} + +func (ec *executionContext) _ExtendedContactDetail(ctx context.Context, sel ast.SelectionSet, obj *model.ExtendedContactDetail) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, extendedContactDetailImplementors) + + 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("ExtendedContactDetail") + case "name": + out.Values[i] = ec._ExtendedContactDetail_name(ctx, field, obj) + case "organization": + out.Values[i] = ec._ExtendedContactDetail_organization(ctx, field, obj) + 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 "extension": + out.Values[i] = ec._ExtendedContactDetail_extension(ctx, field, obj) + case "period": + out.Values[i] = ec._ExtendedContactDetail_period(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 extensionImplementors = []string{"Extension"} + +func (ec *executionContext) _Extension(ctx context.Context, sel ast.SelectionSet, obj *model.Extension) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, extensionImplementors) + + 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("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 "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 "id": + out.Values[i] = ec._Extension_id(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 "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 "valueDosage": + out.Values[i] = ec._Extension_valueDosage(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 "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) + 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 fHIRPrimitiveExtensionImplementors = []string{"FHIRPrimitiveExtension"} + +func (ec *executionContext) _FHIRPrimitiveExtension(ctx context.Context, sel ast.SelectionSet, obj *model.FHIRPrimitiveExtension) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, fHIRPrimitiveExtensionImplementors) + + 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("FHIRPrimitiveExtension") + 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)) + } + } + 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 familyMemberHistoryConditionImplementors = []string{"FamilyMemberHistoryCondition"} + +func (ec *executionContext) _FamilyMemberHistoryCondition(ctx context.Context, sel ast.SelectionSet, obj *model.FamilyMemberHistoryCondition) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, familyMemberHistoryConditionImplementors) + + 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("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 "modifierExtension": + out.Values[i] = ec._FamilyMemberHistoryCondition_modifierExtension(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 familyMemberHistoryParticipantImplementors = []string{"FamilyMemberHistoryParticipant"} + +func (ec *executionContext) _FamilyMemberHistoryParticipant(ctx context.Context, sel ast.SelectionSet, obj *model.FamilyMemberHistoryParticipant) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, familyMemberHistoryParticipantImplementors) + + 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("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": + out.Values[i] = ec._FamilyMemberHistoryParticipant_function(ctx, field, obj) + case "id": + out.Values[i] = ec._FamilyMemberHistoryParticipant_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._FamilyMemberHistoryParticipant_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._FamilyMemberHistoryParticipant_resourceType(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 familyMemberHistoryProcedureImplementors = []string{"FamilyMemberHistoryProcedure"} + +func (ec *executionContext) _FamilyMemberHistoryProcedure(ctx context.Context, sel ast.SelectionSet, obj *model.FamilyMemberHistoryProcedure) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, familyMemberHistoryProcedureImplementors) + + 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("FamilyMemberHistoryProcedure") + case "modifierExtension": + out.Values[i] = ec._FamilyMemberHistoryProcedure_modifierExtension(ctx, field, obj) + case "note": + out.Values[i] = ec._FamilyMemberHistoryProcedure_note(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 "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 "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)) + } + } + 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 familyMemberHistoryTypeImplementors = []string{"FamilyMemberHistoryType", "ResourceUnion"} + +func (ec *executionContext) _FamilyMemberHistoryType(ctx context.Context, sel ast.SelectionSet, obj *model.FamilyMemberHistoryType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, familyMemberHistoryTypeImplementors) + + 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("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 "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 "sex": + out.Values[i] = ec._FamilyMemberHistoryType_sex(ctx, field, obj) + case "note": + out.Values[i] = ec._FamilyMemberHistoryType_note(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 "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 "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 "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 "participant": + out.Values[i] = ec._FamilyMemberHistoryType_participant(ctx, field, obj) + case "bornPeriod": + out.Values[i] = ec._FamilyMemberHistoryType_bornPeriod(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 groupCharacteristicImplementors = []string{"GroupCharacteristic"} + +func (ec *executionContext) _GroupCharacteristic(ctx context.Context, sel ast.SelectionSet, obj *model.GroupCharacteristic) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupCharacteristicImplementors) + + 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("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 "extension": + out.Values[i] = ec._GroupCharacteristic_extension(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._GroupCharacteristic_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._GroupCharacteristic_resourceType(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) + 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 groupMemberImplementors = []string{"GroupMember"} + +func (ec *executionContext) _GroupMember(ctx context.Context, sel ast.SelectionSet, obj *model.GroupMember) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupMemberImplementors) + + 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("GroupMember") + case "entity": + out.Values[i] = ec._GroupMember_entity(ctx, field, obj) + case "extension": + out.Values[i] = ec._GroupMember_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._GroupMember_id(ctx, field, obj) + case "inactive": + 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)) + } + } + 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 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"} + +func (ec *executionContext) _GroupType(ctx context.Context, sel ast.SelectionSet, obj *model.GroupType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupTypeImplementors) + + 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("GroupType") + case "member": + out.Values[i] = ec._GroupType_member(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 "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 "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 "managingEntity": + out.Values[i] = ec._GroupType_managingEntity(ctx, field, obj) + case "identifier": + out.Values[i] = ec._GroupType_identifier(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 humanNameImplementors = []string{"HumanName"} + +func (ec *executionContext) _HumanName(ctx context.Context, sel ast.SelectionSet, obj *model.HumanName) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, humanNameImplementors) + + 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("HumanName") + case "suffix": + out.Values[i] = ec._HumanName_suffix(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 "id": + out.Values[i] = ec._HumanName_id(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: + 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 identifierImplementors = []string{"Identifier"} + +func (ec *executionContext) _Identifier(ctx context.Context, sel ast.SelectionSet, obj *model.Identifier) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, identifierImplementors) + + 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("Identifier") + case "type": + out.Values[i] = ec._Identifier_type(ctx, field, obj) + case "extension": + out.Values[i] = ec._Identifier_extension(ctx, field, obj) + case "period": + out.Values[i] = ec._Identifier_period(ctx, field, obj) + case "system": + out.Values[i] = ec._Identifier_system(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) + 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 imagingStudySeriesImplementors = []string{"ImagingStudySeries"} + +func (ec *executionContext) _ImagingStudySeries(ctx context.Context, sel ast.SelectionSet, obj *model.ImagingStudySeries) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, imagingStudySeriesImplementors) + + 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("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 "modality": + out.Values[i] = ec._ImagingStudySeries_modality(ctx, field, obj) + case "performer": + out.Values[i] = ec._ImagingStudySeries_performer(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 "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) + 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 imagingStudySeriesInstanceImplementors = []string{"ImagingStudySeriesInstance"} + +func (ec *executionContext) _ImagingStudySeriesInstance(ctx context.Context, sel ast.SelectionSet, obj *model.ImagingStudySeriesInstance) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, imagingStudySeriesInstanceImplementors) + + 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("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": + out.Values[i] = ec._ImagingStudySeriesInstance_uid(ctx, field, obj) + case "extension": + out.Values[i] = ec._ImagingStudySeriesInstance_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._ImagingStudySeriesInstance_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._ImagingStudySeriesInstance_modifierExtension(ctx, field, obj) + case "number": + out.Values[i] = ec._ImagingStudySeriesInstance_number(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._ImagingStudySeriesInstance_resourceType(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 imagingStudySeriesPerformerImplementors = []string{"ImagingStudySeriesPerformer"} + +func (ec *executionContext) _ImagingStudySeriesPerformer(ctx context.Context, sel ast.SelectionSet, obj *model.ImagingStudySeriesPerformer) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, imagingStudySeriesPerformerImplementors) + + 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("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) + 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) + 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 imagingStudyTypeImplementors = []string{"ImagingStudyType", "ObservationDerivedFromUnion", "ObservationPartOfUnion", "DiagnosticReportStudyUnion", "ResourceUnion"} + +func (ec *executionContext) _ImagingStudyType(ctx context.Context, sel ast.SelectionSet, obj *model.ImagingStudyType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, imagingStudyTypeImplementors) + + 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("ImagingStudyType") + case "partOf": + out.Values[i] = ec._ImagingStudyType_partOf(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 "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 "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 "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 "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) + 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 immunizationImplementors = []string{"Immunization"} + +func (ec *executionContext) _Immunization(ctx context.Context, sel ast.SelectionSet, obj *model.Immunization) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, immunizationImplementors) + + 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("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 "occurrenceDateTime": + out.Values[i] = ec._Immunization_occurrenceDateTime(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 "meta": + out.Values[i] = ec._Immunization_meta(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 "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 "primarySource": + out.Values[i] = ec._Immunization_primarySource(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 "modifierExtension": + out.Values[i] = ec._Immunization_modifierExtension(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 immunizationPerformerImplementors = []string{"ImmunizationPerformer"} + +func (ec *executionContext) _ImmunizationPerformer(ctx context.Context, sel ast.SelectionSet, obj *model.ImmunizationPerformer) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, immunizationPerformerImplementors) + + 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("ImmunizationPerformer") + 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)) + } + } + 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 immunizationProgramEligibilityImplementors = []string{"ImmunizationProgramEligibility"} + +func (ec *executionContext) _ImmunizationProgramEligibility(ctx context.Context, sel ast.SelectionSet, obj *model.ImmunizationProgramEligibility) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, immunizationProgramEligibilityImplementors) + + 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("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": + out.Values[i] = ec._ImmunizationProgramEligibility_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._ImmunizationProgramEligibility_modifierExtension(ctx, field, obj) + case "program": + out.Values[i] = ec._ImmunizationProgramEligibility_program(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 immunizationProtocolAppliedImplementors = []string{"ImmunizationProtocolApplied"} + +func (ec *executionContext) _ImmunizationProtocolApplied(ctx context.Context, sel ast.SelectionSet, obj *model.ImmunizationProtocolApplied) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, immunizationProtocolAppliedImplementors) + + 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("ImmunizationProtocolApplied") + case "seriesDoses": + out.Values[i] = ec._ImmunizationProtocolApplied_seriesDoses(ctx, field, obj) + case "targetDisease": + out.Values[i] = ec._ImmunizationProtocolApplied_targetDisease(ctx, field, obj) + case "doseNumber": + out.Values[i] = ec._ImmunizationProtocolApplied_doseNumber(ctx, field, obj) + case "extension": + 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)) + } + } + 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 immunizationReactionImplementors = []string{"ImmunizationReaction"} + +func (ec *executionContext) _ImmunizationReaction(ctx context.Context, sel ast.SelectionSet, obj *model.ImmunizationReaction) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, immunizationReactionImplementors) + + 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("ImmunizationReaction") + case "manifestation": + out.Values[i] = ec._ImmunizationReaction_manifestation(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._ImmunizationReaction_modifierExtension(ctx, field, obj) + case "reported": + out.Values[i] = ec._ImmunizationReaction_reported(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._ImmunizationReaction_resourceType(ctx, field, obj) + case "date": + 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)) + } + } + 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 locationImplementors = []string{"Location"} + +func (ec *executionContext) _Location(ctx context.Context, sel ast.SelectionSet, obj *model.Location) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, locationImplementors) + + 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("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 "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 "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 "alias": + out.Values[i] = ec._Location_alias(ctx, field, obj) + case "type": + out.Values[i] = ec._Location_type(ctx, field, obj) + case "description": + out.Values[i] = ec._Location_description(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 locationPositionImplementors = []string{"LocationPosition"} + +func (ec *executionContext) _LocationPosition(ctx context.Context, sel ast.SelectionSet, obj *model.LocationPosition) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, locationPositionImplementors) + + 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("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": + out.Values[i] = ec._LocationPosition_id(ctx, field, obj) + case "latitude": + out.Values[i] = ec._LocationPosition_latitude(ctx, field, obj) + case "longitude": + out.Values[i] = ec._LocationPosition_longitude(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._LocationPosition_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._LocationPosition_resourceType(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 medicationAdministrationDosageImplementors = []string{"MedicationAdministrationDosage"} + +func (ec *executionContext) _MedicationAdministrationDosage(ctx context.Context, sel ast.SelectionSet, obj *model.MedicationAdministrationDosage) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, medicationAdministrationDosageImplementors) + + 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("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 "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 "rateRatio": + out.Values[i] = ec._MedicationAdministrationDosage_rateRatio(ctx, field, obj) + case "route": + out.Values[i] = ec._MedicationAdministrationDosage_route(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._MedicationAdministrationDosage_resourceType(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 medicationAdministrationPerformerImplementors = []string{"MedicationAdministrationPerformer"} + +func (ec *executionContext) _MedicationAdministrationPerformer(ctx context.Context, sel ast.SelectionSet, obj *model.MedicationAdministrationPerformer) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, medicationAdministrationPerformerImplementors) + + 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("MedicationAdministrationPerformer") + case "id": + out.Values[i] = ec._MedicationAdministrationPerformer_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._MedicationAdministrationPerformer_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._MedicationAdministrationPerformer_resourceType(ctx, field, obj) + case "actor": + 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)) + } + } + 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 medicationAdministrationTypeImplementors = []string{"MedicationAdministrationType", "MedicationAdministrationPartOfUnion", "ObservationPartOfUnion", "ProcedurePartOfUnion", "ResourceUnion"} + +func (ec *executionContext) _MedicationAdministrationType(ctx context.Context, sel ast.SelectionSet, obj *model.MedicationAdministrationType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, medicationAdministrationTypeImplementors) + + 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("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 "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) + case "resourceType": + out.Values[i] = ec._MedicationAdministrationType_resourceType(ctx, field, obj) + case "statusReason": + out.Values[i] = ec._MedicationAdministrationType_statusReason(ctx, field, obj) + case "implicitRules": + out.Values[i] = ec._MedicationAdministrationType_implicitRules(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) + 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) + 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 medicationBatchImplementors = []string{"MedicationBatch"} + +func (ec *executionContext) _MedicationBatch(ctx context.Context, sel ast.SelectionSet, obj *model.MedicationBatch) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, medicationBatchImplementors) + + 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("MedicationBatch") + case "modifierExtension": + out.Values[i] = ec._MedicationBatch_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._MedicationBatch_resourceType(ctx, field, obj) + case "expirationDate": + 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)) + } + } + 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 medicationIngredientImplementors = []string{"MedicationIngredient"} + +func (ec *executionContext) _MedicationIngredient(ctx context.Context, sel ast.SelectionSet, obj *model.MedicationIngredient) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, medicationIngredientImplementors) + + 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("MedicationIngredient") + case "strengthCodeableConcept": + out.Values[i] = ec._MedicationIngredient_strengthCodeableConcept(ctx, field, obj) + case "id": + out.Values[i] = ec._MedicationIngredient_id(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)) + } + } + 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 medicationRequestDispenseRequestImplementors = []string{"MedicationRequestDispenseRequest"} + +func (ec *executionContext) _MedicationRequestDispenseRequest(ctx context.Context, sel ast.SelectionSet, obj *model.MedicationRequestDispenseRequest) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, medicationRequestDispenseRequestImplementors) + + 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("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 "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 "quantity": + out.Values[i] = ec._MedicationRequestDispenseRequest_quantity(ctx, field, obj) + case "extension": + out.Values[i] = ec._MedicationRequestDispenseRequest_extension(ctx, field, obj) + case "numberOfRepeatsAllowed": + out.Values[i] = ec._MedicationRequestDispenseRequest_numberOfRepeatsAllowed(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 medicationRequestDispenseRequestInitialFillImplementors = []string{"MedicationRequestDispenseRequestInitialFill"} + +func (ec *executionContext) _MedicationRequestDispenseRequestInitialFill(ctx context.Context, sel ast.SelectionSet, obj *model.MedicationRequestDispenseRequestInitialFill) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, medicationRequestDispenseRequestInitialFillImplementors) + + 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("MedicationRequestDispenseRequestInitialFill") + case "duration": + out.Values[i] = ec._MedicationRequestDispenseRequestInitialFill_duration(ctx, field, obj) + case "extension": + out.Values[i] = ec._MedicationRequestDispenseRequestInitialFill_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._MedicationRequestDispenseRequestInitialFill_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._MedicationRequestDispenseRequestInitialFill_modifierExtension(ctx, field, obj) + case "quantity": + out.Values[i] = ec._MedicationRequestDispenseRequestInitialFill_quantity(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._MedicationRequestDispenseRequestInitialFill_resourceType(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 medicationRequestSubstitutionImplementors = []string{"MedicationRequestSubstitution"} + +func (ec *executionContext) _MedicationRequestSubstitution(ctx context.Context, sel ast.SelectionSet, obj *model.MedicationRequestSubstitution) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, medicationRequestSubstitutionImplementors) + + 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("MedicationRequestSubstitution") + case "reason": + out.Values[i] = ec._MedicationRequestSubstitution_reason(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._MedicationRequestSubstitution_resourceType(ctx, field, obj) + case "allowedBoolean": + 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)) + } + } + 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 medicationRequestTypeImplementors = []string{"MedicationRequestType", "DocumentReferenceBasedOnUnion", "MedicationRequestBasedOnUnion", "ObservationBasedOnUnion", "DiagnosticReportBasedOnUnion", "ResourceUnion"} + +func (ec *executionContext) _MedicationRequestType(ctx context.Context, sel ast.SelectionSet, obj *model.MedicationRequestType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, medicationRequestTypeImplementors) + + 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("MedicationRequestType") + 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 "courseOfTherapyType": + out.Values[i] = ec._MedicationRequestType_courseOfTherapyType(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 "supportingInformation": + out.Values[i] = ec._MedicationRequestType_supportingInformation(ctx, field, obj) + case "performer": + out.Values[i] = ec._MedicationRequestType_performer(ctx, field, obj) + 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 "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 "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) + 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) + 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 medicationStatementAdherenceImplementors = []string{"MedicationStatementAdherence"} + +func (ec *executionContext) _MedicationStatementAdherence(ctx context.Context, sel ast.SelectionSet, obj *model.MedicationStatementAdherence) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, medicationStatementAdherenceImplementors) + + 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("MedicationStatementAdherence") + case "extension": + out.Values[i] = ec._MedicationStatementAdherence_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._MedicationStatementAdherence_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._MedicationStatementAdherence_modifierExtension(ctx, field, obj) + case "reason": + 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)) + } + } + 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 medicationStatementTypeImplementors = []string{"MedicationStatementType", "MedicationStatementPartOfUnion", "ObservationPartOfUnion", "ResourceUnion"} + +func (ec *executionContext) _MedicationStatementType(ctx context.Context, sel ast.SelectionSet, obj *model.MedicationStatementType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, medicationStatementTypeImplementors) + + 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("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 "identifier": + out.Values[i] = ec._MedicationStatementType_identifier(ctx, field, obj) + case "note": + out.Values[i] = ec._MedicationStatementType_note(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 "subject": + out.Values[i] = ec._MedicationStatementType_subject(ctx, field, obj) + 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 "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) + 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 medicationTypeImplementors = []string{"MedicationType", "ObservationSubjectUnion", "ResearchSubjectSubjectUnion", "DiagnosticReportSubjectUnion", "ResourceUnion"} + +func (ec *executionContext) _MedicationType(ctx context.Context, sel ast.SelectionSet, obj *model.MedicationType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, medicationTypeImplementors) + + 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("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 "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 "ingredient": + out.Values[i] = ec._MedicationType_ingredient(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) + 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 metaImplementors = []string{"Meta"} + +func (ec *executionContext) _Meta(ctx context.Context, sel ast.SelectionSet, obj *model.Meta) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, metaImplementors) + + 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("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 "extension": + out.Values[i] = ec._Meta_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._Meta_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 moneyImplementors = []string{"Money"} + +func (ec *executionContext) _Money(ctx context.Context, sel ast.SelectionSet, obj *model.Money) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, moneyImplementors) + + 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("Money") + case "currency": + out.Values[i] = ec._Money_currency(ctx, field, obj) + case "extension": + out.Values[i] = ec._Money_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._Money_id(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._Money_resourceType(ctx, field, obj) + case "value": + out.Values[i] = ec._Money_value(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 narrativeImplementors = []string{"Narrative"} + +func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet, obj *model.Narrative) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeImplementors) + + 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("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": + out.Values[i] = ec._Narrative_id(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._Narrative_resourceType(ctx, field, obj) + case "status": + out.Values[i] = ec._Narrative_status(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 observationComponentImplementors = []string{"ObservationComponent"} + +func (ec *executionContext) _ObservationComponent(ctx context.Context, sel ast.SelectionSet, obj *model.ObservationComponent) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, observationComponentImplementors) + + 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("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 "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 "valueBoolean": + out.Values[i] = ec._ObservationComponent_valueBoolean(ctx, field, obj) + case "valueDateTime": + out.Values[i] = ec._ObservationComponent_valueDateTime(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 "valueRatio": + out.Values[i] = ec._ObservationComponent_valueRatio(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 observationReferenceRangeImplementors = []string{"ObservationReferenceRange"} + +func (ec *executionContext) _ObservationReferenceRange(ctx context.Context, sel ast.SelectionSet, obj *model.ObservationReferenceRange) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, observationReferenceRangeImplementors) + + 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("ObservationReferenceRange") + case "extension": + out.Values[i] = ec._ObservationReferenceRange_extension(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 "appliesTo": + out.Values[i] = ec._ObservationReferenceRange_appliesTo(ctx, field, obj) + case "age": + out.Values[i] = ec._ObservationReferenceRange_age(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 "modifierExtension": + out.Values[i] = ec._ObservationReferenceRange_modifierExtension(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 observationTriggeredByImplementors = []string{"ObservationTriggeredBy"} + +func (ec *executionContext) _ObservationTriggeredBy(ctx context.Context, sel ast.SelectionSet, obj *model.ObservationTriggeredBy) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, observationTriggeredByImplementors) + + 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("ObservationTriggeredBy") + 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) + 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)) + } + } + 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 observationTypeImplementors = []string{"ObservationType", "MedicationStatementRelatedClinicalInformationUnion", "ConditionStageUnion", "ObservationDerivedFromUnion", "ObservationHasMemberUnion", "ProcedurePartOfUnion", "ConditionStageAssessmentUnion", "DiagnosticReportSupportingInfoUnion", "DiagnosticReportSupportingInfoReferenceUnion", "ResourceUnion"} + +func (ec *executionContext) _ObservationType(ctx context.Context, sel ast.SelectionSet, obj *model.ObservationType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, observationTypeImplementors) + + 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("ObservationType") + case "effectivePeriod": + out.Values[i] = ec._ObservationType_effectivePeriod(ctx, field, obj) + case "derivedFrom": + out.Values[i] = ec._ObservationType_derivedFrom(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 "meta": + out.Values[i] = ec._ObservationType_meta(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 "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) + 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) + 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 "partOf": + out.Values[i] = ec._ObservationType_partOf(ctx, field, obj) + case "component": + out.Values[i] = ec._ObservationType_component(ctx, field, obj) + case "effectiveTiming": + out.Values[i] = ec._ObservationType_effectiveTiming(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) + 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 organizationQualificationImplementors = []string{"OrganizationQualification"} + +func (ec *executionContext) _OrganizationQualification(ctx context.Context, sel ast.SelectionSet, obj *model.OrganizationQualification) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationQualificationImplementors) + + 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("OrganizationQualification") + case "extension": + out.Values[i] = ec._OrganizationQualification_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._OrganizationQualification_id(ctx, field, obj) + case "identifier": + out.Values[i] = ec._OrganizationQualification_identifier(ctx, field, obj) + case "issuer": + out.Values[i] = ec._OrganizationQualification_issuer(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._OrganizationQualification_modifierExtension(ctx, field, obj) + case "period": + out.Values[i] = ec._OrganizationQualification_period(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._OrganizationQualification_resourceType(ctx, field, obj) + case "code": + out.Values[i] = ec._OrganizationQualification_code(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 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"} + +func (ec *executionContext) _OrganizationType(ctx context.Context, sel ast.SelectionSet, obj *model.OrganizationType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationTypeImplementors) + + 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("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 "contained": + out.Values[i] = ec._OrganizationType_contained(ctx, field, obj) + case "meta": + out.Values[i] = ec._OrganizationType_meta(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) + 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 parameterDefinitionImplementors = []string{"ParameterDefinition"} + +func (ec *executionContext) _ParameterDefinition(ctx context.Context, sel ast.SelectionSet, obj *model.ParameterDefinition) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, parameterDefinitionImplementors) + + 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("ParameterDefinition") + case "profile": + out.Values[i] = ec._ParameterDefinition_profile(ctx, field, obj) + case "min": + out.Values[i] = ec._ParameterDefinition_min(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 "use": + out.Values[i] = ec._ParameterDefinition_use(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 patientCommunicationImplementors = []string{"PatientCommunication"} + +func (ec *executionContext) _PatientCommunication(ctx context.Context, sel ast.SelectionSet, obj *model.PatientCommunication) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, patientCommunicationImplementors) + + 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("PatientCommunication") + case "resourceType": + out.Values[i] = ec._PatientCommunication_resourceType(ctx, field, obj) + case "extension": + out.Values[i] = ec._PatientCommunication_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._PatientCommunication_id(ctx, field, obj) + case "language": + 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)) + } + } + 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 patientContactImplementors = []string{"PatientContact"} + +func (ec *executionContext) _PatientContact(ctx context.Context, sel ast.SelectionSet, obj *model.PatientContact) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, patientContactImplementors) + + 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("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 "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 "organization": + out.Values[i] = ec._PatientContact_organization(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) + 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 patientLinkImplementors = []string{"PatientLink"} + +func (ec *executionContext) _PatientLink(ctx context.Context, sel ast.SelectionSet, obj *model.PatientLink) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, patientLinkImplementors) + + 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("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": + out.Values[i] = ec._PatientLink_type(ctx, field, obj) + case "extension": + out.Values[i] = ec._PatientLink_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._PatientLink_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 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"} + +func (ec *executionContext) _PatientType(ctx context.Context, sel ast.SelectionSet, obj *model.PatientType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, patientTypeImplementors) + + 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("PatientType") + case "modifierExtension": + out.Values[i] = ec._PatientType_modifierExtension(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) + 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 "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 "resourceType": + out.Values[i] = ec._PatientType_resourceType(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 periodImplementors = []string{"Period"} + +func (ec *executionContext) _Period(ctx context.Context, sel ast.SelectionSet, obj *model.Period) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, periodImplementors) + + 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("Period") + 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)) + } + } + 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 practitionerCommunicationImplementors = []string{"PractitionerCommunication"} + +func (ec *executionContext) _PractitionerCommunication(ctx context.Context, sel ast.SelectionSet, obj *model.PractitionerCommunication) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, practitionerCommunicationImplementors) + + 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("PractitionerCommunication") + case "preferred": + out.Values[i] = ec._PractitionerCommunication_preferred(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._PractitionerCommunication_resourceType(ctx, field, obj) + case "extension": + out.Values[i] = ec._PractitionerCommunication_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._PractitionerCommunication_id(ctx, field, obj) + case "language": + out.Values[i] = ec._PractitionerCommunication_language(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._PractitionerCommunication_modifierExtension(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 practitionerQualificationImplementors = []string{"PractitionerQualification"} + +func (ec *executionContext) _PractitionerQualification(ctx context.Context, sel ast.SelectionSet, obj *model.PractitionerQualification) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, practitionerQualificationImplementors) + + 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("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": + out.Values[i] = ec._PractitionerQualification_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._PractitionerQualification_id(ctx, field, obj) + case "identifier": + out.Values[i] = ec._PractitionerQualification_identifier(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 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"} + +func (ec *executionContext) _PractitionerRoleType(ctx context.Context, sel ast.SelectionSet, obj *model.PractitionerRoleType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, practitionerRoleTypeImplementors) + + 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("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 "contained": + out.Values[i] = ec._PractitionerRoleType_contained(ctx, field, obj) + case "language": + out.Values[i] = ec._PractitionerRoleType_language(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 "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 "meta": + out.Values[i] = ec._PractitionerRoleType_meta(ctx, field, obj) + case "period": + out.Values[i] = ec._PractitionerRoleType_period(ctx, field, obj) + case "text": + out.Values[i] = ec._PractitionerRoleType_text(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 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"} + +func (ec *executionContext) _PractitionerType(ctx context.Context, sel ast.SelectionSet, obj *model.PractitionerType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, practitionerTypeImplementors) + + 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("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 "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 "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) + 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 procedureFocalDeviceImplementors = []string{"ProcedureFocalDevice"} + +func (ec *executionContext) _ProcedureFocalDevice(ctx context.Context, sel ast.SelectionSet, obj *model.ProcedureFocalDevice) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedureFocalDeviceImplementors) + + 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("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": + out.Values[i] = ec._ProcedureFocalDevice_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._ProcedureFocalDevice_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._ProcedureFocalDevice_resourceType(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 procedurePerformerImplementors = []string{"ProcedurePerformer"} + +func (ec *executionContext) _ProcedurePerformer(ctx context.Context, sel ast.SelectionSet, obj *model.ProcedurePerformer) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedurePerformerImplementors) + + 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("ProcedurePerformer") + case "function": + out.Values[i] = ec._ProcedurePerformer_function(ctx, field, obj) + case "id": + out.Values[i] = ec._ProcedurePerformer_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._ProcedurePerformer_modifierExtension(ctx, field, obj) + case "onBehalfOf": + out.Values[i] = ec._ProcedurePerformer_onBehalfOf(ctx, field, obj) + 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)) + } + } + 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 procedureTypeImplementors = []string{"ProcedureType", "MedicationAdministrationPartOfUnion", "MedicationStatementPartOfUnion", "ObservationSubjectUnion", "ObservationPartOfUnion", "ProcedurePartOfUnion", "DiagnosticReportSupportingInfoUnion", "DiagnosticReportSupportingInfoReferenceUnion", "ResourceUnion"} + +func (ec *executionContext) _ProcedureType(ctx context.Context, sel ast.SelectionSet, obj *model.ProcedureType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedureTypeImplementors) + + 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("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) + 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) + 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 "text": + out.Values[i] = ec._ProcedureType_text(ctx, field, obj) + case "meta": + out.Values[i] = ec._ProcedureType_meta(ctx, field, obj) + case "supportingInfo": + out.Values[i] = ec._ProcedureType_supportingInfo(ctx, field, obj) + 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 "performer": + out.Values[i] = ec._ProcedureType_performer(ctx, field, obj) + case "instantiatesCanonical": + out.Values[i] = ec._ProcedureType_instantiatesCanonical(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 "focus": + out.Values[i] = ec._ProcedureType_focus(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 quantityImplementors = []string{"Quantity"} + +func (ec *executionContext) _Quantity(ctx context.Context, sel ast.SelectionSet, obj *model.Quantity) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, quantityImplementors) + + 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("Quantity") + case "code": + out.Values[i] = ec._Quantity_code(ctx, field, obj) + case "comparator": + out.Values[i] = ec._Quantity_comparator(ctx, field, obj) + case "extension": + out.Values[i] = ec._Quantity_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._Quantity_id(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._Quantity_resourceType(ctx, field, obj) + case "system": + out.Values[i] = ec._Quantity_system(ctx, field, obj) + case "unit": + out.Values[i] = ec._Quantity_unit(ctx, field, obj) + case "value": + out.Values[i] = ec._Quantity_value(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 queryImplementors = []string{"Query"} + +func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors) + ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ + Object: "Query", + }) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ + Object: field.Name, + Field: field, + }) + + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Query") + case "organization": + field := field + + 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_organization(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "group": + field := field + + 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_group(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "practitioner": + field := field + + 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_practitioner(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "practitionerRole": + field := field + + 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_practitionerRole(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "researchStudy": + field := field + + 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_researchStudy(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "patient": + field := field + + 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_patient(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "researchSubject": + field := field + + 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_researchSubject(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "substance": + field := field + + 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_substance(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "substanceDefinition": + field := field + + 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_substanceDefinition(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "specimen": + field := field + + 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_specimen(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "observation": + field := field + + 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_observation(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "diagnosticReport": + field := field + + 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_diagnosticReport(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "condition": + field := field + + 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_condition(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "medication": + field := field + + 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_medication(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "medicationAdministration": + field := field + + 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_medicationAdministration(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "medicationStatement": + field := field + + 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_medicationStatement(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "medicationRequest": + field := field + + 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_medicationRequest(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "procedure": + field := field + + 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_procedure(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "documentReference": + field := field + + 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_documentReference(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "task": + field := field + + innerFunc := func(ctx context.Context, _ *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) + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "imagingStudy": + field := field + + 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_imagingStudy(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "familyMemberHistory": + field := field + + 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_familyMemberHistory(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "bodyStructure": + field := field + + 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_bodyStructure(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "__type": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query___type(ctx, field) + }) + case "__schema": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query___schema(ctx, field) + }) + 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 rangeImplementors = []string{"Range"} + +func (ec *executionContext) _Range(ctx context.Context, sel ast.SelectionSet, obj *model.Range) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, rangeImplementors) + + 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("Range") + 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)) + } + } + 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 ratioImplementors = []string{"Ratio"} + +func (ec *executionContext) _Ratio(ctx context.Context, sel ast.SelectionSet, obj *model.Ratio) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, ratioImplementors) + + 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("Ratio") + case "extension": + out.Values[i] = ec._Ratio_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._Ratio_id(ctx, field, obj) + case "numerator": + 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)) + } + } + 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 ratioRangeImplementors = []string{"RatioRange"} + +func (ec *executionContext) _RatioRange(ctx context.Context, sel ast.SelectionSet, obj *model.RatioRange) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, ratioRangeImplementors) + + 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("RatioRange") + case "resourceType": + out.Values[i] = ec._RatioRange_resourceType(ctx, field, obj) + case "denominator": + out.Values[i] = ec._RatioRange_denominator(ctx, field, obj) + case "extension": + out.Values[i] = ec._RatioRange_extension(ctx, field, obj) + case "highNumerator": + out.Values[i] = ec._RatioRange_highNumerator(ctx, field, obj) + case "id": + out.Values[i] = ec._RatioRange_id(ctx, field, obj) + case "lowNumerator": + out.Values[i] = ec._RatioRange_lowNumerator(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 referenceImplementors = []string{"Reference"} + +func (ec *executionContext) _Reference(ctx context.Context, sel ast.SelectionSet, obj *model.Reference) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, referenceImplementors) + + 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("Reference") + case "resourceType": + out.Values[i] = ec._Reference_resourceType(ctx, field, obj) + case "type": + out.Values[i] = ec._Reference_type(ctx, field, obj) + case "display": + out.Values[i] = ec._Reference_display(ctx, field, obj) + case "extension": + 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)) + } + } + 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 relatedArtifactImplementors = []string{"RelatedArtifact"} + +func (ec *executionContext) _RelatedArtifact(ctx context.Context, sel ast.SelectionSet, obj *model.RelatedArtifact) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, relatedArtifactImplementors) + + 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("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 "resourceReference": + out.Values[i] = ec._RelatedArtifact_resourceReference(ctx, field, obj) + 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 "resourceType": + out.Values[i] = ec._RelatedArtifact_resourceType(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 researchStudyAssociatedPartyImplementors = []string{"ResearchStudyAssociatedParty"} + +func (ec *executionContext) _ResearchStudyAssociatedParty(ctx context.Context, sel ast.SelectionSet, obj *model.ResearchStudyAssociatedParty) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, researchStudyAssociatedPartyImplementors) + + 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("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 "resourceType": + out.Values[i] = ec._ResearchStudyAssociatedParty_resourceType(ctx, field, obj) + case "classifier": + out.Values[i] = ec._ResearchStudyAssociatedParty_classifier(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 researchStudyComparisonGroupImplementors = []string{"ResearchStudyComparisonGroup"} + +func (ec *executionContext) _ResearchStudyComparisonGroup(ctx context.Context, sel ast.SelectionSet, obj *model.ResearchStudyComparisonGroup) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, researchStudyComparisonGroupImplementors) + + 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("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 "linkId": + out.Values[i] = ec._ResearchStudyComparisonGroup_linkId(ctx, field, obj) + case "type": + out.Values[i] = ec._ResearchStudyComparisonGroup_type(ctx, field, obj) + case "extension": + out.Values[i] = ec._ResearchStudyComparisonGroup_extension(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 researchStudyLabelImplementors = []string{"ResearchStudyLabel"} + +func (ec *executionContext) _ResearchStudyLabel(ctx context.Context, sel ast.SelectionSet, obj *model.ResearchStudyLabel) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, researchStudyLabelImplementors) + + 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("ResearchStudyLabel") + case "value": + out.Values[i] = ec._ResearchStudyLabel_value(ctx, field, obj) + case "extension": + out.Values[i] = ec._ResearchStudyLabel_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._ResearchStudyLabel_id(ctx, field, obj) + case "modifierExtension": + 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)) + } + } + 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 researchStudyObjectiveImplementors = []string{"ResearchStudyObjective"} + +func (ec *executionContext) _ResearchStudyObjective(ctx context.Context, sel ast.SelectionSet, obj *model.ResearchStudyObjective) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, researchStudyObjectiveImplementors) + + 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("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": + out.Values[i] = ec._ResearchStudyObjective_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._ResearchStudyObjective_modifierExtension(ctx, field, obj) + case "name": + out.Values[i] = ec._ResearchStudyObjective_name(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._ResearchStudyObjective_resourceType(ctx, field, obj) + case "type": + out.Values[i] = ec._ResearchStudyObjective_type(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 researchStudyOutcomeMeasureImplementors = []string{"ResearchStudyOutcomeMeasure"} + +func (ec *executionContext) _ResearchStudyOutcomeMeasure(ctx context.Context, sel ast.SelectionSet, obj *model.ResearchStudyOutcomeMeasure) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, researchStudyOutcomeMeasureImplementors) + + 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("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": + out.Values[i] = ec._ResearchStudyOutcomeMeasure_resourceType(ctx, field, obj) + case "type": + out.Values[i] = ec._ResearchStudyOutcomeMeasure_type(ctx, field, obj) + case "description": + out.Values[i] = ec._ResearchStudyOutcomeMeasure_description(ctx, field, obj) + case "extension": + out.Values[i] = ec._ResearchStudyOutcomeMeasure_extension(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 researchStudyProgressStatusImplementors = []string{"ResearchStudyProgressStatus"} + +func (ec *executionContext) _ResearchStudyProgressStatus(ctx context.Context, sel ast.SelectionSet, obj *model.ResearchStudyProgressStatus) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, researchStudyProgressStatusImplementors) + + 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("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": + out.Values[i] = ec._ResearchStudyProgressStatus_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._ResearchStudyProgressStatus_modifierExtension(ctx, field, obj) + case "period": + out.Values[i] = ec._ResearchStudyProgressStatus_period(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 researchStudyRecruitmentImplementors = []string{"ResearchStudyRecruitment"} + +func (ec *executionContext) _ResearchStudyRecruitment(ctx context.Context, sel ast.SelectionSet, obj *model.ResearchStudyRecruitment) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, researchStudyRecruitmentImplementors) + + 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("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) + case "extension": + out.Values[i] = ec._ResearchStudyRecruitment_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._ResearchStudyRecruitment_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._ResearchStudyRecruitment_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._ResearchStudyRecruitment_resourceType(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 researchStudyTypeImplementors = []string{"ResearchStudyType", "UsageContextValueReferenceUnion", "TaskInputValueUsageContextUnion", "ResearchStudySiteUnion", "ExtensionValueUsageContextUnion", "TaskOutputValueUsageContextUnion", "ResourceUnion"} + +func (ec *executionContext) _ResearchStudyType(ctx context.Context, sel ast.SelectionSet, obj *model.ResearchStudyType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, researchStudyTypeImplementors) + + 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("ResearchStudyType") + 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 "primaryPurposeType": + out.Values[i] = ec._ResearchStudyType_primaryPurposeType(ctx, field, obj) + case "comparisonGroup": + out.Values[i] = ec._ResearchStudyType_comparisonGroup(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) + case "associatedParty": + out.Values[i] = ec._ResearchStudyType_associatedParty(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 "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 "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 "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) + 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 researchSubjectProgressImplementors = []string{"ResearchSubjectProgress"} + +func (ec *executionContext) _ResearchSubjectProgress(ctx context.Context, sel ast.SelectionSet, obj *model.ResearchSubjectProgress) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, researchSubjectProgressImplementors) + + 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("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 "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) + 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 researchSubjectTypeImplementors = []string{"ResearchSubjectType", "ResourceUnion"} + +func (ec *executionContext) _ResearchSubjectType(ctx context.Context, sel ast.SelectionSet, obj *model.ResearchSubjectType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, researchSubjectTypeImplementors) + + 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("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 "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 "modifierExtension": + out.Values[i] = ec._ResearchSubjectType_modifierExtension(ctx, field, obj) + case "study": + out.Values[i] = ec._ResearchSubjectType_study(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 "assignedComparisonGroup": + out.Values[i] = ec._ResearchSubjectType_assignedComparisonGroup(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 sampledDataImplementors = []string{"SampledData"} + +func (ec *executionContext) _SampledData(ctx context.Context, sel ast.SelectionSet, obj *model.SampledData) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, sampledDataImplementors) + + 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("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 "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 "id": + out.Values[i] = ec._SampledData_id(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 "data": + out.Values[i] = ec._SampledData_data(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 signatureImplementors = []string{"Signature"} + +func (ec *executionContext) _Signature(ctx context.Context, sel ast.SelectionSet, obj *model.Signature) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, signatureImplementors) + + 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("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 "when": + out.Values[i] = ec._Signature_when(ctx, field, obj) + case "onBehalfOf": + out.Values[i] = ec._Signature_onBehalfOf(ctx, field, obj) + 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) + 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 specimenCollectionImplementors = []string{"SpecimenCollection"} + +func (ec *executionContext) _SpecimenCollection(ctx context.Context, sel ast.SelectionSet, obj *model.SpecimenCollection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, specimenCollectionImplementors) + + 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("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 "collector": + out.Values[i] = ec._SpecimenCollection_collector(ctx, field, obj) + 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) + case "collectedDateTime": + out.Values[i] = ec._SpecimenCollection_collectedDateTime(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)) + } + } + 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 specimenContainerImplementors = []string{"SpecimenContainer"} + +func (ec *executionContext) _SpecimenContainer(ctx context.Context, sel ast.SelectionSet, obj *model.SpecimenContainer) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, specimenContainerImplementors) + + 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("SpecimenContainer") + 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)) + } + } + 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 specimenFeatureImplementors = []string{"SpecimenFeature"} + +func (ec *executionContext) _SpecimenFeature(ctx context.Context, sel ast.SelectionSet, obj *model.SpecimenFeature) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, specimenFeatureImplementors) + + 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("SpecimenFeature") + case "extension": + out.Values[i] = ec._SpecimenFeature_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._SpecimenFeature_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._SpecimenFeature_modifierExtension(ctx, field, obj) + case "resourceType": + 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)) + } + } + 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 specimenProcessingImplementors = []string{"SpecimenProcessing"} + +func (ec *executionContext) _SpecimenProcessing(ctx context.Context, sel ast.SelectionSet, obj *model.SpecimenProcessing) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, specimenProcessingImplementors) + + 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("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 "description": + out.Values[i] = ec._SpecimenProcessing_description(ctx, field, obj) + case "id": + out.Values[i] = ec._SpecimenProcessing_id(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._SpecimenProcessing_resourceType(ctx, field, obj) + 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) + 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 specimenTypeImplementors = []string{"SpecimenType", "GroupMemberUnion", "GroupMemberEntityUnion", "ObservationSpecimenUnion", "ProcedureFocusUnion", "ResearchSubjectSubjectUnion", "ResourceUnion"} + +func (ec *executionContext) _SpecimenType(ctx context.Context, sel ast.SelectionSet, obj *model.SpecimenType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, specimenTypeImplementors) + + 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("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 "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 "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 "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) + case "meta": + out.Values[i] = ec._SpecimenType_meta(ctx, field, obj) + case "receivedTime": + out.Values[i] = ec._SpecimenType_receivedTime(ctx, field, obj) + case "feature": + out.Values[i] = ec._SpecimenType_feature(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) + 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) + 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 substanceDefinitionCharacterizationImplementors = []string{"SubstanceDefinitionCharacterization"} + +func (ec *executionContext) _SubstanceDefinitionCharacterization(ctx context.Context, sel ast.SelectionSet, obj *model.SubstanceDefinitionCharacterization) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, substanceDefinitionCharacterizationImplementors) + + 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("SubstanceDefinitionCharacterization") + case "modifierExtension": + out.Values[i] = ec._SubstanceDefinitionCharacterization_modifierExtension(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._SubstanceDefinitionCharacterization_resourceType(ctx, field, obj) + case "technique": + out.Values[i] = ec._SubstanceDefinitionCharacterization_technique(ctx, field, obj) + case "description": + out.Values[i] = ec._SubstanceDefinitionCharacterization_description(ctx, field, obj) + case "extension": + out.Values[i] = ec._SubstanceDefinitionCharacterization_extension(ctx, field, obj) + case "file": + out.Values[i] = ec._SubstanceDefinitionCharacterization_file(ctx, field, obj) + case "form": + out.Values[i] = ec._SubstanceDefinitionCharacterization_form(ctx, field, obj) + case "id": + out.Values[i] = ec._SubstanceDefinitionCharacterization_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 substanceDefinitionCodeImplementors = []string{"SubstanceDefinitionCode"} + +func (ec *executionContext) _SubstanceDefinitionCode(ctx context.Context, sel ast.SelectionSet, obj *model.SubstanceDefinitionCode) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, substanceDefinitionCodeImplementors) + + 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("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 "id": + out.Values[i] = ec._SubstanceDefinitionCode_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 substanceDefinitionMoietyImplementors = []string{"SubstanceDefinitionMoiety"} + +func (ec *executionContext) _SubstanceDefinitionMoiety(ctx context.Context, sel ast.SelectionSet, obj *model.SubstanceDefinitionMoiety) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, substanceDefinitionMoietyImplementors) + + 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("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 "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 "role": + out.Values[i] = ec._SubstanceDefinitionMoiety_role(ctx, field, obj) + case "id": + out.Values[i] = ec._SubstanceDefinitionMoiety_id(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 "amountQuantity": + out.Values[i] = ec._SubstanceDefinitionMoiety_amountQuantity(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 substanceDefinitionMolecularWeightImplementors = []string{"SubstanceDefinitionMolecularWeight"} + +func (ec *executionContext) _SubstanceDefinitionMolecularWeight(ctx context.Context, sel ast.SelectionSet, obj *model.SubstanceDefinitionMolecularWeight) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, substanceDefinitionMolecularWeightImplementors) + + 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("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": + out.Values[i] = ec._SubstanceDefinitionMolecularWeight_type(ctx, field, obj) + case "amount": + out.Values[i] = ec._SubstanceDefinitionMolecularWeight_amount(ctx, field, obj) + case "extension": + out.Values[i] = ec._SubstanceDefinitionMolecularWeight_extension(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 substanceDefinitionNameImplementors = []string{"SubstanceDefinitionName"} + +func (ec *executionContext) _SubstanceDefinitionName(ctx context.Context, sel ast.SelectionSet, obj *model.SubstanceDefinitionName) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, substanceDefinitionNameImplementors) + + 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("SubstanceDefinitionName") + case "status": + out.Values[i] = ec._SubstanceDefinitionName_status(ctx, field, obj) + case "synonym": + out.Values[i] = ec._SubstanceDefinitionName_synonym(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) + case "resourceType": + out.Values[i] = ec._SubstanceDefinitionName_resourceType(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 substanceDefinitionNameOfficialImplementors = []string{"SubstanceDefinitionNameOfficial"} + +func (ec *executionContext) _SubstanceDefinitionNameOfficial(ctx context.Context, sel ast.SelectionSet, obj *model.SubstanceDefinitionNameOfficial) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, substanceDefinitionNameOfficialImplementors) + + 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("SubstanceDefinitionNameOfficial") + case "resourceType": + out.Values[i] = ec._SubstanceDefinitionNameOfficial_resourceType(ctx, field, obj) + case "status": + out.Values[i] = ec._SubstanceDefinitionNameOfficial_status(ctx, field, obj) + case "authority": + out.Values[i] = ec._SubstanceDefinitionNameOfficial_authority(ctx, field, obj) + case "date": + 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)) + } + } + 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 substanceDefinitionPropertyImplementors = []string{"SubstanceDefinitionProperty"} + +func (ec *executionContext) _SubstanceDefinitionProperty(ctx context.Context, sel ast.SelectionSet, obj *model.SubstanceDefinitionProperty) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, substanceDefinitionPropertyImplementors) + + 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("SubstanceDefinitionProperty") + case "extension": + out.Values[i] = ec._SubstanceDefinitionProperty_extension(ctx, field, obj) + case "modifierExtension": + 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 "resourceType": + out.Values[i] = ec._SubstanceDefinitionProperty_resourceType(ctx, field, obj) + case "type": + out.Values[i] = ec._SubstanceDefinitionProperty_type(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)) + } + } + 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 substanceDefinitionRelationshipImplementors = []string{"SubstanceDefinitionRelationship"} + +func (ec *executionContext) _SubstanceDefinitionRelationship(ctx context.Context, sel ast.SelectionSet, obj *model.SubstanceDefinitionRelationship) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, substanceDefinitionRelationshipImplementors) + + 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("SubstanceDefinitionRelationship") + case "substanceDefinitionReference": + out.Values[i] = ec._SubstanceDefinitionRelationship_substanceDefinitionReference(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 "comparator": + out.Values[i] = ec._SubstanceDefinitionRelationship_comparator(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) + 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 substanceDefinitionSourceMaterialImplementors = []string{"SubstanceDefinitionSourceMaterial"} + +func (ec *executionContext) _SubstanceDefinitionSourceMaterial(ctx context.Context, sel ast.SelectionSet, obj *model.SubstanceDefinitionSourceMaterial) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, substanceDefinitionSourceMaterialImplementors) + + 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("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 "id": + out.Values[i] = ec._SubstanceDefinitionSourceMaterial_id(ctx, field, obj) + case "species": + out.Values[i] = ec._SubstanceDefinitionSourceMaterial_species(ctx, field, obj) + case "part": + out.Values[i] = ec._SubstanceDefinitionSourceMaterial_part(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 substanceDefinitionStructureImplementors = []string{"SubstanceDefinitionStructure"} + +func (ec *executionContext) _SubstanceDefinitionStructure(ctx context.Context, sel ast.SelectionSet, obj *model.SubstanceDefinitionStructure) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, substanceDefinitionStructureImplementors) + + 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("SubstanceDefinitionStructure") + case "sourceDocument": + out.Values[i] = ec._SubstanceDefinitionStructure_sourceDocument(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 "extension": + out.Values[i] = ec._SubstanceDefinitionStructure_extension(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 substanceDefinitionStructureRepresentationImplementors = []string{"SubstanceDefinitionStructureRepresentation"} + +func (ec *executionContext) _SubstanceDefinitionStructureRepresentation(ctx context.Context, sel ast.SelectionSet, obj *model.SubstanceDefinitionStructureRepresentation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, substanceDefinitionStructureRepresentationImplementors) + + 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("SubstanceDefinitionStructureRepresentation") + case "document": + out.Values[i] = ec._SubstanceDefinitionStructureRepresentation_document(ctx, field, obj) + case "extension": + out.Values[i] = ec._SubstanceDefinitionStructureRepresentation_extension(ctx, field, obj) + case "format": + out.Values[i] = ec._SubstanceDefinitionStructureRepresentation_format(ctx, field, obj) + case "id": + out.Values[i] = ec._SubstanceDefinitionStructureRepresentation_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._SubstanceDefinitionStructureRepresentation_modifierExtension(ctx, field, obj) + case "representation": + out.Values[i] = ec._SubstanceDefinitionStructureRepresentation_representation(ctx, field, obj) + case "resourceType": + out.Values[i] = ec._SubstanceDefinitionStructureRepresentation_resourceType(ctx, field, obj) + case "type": + out.Values[i] = ec._SubstanceDefinitionStructureRepresentation_type(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 substanceDefinitionTypeImplementors = []string{"SubstanceDefinitionType", "ResourceUnion"} + +func (ec *executionContext) _SubstanceDefinitionType(ctx context.Context, sel ast.SelectionSet, obj *model.SubstanceDefinitionType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, substanceDefinitionTypeImplementors) + + 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("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 "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) + 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 "property": + out.Values[i] = ec._SubstanceDefinitionType_property(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 substanceIngredientImplementors = []string{"SubstanceIngredient"} + +func (ec *executionContext) _SubstanceIngredient(ctx context.Context, sel ast.SelectionSet, obj *model.SubstanceIngredient) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, substanceIngredientImplementors) + + 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("SubstanceIngredient") + case "substanceReference": + out.Values[i] = ec._SubstanceIngredient_substanceReference(ctx, field, obj) + case "extension": + out.Values[i] = ec._SubstanceIngredient_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._SubstanceIngredient_id(ctx, field, obj) + case "modifierExtension": + 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)) + } + } + 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 substanceTypeImplementors = []string{"SubstanceType", "SpecimenSubjectUnion", "ObservationSubjectUnion", "ResearchSubjectSubjectUnion", "DiagnosticReportSubjectUnion", "ResourceUnion"} + +func (ec *executionContext) _SubstanceType(ctx context.Context, sel ast.SelectionSet, obj *model.SubstanceType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, substanceTypeImplementors) + + 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("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 "identifier": + out.Values[i] = ec._SubstanceType_identifier(ctx, field, obj) + case "contained": + out.Values[i] = ec._SubstanceType_contained(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 "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 "meta": + out.Values[i] = ec._SubstanceType_meta(ctx, field, obj) + case "code": + out.Values[i] = ec._SubstanceType_code(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) + 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 taskInputImplementors = []string{"TaskInput"} + +func (ec *executionContext) _TaskInput(ctx context.Context, sel ast.SelectionSet, obj *model.TaskInput) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, taskInputImplementors) + + 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("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 "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 "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 "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 "resourceType": + out.Values[i] = ec._TaskInput_resourceType(ctx, field, obj) + case "valueRatio": + out.Values[i] = ec._TaskInput_valueRatio(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 "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 "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 "valueDuration": + out.Values[i] = ec._TaskInput_valueDuration(ctx, field, obj) + case "valueString": + out.Values[i] = ec._TaskInput_valueString(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) + 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 taskOutputImplementors = []string{"TaskOutput"} + +func (ec *executionContext) _TaskOutput(ctx context.Context, sel ast.SelectionSet, obj *model.TaskOutput) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, taskOutputImplementors) + + 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("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 "valueUri": + out.Values[i] = ec._TaskOutput_valueUri(ctx, field, obj) + case "valueContactPoint": + out.Values[i] = ec._TaskOutput_valueContactPoint(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 "valueDateTime": + out.Values[i] = ec._TaskOutput_valueDateTime(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 "valueDecimal": + out.Values[i] = ec._TaskOutput_valueDecimal(ctx, field, obj) + case "valueQuantity": + out.Values[i] = ec._TaskOutput_valueQuantity(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 taskPerformerImplementors = []string{"TaskPerformer"} + +func (ec *executionContext) _TaskPerformer(ctx context.Context, sel ast.SelectionSet, obj *model.TaskPerformer) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, taskPerformerImplementors) + + 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("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) + case "extension": + out.Values[i] = ec._TaskPerformer_extension(ctx, field, obj) + case "function": + out.Values[i] = ec._TaskPerformer_function(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 taskRestrictionImplementors = []string{"TaskRestriction"} + +func (ec *executionContext) _TaskRestriction(ctx context.Context, sel ast.SelectionSet, obj *model.TaskRestriction) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, taskRestrictionImplementors) + + 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("TaskRestriction") + case "resourceType": + out.Values[i] = ec._TaskRestriction_resourceType(ctx, field, obj) + case "extension": + out.Values[i] = ec._TaskRestriction_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._TaskRestriction_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._TaskRestriction_modifierExtension(ctx, field, obj) + case "period": + 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) + 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 taskTypeImplementors = []string{"TaskType", "ImagingStudyBasedOnUnion", "ResourceUnion"} + +func (ec *executionContext) _TaskType(ctx context.Context, sel ast.SelectionSet, obj *model.TaskType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, taskTypeImplementors) + + 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("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 "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) + case "note": + out.Values[i] = ec._TaskType_note(ctx, field, obj) + case "executionPeriod": + out.Values[i] = ec._TaskType_executionPeriod(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 "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 "statusReason": + out.Values[i] = ec._TaskType_statusReason(ctx, field, obj) + case "doNotPerform": + out.Values[i] = ec._TaskType_doNotPerform(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 timingImplementors = []string{"Timing"} + +func (ec *executionContext) _Timing(ctx context.Context, sel ast.SelectionSet, obj *model.Timing) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, timingImplementors) + + 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("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": + out.Values[i] = ec._Timing_event(ctx, field, obj) + case "extension": + out.Values[i] = ec._Timing_extension(ctx, field, obj) + case "id": + out.Values[i] = ec._Timing_id(ctx, field, obj) + case "modifierExtension": + out.Values[i] = ec._Timing_modifierExtension(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 timingRepeatImplementors = []string{"TimingRepeat"} + +func (ec *executionContext) _TimingRepeat(ctx context.Context, sel ast.SelectionSet, obj *model.TimingRepeat) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, timingRepeatImplementors) + + 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("TimingRepeat") + case "boundsRange": + out.Values[i] = ec._TimingRepeat_boundsRange(ctx, field, obj) + case "countMax": + out.Values[i] = ec._TimingRepeat_countMax(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 "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 "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) + 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 triggerDefinitionImplementors = []string{"TriggerDefinition"} + +func (ec *executionContext) _TriggerDefinition(ctx context.Context, sel ast.SelectionSet, obj *model.TriggerDefinition) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, triggerDefinitionImplementors) + + 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("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 "code": + out.Values[i] = ec._TriggerDefinition_code(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 "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) + 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 usageContextImplementors = []string{"UsageContext"} + +func (ec *executionContext) _UsageContext(ctx context.Context, sel ast.SelectionSet, obj *model.UsageContext) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, usageContextImplementors) + + 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("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": + out.Values[i] = ec._UsageContext_resourceType(ctx, field, obj) + case "valueCodeableConcept": + out.Values[i] = ec._UsageContext_valueCodeableConcept(ctx, field, obj) + case "valueQuantity": + out.Values[i] = ec._UsageContext_valueQuantity(ctx, field, obj) + case "valueRange": + out.Values[i] = ec._UsageContext_valueRange(ctx, field, obj) + case "valueReference": + out.Values[i] = ec._UsageContext_valueReference(ctx, field, obj) + case "code": + out.Values[i] = ec._UsageContext_code(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 virtualServiceDetailImplementors = []string{"VirtualServiceDetail"} + +func (ec *executionContext) _VirtualServiceDetail(ctx context.Context, sel ast.SelectionSet, obj *model.VirtualServiceDetail) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, virtualServiceDetailImplementors) + + 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("VirtualServiceDetail") + 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 "addressString": + out.Values[i] = ec._VirtualServiceDetail_addressString(ctx, field, obj) + case "addressUrl": + out.Values[i] = ec._VirtualServiceDetail_addressUrl(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)) + } + } + 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 __DirectiveImplementors = []string{"__Directive"} + +func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) + + 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("__Directive") + case "name": + out.Values[i] = ec.___Directive_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "description": + out.Values[i] = ec.___Directive_description(ctx, field, obj) + case "locations": + out.Values[i] = ec.___Directive_locations(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "args": + out.Values[i] = ec.___Directive_args(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(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 __EnumValueImplementors = []string{"__EnumValue"} + +func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) + + 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("__EnumValue") + case "name": + out.Values[i] = ec.___EnumValue_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "description": + out.Values[i] = ec.___EnumValue_description(ctx, field, obj) + case "isDeprecated": + out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deprecationReason": + out.Values[i] = ec.___EnumValue_deprecationReason(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 __FieldImplementors = []string{"__Field"} + +func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) + + 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("__Field") + case "name": + out.Values[i] = ec.___Field_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "description": + out.Values[i] = ec.___Field_description(ctx, field, obj) + case "args": + out.Values[i] = ec.___Field_args(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "type": + out.Values[i] = ec.___Field_type(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isDeprecated": + out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deprecationReason": + out.Values[i] = ec.___Field_deprecationReason(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 __InputValueImplementors = []string{"__InputValue"} + +func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) + + 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("__InputValue") + case "name": + out.Values[i] = ec.___InputValue_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + 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() + } + 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) + } + + } + 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 { + 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 + } + return ec._ImagingStudySeriesPerformerActorUnion(ctx, sel, v) +} + +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() + } + ret[i] = ec.marshalOImagingStudySeriesPerformerActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesPerformerActorUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret +} + +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 + } + return ec._ImagingStudySeriesPerformerUnion(ctx, sel, v) +} + +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() + } + ret[i] = ec.marshalOImagingStudySeriesPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySeriesPerformerUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret +} + +func (ec *executionContext) marshalOImagingStudySubjectUnion2githubᚗ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 + } + return ec._ImagingStudySubjectUnion(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 + } + 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.marshalOImagingStudySubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImagingStudySubjectUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + 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.marshalOImmunizationPerformer2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationPerformer(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ImmunizationPerformer(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 { + 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) + } + + } + wg.Wait() + + return ret +} + +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 + } + 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) + } + + } + wg.Wait() + + return ret +} + +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 + } + 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.marshalOImmunizationReaction2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐImmunizationReaction(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ImmunizationReaction(ctx, sel, v) +} + +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 + } + 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) 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) marshalOMedicationAdministrationNoteUnion2githubᚗ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 + } + return ec._MedicationAdministrationNoteUnion(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 + } + 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.marshalOMedicationAdministrationNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationNoteUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._MedicationAdministrationPartOfUnion(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 { + 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) + } + + } + 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 + } + 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) 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) 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 + } + 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.marshalOMedicationAdministrationSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationAdministrationSubjectUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + 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 + } + 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) + } + + } + wg.Wait() + + return ret +} + +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) marshalOMedicationRequestBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestBasedOnUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestBasedOnUnion) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._MedicationRequestBasedOnUnion(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 { + 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.marshalOMedicationRequestBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestBasedOnUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret +} + +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) marshalOMedicationRequestDispenseRequestDispenserInstructionUnion2githubᚗ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 + } + return ec._MedicationRequestDispenseRequestDispenserInstructionUnion(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 { + 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.marshalOMedicationRequestDispenseRequestDispenserInstructionUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestDispenseRequestDispenserInstructionUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._MedicationRequestDispenseRequestInitialFill(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 { + if v == nil { + return graphql.Null + } + return ec._MedicationRequestInformationSourceUnion(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 { + 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.marshalOMedicationRequestInformationSourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestInformationSourceUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._MedicationRequestNoteUnion(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 { + 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) + } + + } + wg.Wait() + + return ret +} + +func (ec *executionContext) marshalOMedicationRequestPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestPerformerUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationRequestPerformerUnion) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._MedicationRequestPerformerUnion(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 { + 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.marshalOMedicationRequestPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestPerformerUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret +} + +func (ec *executionContext) marshalOMedicationRequestRecorderUnion2githubᚗ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 + } + return ec._MedicationRequestRecorderUnion(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 { + 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.marshalOMedicationRequestRecorderUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestRecorderUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._MedicationRequestRequesterUnion(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 { + 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) + } + + } + wg.Wait() + + return ret +} + +func (ec *executionContext) marshalOMedicationRequestSubjectUnion2githubᚗ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 + } + return ec._MedicationRequestSubjectUnion(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 + } + 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.marshalOMedicationRequestSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestSubjectUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._MedicationRequestSubstitution(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 { + 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) + } + + } + wg.Wait() + + return ret +} + +func (ec *executionContext) marshalOMedicationRequestType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationRequestType(ctx context.Context, sel ast.SelectionSet, v *model.MedicationRequestType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._MedicationRequestType(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) marshalOMedicationStatementInformationSourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementInformationSourceUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationStatementInformationSourceUnion) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._MedicationStatementInformationSourceUnion(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 { + 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) + } + + } + wg.Wait() + + return ret +} + +func (ec *executionContext) marshalOMedicationStatementNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationStatementNoteUnion) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._MedicationStatementNoteUnion(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 { + 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.marshalOMedicationStatementNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementNoteUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._MedicationStatementPartOfUnion(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 { + 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.marshalOMedicationStatementPartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementPartOfUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret +} + +func (ec *executionContext) marshalOMedicationStatementRelatedClinicalInformationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementRelatedClinicalInformationUnion(ctx context.Context, sel ast.SelectionSet, v model.MedicationStatementRelatedClinicalInformationUnion) graphql.Marshaler { + if v == nil { + 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 { + 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.marshalOMedicationStatementRelatedClinicalInformationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementRelatedClinicalInformationUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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) 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 + } + 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.marshalOMedicationStatementSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐMedicationStatementSubjectUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + 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) marshalOObservationBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationBasedOnUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationBasedOnUnion) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ObservationBasedOnUnion(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 { + 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.marshalOObservationBasedOnUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationBasedOnUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + 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.marshalOObservationComponent2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationComponent(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ObservationComponent(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 { + if v == nil { + return graphql.Null + } + return ec._ObservationDerivedFromUnion(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 { + 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.marshalOObservationDerivedFromUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationDerivedFromUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ObservationHasMemberUnion(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 + } + 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.marshalOObservationHasMemberUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationHasMemberUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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) 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 + } + 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.marshalOObservationNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationNoteUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ObservationPartOfUnion(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 { + 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.marshalOObservationPartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationPartOfUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret +} + +func (ec *executionContext) marshalOObservationPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationPerformerUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationPerformerUnion) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ObservationPerformerUnion(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 { + 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.marshalOObservationPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationPerformerUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + 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.marshalOObservationReferenceRange2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationReferenceRange(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ObservationReferenceRange(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 { + if v == nil { + return graphql.Null + } + return ec._ObservationSpecimenUnion(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 { + 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.marshalOObservationSpecimenUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationSpecimenUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret +} + +func (ec *executionContext) marshalOObservationSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationSubjectUnion(ctx context.Context, sel ast.SelectionSet, v model.ObservationSubjectUnion) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ObservationSubjectUnion(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 { + 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.marshalOObservationTriggeredBy2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationTriggeredBy(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ObservationTriggeredBy(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 { + 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.marshalOObservationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐObservationType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ObservationType(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 { + 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.marshalOOrganizationQualification2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationQualification(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret +} + +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) marshalOOrganizationType2ᚕᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx context.Context, sel ast.SelectionSet, v []*model.OrganizationType) 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.marshalOOrganizationType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐOrganizationType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._OrganizationType(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 + } + 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.marshalOPatientCommunication2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientCommunication(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._PatientCommunication(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 + } + 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.marshalOPatientContact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientContact(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._PatientContact(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 { + if v == nil { + return graphql.Null + } + return ec._PatientGeneralPractitionerUnion(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 { + 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.marshalOPatientGeneralPractitionerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientGeneralPractitionerUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret +} + +func (ec *executionContext) marshalOPatientLinkOtherUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientLinkOtherUnion(ctx context.Context, sel ast.SelectionSet, v model.PatientLinkOtherUnion) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._PatientLinkOtherUnion(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 { + 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.marshalOPatientLinkOtherUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientLinkOtherUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret +} + +func (ec *executionContext) marshalOPatientLinkUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientLinkUnion(ctx context.Context, sel ast.SelectionSet, v model.PatientLinkUnion) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._PatientLinkUnion(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 { + 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.marshalOPatientLinkUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientLinkUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 + } + 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.marshalOPatientType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPatientType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 + } + return ec._PatientType(ctx, sel, v) +} + +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 + } + 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.marshalOPeriod2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPeriod(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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) 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 + } + 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.marshalOPractitionerCommunication2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerCommunication(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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) 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 + } + 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.marshalOPractitionerQualification2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerQualification(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._PractitionerQualification(ctx, sel, 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 { + 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.marshalOPractitionerType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐPractitionerType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._PractitionerType(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 + } + 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.marshalOProcedureFocalDevice2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureFocalDevice(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ProcedureFocusUnion(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 { + 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.marshalOProcedureFocusUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureFocusUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ProcedureNoteUnion(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 { + 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.marshalOProcedureNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureNoteUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ProcedurePartOfUnion(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 { + 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.marshalOProcedurePartOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePartOfUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ProcedurePerformerActorUnion(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 { + 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.marshalOProcedurePerformerActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePerformerActorUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ProcedurePerformerUnion(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 { + 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.marshalOProcedurePerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedurePerformerUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ProcedureRecorderUnion(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 { + 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.marshalOProcedureRecorderUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureRecorderUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ProcedureReportUnion(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 { + 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.marshalOProcedureReportUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureReportUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ProcedureReportedReferenceUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalOProcedureReportedReferenceUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureReportedReferenceUnion(ctx context.Context, sel ast.SelectionSet, v []model.ProcedureReportedReferenceUnion) 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.marshalOProcedureReportedReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureReportedReferenceUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ProcedureSubjectUnion(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 { + 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.marshalOProcedureSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureSubjectUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + 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.marshalOProcedureType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐProcedureType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ProcedureType(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 { + 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.marshalOQuantity2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐQuantity(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._Quantity(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 { + if v == nil { + return graphql.Null + } + return ec._Range(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 { + 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.marshalORatio2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRatio(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + 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 + } + 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.marshalORelatedArtifact2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐRelatedArtifact(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ResearchStudyAssociatedPartyPartyUnion(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 { + 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.marshalOResearchStudyAssociatedPartyPartyUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyAssociatedPartyPartyUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ResearchStudyAssociatedPartyUnion(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 { + 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.marshalOResearchStudyAssociatedPartyUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyAssociatedPartyUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + 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.marshalOResearchStudyComparisonGroup2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyComparisonGroup(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ResearchStudyComparisonGroup(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 { + 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.marshalOResearchStudyLabel2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyLabel(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ResearchStudyLabel(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 { + if v == nil { + return graphql.Null + } + return ec._ResearchStudyNoteUnion(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 { + 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.marshalOResearchStudyNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyNoteUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + 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.marshalOResearchStudyObjective2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyObjective(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ResearchStudyObjective(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 { + 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.marshalOResearchStudyOutcomeMeasure2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyOutcomeMeasure(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ResearchStudyOutcomeMeasure(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 { + 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.marshalOResearchStudyProgressStatus2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyProgressStatus(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ResearchStudyProgressStatus(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 { + if v == nil { + return graphql.Null + } + return ec._ResearchStudyRecruitmentEligibilityUnion(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 { + 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.marshalOResearchStudyRecruitmentEligibilityUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyRecruitmentEligibilityUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ResearchStudyRecruitmentUnion(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 { + 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.marshalOResearchStudyRecruitmentUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyRecruitmentUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ResearchStudyResultUnion(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 { + 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.marshalOResearchStudyResultUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyResultUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ResearchStudySiteUnion(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 { + 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.marshalOResearchStudySiteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudySiteUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + 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.marshalOResearchStudyType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchStudyType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ResearchStudyType(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 { + 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.marshalOResearchSubjectProgress2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectProgress(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._ResearchSubjectSubjectUnion(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 { + 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.marshalOResearchSubjectSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResearchSubjectSubjectUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + 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 + } + 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.marshalOResourceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐResourceUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._SampledData(ctx, sel, v) +} + +func (ec *executionContext) marshalOSignatureOnBehalfOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSignatureOnBehalfOfUnion(ctx context.Context, sel ast.SelectionSet, v model.SignatureOnBehalfOfUnion) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._SignatureOnBehalfOfUnion(ctx, sel, 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 { + 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.marshalOSignatureOnBehalfOfUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSignatureOnBehalfOfUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._SignatureWhoUnion(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 { + 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.marshalOSignatureWhoUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSignatureWhoUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._SpecimenCollectionCollectorUnion(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 { + 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.marshalOSpecimenCollectionCollectorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenCollectionCollectorUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._SpecimenCollectionUnion(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 { + 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.marshalOSpecimenCollectionUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenCollectionUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + 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.marshalOSpecimenContainer2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenContainer(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._SpecimenContainer(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 { + 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.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) marshalOSpecimenNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenNoteUnion(ctx context.Context, sel ast.SelectionSet, v model.SpecimenNoteUnion) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._SpecimenNoteUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalOSpecimenNoteUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenNoteUnion(ctx context.Context, sel ast.SelectionSet, v []model.SpecimenNoteUnion) 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.marshalOSpecimenNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenNoteUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + 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.marshalOSpecimenProcessing2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenProcessing(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._SpecimenProcessing(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 { + if v == nil { + return graphql.Null + } + return ec._SpecimenSubjectUnion(ctx, sel, v) +} + +func (ec *executionContext) marshalOSpecimenSubjectUnion2ᚕgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenSubjectUnion(ctx context.Context, sel ast.SelectionSet, v []model.SpecimenSubjectUnion) 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.marshalOSpecimenSubjectUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenSubjectUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 + } + 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.marshalOSpecimenType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSpecimenType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + 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 + } + 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.marshalOSubstanceDefinitionCharacterization2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCharacterization(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._SubstanceDefinitionCharacterization(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 { + 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.marshalOSubstanceDefinitionCode2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCode(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._SubstanceDefinitionCodeNoteUnion(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 { + 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.marshalOSubstanceDefinitionCodeNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionCodeNoteUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + 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.marshalOSubstanceDefinitionMoiety2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMoiety(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._SubstanceDefinitionMoiety(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 { + 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.marshalOSubstanceDefinitionMolecularWeight2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionMolecularWeight(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._SubstanceDefinitionMolecularWeight(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 { + 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.marshalOSubstanceDefinitionName2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionName(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._SubstanceDefinitionName(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 { + 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.marshalOSubstanceDefinitionNameOfficial2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionNameOfficial(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._SubstanceDefinitionNoteUnion(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 { + 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.marshalOSubstanceDefinitionNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionNoteUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + 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.marshalOSubstanceDefinitionProperty2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionProperty(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._SubstanceDefinitionProperty(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 { + 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.marshalOSubstanceDefinitionRelationship2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionRelationship(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + 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 + } + 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.marshalOSubstanceDefinitionStructureRepresentation2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionStructureRepresentation(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._SubstanceDefinitionStructureRepresentation(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 { + 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.marshalOSubstanceDefinitionType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceDefinitionType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._SubstanceDefinitionType(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 { + 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.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) 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._SubstanceIngredient(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 { + 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.marshalOSubstanceType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐSubstanceType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._SubstanceType(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 { + 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.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) 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 { + if v == nil { + return graphql.Null + } + return ec._TaskInputValueAnnotationUnion(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 { + 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.marshalOTaskInputValueAnnotationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueAnnotationUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._TaskInputValueSignatureUnion(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 { + 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.marshalOTaskInputValueSignatureUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueSignatureUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._TaskInputValueUsageContextUnion(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 { + 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.marshalOTaskInputValueUsageContextUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskInputValueUsageContextUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._TaskNoteUnion(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 { + 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.marshalOTaskNoteUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskNoteUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 + } + 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.marshalOTaskOutput2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutput(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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) marshalOTaskOutputValueAnnotationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueAnnotationUnion(ctx context.Context, sel ast.SelectionSet, v model.TaskOutputValueAnnotationUnion) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._TaskOutputValueAnnotationUnion(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 { + 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.marshalOTaskOutputValueAnnotationUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueAnnotationUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._TaskOutputValueSignatureUnion(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 { + 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.marshalOTaskOutputValueSignatureUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueSignatureUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._TaskOutputValueUsageContextUnion(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 { + 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.marshalOTaskOutputValueUsageContextUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOutputValueUsageContextUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._TaskOwnerUnion(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 { + 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.marshalOTaskOwnerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskOwnerUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._TaskPerformerActorUnion(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 { + 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.marshalOTaskPerformerActorUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskPerformerActorUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._TaskPerformerUnion(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 { + 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.marshalOTaskPerformerUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskPerformerUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._TaskRequesterUnion(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 { + 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.marshalOTaskRequesterUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRequesterUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._TaskRestrictionRecipientUnion(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 { + 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.marshalOTaskRestrictionRecipientUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRestrictionRecipientUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._TaskRestrictionUnion(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 { + 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.marshalOTaskRestrictionUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskRestrictionUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + 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.marshalOTaskType2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐTaskType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + 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 { + if v == nil { + return graphql.Null + } + return ec._TaskType(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) marshalOUsageContextValueReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐUsageContextValueReferenceUnion(ctx context.Context, sel ast.SelectionSet, v model.UsageContextValueReferenceUnion) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._UsageContextValueReferenceUnion(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 { + 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.marshalOUsageContextValueReferenceUnion2githubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐUsageContextValueReferenceUnion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret +} + +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 + } + 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.marshalOVirtualServiceDetail2ᚖgithubᚗcomᚋbmegᚋgripᚑgraphqlᚋgqlᚑgenᚋmodelᚐVirtualServiceDetail(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret +} + +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 + } + return ec._VirtualServiceDetail(ctx, sel, v) +} + +func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) 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.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(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) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) 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.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(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) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) 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.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) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec.___Schema(ctx, sel, v) +} + +func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) 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.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) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec.___Type(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/gql-gen/gqlgen.yml b/gql-gen/gqlgen.yml new file mode 100644 index 0000000..84de57e --- /dev/null +++ b/gql-gen/gqlgen.yml @@ -0,0 +1,24 @@ +# Where are all the schema files located? globs are supported eg src/**/*.graphqls +schema: + - graph/schema.graphql +exec: + package: generated + layout: single-file + filename: generated/exec.go +model: + filename: model/generated.go + package: model +resolver: + package: graph + filename: graph/resolver.go + 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 new file mode 100644 index 0000000..38b7524 --- /dev/null +++ b/gql-gen/graph/collectFields.go @@ -0,0 +1,168 @@ +package graph + +import ( + "context" + "fmt" + "reflect" + "strings" + + "github.com/99designs/gqlgen/graphql" + "github.com/bmeg/grip/gripql" + "github.com/vektah/gqlparser/v2/ast" +) + +type Resolver struct { + GripDb gripql.Client + Schema *ast.Schema +} + +type renderTree struct { + prevName string + moved bool + rFieldPaths map[string][]string + rTree map[string]interface{} +} + +func (rt *renderTree) NewElement() string { + rName := fmt.Sprintf("f%d", len(rt.rFieldPaths)) + rt.rFieldPaths[rName] = []string{} + return rName +} + +func queryBuild(query **gripql.Query, selSet ast.SelectionSet, curElement string, rt *renderTree, parentPath string, currentTree map[string]any) { + // Recursively traverses AST and builds grip query, renders field tree + for _, s := range selSet { + switch sel := s.(type) { + case *ast.Field: + rt.prevName = sel.Name + newParentPath := parentPath + "." + sel.Name + if parentPath == "" { + newParentPath = sel.Name + } + if rt.moved { + *query = (*query).Select(curElement) + rt.moved = false + } + if sel.SelectionSet == nil { + // Full render paths can be stored, but all that is needed is the top level key names. + firstTerm := newParentPath + if dotIndex := strings.Index(newParentPath, "."); dotIndex != -1 { + firstTerm = newParentPath[:dotIndex] + } + exists := false + for _, term := range rt.rFieldPaths[curElement] { + if term == firstTerm { + exists = true + break + } + } + if !exists { + rt.rFieldPaths[curElement] = append(rt.rFieldPaths[curElement], firstTerm) + } + //rt.rFieldPaths[curElement] = append(rt.rFieldPaths[curElement], newParentPath) + currentTree[curElement] = rt.rFieldPaths[curElement] + } else { + queryBuild(query, sel.SelectionSet, curElement, rt, newParentPath, currentTree) + } + case *ast.InlineFragment: + elem := rt.NewElement() + if _, exists := currentTree[rt.prevName]; !exists { + currentTree[rt.prevName] = map[string]any{"__typename": sel.TypeCondition} + } + fragmentTree := currentTree[rt.prevName].(map[string]interface{}) + //[sel.TypeCondition].(map[string]interface{}) + *query = (*query).OutNull(rt.prevName + "_" + sel.TypeCondition[:len(sel.TypeCondition)-4]).As(elem) + queryBuild(query, sel.SelectionSet, elem, rt, "", fragmentTree) + rt.moved = true + default: + panic(fmt.Errorf("unsupported type: %T", sel)) + } + } +} + +func (r *queryResolver) GetSelectedFieldsAst(ctx context.Context, sourceType string) ([]any, error) { + resctx := graphql.GetFieldContext(ctx) + rt := &renderTree{ + rFieldPaths: map[string][]string{"f0": []string{}}, + rTree: map[string]any{}, + } + 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) + + render := map[string]any{} + for checkpoint, paths := range rt.rFieldPaths { + render[checkpoint+"_gid"] = "$" + checkpoint + ".id" + for _, path := range paths { + render[path+"_data"] = "$" + checkpoint + "." + path + } + } + + //fmt.Printf("RENDER: %#v\n", render) + q = q.Limit(10).Render(render) + + result, err := r.GripDb.Traversal(context.Background(), &gripql.GraphQuery{Graph: "CALIPER", Query: q.Statements}) + if err != nil { + return nil, fmt.Errorf("Traversal Error: %s", err) + } + + out := []any{} + for r := range result { + values := r.GetRender().GetStructValue().AsMap() + //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 +} + +func buildOutputTree(renderTree map[string]interface{}, values map[string]interface{}) map[string]interface{} { + output := map[string]interface{}{} + for key, val := range renderTree { + switch v := val.(type) { + case []string: + for _, fieldPath := range v { + segments := strings.Split(fieldPath, ".") + current := output + for i := 0; i < len(segments)-1; i++ { + //fmt.Println("CURRENT: ", current, "SEGMENTS[i]", segments[i]) + //fmt.Println("VALUES: ", values) + if _, exists := current[segments[i]]; !exists { + current[segments[i]] = map[string]interface{}{} + } + current = current[segments[i]].(map[string]interface{}) + } + lastSegment := segments[len(segments)-1] + fieldKey := fieldPath + "_data" + if renderedValue, exists := values[fieldKey]; exists { + current[lastSegment] = renderedValue + // if rendered value is string and render was not found return nil instead of string. + if reflect.TypeOf("$f") == reflect.TypeOf(renderedValue) && strings.HasPrefix(renderedValue.(string), "$f") { + current[lastSegment] = nil + } + } else { + current[lastSegment] = nil + } + } + case map[string]interface{}: + output[key] = buildOutputTree(v, values) + case string: + if key == "__typename" { + output[key] = val + } else { + fmt.Printf("Unexpected type: %T\n", val) + } + default: + fmt.Printf("Unexpected type: %T\n", val) + } + } + + return output +} diff --git a/gql-gen/graph/resolver.go b/gql-gen/graph/resolver.go new file mode 100644 index 0000000..3bc5dc3 --- /dev/null +++ b/gql-gen/graph/resolver.go @@ -0,0 +1,153 @@ +package graph + +// THIS CODE WILL BE UPDATED WITH SCHEMA CHANGES. PREVIOUS IMPLEMENTATION FOR SCHEMA CHANGES WILL BE KEPT IN THE COMMENT SECTION. IMPLEMENTATION FOR UNCHANGED SCHEMA WILL BE KEPT. + +import ( + "context" + "fmt" + + "github.com/bmeg/grip-graphql/gql-gen/generated" + "github.com/bmeg/grip-graphql/gql-gen/model" +) + +// 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 +} + +// 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") +} + +// 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") +} + +// 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") +} + +// 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") +} + +// 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") +} + +// 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") +} + +// 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") +} + +// 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") +} + +// 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") +} + +// Observation is the resolver for the observation field. +func (r *queryResolver) Observation(ctx context.Context, offset *int, first *int, filter *string, sort *string, accessibility *model.Accessibility, format *model.Format) ([]model.ObservationType, error) { + data, err := r.GetSelectedFieldsAst(ctx, "ObservationType") + fmt.Println("DATA: ", data) + + slice, err := UnmarshalObservationSlice(data) + if err != nil { + fmt.Println("ERR: ", err) + return nil, err + } + + return slice.([]model.ObservationType), 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") +} + +// 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") +} + +// 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") +} + +// 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") +} + +// 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") +} + +// 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") +} + +// 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") +} + +// 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") +} + +// 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") +} + +// 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") +} + +// 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") +} + +// 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") +} + +// Query returns generated.QueryResolver implementation. +func (r *Resolver) Query() generated.QueryResolver { return &queryResolver{r} } + +type queryResolver struct{ *Resolver } + +// !!! WARNING !!! +// The code below was going to be deleted when updating resolvers. It has been copied here so you have +// one last chance to move it out of harms way if you want. There are two reasons this happens: +// - When renaming or deleting a resolver the old code will be put in here. You can safely delete +// 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 } +*/ diff --git a/gql-gen/graph/schema.graphql b/gql-gen/graph/schema.graphql new file mode 100644 index 0000000..390cd3e --- /dev/null +++ b/gql-gen/graph/schema.graphql @@ -0,0 +1,3881 @@ +scalar JSON +enum Accessibility { + all + accessible + unaccessible +} +enum Format { + json + 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 = + 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 = + 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 + 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] + id: String + species: CodeableConcept + part: CodeableConcept +} +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 FamilyMemberHistoryParticipantActorUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type FamilyMemberHistoryParticipant { + actor( + 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] + meta: Meta + modifierExtension: [Extension] + dosage: MedicationAdministrationDosage + performer: [MedicationAdministrationPerformer] + status: String + recorded: String + id: String + occurenceTiming: Timing + subject( + offset: Int + first: Int + filter: JSON + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationAdministrationNoteUnion] + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ResourceUnion] + extension: [Extension] + contained: [ResourceUnion] +} +union PatientLinkOtherUnion = PatientType +type PatientLink { + modifierExtension: [Extension] + other( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [PatientLinkOtherUnion] + resourceType: String + type: String + extension: [Extension] + id: String +} +type RatioRange { + resourceType: String + denominator: Quantity + extension: [Extension] + highNumerator: Quantity + id: String + lowNumerator: Quantity +} +type ResearchStudyLabel { + value: String + extension: [Extension] + id: String + modifierExtension: [Extension] + resourceType: String + type: CodeableConcept +} +type DataRequirementSort { + direction: String + extension: [Extension] + id: String + path: String + resourceType: String +} +type FHIRPrimitiveExtension { + extension: [Extension] + id: String + resourceType: String +} +union ResearchStudyAssociatedPartyPartyUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType +type ResearchStudyAssociatedParty { + party( + 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 { + version: String + language: String + implicitRules: String + bodySite: [CodeableReference] + practiceSetting: CodeableConcept + author( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DocumentReferenceAuthorUnion] + basedOn( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DocumentReferenceAttesterUnion] + docStatus: String + meta: Meta + custodian( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [OrganizationType] + event: [CodeableReference] + relatesTo: [DocumentReferenceRelatesTo] + facilityType: CodeableConcept + id: String + securityLabel: [CodeableConcept] + identifier: [Identifier] + modifierExtension: [Extension] + description: String + extension: [Extension] + category: [CodeableConcept] + text: Narrative + contained: [ResourceUnion] + subject( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ResourceUnion] + content: [DocumentReferenceContent] + date: String +} +type DosageDoseAndRate { + id: String + doseRange: Range + resourceType: String + rateRange: Range + type: CodeableConcept + doseQuantity: Quantity + rateRatio: Ratio + extension: [Extension] + rateQuantity: Quantity +} +type EncounterReason { + resourceType: String + use: [CodeableConcept] + value: [CodeableReference] + extension: [Extension] + id: String + modifierExtension: [Extension] +} +type Expression { + expression: String + extension: [Extension] + id: String + language: String + name: String + reference: String + resourceType: String + description: String +} +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 + extension: [Extension] + ingredient: [MedicationIngredient] + id: String + marketingAuthorizationHolder( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [OrganizationType] +} +type ObservationComponent { + 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 +} +type SubstanceType { + id: String + language: String + ingredient: [SubstanceIngredient] + category: [CodeableConcept] + identifier: [Identifier] + contained: [ResourceUnion] + resourceType: String + instance: String + implicitRules: String + modifierExtension: [Extension] + expiry: String + description: String + status: String + meta: Meta + code: CodeableReference + extension: [Extension] + quantity: Quantity + text: Narrative +} +type Coding { + extension: [Extension] + id: String + resourceType: String + system: String + userSelected: String + version: String + code: String + display: String +} +type SubstanceDefinitionRelationship { + substanceDefinitionReference( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [SubstanceDefinitionType] + amountQuantity: Quantity + amountRatio: Ratio + id: String + ratioHighLimitAmount: Ratio + source( + 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 +} +union SubstanceDefinitionCodeNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type SubstanceDefinitionCode { + source( + 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( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [OrganizationType] + dispenserInstruction( + 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 + modifierExtension: [Extension] + period: Period +} +type SubstanceDefinitionStructureRepresentation { + document( + 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 { + resourceType: String + additionalInfo: String + addressContactPoint: ContactPoint + addressExtendedContactDetail: ExtendedContactDetail + sessionKey: String + extension: [Extension] + id: String + addressString: String + addressUrl: String + channelType: Coding + maxParticipants: String +} +type DocumentReferenceContentProfile { + valueUri: String + extension: [Extension] + id: String + modifierExtension: [Extension] + resourceType: String + valueCanonical: String + valueCoding: Coding +} +type Count { + extension: [Extension] + id: String + resourceType: String + system: String + unit: String + value: String + code: String + comparator: String +} +union SignatureOnBehalfOfUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union SignatureWhoUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type Signature { + who( + 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( + 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( + 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] + id: String + resourceType: String + system: String + unit: String + value: String +} +union FamilyMemberHistoryProcedureNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type FamilyMemberHistoryProcedure { + modifierExtension: [Extension] + note( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [FamilyMemberHistoryProcedureNoteUnion] + performedDateTime: String + performedRange: Range + contributedToDeath: String + performedAge: Age + performedPeriod: Period + performedString: String + resourceType: String + id: String + extension: [Extension] + code: CodeableConcept + outcome: CodeableConcept +} +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( + 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( + 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( + 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 +} +union SpecimenSubjectUnion = PatientType | GroupType | SubstanceType +union SpecimenCollectionUnion = + PractitionerType + | PractitionerRoleType + | PatientType +union SpecimenNoteUnion = + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [SpecimenCollectionUnion] + subject( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [SpecimenNoteUnion] +} +type DiagnosticReportMedia { + modifierExtension: [Extension] + resourceType: String + comment: String + extension: [Extension] + id: String + link( + 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( + 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 +} +type Reference { + resourceType: String + type: String + display: String + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ProcedureType] + device: CodeableReference + collectedDateTime: String + duration: Duration + id: String + resourceType: String +} +type BodyStructureIncludedStructure { + extension: [Extension] + id: String + laterality: CodeableConcept + modifierExtension: [Extension] + qualifier: [CodeableConcept] + resourceType: String + structure: CodeableConcept + bodyLandmarkOrientation: [BodyStructureIncludedStructureBodyLandmarkOrientation] +} +union MedicationRequestPerformerUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType + | PatientType +union MedicationRequestRecorderUnion = PractitionerType | PractitionerRoleType +union MedicationRequestRequesterUnion = + PractitionerType + | PractitionerRoleType + | 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ResourceUnion] + performer( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationRequestPerformerUnion] + authoredOn: String + note( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationRequestRequesterUnion] + groupIdentifier: Identifier + statusReason: CodeableConcept + intent: String + dosageInstruction: [Dosage] + informationSource( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationRequestInformationSourceUnion] + performerType: CodeableConcept + identifier: [Identifier] + modifierExtension: [Extension] + category: [CodeableConcept] + recorder( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationRequestRecorderUnion] + priorPrescription( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationRequestType] + meta: Meta + basedOn( + 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( + 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 + resourceType: String + date: String + extension: [Extension] + id: String +} +type Ratio { + 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] +} +union PatientGeneralPractitionerUnion = + OrganizationType + | PractitionerType + | PractitionerRoleType +union PatientLinkUnion = PatientType +type PatientType { + modifierExtension: [Extension] + gender: 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( + 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( + 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] + contained: [ResourceUnion] + contact: [PatientContact] + maritalStatus: CodeableConcept + communication: [PatientCommunication] + telecom: [ContactPoint] + language: String + resourceType: String +} +type SubstanceDefinitionStructure { + sourceDocument( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DocumentReferenceType] + modifierExtension: [Extension] + molecularFormula: String + resourceType: String + id: String + stereochemistry: CodeableConcept + technique: [CodeableConcept] + opticalActivity: CodeableConcept + molecularFormulaByMoiety: String + molecularWeight: SubstanceDefinitionMolecularWeight + representation: [SubstanceDefinitionStructureRepresentation] + extension: [Extension] +} +type AvailabilityAvailableTime { + availableStartTime: String + daysOfWeek: String + extension: [Extension] + id: String + resourceType: String + allDay: String + availableEndTime: String +} +type ContactDetail { + telecom: [ContactPoint] + extension: [Extension] + id: String + name: String + resourceType: String +} +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 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( + 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( + 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 + language: String +} +type PractitionerQualification { + issuer( + 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] +} +type ResearchStudyObjective { + description: String + extension: [Extension] + id: String + modifierExtension: [Extension] + name: String + resourceType: String + type: CodeableConcept +} +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] + extension: [Extension] + id: String + inactive: String + modifierExtension: [Extension] + period: Period + resourceType: String +} +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 + 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( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ConditionNoteUnion] + identifier: [Identifier] + onsetPeriod: Period +} +type EncounterDiagnosis { + resourceType: String + use: [CodeableConcept] + condition: [CodeableReference] + extension: [Extension] + id: String + modifierExtension: [Extension] +} +union FamilyMemberHistoryConditionNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type FamilyMemberHistoryCondition { + onsetPeriod: Period + extension: [Extension] + note( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [FamilyMemberHistoryConditionNoteUnion] + onsetAge: Age + onsetRange: Range + resourceType: String + contributedToDeath: String + id: String + code: CodeableConcept + onsetString: String + outcome: CodeableConcept + modifierExtension: [Extension] +} +type RelatedArtifact { + display: String + publicationDate: String + publicationStatus: String + classifier: [CodeableConcept] + document: Attachment + resourceReference( + 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 +} +type CodeableReference { + extension: [Extension] + id: String + resourceType: String + concept: CodeableConcept +} +type ImmunizationProtocolApplied { + seriesDoses: String + targetDisease: [CodeableConcept] + doseNumber: String + extension: [Extension] + id: String + modifierExtension: [Extension] + resourceType: String + series: String +} +union ObservationSpecimenUnion = SpecimenType | GroupType +union ObservationSubjectUnion = + PatientType + | GroupType + | OrganizationType + | ProcedureType + | PractitionerType + | MedicationType + | SubstanceType +union ObservationNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union ObservationBasedOnUnion = MedicationRequestType +union ObservationDerivedFromUnion = + DocumentReferenceType + | ImagingStudyType + | ObservationType +union ObservationHasMemberUnion = ObservationType +union ObservationPartOfUnion = + MedicationAdministrationType + | MedicationStatementType + | ProcedureType + | ImagingStudyType +union ObservationPerformerUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType + | PatientType +type ObservationType { + effectivePeriod: Period + derivedFrom( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ObservationPerformerUnion] + bodySite: CodeableConcept + text: Narrative + valueQuantity: Quantity + 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 + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResourceUnion + valueCodeableConcept: CodeableConcept + hasMember( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ObservationHasMemberUnion] + valueInteger: String + language: String + identifier: [Identifier] + valueSampledData: SampledData + subject( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ObservationSubjectUnion + extension: [Extension] + triggeredBy: [ObservationTriggeredBy] + specimen( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ObservationSpecimenUnion] + partOf( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ObservationPartOfUnion] + component: [ObservationComponent] + effectiveTiming: Timing + valueRange: Range + status: String +} +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 = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union ProcedurePerformerUnion = + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ProcedureReportedReferenceUnion] + occurrencePeriod: Period + reportedBoolean: String + extension: [Extension] + report( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ProcedureReportUnion] + code: CodeableConcept + category: [CodeableConcept] + used: [CodeableReference] + recorded: String + partOf( + 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] + text: Narrative + meta: Meta + supportingInfo( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ResourceUnion] + language: String + note( + offset: Int + first: Int + filter: JSON + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ProcedureFocusUnion] +} +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 + id: String + contained: [ResourceUnion] + identifier: [Identifier] + progress: [ResearchSubjectProgress] + actualComparisonGroup: String + language: String + modifierExtension: [Extension] + study( + 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 + id: String + line: String + country: String + postalCode: String + state: String + city: String + district: String + period: Period + resourceType: String + type: String + extension: [Extension] +} +type DocumentReferenceRelatesTo { + modifierExtension: [Extension] + resourceType: String + target( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ImagingStudySeriesPerformerUnion] + modifierExtension: [Extension] + description: String + number: String + instance: [ImagingStudySeriesInstance] + specimen( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [SpecimenType] +} +type Narrative { + div: String + 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] + 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] + resourceType: String +} +type Period { + extension: [Extension] + id: String + resourceType: String + start: String + end: String +} +type SubstanceDefinitionProperty { + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [TaskPerformerActorUnion] + extension: [Extension] + function: CodeableConcept +} +union FamilyMemberHistoryNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union FamilyMemberHistoryParticipantUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type FamilyMemberHistoryType { + condition: [FamilyMemberHistoryCondition] + ageAge: Age + deceasedRange: Range + deceasedAge: Age + status: String + language: String + identifier: [Identifier] + sex: CodeableConcept + note( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [FamilyMemberHistoryNoteUnion] + contained: [ResourceUnion] + id: String + resourceType: String + deceasedString: String + relationship: CodeableConcept + bornDate: String + dataAbsentReason: CodeableConcept + estimatedAge: String + modifierExtension: [Extension] + date: String + patient( + 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( + 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 +} +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 + ): [ConditionStageAssessmentUnion] + extension: [Extension] + id: String + modifierExtension: [Extension] +} +type ImmunizationProgramEligibility { + programStatus: CodeableConcept + resourceType: String + extension: [Extension] + id: String + modifierExtension: [Extension] + program: CodeableConcept +} +type ParameterDefinition { + profile: String + min: String + name: String + type: String + documentation: 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( + 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] + id: String + profile: String + subjectReference( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ProcedureType] + text: Narrative + meta: Meta + extension: [Extension] + language: String + basedOn( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ImagingStudyBasedOnUnion] + numberOfInstances: String + procedure: [CodeableReference] + identifier: [Identifier] + implicitRules: String + referrer( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ImagingStudyReferrerUnion] + modality: [CodeableConcept] + resourceType: String + note( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ImagingStudyNoteUnion] + contained: [ResourceUnion] + modifierExtension: [Extension] + series: [ImagingStudySeries] + reason: [CodeableReference] + started: String + status: String + subject( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ImagingStudySubjectUnion] + description: String + id: String + numberOfSeries: String +} +type ObservationTriggeredBy { + id: String + modifierExtension: [Extension] + observation( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ObservationType] + reason: String + resourceType: String + type: String + extension: [Extension] +} +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] + id: String + resourceType: String + 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 +} +union ResearchStudyAssociatedPartyUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType +union ResearchStudyNoteUnion = + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ResearchStudyResultUnion] + progressStatus: [ResearchStudyProgressStatus] + 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] + id: String + identifier: [Identifier] + objective: [ResearchStudyObjective] + 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] +} +type ResearchStudyComparisonGroup { + modifierExtension: [Extension] + observedGroup( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [GroupType] + name: String + resourceType: String + id: String + description: String + linkId: String + type: CodeableConcept + extension: [Extension] +} +type SubstanceDefinitionNameOfficial { + resourceType: String + status: CodeableConcept + authority: CodeableConcept + date: String + extension: [Extension] + id: String + modifierExtension: [Extension] +} +type Distance { + resourceType: String + system: String + unit: String + value: String + code: String + comparator: String + extension: [Extension] + id: 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] + resourceType: String + time: String + extension: [Extension] +} +union ExtensionValueAnnotationUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union ExtensionValueSignatureUnion = + 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( + 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( + 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( + 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 + resourceType: String + partOf( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [OrganizationType] + modifierExtension: [Extension] + period: Period + resourceType: String + code: CodeableConcept +} +type Quantity { + code: String + comparator: String + extension: [Extension] + id: String + resourceType: String + system: String + unit: String + value: String +} +type BodyStructureType { + patient( + 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 + language: String +} +union ImagingStudySeriesPerformerActorUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType + | PatientType +type ImagingStudySeriesPerformer { + modifierExtension: [Extension] + resourceType: String + actor( + 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 + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ObservationType] + implicitRules: String + language: String + performer( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DiagnosticReportPerformerUnion] + presentedForm: [Attachment] + text: Narrative + subject( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DiagnosticReportSubjectUnion] + specimen( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DiagnosticReportStudyUnion] + resourceType: String + meta: Meta + contained: [ResourceUnion] + id: String + note( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DiagnosticReportNoteUnion] + modifierExtension: [Extension] + basedOn( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DiagnosticReportBasedOnUnion] + conclusionCode: [CodeableConcept] + supportingInfo( + 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( + 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] +} +union AnnotationAuthorReferenceUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +type Annotation { + authorString: String + extension: [Extension] + id: String + resourceType: String + text: String + time: String + authorReference( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [AnnotationAuthorReferenceUnion] +} +union DiagnosticReportSupportingInfoReferenceUnion = + ProcedureType + | ObservationType + | DiagnosticReportType +type DiagnosticReportSupportingInfo { + id: String + modifierExtension: [Extension] + reference( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [OrganizationType] + purpose: CodeableConcept + resourceType: String + telecom: [ContactPoint] + address: Address + id: String + extension: [Extension] + period: Period +} +type Money { + currency: String + extension: [Extension] + id: String + resourceType: 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] + 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 + 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( + 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 + 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 + resourceType: String + valuePositiveInt: String + valueRange: Range + valueAddress: Address + valueInteger: String + valueAvailability: Availability + valueUsageContext( + 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 + resourceType: String + type: [CodeableConcept] + extension: [Extension] +} +type SpecimenProcessing { + timePeriod: Period + additive( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [SubstanceType] + modifierExtension: [Extension] + description: String + id: String + resourceType: String + method: CodeableConcept + timeDateTime: String + extension: [Extension] +} +union TaskOwnerUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType + | PatientType +union TaskRequesterUnion = + OrganizationType + | PatientType + | PractitionerType + | PractitionerRoleType +union TaskNoteUnion = + PractitionerType + | PractitionerRoleType + | PatientType + | OrganizationType +union TaskPerformerUnion = + PractitionerType + | PractitionerRoleType + | OrganizationType + | PatientType +union TaskRestrictionUnion = + PatientType + | PractitionerType + | PractitionerRoleType + | GroupType + | OrganizationType +type TaskType { + input: [TaskInput] + basedOn( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ResourceUnion] + output: [TaskOutput] + lastModified: String + authoredOn: String + modifierExtension: [Extension] + requester( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [TaskRequesterUnion] + intent: String + partOf( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [TaskType] + businessStatus: CodeableConcept + resourceType: String + code: CodeableConcept + instantiatesUri: String + instantiatesCanonical: String + reason: [CodeableReference] + contained: [ResourceUnion] + requestedPeriod: Period + groupIdentifier: Identifier + priority: String + text: Narrative + identifier: [Identifier] + description: String + performer( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [TaskPerformerUnion] + id: String + implicitRules: String + meta: Meta + restriction( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [TaskRestrictionUnion] + note( + 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( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): ResourceUnion + owner( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [TaskOwnerUnion] + statusReason: CodeableReference + doNotPerform: String +} +type EncounterAdmission { + extension: [Extension] + id: String + modifierExtension: [Extension] + preAdmissionIdentifier: Identifier + reAdmission: CodeableConcept + resourceType: String + admitSource: CodeableConcept + dischargeDisposition: CodeableConcept +} +union ResourceUnion = + OrganizationType + | GroupType + | PractitionerType + | PractitionerRoleType + | ResearchStudyType + | PatientType + | ResearchSubjectType + | SubstanceType + | SubstanceDefinitionType + | SpecimenType + | ObservationType + | DiagnosticReportType + | ConditionType + | MedicationType + | MedicationAdministrationType + | MedicationStatementType + | MedicationRequestType + | ProcedureType + | DocumentReferenceType + | TaskType + | ImagingStudyType + | FamilyMemberHistoryType + | BodyStructureType +type Query { + organization( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [OrganizationType!]! + group( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [GroupType!]! + practitioner( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [PractitionerType!]! + practitionerRole( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [PractitionerRoleType!]! + researchStudy( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ResearchStudyType!]! + patient( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [PatientType!]! + researchSubject( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ResearchSubjectType!]! + substance( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [SubstanceType!]! + substanceDefinition( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [SubstanceDefinitionType!]! + specimen( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [SpecimenType!]! + observation( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ObservationType!]! + diagnosticReport( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DiagnosticReportType!]! + condition( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ConditionType!]! + medication( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationType!]! + medicationAdministration( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationAdministrationType!]! + medicationStatement( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationStatementType!]! + medicationRequest( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [MedicationRequestType!]! + procedure( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ProcedureType!]! + documentReference( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [DocumentReferenceType!]! + task( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [TaskType] + imagingStudy( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [ImagingStudyType!]! + familyMemberHistory( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [FamilyMemberHistoryType!]! + bodyStructure( + offset: Int + first: Int + filter: JSON + sort: JSON + accessibility: Accessibility = all + format: Format = json + ): [BodyStructureType!]! +} diff --git a/gql-gen/model/generated.go b/gql-gen/model/generated.go new file mode 100644 index 0000000..055a0f6 --- /dev/null +++ b/gql-gen/model/generated.go @@ -0,0 +1,3563 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package model + +import ( + "fmt" + "io" + "strconv" +) + +type AnnotationAuthorReferenceUnion interface { + IsAnnotationAuthorReferenceUnion() +} + +type ConditionNoteUnion interface { + IsConditionNoteUnion() +} + +type ConditionParticipantActorUnion interface { + IsConditionParticipantActorUnion() +} + +type ConditionParticipantUnion interface { + IsConditionParticipantUnion() +} + +type ConditionStageAssessmentUnion interface { + IsConditionStageAssessmentUnion() +} + +type ConditionStageUnion interface { + IsConditionStageUnion() +} + +type ConditionSubjectUnion interface { + IsConditionSubjectUnion() +} + +type DiagnosticReportBasedOnUnion interface { + IsDiagnosticReportBasedOnUnion() +} + +type DiagnosticReportNoteUnion interface { + IsDiagnosticReportNoteUnion() +} + +type DiagnosticReportPerformerUnion interface { + IsDiagnosticReportPerformerUnion() +} + +type DiagnosticReportResultsInterpreterUnion interface { + IsDiagnosticReportResultsInterpreterUnion() +} + +type DiagnosticReportStudyUnion interface { + IsDiagnosticReportStudyUnion() +} + +type DiagnosticReportSubjectUnion interface { + IsDiagnosticReportSubjectUnion() +} + +type DiagnosticReportSupportingInfoReferenceUnion interface { + IsDiagnosticReportSupportingInfoReferenceUnion() +} + +type DiagnosticReportSupportingInfoUnion interface { + IsDiagnosticReportSupportingInfoUnion() +} + +type DocumentReferenceAttesterPartyUnion interface { + IsDocumentReferenceAttesterPartyUnion() +} + +type DocumentReferenceAttesterUnion interface { + IsDocumentReferenceAttesterUnion() +} + +type DocumentReferenceAuthorUnion interface { + IsDocumentReferenceAuthorUnion() +} + +type DocumentReferenceBasedOnUnion interface { + IsDocumentReferenceBasedOnUnion() +} + +type ExtensionValueAnnotationUnion interface { + IsExtensionValueAnnotationUnion() +} + +type ExtensionValueSignatureUnion interface { + IsExtensionValueSignatureUnion() +} + +type ExtensionValueUsageContextUnion interface { + IsExtensionValueUsageContextUnion() +} + +type FamilyMemberHistoryConditionNoteUnion interface { + IsFamilyMemberHistoryConditionNoteUnion() +} + +type FamilyMemberHistoryNoteUnion interface { + IsFamilyMemberHistoryNoteUnion() +} + +type FamilyMemberHistoryParticipantActorUnion interface { + IsFamilyMemberHistoryParticipantActorUnion() +} + +type FamilyMemberHistoryParticipantUnion interface { + IsFamilyMemberHistoryParticipantUnion() +} + +type FamilyMemberHistoryProcedureNoteUnion interface { + IsFamilyMemberHistoryProcedureNoteUnion() +} + +type GroupManagingEntityUnion interface { + IsGroupManagingEntityUnion() +} + +type GroupMemberEntityUnion interface { + IsGroupMemberEntityUnion() +} + +type GroupMemberUnion interface { + IsGroupMemberUnion() +} + +type ImagingStudyBasedOnUnion interface { + IsImagingStudyBasedOnUnion() +} + +type ImagingStudyNoteUnion interface { + IsImagingStudyNoteUnion() +} + +type ImagingStudyReferrerUnion interface { + IsImagingStudyReferrerUnion() +} + +type ImagingStudySeriesPerformerActorUnion interface { + IsImagingStudySeriesPerformerActorUnion() +} + +type ImagingStudySeriesPerformerUnion interface { + IsImagingStudySeriesPerformerUnion() +} + +type ImagingStudySubjectUnion interface { + IsImagingStudySubjectUnion() +} + +type MedicationAdministrationNoteUnion interface { + IsMedicationAdministrationNoteUnion() +} + +type MedicationAdministrationPartOfUnion interface { + IsMedicationAdministrationPartOfUnion() +} + +type MedicationAdministrationSubjectUnion interface { + IsMedicationAdministrationSubjectUnion() +} + +type MedicationRequestBasedOnUnion interface { + IsMedicationRequestBasedOnUnion() +} + +type MedicationRequestDispenseRequestDispenserInstructionUnion interface { + IsMedicationRequestDispenseRequestDispenserInstructionUnion() +} + +type MedicationRequestInformationSourceUnion interface { + IsMedicationRequestInformationSourceUnion() +} + +type MedicationRequestNoteUnion interface { + IsMedicationRequestNoteUnion() +} + +type MedicationRequestPerformerUnion interface { + IsMedicationRequestPerformerUnion() +} + +type MedicationRequestRecorderUnion interface { + IsMedicationRequestRecorderUnion() +} + +type MedicationRequestRequesterUnion interface { + IsMedicationRequestRequesterUnion() +} + +type MedicationRequestSubjectUnion interface { + IsMedicationRequestSubjectUnion() +} + +type MedicationStatementInformationSourceUnion interface { + IsMedicationStatementInformationSourceUnion() +} + +type MedicationStatementNoteUnion interface { + IsMedicationStatementNoteUnion() +} + +type MedicationStatementPartOfUnion interface { + IsMedicationStatementPartOfUnion() +} + +type MedicationStatementRelatedClinicalInformationUnion interface { + IsMedicationStatementRelatedClinicalInformationUnion() +} + +type MedicationStatementSubjectUnion interface { + IsMedicationStatementSubjectUnion() +} + +type ObservationBasedOnUnion interface { + IsObservationBasedOnUnion() +} + +type ObservationDerivedFromUnion interface { + IsObservationDerivedFromUnion() +} + +type ObservationHasMemberUnion interface { + IsObservationHasMemberUnion() +} + +type ObservationNoteUnion interface { + IsObservationNoteUnion() +} + +type ObservationPartOfUnion interface { + IsObservationPartOfUnion() +} + +type ObservationPerformerUnion interface { + IsObservationPerformerUnion() +} + +type ObservationSpecimenUnion interface { + IsObservationSpecimenUnion() +} + +type ObservationSubjectUnion interface { + IsObservationSubjectUnion() +} + +type PatientGeneralPractitionerUnion interface { + IsPatientGeneralPractitionerUnion() +} + +type PatientLinkOtherUnion interface { + IsPatientLinkOtherUnion() +} + +type PatientLinkUnion interface { + IsPatientLinkUnion() +} + +type ProcedureFocusUnion interface { + IsProcedureFocusUnion() +} + +type ProcedureNoteUnion interface { + IsProcedureNoteUnion() +} + +type ProcedurePartOfUnion interface { + IsProcedurePartOfUnion() +} + +type ProcedurePerformerActorUnion interface { + IsProcedurePerformerActorUnion() +} + +type ProcedurePerformerUnion interface { + IsProcedurePerformerUnion() +} + +type ProcedureRecorderUnion interface { + IsProcedureRecorderUnion() +} + +type ProcedureReportUnion interface { + IsProcedureReportUnion() +} + +type ProcedureReportedReferenceUnion interface { + IsProcedureReportedReferenceUnion() +} + +type ProcedureSubjectUnion interface { + IsProcedureSubjectUnion() +} + +type ResearchStudyAssociatedPartyPartyUnion interface { + IsResearchStudyAssociatedPartyPartyUnion() +} + +type ResearchStudyAssociatedPartyUnion interface { + IsResearchStudyAssociatedPartyUnion() +} + +type ResearchStudyNoteUnion interface { + IsResearchStudyNoteUnion() +} + +type ResearchStudyRecruitmentEligibilityUnion interface { + IsResearchStudyRecruitmentEligibilityUnion() +} + +type ResearchStudyRecruitmentUnion interface { + IsResearchStudyRecruitmentUnion() +} + +type ResearchStudyResultUnion interface { + IsResearchStudyResultUnion() +} + +type ResearchStudySiteUnion interface { + IsResearchStudySiteUnion() +} + +type ResearchSubjectSubjectUnion interface { + IsResearchSubjectSubjectUnion() +} + +type ResourceUnion interface { + IsResourceUnion() +} + +type SignatureOnBehalfOfUnion interface { + IsSignatureOnBehalfOfUnion() +} + +type SignatureWhoUnion interface { + IsSignatureWhoUnion() +} + +type SpecimenCollectionCollectorUnion interface { + IsSpecimenCollectionCollectorUnion() +} + +type SpecimenCollectionUnion interface { + IsSpecimenCollectionUnion() +} + +type SpecimenNoteUnion interface { + IsSpecimenNoteUnion() +} + +type SpecimenSubjectUnion interface { + IsSpecimenSubjectUnion() +} + +type SubstanceDefinitionCodeNoteUnion interface { + IsSubstanceDefinitionCodeNoteUnion() +} + +type SubstanceDefinitionNoteUnion interface { + IsSubstanceDefinitionNoteUnion() +} + +type TaskInputValueAnnotationUnion interface { + IsTaskInputValueAnnotationUnion() +} + +type TaskInputValueSignatureUnion interface { + IsTaskInputValueSignatureUnion() +} + +type TaskInputValueUsageContextUnion interface { + IsTaskInputValueUsageContextUnion() +} + +type TaskNoteUnion interface { + IsTaskNoteUnion() +} + +type TaskOutputValueAnnotationUnion interface { + IsTaskOutputValueAnnotationUnion() +} + +type TaskOutputValueSignatureUnion interface { + IsTaskOutputValueSignatureUnion() +} + +type TaskOutputValueUsageContextUnion interface { + IsTaskOutputValueUsageContextUnion() +} + +type TaskOwnerUnion interface { + IsTaskOwnerUnion() +} + +type TaskPerformerActorUnion interface { + IsTaskPerformerActorUnion() +} + +type TaskPerformerUnion interface { + IsTaskPerformerUnion() +} + +type TaskRequesterUnion interface { + IsTaskRequesterUnion() +} + +type TaskRestrictionRecipientUnion interface { + IsTaskRestrictionRecipientUnion() +} + +type TaskRestrictionUnion interface { + IsTaskRestrictionUnion() +} + +type UsageContextValueReferenceUnion interface { + IsUsageContextValueReferenceUnion() +} + +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"` + District *string `json:"district,omitempty"` + Period *Period `json:"period,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Type *string `json:"type,omitempty"` + Extension []*Extension `json:"extension,omitempty"` +} + +type Age 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"` +} + +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"` +} + +type Attachment struct { + Width *string `json:"width,omitempty"` + Pages *string `json:"pages,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Data *string `json:"data,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"` + Hash *string `json:"hash,omitempty"` + URL *string `json:"url,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + ID *string `json:"id,omitempty"` + ContentType *string `json:"contentType,omitempty"` + Language *string `json:"language,omitempty"` +} + +type Availability struct { + 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 { + AvailableStartTime *string `json:"availableStartTime,omitempty"` + DaysOfWeek *string `json:"daysOfWeek,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + AllDay *string `json:"allDay,omitempty"` + AvailableEndTime *string `json:"availableEndTime,omitempty"` +} + +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"` +} + +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"` +} + +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"` +} + +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"` +} + +type BodyStructureType struct { + Patient []*PatientType `json:"patient,omitempty"` + Contained []ResourceUnion `json:"contained,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"` + ExcludedStructure []*BodyStructureIncludedStructure `json:"excludedStructure,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + ID *string `json:"id,omitempty"` + Meta *Meta `json:"meta,omitempty"` + IncludedStructure []*BodyStructureIncludedStructure `json:"includedStructure,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + Morphology *CodeableConcept `json:"morphology,omitempty"` + Text *Narrative `json:"text,omitempty"` + Description *string `json:"description,omitempty"` + Language *string `json:"language,omitempty"` +} + +func (BodyStructureType) IsResourceUnion() {} + +type CodeableConcept struct { + 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"` +} + +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"` +} + +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"` +} + +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"` +} + +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"` +} + +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"` +} + +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"` +} + +type Count struct { + 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"` +} + +type DataRequirement struct { + Type *string `json:"type,omitempty"` + ValueFilter []*DataRequirementValueFilter `json:"valueFilter,omitempty"` + DateFilter []*DataRequirementDateFilter `json:"dateFilter,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"` + ResourceType *string `json:"resourceType,omitempty"` + CodeFilter []*DataRequirementCodeFilter `json:"codeFilter,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"` +} + +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"` +} + +type DataRequirementSort struct { + 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 { + 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"` + 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"` +} + +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"` +} + +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"` +} + +func (DiagnosticReportType) IsConditionStageUnion() {} + +func (DiagnosticReportType) IsProcedureReportUnion() {} + +func (DiagnosticReportType) IsConditionStageAssessmentUnion() {} + +func (DiagnosticReportType) IsResearchStudyResultUnion() {} + +func (DiagnosticReportType) IsDiagnosticReportSupportingInfoUnion() {} + +func (DiagnosticReportType) IsDiagnosticReportSupportingInfoReferenceUnion() {} + +func (DiagnosticReportType) IsResourceUnion() {} + +type Distance struct { + 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"` +} + +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"` +} + +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"` +} + +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"` +} + +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"` +} + +func (DocumentReferenceType) IsObservationDerivedFromUnion() {} + +func (DocumentReferenceType) IsProcedureReportUnion() {} + +func (DocumentReferenceType) IsResourceUnion() {} + +type Dosage struct { + AsNeededFor []*CodeableConcept `json:"asNeededFor,omitempty"` + DoseAndRate []*DosageDoseAndRate `json:"doseAndRate,omitempty"` + Route *CodeableConcept `json:"route,omitempty"` + Method *CodeableConcept `json:"method,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + PatientInstruction *string `json:"patientInstruction,omitempty"` + Text *string `json:"text,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Site *CodeableConcept `json:"site,omitempty"` + MaxDosePerAdministration *Quantity `json:"maxDosePerAdministration,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"` + MaxDosePerPeriod []*Ratio `json:"maxDosePerPeriod,omitempty"` +} + +type DosageDoseAndRate struct { + 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"` + DoseQuantity *Quantity `json:"doseQuantity,omitempty"` + RateRatio *Ratio `json:"rateRatio,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + RateQuantity *Quantity `json:"rateQuantity,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"` +} + +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"` + Status *string `json:"status,omitempty"` + VirtualService []*VirtualServiceDetail `json:"virtualService,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + SpecialCourtesy []*CodeableConcept `json:"specialCourtesy,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + SpecialArrangement []*CodeableConcept `json:"specialArrangement,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Contained []ResourceUnion `json:"contained,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"` +} + +type EncounterAdmission struct { + 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"` +} + +type EncounterLocation struct { + 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 { + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Period *Period `json:"period,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Type []*CodeableConcept `json:"type,omitempty"` + Extension []*Extension `json:"extension,omitempty"` +} + +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"` +} + +type Expression struct { + Expression *string `json:"expression,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + Language *string `json:"language,omitempty"` + Name *string `json:"name,omitempty"` + Reference *string `json:"reference,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Description *string `json:"description,omitempty"` +} + +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"` +} + +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"` +} + +type FHIRPrimitiveExtension struct { + 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"` +} + +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"` +} + +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"` +} + +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"` +} + +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"` + Extension []*Extension `json:"extension,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Exclude *string `json:"exclude,omitempty"` + ValueCodeableConcept *CodeableConcept `json:"valueCodeableConcept,omitempty"` + ID *string `json:"id,omitempty"` +} + +type GroupMember struct { + Entity []GroupMemberEntityUnion `json:"entity,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + Inactive *string `json:"inactive,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Period *Period `json:"period,omitempty"` + ResourceType *string `json:"resourceType,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) IsMedicationAdministrationSubjectUnion() {} + +func (GroupType) IsUsageContextValueReferenceUnion() {} + +func (GroupType) IsResearchStudyRecruitmentEligibilityUnion() {} + +func (GroupType) IsTaskRestrictionRecipientUnion() {} + +func (GroupType) IsSpecimenSubjectUnion() {} + +func (GroupType) IsMedicationRequestSubjectUnion() {} + +func (GroupType) IsMedicationStatementSubjectUnion() {} + +func (GroupType) IsGroupMemberEntityUnion() {} + +func (GroupType) IsConditionSubjectUnion() {} + +func (GroupType) IsObservationSpecimenUnion() {} + +func (GroupType) IsObservationSubjectUnion() {} + +func (GroupType) IsProcedureFocusUnion() {} + +func (GroupType) IsProcedureSubjectUnion() {} + +func (GroupType) IsResearchSubjectSubjectUnion() {} + +func (GroupType) IsTaskInputValueUsageContextUnion() {} + +func (GroupType) IsImagingStudySubjectUnion() {} + +func (GroupType) IsResearchStudyRecruitmentUnion() {} + +func (GroupType) IsExtensionValueUsageContextUnion() {} + +func (GroupType) IsDiagnosticReportSubjectUnion() {} + +func (GroupType) IsTaskOutputValueUsageContextUnion() {} + +func (GroupType) IsTaskRestrictionUnion() {} + +func (GroupType) IsResourceUnion() {} + +type HumanName struct { + Suffix *string `json:"suffix,omitempty"` + Use *string `json:"use,omitempty"` + Family *string `json:"family,omitempty"` + Given *string `json:"given,omitempty"` + ID *string `json:"id,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"` +} + +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"` +} + +type ImagingStudySeriesInstance struct { + SopClass *Coding `json:"sopClass,omitempty"` + Title *string `json:"title,omitempty"` + UID *string `json:"uid,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Number *string `json:"number,omitempty"` + ResourceType *string `json:"resourceType,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"` +} + +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"` +} + +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"` + OccurrenceDateTime *string `json:"occurrenceDateTime,omitempty"` + Reason []*CodeableReference `json:"reason,omitempty"` + FundingSource *CodeableConcept `json:"fundingSource,omitempty"` + Meta *Meta `json:"meta,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"` + 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"` + PrimarySource *string `json:"primarySource,omitempty"` + IsSubpotent *string `json:"isSubpotent,omitempty"` + Language *string `json:"language,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` +} + +type ImmunizationPerformer struct { + 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"` +} + +type ImmunizationProtocolApplied struct { + 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 { + 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"` + 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"` + Contact []*ExtendedContactDetail `json:"contact,omitempty"` + Status *string `json:"status,omitempty"` + HoursOfOperation []*Availability `json:"hoursOfOperation,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Alias *string `json:"alias,omitempty"` + Type []*CodeableConcept `json:"type,omitempty"` + Description *string `json:"description,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"` +} + +type MedicationAdministrationDosage struct { + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + RateQuantity *Quantity `json:"rateQuantity,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"` + RateRatio *Ratio `json:"rateRatio,omitempty"` + Route *CodeableConcept `json:"route,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` +} + +type MedicationAdministrationPerformer struct { + 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"` +} + +func (MedicationAdministrationType) IsMedicationAdministrationPartOfUnion() {} + +func (MedicationAdministrationType) IsObservationPartOfUnion() {} + +func (MedicationAdministrationType) IsProcedurePartOfUnion() {} + +func (MedicationAdministrationType) IsResourceUnion() {} + +type MedicationBatch struct { + 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 { + StrengthCodeableConcept *CodeableConcept `json:"strengthCodeableConcept,omitempty"` + ID *string `json:"id,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"` +} + +type MedicationRequestDispenseRequestInitialFill struct { + Duration *Duration `json:"duration,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Quantity *Quantity `json:"quantity,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` +} + +type MedicationRequestSubstitution struct { + 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"` +} + +func (MedicationRequestType) IsDocumentReferenceBasedOnUnion() {} + +func (MedicationRequestType) IsMedicationRequestBasedOnUnion() {} + +func (MedicationRequestType) IsObservationBasedOnUnion() {} + +func (MedicationRequestType) IsDiagnosticReportBasedOnUnion() {} + +func (MedicationRequestType) IsResourceUnion() {} + +type MedicationStatementAdherence 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"` + 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"` +} + +func (MedicationStatementType) IsMedicationStatementPartOfUnion() {} + +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"` + 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"` + Ingredient []*MedicationIngredient `json:"ingredient,omitempty"` + ID *string `json:"id,omitempty"` + MarketingAuthorizationHolder []*OrganizationType `json:"marketingAuthorizationHolder,omitempty"` +} + +func (MedicationType) IsObservationSubjectUnion() {} + +func (MedicationType) IsResearchSubjectSubjectUnion() {} + +func (MedicationType) IsDiagnosticReportSubjectUnion() {} + +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"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` +} + +type Money struct { + Currency *string `json:"currency,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Value *string `json:"value,omitempty"` +} + +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"` +} + +type ObservationComponent struct { + ID *string `json:"id,omitempty"` + ValuePeriod *Period `json:"valuePeriod,omitempty"` + ValueQuantity *Quantity `json:"valueQuantity,omitempty"` + ValueRange *Range `json:"valueRange,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"` + ValueBoolean *string `json:"valueBoolean,omitempty"` + ValueDateTime *string `json:"valueDateTime,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"` + ValueRatio *Ratio `json:"valueRatio,omitempty"` +} + +type ObservationReferenceRange struct { + Extension []*Extension `json:"extension,omitempty"` + High *Quantity `json:"high,omitempty"` + ID *string `json:"id,omitempty"` + Type *CodeableConcept `json:"type,omitempty"` + AppliesTo []*CodeableConcept `json:"appliesTo,omitempty"` + Age *Range `json:"age,omitempty"` + Text *string `json:"text,omitempty"` + Low *Quantity `json:"low,omitempty"` + NormalValue *CodeableConcept `json:"normalValue,omitempty"` + ResourceType *string `json:"resourceType,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 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"` +} + +func (ObservationType) IsMedicationStatementRelatedClinicalInformationUnion() {} + +func (ObservationType) IsConditionStageUnion() {} + +func (ObservationType) IsObservationDerivedFromUnion() {} + +func (ObservationType) IsObservationHasMemberUnion() {} + +func (ObservationType) IsProcedurePartOfUnion() {} + +func (ObservationType) IsConditionStageAssessmentUnion() {} + +func (ObservationType) IsDiagnosticReportSupportingInfoUnion() {} + +func (ObservationType) IsDiagnosticReportSupportingInfoReferenceUnion() {} + +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"` +} + +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"` + Contained []ResourceUnion `json:"contained,omitempty"` + Meta *Meta `json:"meta,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"` +} + +func (OrganizationType) IsGroupManagingEntityUnion() {} + +func (OrganizationType) IsGroupMemberUnion() {} + +func (OrganizationType) IsProcedurePerformerActorUnion() {} + +func (OrganizationType) IsSubstanceDefinitionNoteUnion() {} + +func (OrganizationType) IsConditionParticipantActorUnion() {} + +func (OrganizationType) IsFamilyMemberHistoryParticipantActorUnion() {} + +func (OrganizationType) IsMedicationAdministrationNoteUnion() {} + +func (OrganizationType) IsResearchStudyAssociatedPartyPartyUnion() {} + +func (OrganizationType) IsDocumentReferenceAuthorUnion() {} + +func (OrganizationType) IsDocumentReferenceAttesterUnion() {} + +func (OrganizationType) IsSubstanceDefinitionCodeNoteUnion() {} + +func (OrganizationType) IsMedicationRequestDispenseRequestDispenserInstructionUnion() {} + +func (OrganizationType) IsSignatureOnBehalfOfUnion() {} + +func (OrganizationType) IsSignatureWhoUnion() {} + +func (OrganizationType) IsUsageContextValueReferenceUnion() {} + +func (OrganizationType) IsFamilyMemberHistoryProcedureNoteUnion() {} + +func (OrganizationType) IsTaskRestrictionRecipientUnion() {} + +func (OrganizationType) IsSpecimenNoteUnion() {} + +func (OrganizationType) IsMedicationRequestPerformerUnion() {} + +func (OrganizationType) IsMedicationRequestRequesterUnion() {} + +func (OrganizationType) IsMedicationRequestNoteUnion() {} + +func (OrganizationType) IsMedicationRequestInformationSourceUnion() {} + +func (OrganizationType) IsPatientGeneralPractitionerUnion() {} + +func (OrganizationType) IsMedicationStatementInformationSourceUnion() {} + +func (OrganizationType) IsMedicationStatementNoteUnion() {} + +func (OrganizationType) IsGroupMemberEntityUnion() {} + +func (OrganizationType) IsConditionNoteUnion() {} + +func (OrganizationType) IsConditionParticipantUnion() {} + +func (OrganizationType) IsFamilyMemberHistoryConditionNoteUnion() {} + +func (OrganizationType) IsObservationSubjectUnion() {} + +func (OrganizationType) IsObservationNoteUnion() {} + +func (OrganizationType) IsObservationPerformerUnion() {} + +func (OrganizationType) IsProcedureFocusUnion() {} + +func (OrganizationType) IsProcedureReportedReferenceUnion() {} + +func (OrganizationType) IsProcedureSubjectUnion() {} + +func (OrganizationType) IsProcedureNoteUnion() {} + +func (OrganizationType) IsProcedurePerformerUnion() {} + +func (OrganizationType) IsImagingStudySeriesPerformerUnion() {} + +func (OrganizationType) IsTaskPerformerActorUnion() {} + +func (OrganizationType) IsFamilyMemberHistoryNoteUnion() {} + +func (OrganizationType) IsFamilyMemberHistoryParticipantUnion() {} + +func (OrganizationType) IsTaskInputValueAnnotationUnion() {} + +func (OrganizationType) IsTaskInputValueSignatureUnion() {} + +func (OrganizationType) IsTaskInputValueUsageContextUnion() {} + +func (OrganizationType) IsImagingStudyNoteUnion() {} + +func (OrganizationType) IsResearchStudyAssociatedPartyUnion() {} + +func (OrganizationType) IsResearchStudyNoteUnion() {} + +func (OrganizationType) IsResearchStudySiteUnion() {} + +func (OrganizationType) IsDocumentReferenceAttesterPartyUnion() {} + +func (OrganizationType) IsExtensionValueAnnotationUnion() {} + +func (OrganizationType) IsExtensionValueSignatureUnion() {} + +func (OrganizationType) IsExtensionValueUsageContextUnion() {} + +func (OrganizationType) IsImagingStudySeriesPerformerActorUnion() {} + +func (OrganizationType) IsDiagnosticReportNoteUnion() {} + +func (OrganizationType) IsDiagnosticReportPerformerUnion() {} + +func (OrganizationType) IsDiagnosticReportResultsInterpreterUnion() {} + +func (OrganizationType) IsDiagnosticReportSubjectUnion() {} + +func (OrganizationType) IsAnnotationAuthorReferenceUnion() {} + +func (OrganizationType) IsTaskOutputValueAnnotationUnion() {} + +func (OrganizationType) IsTaskOutputValueSignatureUnion() {} + +func (OrganizationType) IsTaskOutputValueUsageContextUnion() {} + +func (OrganizationType) IsTaskOwnerUnion() {} + +func (OrganizationType) IsTaskRequesterUnion() {} + +func (OrganizationType) IsTaskNoteUnion() {} + +func (OrganizationType) IsTaskPerformerUnion() {} + +func (OrganizationType) IsTaskRestrictionUnion() {} + +func (OrganizationType) IsResourceUnion() {} + +type ParameterDefinition struct { + Profile *string `json:"profile,omitempty"` + Min *string `json:"min,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"` + Use *string `json:"use,omitempty"` +} + +type PatientCommunication struct { + 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"` +} + +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"` +} + +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"` +} + +func (PatientType) IsGroupMemberUnion() {} + +func (PatientType) IsProcedurePerformerActorUnion() {} + +func (PatientType) IsSubstanceDefinitionNoteUnion() {} + +func (PatientType) IsConditionParticipantActorUnion() {} + +func (PatientType) IsFamilyMemberHistoryParticipantActorUnion() {} + +func (PatientType) IsMedicationAdministrationNoteUnion() {} + +func (PatientType) IsMedicationAdministrationSubjectUnion() {} + +func (PatientType) IsPatientLinkOtherUnion() {} + +func (PatientType) IsDocumentReferenceAuthorUnion() {} + +func (PatientType) IsDocumentReferenceAttesterUnion() {} + +func (PatientType) IsSubstanceDefinitionCodeNoteUnion() {} + +func (PatientType) IsMedicationRequestDispenseRequestDispenserInstructionUnion() {} + +func (PatientType) IsSignatureOnBehalfOfUnion() {} + +func (PatientType) IsSignatureWhoUnion() {} + +func (PatientType) IsFamilyMemberHistoryProcedureNoteUnion() {} + +func (PatientType) IsTaskRestrictionRecipientUnion() {} + +func (PatientType) IsSpecimenSubjectUnion() {} + +func (PatientType) IsSpecimenCollectionUnion() {} + +func (PatientType) IsSpecimenNoteUnion() {} + +func (PatientType) IsSpecimenCollectionCollectorUnion() {} + +func (PatientType) IsMedicationRequestPerformerUnion() {} + +func (PatientType) IsMedicationRequestRequesterUnion() {} + +func (PatientType) IsMedicationRequestSubjectUnion() {} + +func (PatientType) IsMedicationRequestNoteUnion() {} + +func (PatientType) IsMedicationRequestInformationSourceUnion() {} + +func (PatientType) IsPatientLinkUnion() {} + +func (PatientType) IsMedicationStatementInformationSourceUnion() {} + +func (PatientType) IsMedicationStatementSubjectUnion() {} + +func (PatientType) IsMedicationStatementNoteUnion() {} + +func (PatientType) IsGroupMemberEntityUnion() {} + +func (PatientType) IsConditionSubjectUnion() {} + +func (PatientType) IsConditionNoteUnion() {} + +func (PatientType) IsConditionParticipantUnion() {} + +func (PatientType) IsFamilyMemberHistoryConditionNoteUnion() {} + +func (PatientType) IsObservationSubjectUnion() {} + +func (PatientType) IsObservationNoteUnion() {} + +func (PatientType) IsObservationPerformerUnion() {} + +func (PatientType) IsProcedureFocusUnion() {} + +func (PatientType) IsProcedureRecorderUnion() {} + +func (PatientType) IsProcedureReportedReferenceUnion() {} + +func (PatientType) IsProcedureSubjectUnion() {} + +func (PatientType) IsProcedureNoteUnion() {} + +func (PatientType) IsProcedurePerformerUnion() {} + +func (PatientType) IsResearchSubjectSubjectUnion() {} + +func (PatientType) IsImagingStudySeriesPerformerUnion() {} + +func (PatientType) IsTaskPerformerActorUnion() {} + +func (PatientType) IsFamilyMemberHistoryNoteUnion() {} + +func (PatientType) IsFamilyMemberHistoryParticipantUnion() {} + +func (PatientType) IsTaskInputValueAnnotationUnion() {} + +func (PatientType) IsTaskInputValueSignatureUnion() {} + +func (PatientType) IsImagingStudySubjectUnion() {} + +func (PatientType) IsImagingStudyNoteUnion() {} + +func (PatientType) IsResearchStudyNoteUnion() {} + +func (PatientType) IsDocumentReferenceAttesterPartyUnion() {} + +func (PatientType) IsExtensionValueAnnotationUnion() {} + +func (PatientType) IsExtensionValueSignatureUnion() {} + +func (PatientType) IsImagingStudySeriesPerformerActorUnion() {} + +func (PatientType) IsDiagnosticReportNoteUnion() {} + +func (PatientType) IsDiagnosticReportSubjectUnion() {} + +func (PatientType) IsAnnotationAuthorReferenceUnion() {} + +func (PatientType) IsTaskOutputValueAnnotationUnion() {} + +func (PatientType) IsTaskOutputValueSignatureUnion() {} + +func (PatientType) IsTaskOwnerUnion() {} + +func (PatientType) IsTaskRequesterUnion() {} + +func (PatientType) IsTaskNoteUnion() {} + +func (PatientType) IsTaskPerformerUnion() {} + +func (PatientType) IsTaskRestrictionUnion() {} + +func (PatientType) IsResourceUnion() {} + +type Period struct { + 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 { + 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"` +} + +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"` +} + +type PractitionerRoleType struct { + Availability []*Availability `json:"availability,omitempty"` + Identifier []*Identifier `json:"identifier,omitempty"` + Practitioner []*PractitionerType `json:"practitioner,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + Language *string `json:"language,omitempty"` + Code []*CodeableConcept `json:"code,omitempty"` + ImplicitRules *string `json:"implicitRules,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"` + Meta *Meta `json:"meta,omitempty"` + Period *Period `json:"period,omitempty"` + Text *Narrative `json:"text,omitempty"` +} + +func (PractitionerRoleType) IsGroupManagingEntityUnion() {} + +func (PractitionerRoleType) IsGroupMemberUnion() {} + +func (PractitionerRoleType) IsProcedurePerformerActorUnion() {} + +func (PractitionerRoleType) IsSubstanceDefinitionNoteUnion() {} + +func (PractitionerRoleType) IsConditionParticipantActorUnion() {} + +func (PractitionerRoleType) IsFamilyMemberHistoryParticipantActorUnion() {} + +func (PractitionerRoleType) IsMedicationAdministrationNoteUnion() {} + +func (PractitionerRoleType) IsResearchStudyAssociatedPartyPartyUnion() {} + +func (PractitionerRoleType) IsDocumentReferenceAuthorUnion() {} + +func (PractitionerRoleType) IsDocumentReferenceAttesterUnion() {} + +func (PractitionerRoleType) IsSubstanceDefinitionCodeNoteUnion() {} + +func (PractitionerRoleType) IsMedicationRequestDispenseRequestDispenserInstructionUnion() {} + +func (PractitionerRoleType) IsSignatureOnBehalfOfUnion() {} + +func (PractitionerRoleType) IsSignatureWhoUnion() {} + +func (PractitionerRoleType) IsFamilyMemberHistoryProcedureNoteUnion() {} + +func (PractitionerRoleType) IsTaskRestrictionRecipientUnion() {} + +func (PractitionerRoleType) IsSpecimenCollectionUnion() {} + +func (PractitionerRoleType) IsSpecimenNoteUnion() {} + +func (PractitionerRoleType) IsSpecimenCollectionCollectorUnion() {} + +func (PractitionerRoleType) IsMedicationRequestPerformerUnion() {} + +func (PractitionerRoleType) IsMedicationRequestRecorderUnion() {} + +func (PractitionerRoleType) IsMedicationRequestRequesterUnion() {} + +func (PractitionerRoleType) IsMedicationRequestNoteUnion() {} + +func (PractitionerRoleType) IsMedicationRequestInformationSourceUnion() {} + +func (PractitionerRoleType) IsPatientGeneralPractitionerUnion() {} + +func (PractitionerRoleType) IsMedicationStatementInformationSourceUnion() {} + +func (PractitionerRoleType) IsMedicationStatementNoteUnion() {} + +func (PractitionerRoleType) IsGroupMemberEntityUnion() {} + +func (PractitionerRoleType) IsConditionNoteUnion() {} + +func (PractitionerRoleType) IsConditionParticipantUnion() {} + +func (PractitionerRoleType) IsFamilyMemberHistoryConditionNoteUnion() {} + +func (PractitionerRoleType) IsObservationNoteUnion() {} + +func (PractitionerRoleType) IsObservationPerformerUnion() {} + +func (PractitionerRoleType) IsProcedureFocusUnion() {} + +func (PractitionerRoleType) IsProcedureRecorderUnion() {} + +func (PractitionerRoleType) IsProcedureReportedReferenceUnion() {} + +func (PractitionerRoleType) IsProcedureNoteUnion() {} + +func (PractitionerRoleType) IsProcedurePerformerUnion() {} + +func (PractitionerRoleType) IsImagingStudySeriesPerformerUnion() {} + +func (PractitionerRoleType) IsTaskPerformerActorUnion() {} + +func (PractitionerRoleType) IsFamilyMemberHistoryNoteUnion() {} + +func (PractitionerRoleType) IsFamilyMemberHistoryParticipantUnion() {} + +func (PractitionerRoleType) IsTaskInputValueAnnotationUnion() {} + +func (PractitionerRoleType) IsTaskInputValueSignatureUnion() {} + +func (PractitionerRoleType) IsImagingStudyReferrerUnion() {} + +func (PractitionerRoleType) IsImagingStudyNoteUnion() {} + +func (PractitionerRoleType) IsResearchStudyAssociatedPartyUnion() {} + +func (PractitionerRoleType) IsResearchStudyNoteUnion() {} + +func (PractitionerRoleType) IsDocumentReferenceAttesterPartyUnion() {} + +func (PractitionerRoleType) IsExtensionValueAnnotationUnion() {} + +func (PractitionerRoleType) IsExtensionValueSignatureUnion() {} + +func (PractitionerRoleType) IsImagingStudySeriesPerformerActorUnion() {} + +func (PractitionerRoleType) IsDiagnosticReportNoteUnion() {} + +func (PractitionerRoleType) IsDiagnosticReportPerformerUnion() {} + +func (PractitionerRoleType) IsDiagnosticReportResultsInterpreterUnion() {} + +func (PractitionerRoleType) IsAnnotationAuthorReferenceUnion() {} + +func (PractitionerRoleType) IsTaskOutputValueAnnotationUnion() {} + +func (PractitionerRoleType) IsTaskOutputValueSignatureUnion() {} + +func (PractitionerRoleType) IsTaskOwnerUnion() {} + +func (PractitionerRoleType) IsTaskRequesterUnion() {} + +func (PractitionerRoleType) IsTaskNoteUnion() {} + +func (PractitionerRoleType) IsTaskPerformerUnion() {} + +func (PractitionerRoleType) IsTaskRestrictionUnion() {} + +func (PractitionerRoleType) IsResourceUnion() {} + +type PractitionerType struct { + Meta *Meta `json:"meta,omitempty"` + DeceasedBoolean *string `json:"deceasedBoolean,omitempty"` + BirthDate *string `json:"birthDate,omitempty"` + ID *string `json:"id,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Gender *string `json:"gender,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"` + 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"` +} + +func (PractitionerType) IsGroupManagingEntityUnion() {} + +func (PractitionerType) IsGroupMemberUnion() {} + +func (PractitionerType) IsProcedurePerformerActorUnion() {} + +func (PractitionerType) IsSubstanceDefinitionNoteUnion() {} + +func (PractitionerType) IsConditionParticipantActorUnion() {} + +func (PractitionerType) IsFamilyMemberHistoryParticipantActorUnion() {} + +func (PractitionerType) IsMedicationAdministrationNoteUnion() {} + +func (PractitionerType) IsResearchStudyAssociatedPartyPartyUnion() {} + +func (PractitionerType) IsDocumentReferenceAuthorUnion() {} + +func (PractitionerType) IsDocumentReferenceAttesterUnion() {} + +func (PractitionerType) IsSubstanceDefinitionCodeNoteUnion() {} + +func (PractitionerType) IsMedicationRequestDispenseRequestDispenserInstructionUnion() {} + +func (PractitionerType) IsSignatureOnBehalfOfUnion() {} + +func (PractitionerType) IsSignatureWhoUnion() {} + +func (PractitionerType) IsFamilyMemberHistoryProcedureNoteUnion() {} + +func (PractitionerType) IsTaskRestrictionRecipientUnion() {} + +func (PractitionerType) IsSpecimenCollectionUnion() {} + +func (PractitionerType) IsSpecimenNoteUnion() {} + +func (PractitionerType) IsSpecimenCollectionCollectorUnion() {} + +func (PractitionerType) IsMedicationRequestPerformerUnion() {} + +func (PractitionerType) IsMedicationRequestRecorderUnion() {} + +func (PractitionerType) IsMedicationRequestRequesterUnion() {} + +func (PractitionerType) IsMedicationRequestNoteUnion() {} + +func (PractitionerType) IsMedicationRequestInformationSourceUnion() {} + +func (PractitionerType) IsPatientGeneralPractitionerUnion() {} + +func (PractitionerType) IsMedicationStatementInformationSourceUnion() {} + +func (PractitionerType) IsMedicationStatementNoteUnion() {} + +func (PractitionerType) IsGroupMemberEntityUnion() {} + +func (PractitionerType) IsConditionNoteUnion() {} + +func (PractitionerType) IsConditionParticipantUnion() {} + +func (PractitionerType) IsFamilyMemberHistoryConditionNoteUnion() {} + +func (PractitionerType) IsObservationSubjectUnion() {} + +func (PractitionerType) IsObservationNoteUnion() {} + +func (PractitionerType) IsObservationPerformerUnion() {} + +func (PractitionerType) IsProcedureFocusUnion() {} + +func (PractitionerType) IsProcedureRecorderUnion() {} + +func (PractitionerType) IsProcedureReportedReferenceUnion() {} + +func (PractitionerType) IsProcedureSubjectUnion() {} + +func (PractitionerType) IsProcedureNoteUnion() {} + +func (PractitionerType) IsProcedurePerformerUnion() {} + +func (PractitionerType) IsImagingStudySeriesPerformerUnion() {} + +func (PractitionerType) IsTaskPerformerActorUnion() {} + +func (PractitionerType) IsFamilyMemberHistoryNoteUnion() {} + +func (PractitionerType) IsFamilyMemberHistoryParticipantUnion() {} + +func (PractitionerType) IsTaskInputValueAnnotationUnion() {} + +func (PractitionerType) IsTaskInputValueSignatureUnion() {} + +func (PractitionerType) IsImagingStudyReferrerUnion() {} + +func (PractitionerType) IsImagingStudyNoteUnion() {} + +func (PractitionerType) IsResearchStudyAssociatedPartyUnion() {} + +func (PractitionerType) IsResearchStudyNoteUnion() {} + +func (PractitionerType) IsDocumentReferenceAttesterPartyUnion() {} + +func (PractitionerType) IsExtensionValueAnnotationUnion() {} + +func (PractitionerType) IsExtensionValueSignatureUnion() {} + +func (PractitionerType) IsImagingStudySeriesPerformerActorUnion() {} + +func (PractitionerType) IsDiagnosticReportNoteUnion() {} + +func (PractitionerType) IsDiagnosticReportPerformerUnion() {} + +func (PractitionerType) IsDiagnosticReportResultsInterpreterUnion() {} + +func (PractitionerType) IsDiagnosticReportSubjectUnion() {} + +func (PractitionerType) IsAnnotationAuthorReferenceUnion() {} + +func (PractitionerType) IsTaskOutputValueAnnotationUnion() {} + +func (PractitionerType) IsTaskOutputValueSignatureUnion() {} + +func (PractitionerType) IsTaskOwnerUnion() {} + +func (PractitionerType) IsTaskRequesterUnion() {} + +func (PractitionerType) IsTaskNoteUnion() {} + +func (PractitionerType) IsTaskPerformerUnion() {} + +func (PractitionerType) IsTaskRestrictionUnion() {} + +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"` +} + +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"` +} + +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"` +} + +func (ProcedureType) IsMedicationAdministrationPartOfUnion() {} + +func (ProcedureType) IsMedicationStatementPartOfUnion() {} + +func (ProcedureType) IsObservationSubjectUnion() {} + +func (ProcedureType) IsObservationPartOfUnion() {} + +func (ProcedureType) IsProcedurePartOfUnion() {} + +func (ProcedureType) IsDiagnosticReportSupportingInfoUnion() {} + +func (ProcedureType) IsDiagnosticReportSupportingInfoReferenceUnion() {} + +func (ProcedureType) IsResourceUnion() {} + +type Quantity 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"` +} + +type Query struct { +} + +type Range struct { + 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 { + 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 { + ResourceType *string `json:"resourceType,omitempty"` + Denominator *Quantity `json:"denominator,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + HighNumerator *Quantity `json:"highNumerator,omitempty"` + ID *string `json:"id,omitempty"` + LowNumerator *Quantity `json:"lowNumerator,omitempty"` +} + +type Reference struct { + 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"` + 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"` + ResourceType *string `json:"resourceType,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"` +} + +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"` + LinkID *string `json:"linkId,omitempty"` + Type *CodeableConcept `json:"type,omitempty"` + Extension []*Extension `json:"extension,omitempty"` +} + +type ResearchStudyLabel struct { + 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"` +} + +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"` +} + +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"` +} + +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"` +} + +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"` +} + +func (ResearchStudyType) IsUsageContextValueReferenceUnion() {} + +func (ResearchStudyType) IsTaskInputValueUsageContextUnion() {} + +func (ResearchStudyType) IsResearchStudySiteUnion() {} + +func (ResearchStudyType) IsExtensionValueUsageContextUnion() {} + +func (ResearchStudyType) IsTaskOutputValueUsageContextUnion() {} + +func (ResearchStudyType) IsResourceUnion() {} + +type ResearchSubjectProgress struct { + EndDate *string `json:"endDate,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Type *CodeableConcept `json:"type,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Milestone *CodeableConcept `json:"milestone,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"` +} + +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"` +} + +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"` + LowerLimit *string `json:"lowerLimit,omitempty"` + UpperLimit *string `json:"upperLimit,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + ID *string `json:"id,omitempty"` + Dimensions *string `json:"dimensions,omitempty"` + Factor *string `json:"factor,omitempty"` + Interval *string `json:"interval,omitempty"` + Offsets *string `json:"offsets,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"` +} + +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"` +} + +type SpecimenContainer struct { + 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 { + 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"` + Description *string `json:"description,omitempty"` + ID *string `json:"id,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Method *CodeableConcept `json:"method,omitempty"` + TimeDateTime *string `json:"timeDateTime,omitempty"` + Extension []*Extension `json:"extension,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"` +} + +func (SpecimenType) IsGroupMemberUnion() {} + +func (SpecimenType) IsGroupMemberEntityUnion() {} + +func (SpecimenType) IsObservationSpecimenUnion() {} + +func (SpecimenType) IsProcedureFocusUnion() {} + +func (SpecimenType) IsResearchSubjectSubjectUnion() {} + +func (SpecimenType) IsResourceUnion() {} + +type SubstanceDefinitionCharacterization struct { + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Technique *CodeableConcept `json:"technique,omitempty"` + Description *string `json:"description,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + File []*Attachment `json:"file,omitempty"` + Form *CodeableConcept `json:"form,omitempty"` + ID *string `json:"id,omitempty"` +} + +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"` +} + +type SubstanceDefinitionMoiety struct { + MeasurementType *CodeableConcept `json:"measurementType,omitempty"` + Name *string `json:"name,omitempty"` + AmountString *string `json:"amountString,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"` + Role *CodeableConcept `json:"role,omitempty"` + ID *string `json:"id,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + AmountQuantity *Quantity `json:"amountQuantity,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"` +} + +type SubstanceDefinitionName struct { + Status *CodeableConcept `json:"status,omitempty"` + Synonym []*SubstanceDefinitionName `json:"synonym,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"` + Preferred *string `json:"preferred,omitempty"` + Source []*DocumentReferenceType `json:"source,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` +} + +type SubstanceDefinitionNameOfficial struct { + 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"` + ResourceType *string `json:"resourceType,omitempty"` + Type *CodeableConcept `json:"type,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"` +} + +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"` + ID *string `json:"id,omitempty"` + Species *CodeableConcept `json:"species,omitempty"` + Part *CodeableConcept `json:"part,omitempty"` +} + +type SubstanceDefinitionStructure struct { + SourceDocument []*DocumentReferenceType `json:"sourceDocument,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"` + Extension []*Extension `json:"extension,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"` +} + +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"` + 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"` + Property []*SubstanceDefinitionProperty `json:"property,omitempty"` +} + +func (SubstanceDefinitionType) IsResourceUnion() {} + +type SubstanceIngredient struct { + SubstanceReference []*SubstanceType `json:"substanceReference,omitempty"` + 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"` + Identifier []*Identifier `json:"identifier,omitempty"` + Contained []ResourceUnion `json:"contained,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Instance *string `json:"instance,omitempty"` + ImplicitRules *string `json:"implicitRules,omitempty"` + ModifierExtension []*Extension `json:"modifierExtension,omitempty"` + Expiry *string `json:"expiry,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` + Meta *Meta `json:"meta,omitempty"` + Code *CodeableReference `json:"code,omitempty"` + Extension []*Extension `json:"extension,omitempty"` + Quantity *Quantity `json:"quantity,omitempty"` + Text *Narrative `json:"text,omitempty"` +} + +func (SubstanceType) IsSpecimenSubjectUnion() {} + +func (SubstanceType) IsObservationSubjectUnion() {} + +func (SubstanceType) IsResearchSubjectSubjectUnion() {} + +func (SubstanceType) IsDiagnosticReportSubjectUnion() {} + +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"` +} + +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 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"` +} + +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"` +} + +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"` +} + +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"` +} + +type TimingRepeat struct { + BoundsRange *Range `json:"boundsRange,omitempty"` + CountMax *string `json:"countMax,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"` + When *string `json:"when,omitempty"` + ID *string `json:"id,omitempty"` + DurationMax *string `json:"durationMax,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"` +} + +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"` + Code *CodeableConcept `json:"code,omitempty"` + TimingDateTime *string `json:"timingDateTime,omitempty"` + Type *string `json:"type,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + TimingDate *string `json:"timingDate,omitempty"` + SubscriptionTopic *string `json:"subscriptionTopic,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"` +} + +type VirtualServiceDetail struct { + 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"` + AddressString *string `json:"addressString,omitempty"` + AddressURL *string `json:"addressUrl,omitempty"` + ChannelType *Coding `json:"channelType,omitempty"` + MaxParticipants *string `json:"maxParticipants,omitempty"` +} + +type Accessibility string + +const ( + AccessibilityAll Accessibility = "all" + AccessibilityAccessible Accessibility = "accessible" + AccessibilityUnaccessible Accessibility = "unaccessible" +) + +var AllAccessibility = []Accessibility{ + AccessibilityAll, + AccessibilityAccessible, + AccessibilityUnaccessible, +} + +func (e Accessibility) IsValid() bool { + switch e { + case AccessibilityAll, AccessibilityAccessible, AccessibilityUnaccessible: + return true + } + return false +} + +func (e Accessibility) String() string { + return string(e) +} + +func (e *Accessibility) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = Accessibility(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid Accessibility", str) + } + return nil +} + +func (e Accessibility) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type Format string + +const ( + FormatJSON Format = "json" + FormatTsv Format = "tsv" + FormatCSV Format = "csv" +) + +var AllFormat = []Format{ + FormatJSON, + FormatTsv, + FormatCSV, +} + +func (e Format) IsValid() bool { + switch e { + case FormatJSON, FormatTsv, FormatCSV: + return true + } + return false +} + +func (e Format) String() string { + return string(e) +} + +func (e *Format) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = Format(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid Format", str) + } + return nil +} + +func (e Format) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} diff --git a/gql-gen/model/test.go b/gql-gen/model/test.go new file mode 100644 index 0000000..044c42f --- /dev/null +++ b/gql-gen/model/test.go @@ -0,0 +1,102 @@ +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/server.go b/gql-gen/server.go new file mode 100644 index 0000000..3fb7b97 --- /dev/null +++ b/gql-gen/server.go @@ -0,0 +1,100 @@ +package main + +import ( + "net/http" + + "github.com/99designs/gqlgen/graphql/handler" + "github.com/99designs/gqlgen/graphql/handler/extension" + "github.com/99designs/gqlgen/graphql/handler/lru" + "github.com/99designs/gqlgen/graphql/handler/transport" + "github.com/99designs/gqlgen/graphql/playground" + + "github.com/bmeg/grip-graphql/gql-gen/generated" + "github.com/bmeg/grip-graphql/gql-gen/graph" + + "github.com/vektah/gqlparser/v2/ast" + + "github.com/bmeg/grip/gripql" + "github.com/bmeg/grip/log" + "github.com/gin-gonic/gin" +) + +type Handler struct { + router *gin.Engine + config map[string]string + handler *handler.Server + client gripql.Client +} + +func (gh *Handler) graphqlHandler(client gripql.Client) gin.HandlerFunc { + executableSchema := generated.NewExecutableSchema(generated.Config{Resolvers: &graph.Resolver{}}) + schema := executableSchema.Schema() + resolvers := &graph.Resolver{ + Schema: schema, + GripDb: client, + } + srv := handler.New(generated.NewExecutableSchema(generated.Config{Resolvers: resolvers})) + gh.handler = srv + + gh.handler.AddTransport(transport.Options{}) + gh.handler.AddTransport(transport.GET{}) + gh.handler.AddTransport(transport.POST{}) + gh.handler.SetQueryCache(lru.New[*ast.QueryDocument](1000)) + + gh.handler.Use(extension.Introspection{}) + gh.handler.Use(extension.AutomaticPersistedQuery{ + Cache: lru.New[string](100), + }) + + return func(c *gin.Context) { + gh.handler.ServeHTTP(c.Writer, c.Request) + //c.Next() + } +} + +func (gh *Handler) ServeHTTP(writer http.ResponseWriter, request *http.Request) { + //log.Infoln("HELLO INSIDE SERVE HTTP ", request) + gh.router.ServeHTTP(writer, request) +} + +func playgroundHandler() gin.HandlerFunc { + h := playground.Handler("GraphQL Playground", "/graphql/query") + return func(c *gin.Context) { + h.ServeHTTP(c.Writer, c.Request) + } +} + +func NewHTTPHandler(client gripql.Client, config map[string]string) (http.Handler, error) { + // Setting up Gin + r := gin.New() + logConfig := log.Logger{ + Level: "info", + Formatter: "json", + } + log.ConfigureLogger(logConfig) + r.Use(gin.Logger()) + /*r.NoRoute(func(c *gin.Context) { + log.WithFields(log.Fields{ + "graph": nil, + "status": "404", + }).Info(c.Request.URL.Path + " Not Found") + c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{ + "status": "404", + "message": c.Request.URL.Path + " Not Found", + "data": nil, + }) + })*/ + r.Use(gin.Recovery()) + + r.RemoveExtraSlash = true + + h := &Handler{ + router: r, + config: config, + client: client, + } + r.POST("/query", h.graphqlHandler(client)) + r.GET("/", playgroundHandler()) + return h, nil + +} diff --git a/gql-gen/tools.go b/gql-gen/tools.go new file mode 100644 index 0000000..4f04ccd --- /dev/null +++ b/gql-gen/tools.go @@ -0,0 +1,9 @@ +//go:build tools +// +build tools + +package tools + +import ( + _ "github.com/99designs/gqlgen" + _ "github.com/99designs/gqlgen/graphql/introspection" +)