health.fhir.r4.davincipdex220
Module health.fhir.r4.davincipdex220
API
Declarations
Definitions
ballerinax/health.fhir.r4.davincipdex220 Ballerina library
Da Vinci Payer Data Exchange (PDex) FHIR R4 Module
This module provides support for the Da Vinci Payer Data Exchange (PDex) Implementation Guide v2.2.0.
It includes:
$bulk-member-match– Type-level operation onGroup([base]/Group/$bulk-member-match). Enables payers to match multiple members against another payer's records in bulk. Defined in the PDex IG.$davinci-data-export– Instance-level operation onGroup([base]/Group/[id]/$davinci-data-export). Exports payer member health data asynchronously. Defined in the Da Vinci ATR IG (used in PDex payer-to-payer exchange).
Usage
Implement the BulkMemberMatcher object type to handle $bulk-member-match requests:
public isolated class MyBulkMatcher { *davincipdex220:BulkMemberMatcher; public isolated function matchMembers(davincipdex220:BulkMemberMatchResources resources) returns davincipdex220:BulkMemberMatchResult|r4:FHIRError { // Custom matching logic } }
Implement DaVinciDataExporter to handle $davinci-data-export requests:
public isolated class MyDataExporter { *davincipdex220:DaVinciDataExporter; public isolated function initiateExport(string? groupId, davincipdex220:DataExportParameters params) returns davincipdex220:DataExportJob|r4:FHIRError { // Initiate async bulk export and return polling URL } }
Functions
initialize
function initialize()This empty function is used to initialize the module by other modules/packages.
Constants
health.fhir.r4.davincipdex220: PROFILE_BASE_PDEXMULTIMEMBERMATCHREQUESTPARAMETERS
health.fhir.r4.davincipdex220: PROFILE_BASE_PDEXMULTIMEMBERMATCHRESPONSEPARAMETERS
health.fhir.r4.davincipdex220: RESOURCE_NAME_PDEXMULTIMEMBERMATCHREQUESTPARAMETERS
health.fhir.r4.davincipdex220: RESOURCE_NAME_PDEXMULTIMEMBERMATCHRESPONSEPARAMETERS
Variables
health.fhir.r4.davincipdex220: terminologyProcessor
Terminology processor instance
health.fhir.r4.davincipdex220: fhirRegistry
FHIR registry instance
health.fhir.r4.davincipdex220: FHIR_VALUE_SETS
health.fhir.r4.davincipdex220: FHIR_CODE_SYSTEMS
Records
health.fhir.r4.davincipdex220: BulkMemberMatchResources
Holds the input for a $bulk-member-match operation.
Fields
- requestParameters PDexMultiMemberMatchRequestParameters - A
PDexMultiMemberMatchRequestParametersresource containing one or moreMemberBundleparameters. Each bundle provides the demographics, coverage, and consent data for a single member to be matched.
health.fhir.r4.davincipdex220: BulkMemberMatchResult
Holds the output of a $bulk-member-match operation.
Fields
- responseParameters PDexMultiMemberMatchResponseParameters - A
PDexMultiMemberMatchResponseParametersresource containing:MatchedMembers(1..1): Group of successfully matched members (PDexMemberMatchGroup)NonMatchedMembers(0..1): Group of unmatched members (PDexMemberNoMatchGroup)ConsentConstrainedMembers(0..1): Group excluded due to consent (PDexMemberNoMatchGroup)
health.fhir.r4.davincipdex220: DataExportJob
Represents an asynchronous export job initiated by $davinci-data-export.
Implementors return this to indicate the export has been accepted for processing.
Fields
- contentLocation string - URL for polling the export status. Returned as the
Content-LocationHTTP response header (per FHIR Async Request Pattern).
- statusCode int(default 202) - HTTP status code for the initial kick-off response. Defaults to
202 Accepted.
health.fhir.r4.davincipdex220: DataExportParameters
Parameters for the $davinci-data-export operation.
All fields are optional per the Da Vinci ATR IG specification.
The operation is instance-level on Group: POST [base]/Group/[id]/$davinci-data-export
Fields
- patient? Reference[] - References to specific members whose data should be exported. When omitted, data for all members in the Group is exported.
- exportType? string - Canonical URL identifying the export type / use case.
In the PDex payer-to-payer context use
hl7.fhir.us.davinci-pdex#payertopayer.
- _since? string - Resources updated after this instant will be included.
Format: FHIR instant (e.g.,
2024-01-01T00:00:00Z). Claims and clinical data are limited to records within the past 5 years.
- _until? string - Resources updated before this instant will be included. Format: FHIR instant.
- _type? string - Comma-delimited list of FHIR resource types to include. When omitted, all supported resource types are exported.
- _typeFilter? string - Comma-delimited list of FHIR search queries to restrict exported resources.
health.fhir.r4.davincipdex220: PDexMultiMemberMatchRequestParameters
FHIR PDexMultiMemberMatchRequestParameters resource record.
Defines the inputs to a $bulk-member-match operation performed by a payer system.
(Canonical: http://hl7.org/fhir/us/davinci-pdex/StructureDefinition/pdex-parameters-multi-member-match-bundle-in)
Fields
- Fields Included from *DomainResource
- resourceType RESOURCE_NAME_PDEXMULTIMEMBERMATCHREQUESTPARAMETERS(default RESOURCE_NAME_PDEXMULTIMEMBERMATCHREQUESTPARAMETERS) - The type of the resource describes
- meta? Meta - The metadata about the resource.
- 'parameter PDexMultiMemberMatchRequestParametersParameter[] - Repeating MemberBundle parameter (1..*). Each MemberBundle groups one member's
match data using parts:
- parameter Slicings
- PDexMultiMemberMatchRequestParametersParameterMemberBundle: MemberBundle parameter
- min = 1
- max = *
- implicitRules? uri - A reference to a set of rules that were followed when the resource was constructed.
- language? code - The base language in which the resource is written.
- id? string - The logical id of the resource.
- Element... - Rest field
health.fhir.r4.davincipdex220: PDexMultiMemberMatchRequestParametersParameter
FHIR PDexMultiMemberMatchRequestParametersParameter datatype record.
Base type for a parameter entry in the multi-member-match request.
Fields
- Fields Included from *BackboneElement
- modifierExtension? Extension[] - Modifier extensions.
- extension? Extension[] - Extensions.
- part? ParametersParameter[] - Named parts of the parameter (MemberPatient, CoverageToMatch, Consent, CoverageToLink).
- name string - The name of the parameter.
- id? string - Unique id for the element within a resource.
health.fhir.r4.davincipdex220: PDexMultiMemberMatchRequestParametersParameterMemberBundle
FHIR PDexMultiMemberMatchRequestParametersParameterMemberBundle datatype record.
Represents a single member's match data bundle as a named parameter "MemberBundle". Parts: MemberPatient (1..1), CoverageToMatch (1..1), Consent (1..1), CoverageToLink (0..1).
Fields
- Fields Included from *PDexMultiMemberMatchRequestParametersParameter
- modifierExtension? Extension[] - Modifier extensions.
- extension? Extension[] - Extensions.
- part ParametersParameter[] - Named parts of this MemberBundle parameter (min 3, max 4).
- name string(default "MemberBundle") - Fixed value "MemberBundle".
- id? string - Unique id for the element within a resource.
health.fhir.r4.davincipdex220: PDexMultiMemberMatchResponseParameters
FHIR PDexMultiMemberMatchResponseParameters resource record.
Defines the output of a $bulk-member-match operation.
(Canonical: http://hl7.org/fhir/us/davinci-pdex/StructureDefinition/pdex-parameters-multi-member-match-bundle-out)
Fields
- Fields Included from *DomainResource
- resourceType RESOURCE_NAME_PDEXMULTIMEMBERMATCHRESPONSEPARAMETERS(default RESOURCE_NAME_PDEXMULTIMEMBERMATCHRESPONSEPARAMETERS) - The type of the resource describes
- meta? Meta - The metadata about the resource.
- 'parameter PDexMultiMemberMatchResponseParametersParameter[] - Operation output parameters (1..3), closed slicing by name:
- parameter Slicings
- PDexMultiMemberMatchResponseParametersParameterMatchedMembers (1..1)
- PDexMultiMemberMatchResponseParametersParameterNonMatchedMembers (0..1)
- PDexMultiMemberMatchResponseParametersParameterConsentConstrainedMembers (0..1)
- implicitRules? uri - A reference to a set of rules that were followed when the resource was constructed.
- language? code - The base language in which the resource is written.
- id? string - The logical id of the resource.
- Element... - Rest field
health.fhir.r4.davincipdex220: PDexMultiMemberMatchResponseParametersParameter
FHIR PDexMultiMemberMatchResponseParametersParameter datatype record.
Base type for a response parameter entry.
Fields
- Fields Included from *BackboneElement
- modifierExtension? Extension[] - Modifier extensions.
- extension? Extension[] - Extensions.
- 'resource? Resource - Group resource holding matched or unmatched members.
- part? ParametersParameter[] - Named parts of a multi-part parameter.
- name string - The name of the parameter.
- id? string - Unique id for the element within a resource.
health.fhir.r4.davincipdex220: PDexMultiMemberMatchResponseParametersParameterConsentConstrainedMembers
Slice: ConsentConstrainedMembers (0..1) — PDexMemberNoMatchGroup.
Fields
- Fields Included from *PDexMultiMemberMatchResponseParametersParameter
- modifierExtension? Extension[] - Modifier extensions.
- extension? Extension[] - Extensions.
- 'resource Resource - Group resource (PDexMemberNoMatchGroup profile) of members excluded due to consent.
- part? ParametersParameter[] - Named parts of a multi-part parameter.
- name string(default "ConsentConstrainedMembers") - Fixed value "ConsentConstrainedMembers".
- id? string - Unique id for the element within a resource.
health.fhir.r4.davincipdex220: PDexMultiMemberMatchResponseParametersParameterMatchedMembers
Slice: MatchedMembers (1..1) — PDexMemberMatchGroup.
Fields
- Fields Included from *PDexMultiMemberMatchResponseParametersParameter
- modifierExtension? Extension[] - Modifier extensions.
- extension? Extension[] - Extensions.
- 'resource Resource - Group resource (PDexMemberMatchGroup profile) of successfully matched members.
- part? ParametersParameter[] - Named parts of a multi-part parameter.
- name string(default "MatchedMembers") - Fixed value "MatchedMembers".
- id? string - Unique id for the element within a resource.
health.fhir.r4.davincipdex220: PDexMultiMemberMatchResponseParametersParameterNonMatchedMembers
Slice: NonMatchedMembers (0..1) — PDexMemberNoMatchGroup.
Fields
- Fields Included from *PDexMultiMemberMatchResponseParametersParameter
- modifierExtension? Extension[] - Modifier extensions.
- extension? Extension[] - Extensions.
- 'resource Resource - Group resource (PDexMemberNoMatchGroup profile) of members for whom no match was found.
- part? ParametersParameter[] - Named parts of a multi-part parameter.
- name string(default "NonMatchedMembers") - Fixed value "NonMatchedMembers".
- id? string - Unique id for the element within a resource.
Object types
health.fhir.r4.davincipdex220: BulkMemberMatcher
Defines an abstract bulk member matcher for PDex $bulk-member-match.
Implement this object type to provide custom member-matching logic for payer-to-payer
bulk exchange. The operation is type-level on the Group resource:
POST [base]/Group/$bulk-member-match
matchMembers
function matchMembers(BulkMemberMatchResources resources) returns BulkMemberMatchResult|FHIRErrorPerforms member matching for multiple members in a single request.
Parameters
- resources BulkMemberMatchResources - The input containing one or more MemberBundle parameters.
Return Type
- BulkMemberMatchResult|FHIRError - A
BulkMemberMatchResultwith matched/unmatched/consent-constrained Group resources on success, or ar4:FHIRErrorif the operation fails.
health.fhir.r4.davincipdex220: DaVinciDataExporter
Defines an abstract Da Vinci data exporter for the $davinci-data-export operation.
This object serves as an interface for implementing payer-to-payer bulk data export.
The operation is instance-level on Group: POST [base]/Group/[id]/$davinci-data-export
Defined in Da Vinci ATR IG (used in PDex payer-to-payer exchange):
http://hl7.org/fhir/us/davinci-atr/OperationDefinition/davinci-data-export
initiateExport
function initiateExport(string groupId, DataExportParameters params) returns DataExportJob|FHIRErrorInitiates a Da Vinci data export for the given Group instance.
Parameters
- groupId string - The logical ID of the Group resource (from the request URL).
- params DataExportParameters - Export parameters controlling member scope, date range, resource types, and output.
Return Type
- DataExportJob|FHIRError - A
DataExportJobwith the polling URL on success, or ar4:FHIRErrorif the export cannot be initiated.
Import
import ballerinax/health.fhir.r4.davincipdex220;Other versions
1.0.0
Metadata
Released date: 11 days ago
Version: 1.0.0
Compatibility
Platform: any
Ballerina version: 2201.12.8
GraalVM compatible: Yes
Pull count
Total: 30
Current verison: 30
Weekly downloads
Keywords
Healthcare
FHIR
R4
DaVinci
PDex
Vendor/Other
Area/Healthcare
Type/Library
Contributors
Dependencies