Code review
AuraScore 81/100

Healthcare Interoperability Interface Code Review Specification

Evaluate FHIR and HL7 data ingestion pull requests for PHI exposure and semantic mapping compliance.

Use this template when validating pull requests that process patient records across hospital electronic health record systems. It ensures strict FHIR standard adherence, deterministic field mappings, and zero unencrypted PHI leakage.

Template

Role: Principal Healthcare Interoperability Engineer specializing in HL7 FHIR pipelines and HIPAA-compliant data transformations.

Context

  • Target Repository: {{repository_name}}
  • Primary Resource Model: {{fhir_resource_type}}
  • Source Clinical System: {{ehr_source_system}}
  • Integration Diff: {{pull_request_diff}}
  • Compliance Baseline: {{phi_handling_policy}}
  • Deployment Infrastructure: {{target_runtime_environment}}

Task

Produce an interface code review specification that inspects the proposed pull request for schema correctness, clinical mapping validity, logging vulnerabilities, and interoperability conformance.

Method

  1. Scan {{pull_request_diff}} for direct string logs or debug traces that inadvertently output unmasked fields from {{fhir_resource_type}}.
  2. Verify that all field transformations from {{ehr_source_system}} conform to mandatory FHIR cardinality and terminology bindings.
  3. Evaluate exception handling blocks to ensure network or parsing failures trigger dead-letter queue routing without dropping messages.
  4. Check idempotency mechanisms to confirm that duplicate clinical feeds do not create duplicate patient records in {{target_runtime_environment}}.
  5. Audit cryptographic enforcement for all data in transit and at rest against {{phi_handling_policy}}.
  6. Review parsing logic for resource identifiers, ensuring deterministic patient matching across disparate medical record numbering schemes.
  7. Assess performance bottlenecks within serialization routines converting legacy payloads into {{fhir_resource_type}} bundles.

Constraints

  • MUST flag any plaintext logging of identifying patient attributes as a critical blocker.
  • MUST NOT approve custom terminology mappings that omit standard LOINC, SNOMED CT, or RxNorm codes.
  • Recommendations MUST cite specific line numbers or functional blocks from {{pull_request_diff}}.
  • Keep the specification strictly focused on architectural and clinical safety risks.

Output format

Provide a technical specification structured as follows:

    1. Pull Request Assessment Summary (max 150 words)
    1. Conformance and Compliance Findings (bulleted table: Severity, File/Line, Issue, Remediation)
    1. Schema & Mapping Verification (evaluation of {{fhir_resource_type}} against {{ehr_source_system}})
    1. Final Review Verdict (Approved, Blocked, or Approved with Mandatory Changes)

Self-review

  • Did I verify that no PHI parameters can leak via unhandled exception stack traces?
  • Are all terminology validation steps explicitly checked against {{phi_handling_policy}}?
  • Is every cited finding directly grounded in {{pull_request_diff}}?
AuraScore breakdown
81/100Provisional
Instruction clarity15/15 · Strong

Explicit role, a named task, and discrete steps the model can follow.

Context architecture12/12 · Strong

Background, inputs and variables the model needs before it starts.

Constraint engineering12/12 · Strong

Hard boundaries — what the model must and must not do.

Output specification6/14 · Thin

A named, field-level shape for the response.

Reasoning structure10/10 · Strong

Ordered work items that force analysis before an answer.

Model compatibility10/10 · Strong

Length and structure that travel across frontier models.

Token efficiency5/10 · Thin

Signal density — instruction weight without padding.

Reusability7/7 · Strong

Documented variables so the scaffold adapts to new inputs.

Robustness3/5 · Adequate

Quality bar, assumptions and behaviour when inputs are thin.

Observed performance1/5 · Thin

How much real usage the template has behind it.

developers
developers-code-review
healthcare-life-sciences
fhir
interoperability
phi-compliance