For AI agents: the documentation index is at /docs/aidbox/llms.txt. A Markdown version of this page is available at /docs/aidbox/notebooks.md or by requesting it with the Accept: text/markdown header.
Aidbox Docs
All notebooks

FHIR & Aidbox format in SearchParameter

Notebook showing differences of SearchParameters in different data formats supported by Aidbox

21 cells · updated Jul 17, 2023

This is a read-only view. Responses shown were saved when the notebook was published — open it in your own Aidbox to run the cells against live data.
REST Send Cells run only inside Aidbox. Use Run in Aidbox above to open this notebook in your own instance.
PUT /fhir/PractitionerRole/test-practitioner-role-1
Accept: text/yaml
Content-Type: text/yaml

meta:
  lastUpdated: '2021-09-23T12:34:56.1234567Z'
  profile: ['http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-PractitionerRole']
extension:
- url: http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/network-reference
  valueReference: {reference: Organization/some-org}
active: true
Response: Body
Status: 201
meta:
  profile: ['http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-PractitionerRole']
  lastUpdated: '2021-09-24T12:08:09.214486Z'
  versionId: '3371'
  extension:
  - {url: 'ex:createdAt', valueInstant: '2021-09-24T12:08:09.214486Z'}
active: true
extension:
- url: http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/network-reference
  valueReference: {reference: Organization/some-org}
id: test-practitioner-role-1
resourceType: PractitionerRole
REST Send Cells run only inside Aidbox. Use Run in Aidbox above to open this notebook in your own instance.
PUT /SearchParameter/network-reference
Accept: text/yaml
Content-Type: text/yaml

name: network
type: reference
resource:
  id: PractitionerRole
  resourceType: Entity
expression: [[extension,
              {url: http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/network-reference},
              valueReference]]
