PrimaryCheck

Demographics, work history and attestation

Three pieces of application content live on the subject so the credentialing file, the packet and payer rosters all read the same record.

Demographics

PATCH /v1/subjects/sub_…
{ "person": { "demographics": { "gender": "female", "raceEthnicity": ["hispanic_latino"],
                                "languages": [ { "code": "es", "proficiency": "native" }, { "code": "en" } ],
                                "acceptingNewPatients": true, "telehealth": true } } }

GET /v1/aggregations/subjects?groupBy=language          → { "data": [ { "key": "en", "count": 212 }, { "key": "es", "count": 61 }, … ] }

Self-reported, optional, never sent to a source. Race / ethnicity uses the federal categories plus multiracial, other and prefer_not_to_say; languages are ISO 639 codes with an optional proficiency. Aggregate by language, raceEthnicity or gender for language-access and network reporting; roster templates read demographics.*.

Work history and gap analysis

PUT /v1/subjects/sub_…/work_history
{ "entries": [
    { "kind": "education",  "organization": "UT Health School of Nursing", "title": "BSN", "start": "2017-08", "end": "2021-05" },
    { "kind": "employment", "organization": "Memorial Hermann Hospital", "title": "Staff RN", "start": "2021-07", "end": "2023-02" },
    { "kind": "leave",      "description": "Parental leave", "start": "2024-02", "end": "2024-07" },
    { "kind": "employment", "organization": "Texas Children's Hospital", "title": "RN", "start": "2025-10", "end": null } ] }

→ { "object": "work_history", "count": 4,
    "gaps": [ { "from": "2023-03", "to": "2024-01", "months": 11, "severity": "explain", "openEnded": false },
              { "from": "2024-08", "to": "2025-09", "months": 14, "severity": "material", "openEnded": false } ],
    "coverage": { "window": { "from": "2021-12", "to": "2026-11", "months": 60 }, "workedMonths": 33, "explainedMonths": 6, "uncoveredMonths": 21,
                  "currentEmployment": ["Texas Children's Hospital"] },
    "verification": { "verified": [ … ], "attempted": [ … ], "notVerified": [ { "organization": "Memorial Hermann Hospital" } ] } }

Months are YYYY-MM; end: null means current. Every uncovered run of at least gapMonths (default 6) in the look-back window (default 60 months, the NCQA five years) is a gap — explain under a year, material from twelve months. Leave, unemployment and other entries need a description and count as explained time. Employment entries are cross-referenced with the subject's employment verifications by employer name, so the file shows which jobs were confirmed at the source.

Application attestation

GET  /v1/attestations/template                      the seven NCQA CR 3 factors and an example body
POST /v1/subjects/sub_…/attestations
{ "answers": { "abilityToPerform": { "answer": "yes" }, "illegalDrugUse": { "present": false },
               "licenseHistory": { "lossOrLimitation": true, "felonyConviction": false, "explanation": "Probation 2019, completed." },
               "privilegesHistory": { "lossOrLimitation": false, "disciplinaryAction": false },
               "malpracticeCoverage": { "covered": true, "carrier": "MedPro", "policyNumber": "MP-1234567", "perClaimLimit": "1000000", "aggregateLimit": "3000000", "expires": "2027-06-30" },
               "malpracticeHistory": { "claims": 0 }, "correctnessAttested": true },
  "signedBy": "Lena Ortiz, RN", "method": "esign", "fileId": "file_…", "credentialingRequestId": "cred_…" }
201 { "object": "attestation", "id": "att_…", "flagged": true, "flags": [ { "factor": "licenseHistory", "flag": "license_loss_or_limitation", "severity": "critical", "explanation": "Probation 2019, completed." } ],
      "signedAt": "2026-11-08T14:02:11+00:00", "expiresAt": "2027-11-08T14:02:11+00:00", "current": true }

Every factor is required; an adverse answer needs an explanation and becomes a flag the committee sees on the request, in the packet and on the subject (latestAttestation). Attestations are immutable and current for 365 days. Link the signed PDF with fileId; pass credentialingRequestId and the request's application and attestation checklist items complete themselves, and the packet's attestation page prints the answers instead of a placeholder.