|
1 | 1 | # Cloud Health Office |
2 | 2 |
|
3 | 3 | [](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Faurelianware%2Fcloudhealthoffice%2Fmain%2Fazuredeploy.json) |
4 | | -[](https://github.com/aurelianware/cloudhealthoffice) |
| 4 | +[](https://github.com/aurelianware/cloudhealthoffice) |
5 | 5 | [](./SECURITY.md) |
6 | 6 | [](./LICENSE) |
7 | 7 |
|
@@ -155,6 +155,66 @@ const matchResult = await api.matchMember(request, candidatePatients); |
155 | 155 |
|
156 | 156 | **Documentation:** [FHIR-INTEGRATION.md](./docs/FHIR-INTEGRATION.md) |
157 | 157 |
|
| 158 | +### CMS-0057-F Payer-to-Payer Data Exchange |
| 159 | +Complete bulk data exchange API for member transitions: |
| 160 | + |
| 161 | +```typescript |
| 162 | +import { PayerToPayerAPI, MemberConsent } from './src/fhir/payer-to-payer-api'; |
| 163 | + |
| 164 | +// Initialize API |
| 165 | +const api = new PayerToPayerAPI({ |
| 166 | + serviceBusConnectionString: process.env.AZURE_SERVICE_BUS_CONNECTION, |
| 167 | + storageConnectionString: process.env.AZURE_STORAGE_CONNECTION, |
| 168 | + storageContainerName: 'p2p-bulk-data', |
| 169 | + exportRequestTopic: 'export-requests', |
| 170 | + importRequestTopic: 'import-requests', |
| 171 | + fhirServerBaseUrl: 'https://fhir.mypayer.com', |
| 172 | + payerOrganizationId: 'PAYER001' |
| 173 | +}); |
| 174 | + |
| 175 | +// Register member consent |
| 176 | +await api.registerConsent({ |
| 177 | + patientId: 'MEM123456', |
| 178 | + targetPayerId: 'PAYER002', |
| 179 | + consentDate: new Date(), |
| 180 | + status: 'active', |
| 181 | + authorizedResourceTypes: ['Patient', 'Claim', 'ExplanationOfBenefit'] |
| 182 | +}); |
| 183 | + |
| 184 | +// Export patient data |
| 185 | +const result = await api.initiateExport({ |
| 186 | + exportId: 'EXP-20240115-001', |
| 187 | + patientIds: ['MEM123456'], |
| 188 | + resourceTypes: ['Patient', 'Claim', 'ExplanationOfBenefit'], |
| 189 | + since: new Date('2019-01-01'), // 5-year history |
| 190 | + requestingPayerId: 'PAYER002' |
| 191 | +}); |
| 192 | +``` |
| 193 | + |
| 194 | +**Key Capabilities:** |
| 195 | +- ✅ FHIR R4 Bulk Data Export/Import (NDJSON) |
| 196 | +- ✅ Member consent validation (opt-in flows) |
| 197 | +- ✅ Azure Service Bus async workflows |
| 198 | +- ✅ Azure Data Lake bulk file storage |
| 199 | +- ✅ PDex-compliant duplicate prevention |
| 200 | +- ✅ US Core profile validation |
| 201 | +- ✅ 5-year historical data support |
| 202 | +- ✅ Synthetic data generator for testing |
| 203 | + |
| 204 | +**Generate Test Data:** |
| 205 | +```bash |
| 206 | +# Generate 100 patients with claims and encounters |
| 207 | +npm run generate:synthetic-bulk -- --count 100 --output ./test-data |
| 208 | +``` |
| 209 | + |
| 210 | +**Run Examples:** |
| 211 | +```bash |
| 212 | +npm run examples:p2p # Complete P2P workflow demonstration |
| 213 | +npm run test:p2p # Run 27 comprehensive tests |
| 214 | +``` |
| 215 | + |
| 216 | +**Documentation:** [FHIR-INTEGRATION.md](./docs/FHIR-INTEGRATION.md#payer-to-payer-data-exchange-cms-0057-f) |
| 217 | + |
158 | 218 | ### ValueAdds277 Enhanced Claim Status |
159 | 219 | Premium ECS features that save providers 7-21 minutes per lookup: |
160 | 220 |
|
|
0 commit comments