Response: Body
Status: 201
name: network
type: reference
resource: {id: PractitionerRole, resourceType: Entity}
expression:
- - extension
  - {url: 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/network-reference'}
  - valueReference
id: network-reference
resourceType: SearchParameter
meta: {lastUpdated: '2021-09-24T12:08:20.907238Z', createdAt: '2021-09-24T12:08:20.907238Z', versionId: '3373'}
REST Send Cells run only inside Aidbox. Use Run in Aidbox above to open this notebook in your own instance.
GET /fhir/PractitionerRole?network=Organization/some-org
Accept: text/yaml
Response: Body
Status: 200
resourceType: Bundle
type: searchset
meta: {versionId: '3374'}
entry:
- resource:
    meta:
      profile: ['http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-PractitionerRole']
      lastUpdated: '2021-09-24T12:08:09.214486Z'
      versionId: '3371'
      extension:
      - {url: 'ex:createdAt', valueInstant: '2021-09-24T12:08:09.214486Z'}
    active: true
    extension:
    - url: http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/network-reference
      valueReference: {reference: Organization/some-org}
    id: test-practitioner-role-1
    resourceType: PractitionerRole
  fullUrl: http://localhost:8765/PractitionerRole/test-practitioner-role-1
  link:
  - {relation: self, url: 'http://localhost:8765/PractitionerRole/test-practitioner-role-1'}
total: 1
link:
- {relation: first, url: '/fhir/PractitionerRole?network=Organization/some-org&page=1'}
- {relation: self, url: '/fhir/PractitionerRole?network=Organization/some-org&page=1'}
REST Send Cells run only inside Aidbox. Use Run in Aidbox above to open this notebook in your own instance.
PUT /Attribute/PractitionerRole.network
Accept: text/yaml
Content-Type: text/yaml

resource: {id: PractitionerRole, resourceType: Entity}
path: [network]
type: {id: Reference, resourceType: Entity}
refers: [Organization]
extensionUrl: http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/network-reference
Response: Body
Status: 201
path: [network]
type: {id: Reference, resourceType: Entity}
refers: [Organization]
resource: {id: PractitionerRole, resourceType: Entity}
extensionUrl: http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/network-reference
id: PractitionerRole.network
resourceType: Attribute
meta: {lastUpdated: '2021-09-24T12:10:09.238498Z', createdAt: '2021-09-24T12:10:09.238498Z', versionId: '3379'}
REST Send Cells run only inside Aidbox. Use Run in Aidbox above to open this notebook in your own instance.
PUT /fhir/PractitionerRole/test-practitioner-role-1
Accept: text/yaml
Content-Type: text/yaml

meta:
  lastUpdated: '2021-09-23T12:34:56.1234567Z'
  profile: ['http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-PractitionerRole']
extension:
- url: http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/network-reference
  valueReference: {reference: Organization/some-org}
active: true
Response: Body
Status: 422
resourceType: OperationOutcome
text: {status: generated, div: Invalid resource}
issue:
- severity: fatal
  code: invalid
  expression: [PractitionerRole.network]
  diagnostics: Referenced resource Organization/some-org does not exist
REST Send Cells run only inside Aidbox. Use Run in Aidbox above to open this notebook in your own instance.
PUT /fhir/Organization/some-org
Accept: text/yaml
Content-Type: text/yaml
Response: Body
Status: 201
id: some-org
resourceType: Organization
meta:
  lastUpdated: '2021-09-24T12:15:38.675564Z'
  versionId: '3393'
  extension:
  - {url: 'ex:createdAt', valueInstant: '2021-09-24T12:15:38.675564Z'}
REST Send Cells run only inside Aidbox. Use Run in Aidbox above to open this notebook in your own instance.
PUT /fhir/PractitionerRole/test-practitioner-role-1
Accept: text/yaml
Content-Type: text/yaml

meta:
  lastUpdated: '2021-09-23T12:34:56.1234567Z'
  profile: ['http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-PractitionerRole']
extension:
- url: http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/network-reference
  valueReference: {reference: Organization/some-org}
active: true
Response: Body
Status: 200
meta:
  profile: ['http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-PractitionerRole']
  lastUpdated: '2021-09-24T12:15:43.575360Z'
  versionId: '3395'
  extension:
  - {url: 'ex:createdAt', valueInstant: '2021-09-24T12:08:09.214486Z'}
active: true
id: test-practitioner-role-1
resourceType: PractitionerRole
extension:
- url: http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/network-reference
  valueReference: {reference: Organization/some-org}
REST Send Cells run only inside Aidbox. Use Run in Aidbox above to open this notebook in your own instance.
GET /PractitionerRole/test-practitioner-role-1
Accept: text/yaml
Response: Body
Status: 200
meta:
  profile: ['http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-PractitionerRole']
  lastUpdated: '2021-09-24T12:15:43.575360Z'
  createdAt: '2021-09-24T12:08:09.214486Z'
  versionId: '3395'
active: true
network: {id: some-org, resourceType: Organization}
id: test-practitioner-role-1
resourceType: PractitionerRole
REST Send Cells run only inside Aidbox. Use Run in Aidbox above to open this notebook in your own instance.
PUT /SearchParameter/network-reference
Accept: text/yaml
Content-Type: text/yaml

name: network
type: reference
resource:
  id: PractitionerRole
  resourceType: Entity
expression: [[network]]
Response: Body
Status: 200
name: network
type: reference
resource: {id: PractitionerRole, resourceType: Entity}
expression:
- [network]
id: network-reference
resourceType: SearchParameter
meta: {lastUpdated: '2021-09-24T12:22:07.188996Z', createdAt: '2021-09-24T12:08:20.907238Z', versionId: '3414'}
REST Send Cells run only inside Aidbox. Use Run in Aidbox above to open this notebook in your own instance.
GET /fhir/PractitionerRole?network=Organization/some-org
Accept: text/yaml
Response: Body
Status: 200
resourceType: Bundle
type: searchset
meta: {versionId: '3416'}
entry:
- resource:
    meta:
      profile: ['http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-PractitionerRole']
      lastUpdated: '2021-09-24T12:15:43.575360Z'
      versionId: '3395'
      extension:
      - {url: 'ex:createdAt', valueInstant: '2021-09-24T12:08:09.214486Z'}
    active: true
    id: test-practitioner-role-1
    resourceType: PractitionerRole
    extension:
    - url: http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/network-reference
      valueReference: {reference: Organization/some-org}
  fullUrl: http://localhost:8765/PractitionerRole/test-practitioner-role-1
  link:
  - {relation: self, url: 'http://localhost:8765/PractitionerRole/test-practitioner-role-1'}
total: 1
link:
- {relation: first, url: '/fhir/PractitionerRole?network=Organization/some-org&page=1'}
- {relation: self, url: '/fhir/PractitionerRole?network=Organization/some-org&page=1'}