{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ferrum","colors":{"primary":"#4076B9","light":"#4076B9","dark":"#4076B9"},"logo":{"light":"https://mintcdn.com/thalamiq/MnlYeF-Y6ojGeQgf/logos/ferrum.svg?fit=max\u0026auto=format\u0026n=MnlYeF-Y6ojGeQgf\u0026q=85\u0026s=fc9aa15ec5a332123fdf9888fc7aad73","dark":"https://mintcdn.com/thalamiq/MnlYeF-Y6ojGeQgf/logos/ferrum.svg?fit=max\u0026auto=format\u0026n=MnlYeF-Y6ojGeQgf\u0026q=85\u0026s=fc9aa15ec5a332123fdf9888fc7aad73"},"favicon":"/favicon.svg","api":{"playground":{"display":"interactive","proxy":true},"examples":{"defaults":"required","languages":["curl","python","javascript"],"prefill":true}},"navbar":{"links":[{"href":"https://github.com/thalamiq/ferrum","label":"GitHub"}]},"footer":{"socials":{"github":"https://github.com/thalamiq/ferrum","website":"https://thalamiq.io"},"links":[{"header":"By ThalamiQ","items":[{"label":"thalamiq.io","href":"https://thalamiq.io"},{"label":"GitHub","href":"https://github.com/thalamiq/ferrum"}]}]},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/thalamiq/ferrum"},{"anchor":"FHIR Specification","icon":"book-open","href":"https://hl7.org/fhir/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"thalamiq","hasAudioNarration":false,"actualSubdomain":"thalamiq","customDomains":["docs.ferrum.thalamiq.io"],"gitSource":{"type":"github","owner":"thalamiq","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21eb761794d24ae190a9b8","collectionId":"6b07d4c8-a2cb-4019-9082-d41a6a323953","schemaVersion":"v2"},"entitlements":{},"buildId":"6a21eb761794d24ae190a9b8:success","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"API Reference","count":22},{"language":"default","tag":"Documentation","count":15},{"language":"default","tag":"Server","count":11},{"language":"default","tag":"CRUD Operations","count":5},{"language":"default","tag":"Overview","count":4},{"language":"default","tag":"History \u0026 Versioning","count":4},{"language":"default","tag":"Getting Started","count":4},{"language":"default","tag":"Operations","count":3},{"language":"default","tag":"Search","count":3},{"language":"default","tag":"Batch \u0026 Transaction","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/search/type","slug":"/api-reference/search/type","pageMetadata":{"title":"Type-Level Search","description":"Search within a specific resource type","openapi":"GET /{resourceType}","href":"/api-reference/search/type","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Search within a specific resource type\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,ParamField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`type-level-search`,children:`Type-Level Search`}),`\n`,_jsx(_components.p,{children:`Search for resources of a specific type using search parameters.`}),`\n`,_jsx(ParamField,{path:`resource_type`,type:`string`,required:true,id:`param-resource-type`,children:_jsxs(_components.p,{children:[`The FHIR resource type to search (e.g., `,_jsx(_components.code,{children:`Patient`}),`, `,_jsx(_components.code,{children:`Observation`}),`, `,_jsx(_components.code,{children:`Encounter`}),`)`]})}),`\n`,_jsx(Heading,{level:`2`,id:`endpoint`,children:`Endpoint`}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET /fhir/:resource_type`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET /fhir/:resource_type/_search`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`POST /fhir/:resource_type/_search`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`get-request`,children:`GET Request`}),`\n`,_jsx(_components.p,{children:`Search using query parameters:`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://your-server.com/fhir/Patient?name=Doe\u0026gender=male\u0026_count=10\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`HTTP`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /fhir/Patient?name=Doe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`gender`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`male`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`_count`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`10`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` HTTP/1.1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`Host:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` your-server.com`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`post-request`,children:`POST Request`}),`\n`,_jsx(_components.p,{children:`Use POST for complex searches or when query string length is a concern:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`POST /fhir/Patient/_search`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Content-Type: application/x-www-form-urlencoded`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`name=Doe\u0026gender=male\u0026_count=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`search-parameters`,children:`Search Parameters`}),`\n`,_jsx(_components.p,{children:`Search parameters are resource-type specific. Common examples:`}),`\n`,_jsx(Heading,{level:`3`,id:`patient-search`,children:`Patient Search`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`name`}),` - Search by patient name`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`identifier`}),` - Search by identifier (e.g., `,_jsx(_components.code,{children:`identifier=http://example.org/mrn|12345`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`gender`}),` - Filter by gender (`,_jsx(_components.code,{children:`male`}),`, `,_jsx(_components.code,{children:`female`}),`, `,_jsx(_components.code,{children:`other`}),`, `,_jsx(_components.code,{children:`unknown`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`birthdate`}),` - Filter by birth date (supports prefixes: `,_jsx(_components.code,{children:`eq`}),`, `,_jsx(_components.code,{children:`gt`}),`, `,_jsx(_components.code,{children:`lt`}),`, `,_jsx(_components.code,{children:`ge`}),`, `,_jsx(_components.code,{children:`le`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`address`}),` - Search by address`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`telecom`}),` - Search by contact information`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`observation-search`,children:`Observation Search`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`patient`}),` - Filter by patient reference`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`code`}),` - Filter by observation code`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`date`}),` - Filter by observation date`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`value-quantity`}),` - Filter by value`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`status`}),` - Filter by status`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`common-parameters-all-types`,children:`Common Parameters (All Types)`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`_id`}),` - Filter by resource ID`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`_lastUpdated`}),` - Filter by last updated date`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`_tag`}),` - Filter by tags`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`_profile`}),` - Filter by profile`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`_security`}),` - Filter by security labels`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`_count`}),` - Maximum number of results`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`_sort`}),` - Sort order`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`_summary`}),` - Summary mode`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`_total`}),` - Include total count`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(Heading,{level:`3`,id:`search-patients-by-name`,children:`Search Patients by Name`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /fhir/Patient?name=Doe`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`search-patients-by-identifier`,children:`Search Patients by Identifier`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /fhir/Patient?identifier=http://example.org/mrn`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`12345`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`search-observations-for-a-patient`,children:`Search Observations for a Patient`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /fhir/Observation?patient=Patient/123`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`code`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`http://loinc.org`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`29463-7`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`search-with-date-range`,children:`Search with Date Range`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /fhir/Observation?patient=Patient/123`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`date`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`ge2024-01-01`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`date`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`le2024-12-31`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`search-with-multiple-parameters`,children:`Search with Multiple Parameters`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /fhir/Patient?name=Doe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`gender`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`male`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`birthdate`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`ge1990-01-01`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`_count`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`20`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`_sort`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`-birthdate`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(Heading,{level:`3`,id:`success-200-ok`,children:`Success (200 OK)`}),`\n`,_jsxs(_components.p,{children:[`Returns a `,_jsx(_components.code,{children:`Bundle`}),` containing matching resources:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`22`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`22`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resourceType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bundle\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"searchset\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"link\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"relation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"self\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://your-server.com/fhir/Patient?name=Doe\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"entry\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fullUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://your-server.com/fhir/Patient/123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resource\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resourceType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Patient\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"family\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Doe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"given\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"John\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]}],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:` ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`no-results`,children:`No Results`}),`\n`,_jsx(_components.p,{children:`Returns an empty bundle if no resources match:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resourceType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bundle\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"searchset\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"entry\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`modifiers`,children:`Modifiers`}),`\n`,_jsx(_components.p,{children:`Search parameters support modifiers:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`:exact`}),` - Exact match`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`:contains`}),` - Contains substring`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`:text`}),` - Text search`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`:above`}),` - Above in hierarchy`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`:below`}),` - Below in hierarchy`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`:not`}),` - Negation`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`:in`}),` - Value in set`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`:not-in`}),` - Value not in set`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`example-with-modifiers`,children:`Example with Modifiers`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /fhir/Patient?name:contains=John`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`birthdate:ge1990-01-01`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`chaining`,children:`Chaining`}),`\n`,_jsx(_components.p,{children:`Chain searches through references:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /fhir/Observation?patient.name=Doe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`patient.gender`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`=male`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This searches for observations where the patient’s name is “Doe” and gender is “male”.`}),`\n`,_jsx(Heading,{level:`2`,id:`reverse-chaining`,children:`Reverse Chaining`}),`\n`,_jsx(_components.p,{children:`Search resources that reference a specific resource:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /fhir/Observation?_has:Patient:identifier=http://example.org/mrn`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`12345`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This finds observations for patients with a specific identifier.`}),`\n`,_jsx(Heading,{level:`2`,id:`notes`,children:`Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Search parameters are case-sensitive`}),`\n`,_jsx(_components.li,{children:`Multiple values for the same parameter use AND logic`}),`\n`,_jsx(_components.li,{children:`Different parameters use AND logic`}),`\n`,_jsxs(_components.li,{children:[`Use `,_jsx(_components.code,{children:`_include`}),` and `,_jsx(_components.code,{children:`_revinclude`}),` to include related resources`]}),`\n`,_jsx(_components.li,{children:`Check the resource’s search parameters in the capability statement`}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Type-Level Search","description":"Search within a specific resource type","openapi":"GET /{resourceType}","href":"/api-reference/search/type","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Type-Level Search","slug":"type-level-search","depth":2,"children":[]},{"title":"Endpoint","slug":"endpoint","depth":2,"children":[]},{"title":"GET Request","slug":"get-request","depth":2,"children":[]},{"title":"POST Request","slug":"post-request","depth":2,"children":[]},{"title":"Search Parameters","slug":"search-parameters","depth":2,"children":[{"title":"Patient Search","slug":"patient-search","depth":3,"children":[]},{"title":"Observation Search","slug":"observation-search","depth":3,"children":[]},{"title":"Common Parameters (All Types)","slug":"common-parameters-all-types","depth":3,"children":[]}]},{"title":"Examples","slug":"examples","depth":2,"children":[{"title":"Search Patients by Name","slug":"search-patients-by-name","depth":3,"children":[]},{"title":"Search Patients by Identifier","slug":"search-patients-by-identifier","depth":3,"children":[]},{"title":"Search Observations for a Patient","slug":"search-observations-for-a-patient","depth":3,"children":[]},{"title":"Search with Date Range","slug":"search-with-date-range","depth":3,"children":[]},{"title":"Search with Multiple Parameters","slug":"search-with-multiple-parameters","depth":3,"children":[]}]},{"title":"Response","slug":"response","depth":2,"children":[{"title":"Success (200 OK)","slug":"success-200-ok","depth":3,"children":[]},{"title":"No Results","slug":"no-results","depth":3,"children":[]}]},{"title":"Modifiers","slug":"modifiers","depth":2,"children":[{"title":"Example with Modifiers","slug":"example-with-modifiers","depth":3,"children":[]}]},{"title":"Chaining","slug":"chaining","depth":2,"children":[]},{"title":"Reverse Chaining","slug":"reverse-chaining","depth":2,"children":[]},{"title":"Notes","slug":"notes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Search Resources by Type","description":"Search within a specific resource type","operationId":"searchType","tags":["Search"],"parameters":["e9809e53-ce71-4bd4-bfa2-9a87952b3714","14e4356f-93aa-461a-8619-a64366a3ec1d","d240796e-db7b-4069-9b62-989c25a53698","5df46d83-3df8-4674-9a1f-9fd7263717c6","37f13328-a8fd-4a09-96be-a48da3ddc117","e3386c69-78b9-4cd9-bb8c-37d3c8e5c860","0ba34209-5018-4fc8-959e-a98af94b370a"],"responses":{"200":"a7358086-61ba-4f26-b47b-90bc8db55bb5","400":"f637914a-e1e8-440a-8c9c-38d6e69de3a0"},"method":"get","type":"path","servers":["f33f2d19-5c71-4345-bf96-efaeeae832ea","6ff400de-fc81-46be-86fb-449ee21c7ef1","ea1773f4-6eb5-4c15-afeb-2eca092d2430"],"security":["df10741b-f052-4498-a740-324115db1e9a"],"path":"/{resourceType}","baseUrlOptions":["http://localhost:8080/fhir","https://your-server.com/fhir","https://api.example.com/fhir"],"title":"Search Resources by Type","codeSamples":[],"requestExampleLanguages":["bash","python","javascript"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[]},"dependencies":{"parameters":{"e9809e53-ce71-4bd4-bfa2-9a87952b3714":{"name":"resourceType","in":"path","required":true,"description":"The FHIR resource type (e.g., Patient, Observation, Encounter)","schema":{"type":"string","isRequired":true,"description":"The FHIR resource type (e.g., Patient, Observation, Encounter)","uniqueKey":"","typeLabel":"string"}},"14e4356f-93aa-461a-8619-a64366a3ec1d":{"name":"_count","in":"query","description":"Maximum number of results to return","schema":{"type":"integer","minimum":0,"default":10,"description":"Maximum number of results to return","uniqueKey":"","typeLabel":"integer"}},"d240796e-db7b-4069-9b62-989c25a53698":{"name":"_sort","in":"query","description":"Sort order (prefix with - for descending)","schema":{"type":"string","description":"Sort order (prefix with - for descending)","uniqueKey":"","typeLabel":"string"}},"5df46d83-3df8-4674-9a1f-9fd7263717c6":{"name":"_summary","in":"query","description":"Summary mode","schema":{"type":"string","enum":["true","text","data","count"],"description":"Summary mode","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"37f13328-a8fd-4a09-96be-a48da3ddc117":{"name":"_total","in":"query","description":"Include total count","schema":{"type":"string","enum":["none","estimate","accurate"],"description":"Include total count","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"e3386c69-78b9-4cd9-bb8c-37d3c8e5c860":{"name":"_lastUpdated","in":"query","description":"Filter by last updated date","schema":{"type":"string","description":"Filter by last updated date","uniqueKey":"","typeLabel":"string"}},"0ba34209-5018-4fc8-959e-a98af94b370a":{"name":"id","in":"path","required":true,"description":"The logical ID of the resource","schema":{"type":"string","isRequired":true,"description":"The logical ID of the resource","uniqueKey":"","typeLabel":"string"}}},"responses":{"a7358086-61ba-4f26-b47b-90bc8db55bb5":{"description":"Search results","content":{"application/fhir+json":{"schema":{"type":"object","description":"A container for a collection of resources","required":["resourceType","type"],"properties":{"resourceType":{"type":"string","enum":["Bundle"],"description":"Resource type","isRequired":true,"uniqueKey":"resourceType","typeLabel":"enum\u003cstring>"},"type":{"type":"string","enum":["document","message","transaction","transaction-response","batch","batch-response","history","searchset","collection"],"description":"Indicates the purpose of this bundle","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"total":{"type":"integer","description":"If search, the total number of matches","uniqueKey":"total","typeLabel":"integer"},"link":{"type":"array","items":{"type":"object","description":"A link to another resource","properties":{"relation":{"type":"string","description":"See http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1","uniqueKey":"link.items.[INDEX].relation","typeLabel":"string"},"url":{"type":"string","format":"uri","description":"Reference details for the link","uniqueKey":"link.items.[INDEX].url","typeLabel":"string\u003curi>"}},"uniqueKey":"link.items.[INDEX]","typeLabel":"object"},"description":"Links related to this Bundle","uniqueKey":"link","typeLabel":"object[]"},"entry":{"type":"array","items":{"type":"object","description":"An entry in a bundle resource","properties":{"fullUrl":{"type":"string","format":"uri","description":"URI for resource","uniqueKey":"entry.items.[INDEX].fullUrl","typeLabel":"string\u003curi>"},"resource":{"type":"object","description":"A FHIR resource. All resources have resourceType, id, and meta fields.","required":["resourceType"],"properties":{"resourceType":{"type":"string","description":"The type of resource","isRequired":true,"uniqueKey":"entry.items.[INDEX].resource.resourceType","typeLabel":"string"},"id":{"type":"string","description":"Logical id of this artifact","uniqueKey":"entry.items.[INDEX].resource.id","typeLabel":"string"},"meta":{"type":"object","description":"Metadata about a resource","properties":{"versionId":{"type":"string","description":"Version specific identifier","uniqueKey":"entry.items.[INDEX].resource.meta.versionId","typeLabel":"string"},"lastUpdated":{"type":"string","format":"date-time","description":"When the resource version last changed","uniqueKey":"entry.items.[INDEX].resource.meta.lastUpdated","typeLabel":"string\u003cdate-time>"},"profile":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"entry.items.[INDEX].resource.meta.profile.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"Profiles this resource claims to conform to","uniqueKey":"entry.items.[INDEX].resource.meta.profile","typeLabel":"string\u003curi>[]"},"tag":{"type":"array","items":{"type":"object","description":"A reference to a code defined by a terminology system","properties":{"system":{"type":"string","format":"uri","description":"Identity of the terminology system","uniqueKey":"entry.items.[INDEX].resource.meta.tag.items.[INDEX].system","typeLabel":"string\u003curi>"},"version":{"type":"string","description":"Version of the system - if relevant","uniqueKey":"entry.items.[INDEX].resource.meta.tag.items.[INDEX].version","typeLabel":"string"},"code":{"type":"string","description":"Symbol in syntax defined by the system","uniqueKey":"entry.items.[INDEX].resource.meta.tag.items.[INDEX].code","typeLabel":"string"},"display":{"type":"string","description":"Representation defined by the system","uniqueKey":"entry.items.[INDEX].resource.meta.tag.items.[INDEX].display","typeLabel":"string"}},"uniqueKey":"entry.items.[INDEX].resource.meta.tag.items.[INDEX]","typeLabel":"object"},"description":"Tags applied to this resource","uniqueKey":"entry.items.[INDEX].resource.meta.tag","typeLabel":"object[]"},"security":{"type":"array","items":{"type":"object","description":"A reference to a code defined by a terminology system","properties":{"system":{"type":"string","format":"uri","description":"Identity of the terminology system","uniqueKey":"entry.items.[INDEX].resource.meta.security.items.[INDEX].system","typeLabel":"string\u003curi>"},"version":{"type":"string","description":"Version of the system - if relevant","uniqueKey":"entry.items.[INDEX].resource.meta.security.items.[INDEX].version","typeLabel":"string"},"code":{"type":"string","description":"Symbol in syntax defined by the system","uniqueKey":"entry.items.[INDEX].resource.meta.security.items.[INDEX].code","typeLabel":"string"},"display":{"type":"string","description":"Representation defined by the system","uniqueKey":"entry.items.[INDEX].resource.meta.security.items.[INDEX].display","typeLabel":"string"}},"uniqueKey":"entry.items.[INDEX].resource.meta.security.items.[INDEX]","typeLabel":"object"},"description":"Security labels applied to this resource","uniqueKey":"entry.items.[INDEX].resource.meta.security","typeLabel":"object[]"}},"uniqueKey":"entry.items.[INDEX].resource.meta","typeLabel":"object"}},"additionalProperties":true,"uniqueKey":"entry.items.[INDEX].resource","typeLabel":"object"},"request":{"type":"object","description":"Additional information about how this entry should be processed","properties":{"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE"],"description":"HTTP verb for the operation","uniqueKey":"entry.items.[INDEX].request.method","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL for HTTP equivalent of this entry","uniqueKey":"entry.items.[INDEX].request.url","typeLabel":"string"}},"uniqueKey":"entry.items.[INDEX].request","typeLabel":"object"},"response":{"type":"object","description":"Indicates the results of processing the corresponding 'request' entry","properties":{"status":{"type":"string","description":"Status response code","uniqueKey":"entry.items.[INDEX].response.status","typeLabel":"string"},"location":{"type":"string","description":"The location (if the operation returns a location)","uniqueKey":"entry.items.[INDEX].response.location","typeLabel":"string"},"etag":{"type":"string","description":"The etag for the resource (if relevant)","uniqueKey":"entry.items.[INDEX].response.etag","typeLabel":"string"},"lastModified":{"type":"string","format":"date-time","description":"Server's date time modified","uniqueKey":"entry.items.[INDEX].response.lastModified","typeLabel":"string\u003cdate-time>"},"outcome":{"type":"object","description":"A collection of error, warning or information messages that result from a system action","required":["resourceType"],"properties":{"resourceType":{"type":"string","enum":["OperationOutcome"],"description":"Resource type","isRequired":true,"uniqueKey":"entry.items.[INDEX].response.outcome.resourceType","typeLabel":"enum\u003cstring>"},"issue":{"type":"array","items":{"type":"object","description":"An issue associated with the operation","required":["severity","code"],"properties":{"severity":{"type":"string","enum":["fatal","error","warning","information"],"description":"Severity of the issue","isRequired":true,"uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"code":{"type":"string","enum":["invalid","structure","required","value","invariant","security","login","unknown","expired","forbidden","suppressed","processing","not-supported","duplicate","multiple-matches","not-found","deleted","too-long","code-invalid","extension","too-costly","business-rule","conflict","transient","lock-error","no-store","exception","timeout","incomplete","throttled","informational"],"description":"Error or warning code","isRequired":true,"uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"details":{"type":"object","description":"A concept that may be defined by a formal reference to a terminology or ontology","properties":{"coding":{"type":"array","items":{"type":"object","description":"A reference to a code defined by a terminology system","properties":{"system":{"type":"string","format":"uri","description":"Identity of the terminology system","uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].details.coding.items.[INDEX].system","typeLabel":"string\u003curi>"},"version":{"type":"string","description":"Version of the system - if relevant","uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].details.coding.items.[INDEX].version","typeLabel":"string"},"code":{"type":"string","description":"Symbol in syntax defined by the system","uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].details.coding.items.[INDEX].code","typeLabel":"string"},"display":{"type":"string","description":"Representation defined by the system","uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].details.coding.items.[INDEX].display","typeLabel":"string"}},"uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].details.coding.items.[INDEX]","typeLabel":"object"},"uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].details.coding","typeLabel":"object[]"},"text":{"type":"string","description":"Plain text representation of the concept","uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].details.text","typeLabel":"string"}},"uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].details","typeLabel":"object"},"diagnostics":{"type":"string","description":"Additional diagnostic information about the issue","uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].diagnostics","typeLabel":"string"},"location":{"type":"array","items":{"type":"string","uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].location.items.[INDEX]","typeLabel":"string"},"description":"XPath or JSONPath expression describing the location of the issue","uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].location","typeLabel":"string[]"}},"uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX]","typeLabel":"object"},"description":"A list of issues associated with the operation","uniqueKey":"entry.items.[INDEX].response.outcome.issue","typeLabel":"object[]"}},"uniqueKey":"entry.items.[INDEX].response.outcome","typeLabel":"object"}},"uniqueKey":"entry.items.[INDEX].response","typeLabel":"object"}},"uniqueKey":"entry.items.[INDEX]","typeLabel":"object"},"description":"Entry in the bundle","uniqueKey":"entry","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"resourceType":"Bundle","type":"document","total":123,"link":[{"relation":"\u003cstring>","url":"\u003cstring>"}],"entry":[{"fullUrl":"\u003cstring>","resource":{"resourceType":"\u003cstring>","id":"\u003cstring>","meta":{"versionId":"\u003cstring>","lastUpdated":"2023-11-07T05:31:56Z","profile":["\u003cstring>"],"tag":[{"system":"\u003cstring>","version":"\u003cstring>","code":"\u003cstring>","display":"\u003cstring>"}],"security":[{"system":"\u003cstring>","version":"\u003cstring>","code":"\u003cstring>","display":"\u003cstring>"}]}},"request":{"method":"GET","url":"\u003cstring>"},"response":{"status":"\u003cstring>","location":"\u003cstring>","etag":"\u003cstring>","lastModified":"2023-11-07T05:31:56Z","outcome":{"resourceType":"OperationOutcome","issue":[{"severity":"fatal","code":"invalid","details":{"coding":[{"system":"\u003cstring>","version":"\u003cstring>","code":"\u003cstring>","display":"\u003cstring>"}],"text":"\u003cstring>"},"diagnostics":"\u003cstring>","location":["\u003cstring>"]}]}}}]}}},"exampleType":"generated"},"application/fhir+xml":{"schema":{"type":"object","description":"A container for a collection of resources","required":["resourceType","type"],"properties":{"resourceType":{"type":"string","enum":["Bundle"],"description":"Resource type","isRequired":true,"uniqueKey":"resourceType","typeLabel":"enum\u003cstring>"},"type":{"type":"string","enum":["document","message","transaction","transaction-response","batch","batch-response","history","searchset","collection"],"description":"Indicates the purpose of this bundle","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"total":{"type":"integer","description":"If search, the total number of matches","uniqueKey":"total","typeLabel":"integer"},"link":{"type":"array","items":{"type":"object","description":"A link to another resource","properties":{"relation":{"type":"string","description":"See http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1","uniqueKey":"link.items.[INDEX].relation","typeLabel":"string"},"url":{"type":"string","format":"uri","description":"Reference details for the link","uniqueKey":"link.items.[INDEX].url","typeLabel":"string\u003curi>"}},"uniqueKey":"link.items.[INDEX]","typeLabel":"object"},"description":"Links related to this Bundle","uniqueKey":"link","typeLabel":"object[]"},"entry":{"type":"array","items":{"type":"object","description":"An entry in a bundle resource","properties":{"fullUrl":{"type":"string","format":"uri","description":"URI for resource","uniqueKey":"entry.items.[INDEX].fullUrl","typeLabel":"string\u003curi>"},"resource":{"type":"object","description":"A FHIR resource. All resources have resourceType, id, and meta fields.","required":["resourceType"],"properties":{"resourceType":{"type":"string","description":"The type of resource","isRequired":true,"uniqueKey":"entry.items.[INDEX].resource.resourceType","typeLabel":"string"},"id":{"type":"string","description":"Logical id of this artifact","uniqueKey":"entry.items.[INDEX].resource.id","typeLabel":"string"},"meta":{"type":"object","description":"Metadata about a resource","properties":{"versionId":{"type":"string","description":"Version specific identifier","uniqueKey":"entry.items.[INDEX].resource.meta.versionId","typeLabel":"string"},"lastUpdated":{"type":"string","format":"date-time","description":"When the resource version last changed","uniqueKey":"entry.items.[INDEX].resource.meta.lastUpdated","typeLabel":"string\u003cdate-time>"},"profile":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"entry.items.[INDEX].resource.meta.profile.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"Profiles this resource claims to conform to","uniqueKey":"entry.items.[INDEX].resource.meta.profile","typeLabel":"string\u003curi>[]"},"tag":{"type":"array","items":{"type":"object","description":"A reference to a code defined by a terminology system","properties":{"system":{"type":"string","format":"uri","description":"Identity of the terminology system","uniqueKey":"entry.items.[INDEX].resource.meta.tag.items.[INDEX].system","typeLabel":"string\u003curi>"},"version":{"type":"string","description":"Version of the system - if relevant","uniqueKey":"entry.items.[INDEX].resource.meta.tag.items.[INDEX].version","typeLabel":"string"},"code":{"type":"string","description":"Symbol in syntax defined by the system","uniqueKey":"entry.items.[INDEX].resource.meta.tag.items.[INDEX].code","typeLabel":"string"},"display":{"type":"string","description":"Representation defined by the system","uniqueKey":"entry.items.[INDEX].resource.meta.tag.items.[INDEX].display","typeLabel":"string"}},"uniqueKey":"entry.items.[INDEX].resource.meta.tag.items.[INDEX]","typeLabel":"object"},"description":"Tags applied to this resource","uniqueKey":"entry.items.[INDEX].resource.meta.tag","typeLabel":"object[]"},"security":{"type":"array","items":{"type":"object","description":"A reference to a code defined by a terminology system","properties":{"system":{"type":"string","format":"uri","description":"Identity of the terminology system","uniqueKey":"entry.items.[INDEX].resource.meta.security.items.[INDEX].system","typeLabel":"string\u003curi>"},"version":{"type":"string","description":"Version of the system - if relevant","uniqueKey":"entry.items.[INDEX].resource.meta.security.items.[INDEX].version","typeLabel":"string"},"code":{"type":"string","description":"Symbol in syntax defined by the system","uniqueKey":"entry.items.[INDEX].resource.meta.security.items.[INDEX].code","typeLabel":"string"},"display":{"type":"string","description":"Representation defined by the system","uniqueKey":"entry.items.[INDEX].resource.meta.security.items.[INDEX].display","typeLabel":"string"}},"uniqueKey":"entry.items.[INDEX].resource.meta.security.items.[INDEX]","typeLabel":"object"},"description":"Security labels applied to this resource","uniqueKey":"entry.items.[INDEX].resource.meta.security","typeLabel":"object[]"}},"uniqueKey":"entry.items.[INDEX].resource.meta","typeLabel":"object"}},"additionalProperties":true,"uniqueKey":"entry.items.[INDEX].resource","typeLabel":"object"},"request":{"type":"object","description":"Additional information about how this entry should be processed","properties":{"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE"],"description":"HTTP verb for the operation","uniqueKey":"entry.items.[INDEX].request.method","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL for HTTP equivalent of this entry","uniqueKey":"entry.items.[INDEX].request.url","typeLabel":"string"}},"uniqueKey":"entry.items.[INDEX].request","typeLabel":"object"},"response":{"type":"object","description":"Indicates the results of processing the corresponding 'request' entry","properties":{"status":{"type":"string","description":"Status response code","uniqueKey":"entry.items.[INDEX].response.status","typeLabel":"string"},"location":{"type":"string","description":"The location (if the operation returns a location)","uniqueKey":"entry.items.[INDEX].response.location","typeLabel":"string"},"etag":{"type":"string","description":"The etag for the resource (if relevant)","uniqueKey":"entry.items.[INDEX].response.etag","typeLabel":"string"},"lastModified":{"type":"string","format":"date-time","description":"Server's date time modified","uniqueKey":"entry.items.[INDEX].response.lastModified","typeLabel":"string\u003cdate-time>"},"outcome":{"type":"object","description":"A collection of error, warning or information messages that result from a system action","required":["resourceType"],"properties":{"resourceType":{"type":"string","enum":["OperationOutcome"],"description":"Resource type","isRequired":true,"uniqueKey":"entry.items.[INDEX].response.outcome.resourceType","typeLabel":"enum\u003cstring>"},"issue":{"type":"array","items":{"type":"object","description":"An issue associated with the operation","required":["severity","code"],"properties":{"severity":{"type":"string","enum":["fatal","error","warning","information"],"description":"Severity of the issue","isRequired":true,"uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"code":{"type":"string","enum":["invalid","structure","required","value","invariant","security","login","unknown","expired","forbidden","suppressed","processing","not-supported","duplicate","multiple-matches","not-found","deleted","too-long","code-invalid","extension","too-costly","business-rule","conflict","transient","lock-error","no-store","exception","timeout","incomplete","throttled","informational"],"description":"Error or warning code","isRequired":true,"uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"details":{"type":"object","description":"A concept that may be defined by a formal reference to a terminology or ontology","properties":{"coding":{"type":"array","items":{"type":"object","description":"A reference to a code defined by a terminology system","properties":{"system":{"type":"string","format":"uri","description":"Identity of the terminology system","uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].details.coding.items.[INDEX].system","typeLabel":"string\u003curi>"},"version":{"type":"string","description":"Version of the system - if relevant","uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].details.coding.items.[INDEX].version","typeLabel":"string"},"code":{"type":"string","description":"Symbol in syntax defined by the system","uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].details.coding.items.[INDEX].code","typeLabel":"string"},"display":{"type":"string","description":"Representation defined by the system","uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].details.coding.items.[INDEX].display","typeLabel":"string"}},"uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].details.coding.items.[INDEX]","typeLabel":"object"},"uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].details.coding","typeLabel":"object[]"},"text":{"type":"string","description":"Plain text representation of the concept","uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].details.text","typeLabel":"string"}},"uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].details","typeLabel":"object"},"diagnostics":{"type":"string","description":"Additional diagnostic information about the issue","uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].diagnostics","typeLabel":"string"},"location":{"type":"array","items":{"type":"string","uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].location.items.[INDEX]","typeLabel":"string"},"description":"XPath or JSONPath expression describing the location of the issue","uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX].location","typeLabel":"string[]"}},"uniqueKey":"entry.items.[INDEX].response.outcome.issue.items.[INDEX]","typeLabel":"object"},"description":"A list of issues associated with the operation","uniqueKey":"entry.items.[INDEX].response.outcome.issue","typeLabel":"object[]"}},"uniqueKey":"entry.items.[INDEX].response.outcome","typeLabel":"object"}},"uniqueKey":"entry.items.[INDEX].response","typeLabel":"object"}},"uniqueKey":"entry.items.[INDEX]","typeLabel":"object"},"description":"Entry in the bundle","uniqueKey":"entry","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"resourceType":"Bundle","type":"document","total":123,"link":[{"relation":"\u003cstring>","url":"\u003cstring>"}],"entry":[{"fullUrl":"\u003cstring>","resource":{"resourceType":"\u003cstring>","id":"\u003cstring>","meta":{"versionId":"\u003cstring>","lastUpdated":"2023-11-07T05:31:56Z","profile":["\u003cstring>"],"tag":[{"system":"\u003cstring>","version":"\u003cstring>","code":"\u003cstring>","display":"\u003cstring>"}],"security":[{"system":"\u003cstring>","version":"\u003cstring>","code":"\u003cstring>","display":"\u003cstring>"}]}},"request":{"method":"GET","url":"\u003cstring>"},"response":{"status":"\u003cstring>","location":"\u003cstring>","etag":"\u003cstring>","lastModified":"2023-11-07T05:31:56Z","outcome":{"resourceType":"OperationOutcome","issue":[{"severity":"fatal","code":"invalid","details":{"coding":[{"system":"\u003cstring>","version":"\u003cstring>","code":"\u003cstring>","display":"\u003cstring>"}],"text":"\u003cstring>"},"diagnostics":"\u003cstring>","location":["\u003cstring>"]}]}}}]}}},"exampleType":"generated"}},"exampleType":"generated"},"f637914a-e1e8-440a-8c9c-38d6e69de3a0":{"description":"Bad request - validation error or invalid input","content":{"application/fhir+json":{"schema":{"type":"object","description":"A collection of error, warning or information messages that result from a system action","required":["resourceType"],"properties":{"resourceType":{"type":"string","enum":["OperationOutcome"],"description":"Resource type","isRequired":true,"uniqueKey":"resourceType","typeLabel":"enum\u003cstring>"},"issue":{"type":"array","items":{"type":"object","description":"An issue associated with the operation","required":["severity","code"],"properties":{"severity":{"type":"string","enum":["fatal","error","warning","information"],"description":"Severity of the issue","isRequired":true,"uniqueKey":"issue.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"code":{"type":"string","enum":["invalid","structure","required","value","invariant","security","login","unknown","expired","forbidden","suppressed","processing","not-supported","duplicate","multiple-matches","not-found","deleted","too-long","code-invalid","extension","too-costly","business-rule","conflict","transient","lock-error","no-store","exception","timeout","incomplete","throttled","informational"],"description":"Error or warning code","isRequired":true,"uniqueKey":"issue.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"details":{"type":"object","description":"A concept that may be defined by a formal reference to a terminology or ontology","properties":{"coding":{"type":"array","items":{"type":"object","description":"A reference to a code defined by a terminology system","properties":{"system":{"type":"string","format":"uri","description":"Identity of the terminology system","uniqueKey":"issue.items.[INDEX].details.coding.items.[INDEX].system","typeLabel":"string\u003curi>"},"version":{"type":"string","description":"Version of the system - if relevant","uniqueKey":"issue.items.[INDEX].details.coding.items.[INDEX].version","typeLabel":"string"},"code":{"type":"string","description":"Symbol in syntax defined by the system","uniqueKey":"issue.items.[INDEX].details.coding.items.[INDEX].code","typeLabel":"string"},"display":{"type":"string","description":"Representation defined by the system","uniqueKey":"issue.items.[INDEX].details.coding.items.[INDEX].display","typeLabel":"string"}},"uniqueKey":"issue.items.[INDEX].details.coding.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issue.items.[INDEX].details.coding","typeLabel":"object[]"},"text":{"type":"string","description":"Plain text representation of the concept","uniqueKey":"issue.items.[INDEX].details.text","typeLabel":"string"}},"uniqueKey":"issue.items.[INDEX].details","typeLabel":"object"},"diagnostics":{"type":"string","description":"Additional diagnostic information about the issue","uniqueKey":"issue.items.[INDEX].diagnostics","typeLabel":"string"},"location":{"type":"array","items":{"type":"string","uniqueKey":"issue.items.[INDEX].location.items.[INDEX]","typeLabel":"string"},"description":"XPath or JSONPath expression describing the location of the issue","uniqueKey":"issue.items.[INDEX].location","typeLabel":"string[]"}},"uniqueKey":"issue.items.[INDEX]","typeLabel":"object"},"description":"A list of issues associated with the operation","uniqueKey":"issue","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"resourceType":"OperationOutcome","issue":[{"severity":"fatal","code":"invalid","details":{"coding":[{"system":"\u003cstring>","version":"\u003cstring>","code":"\u003cstring>","display":"\u003cstring>"}],"text":"\u003cstring>"},"diagnostics":"\u003cstring>","location":["\u003cstring>"]}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"df10741b-f052-4498-a740-324115db1e9a":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer token authentication","scopes":[]}}},"servers":{"f33f2d19-5c71-4345-bf96-efaeeae832ea":{"url":"http://localhost:8080/fhir","description":"Local development server (default port 8080)"},"6ff400de-fc81-46be-86fb-449ee21c7ef1":{"url":"https://your-server.com/fhir","description":"Production server (replace with your actual server URL)"},"ea1773f4-6eb5-4c15-afeb-2eca092d2430":{"url":"https://api.example.com/fhir","description":"Example production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer token authentication","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer token authentication","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"thalamiq","siteName":"Ferrum","title":"Type-Level Search - Ferrum","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-13T16:08:49.945Z","originalFileLocation":"api-reference/search/type.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Search within a specific resource type\">\u003cmeta data-mint-head name=\"application-name\" content=\"Ferrum\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/thalamiq/f08Uq1XE4cCfm4Wi/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/thalamiq/f08Uq1XE4cCfm4Wi/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/thalamiq/f08Uq1XE4cCfm4Wi/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/thalamiq/f08Uq1XE4cCfm4Wi/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/thalamiq/f08Uq1XE4cCfm4Wi/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/thalamiq/f08Uq1XE4cCfm4Wi/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/thalamiq/f08Uq1XE4cCfm4Wi/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/thalamiq/f08Uq1XE4cCfm4Wi/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/thalamiq/f08Uq1XE4cCfm4Wi/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Type-Level Search - Ferrum\">\u003cmeta data-mint-head property=\"og:description\" content=\"Search within a specific resource type\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ferrum\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ferrum.thalamiq.io/api-reference/search/type\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://thalamiq.mintlify.app/_mintlify/api/og/v2?division=Search\u0026amp;title=Type-Level+Search\u0026amp;description=Search+within+a+specific+resource+type\u0026amp;theme=7542210386eb30a104b2d294\u0026amp;signature=cb3611f41cef8ebd36eb42d016330cd041a7e6f7ad8a6ca4cfc163b30a5384f5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Type-Level Search - Ferrum\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Search within a specific resource type\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://thalamiq.mintlify.app/_mintlify/api/og/v2?division=Search\u0026amp;title=Type-Level+Search\u0026amp;description=Search+within+a+specific+resource+type\u0026amp;theme=7542210386eb30a104b2d294\u0026amp;signature=cb3611f41cef8ebd36eb42d016330cd041a7e6f7ad8a6ca4cfc163b30a5384f5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/thalamiq/f08Uq1XE4cCfm4Wi/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ferrum\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4076B9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ferrum.thalamiq.io/api-reference/search/type\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/search/type.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ferrum.thalamiq.io/#organization\",\"name\":\"Ferrum\",\"url\":\"https://docs.ferrum.thalamiq.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/thalamiq/MnlYeF-Y6ojGeQgf/logos/ferrum.svg?fit=max\u0026auto=format\u0026n=MnlYeF-Y6ojGeQgf\u0026q=85\u0026s=fc9aa15ec5a332123fdf9888fc7aad73\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ferrum.thalamiq.io#website\",\"name\":\"Ferrum\",\"url\":\"https://docs.ferrum.thalamiq.io\",\"publisher\":{\"@id\":\"https://docs.ferrum.thalamiq.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ferrum.thalamiq.io/api-reference/search/type#webpage\",\"url\":\"https://docs.ferrum.thalamiq.io/api-reference/search/type\",\"name\":\"Type-Level Search\",\"description\":\"Search within a specific resource type\",\"dateModified\":\"2026-02-13T16:08:49.945Z\",\"isPartOf\":{\"@id\":\"https://docs.ferrum.thalamiq.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ferrum.thalamiq.io/api-reference/search/type#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ferrum.thalamiq.io/api-reference/search/type#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Search\",\"item\":\"https://docs.ferrum.thalamiq.io/api-reference/search/system\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Type-Level Search\",\"item\":\"https://docs.ferrum.thalamiq.io/api-reference/search/type\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.ferrum.thalamiq.io/api-reference/search/type#apireference\",\"headline\":\"Type-Level Search\",\"name\":\"Type-Level Search\",\"description\":\"Search within a specific resource type\",\"url\":\"https://docs.ferrum.thalamiq.io/api-reference/search/type\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ferrum.thalamiq.io/api-reference/search/type#webpage\"},\"dateModified\":\"2026-02-13T16:08:49.945Z\",\"publisher\":{\"@id\":\"https://docs.ferrum.thalamiq.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ferrum.thalamiq.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Ferrum\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Ferrum","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/thalamiq/ferrum"},{"anchor":"FHIR Specification","icon":"book-open","href":"https://hl7.org/fhir/"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/getting-started"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Error Handling","href":"/api-reference/errors"},{"title":"Content Negotiation","href":"/api-reference/content-negotiation"}]},{"group":"Metadata","pages":[{"title":"Capability Statement","openapi":"GET /metadata","href":"/api-reference/metadata/capability-statement"}]},{"group":"CRUD Operations","pages":[{"title":"Create Resource","openapi":"POST /{resourceType}","href":"/api-reference/endpoint/create"},{"title":"Read Resource","openapi":"GET /{resourceType}/{id}","href":"/api-reference/endpoint/read"},{"title":"Update Resource","openapi":"PUT /{resourceType}/{id}","href":"/api-reference/endpoint/update"},{"title":"Patch Resource","openapi":"PATCH /{resourceType}/{id}","href":"/api-reference/endpoint/patch"},{"title":"Delete Resource","openapi":"DELETE /{resourceType}/{id}","href":"/api-reference/endpoint/delete"}]},{"group":"Search","pages":[{"title":"System-Level Search","description":"Search across all resource types","openapi":"GET /","href":"/api-reference/search/system"},{"title":"Type-Level Search","openapi":"GET /{resourceType}","href":"/api-reference/search/type"},{"title":"Compartment Search","description":"Search resources within a compartment","openapi":"GET /{compartmentType}/{compartmentId}/{resourceType}","href":"/api-reference/search/compartment"}]},{"group":"History \u0026 Versioning","pages":[{"title":"System History","openapi":"GET /_history","href":"/api-reference/history/system"},{"title":"Type History","openapi":"GET /{resourceType}/_history","href":"/api-reference/history/type"},{"title":"Resource History","openapi":"GET /{resourceType}/{id}/_history","href":"/api-reference/history/resource"},{"title":"Versioned Read (vread)","openapi":"GET /{resourceType}/{id}/_history/{vid}","href":"/api-reference/history/versioned-read"}]},{"group":"Batch \u0026 Transaction","pages":[{"title":"Transaction","openapi":"POST /","href":"/api-reference/batch/transaction"},{"title":"Batch","openapi":"POST /","href":"/api-reference/batch/batch"}]},{"group":"Operations","pages":[{"title":"System-Level Operations","href":"/api-reference/operations/system"},{"title":"Type-Level Operations","href":"/api-reference/operations/type"},{"title":"Instance-Level Operations","href":"/api-reference/operations/instance"}]}]}]},"title":"Type-Level Search - Ferrum","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-rfhihCWU.js","utils-BmH1XFxk.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BcNsxPKB.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BAES3tkd.js","snippetPresets-DCMQBKLP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D6l_bzE9.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BOktbnNh.js","shallow-BCs8SgM7.js","getApiPlaygroundDisplay-DEmW5bJB.js","CodeSnippet-CpZOpB9C.js","CodeSnippets-BOBDqibl.js","Page-D5fEM6aW.js","getPastedJson-DH2JBvmr.js","icon-BBJH-kKh.js","MethodPill-D2Sd5NLC.js","DuplicateIcon-CGgfL2qN.js","createIcon-BKudBBzi.js","DynamicMarkdown-85clUA0i.js","SectionHeading-D0JiMgDx.js","axios-vUo_bRtp.js","Markdown-Cfiy0xZO.js","clsx-rL8ZCCw4.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-aeztFa9U.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BywkCr5C.js"]}