---
description: Implement Da Vinci Payer Data Exchange (PDex) 2.0.0 FHIR Implementation Guide in Aidbox for payer data sharing.
---

# Davinci Pdex

## Setup Aidbox with Da Vinci Payer Data Exchange version 2.0.0 with prebuilt Aidbox config

Follow [getting started guide](../../getting-started/run-aidbox-locally.md). Add the dependency:
```
AIDBOX_FHIR_PACKAGES=hl7.fhir.r4.core#4.0.1:hl7.fhir.us.davinci-pdex#2.0.0
```

## Validate example resources against Davinci PDEX profiles

<details>

<summary>Valid Organization resource</summary>

{% code lineNumbers="true" %}
```yaml
POST /fhir/Organization
content-type: text/yaml
accept: text/yaml

resourceType: Organization
meta:
  profile:
  - http://hl7.org/fhir/us/davinci-pdex/StructureDefinition/mtls-organization
language: en-US
identifier:
- system: http://hl7.org/fhir/sid/us-npi
  value: '1356362586'
active: true
type:
- coding:
  - system: http://hl7.org/fhir/us/davinci-pdex/CodeSystem/OrgTypeCS
    code: payer
    display: Payer
name: Acme of CT
telecom:
- extension:
  - extension:
    - url: daysOfWeek
      valueCode: mon
    - url: daysOfWeek
      valueCode: tue
    - url: daysOfWeek
      valueCode: wed
    - url: daysOfWeek
      valueCode: thu
    - url: daysOfWeek
      valueCode: fri
    - url: availableStartTime
      valueTime: '08:00:00'
    - url: availableEndTime
      valueTime: '17:00:00'
    url: http://hl7.org/fhir/us/davinci-pdex/StructureDefinition/base-ext-contactpoint-availabletime
  system: url
address:
- line:
  - 456 Main Street
  city: Norwalk
  state: CT
  postalCode: 00014-1234

```
{% endcode %}



</details>

{% hint style="info" %}
The sample of the Patient resource is invalid because it does not include the required key, `telecom`.
{% endhint %}

<details>

<summary>Invalid Organization resource</summary>

{% code lineNumbers="true" %}
```yaml
POST /fhir/Organization
content-type: text/yaml
accept: text/yaml

resourceType: Organization
meta:
  profile:
  - http://hl7.org/fhir/us/davinci-pdex/StructureDefinition/mtls-organization
language: en-US
identifier:
- system: http://hl7.org/fhir/sid/us-npi
  value: '1356362586'
active: true
type:
- coding:
  - system: http://hl7.org/fhir/us/davinci-pdex/CodeSystem/OrgTypeCS
    code: payer
    display: Payer
name: Acme of CT
address:
- line:
  - 456 Main Street
  city: Norwalk
  state: CT
  postalCode: 00014-1234

```
{% endcode %}



</details>
