# 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
Valid Organization resource {% 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 %}
{% hint style="info" %} The sample of the Patient resource is invalid because it does not include the required key, `telecom`. {% endhint %}
Invalid Organization resource {% 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 %}