> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rcintell.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cited when→then, NCCI companions, and catalog cards for one code

> Compose definition + approved Rule Studio rules + NCCI + GET /v1/policies cards.



## OpenAPI

````yaml /docs/openapi.client.json get /v1/codes/{code}/guidance
openapi: 3.1.0
info:
  description: >-
    Client API for RCIntel. Authenticate with X-API-Key. See Guides → Which API
    to use.
  summary: Multi-tenant knowledge API for healthcare revenue cycle management.
  title: Healthcare Knowledge Layer
  version: 0.1.0
servers: []
security: []
tags:
  - description: >-
      Cited payer policy lookup — GET /v1/policies and GET /v1/policies/changes.
      Medicare FFS returns NCDs/LCDs/MACs; commercial payers return that payer's
      documents only. Query payer, code, state, plan_type.
    name: policies
  - description: >-
      Payer-policy PDF parse and retrieve for Workspace / Payer Knowledge.
      Service-authenticated (X-Admin-Secret); chunks stored in Postgres.
    name: policy
  - description: >-
      Manufacturer 340B contract-pharmacy policy, fail-closed access, and the
      change feed. Different API from GET /v1/policies.
    name: 340B Policy
  - description: CRD-style prior authorization check, documentation, and vendors.
    name: prior-auth
  - description: Public payer directory (no API key on list/detail).
    name: payers-public
  - description: >-
      Payer network directory — search payers, check prior auth requirements,
      view filing rules, denial patterns, and appeal levels.
    name: payers
  - description: >-
      Resolve healthcare billing knowledge across the L1-L6 layer stack.
      Includes payment calculation, billing guidance, and per-layer queries.
    name: knowledge
  - description: >-
      CMS Fee Schedule lookups — OPPS (Addendum B / APC), DMEPOS (state-level
      pricing), and Clinical Lab Fee Schedule (CLFS).
    name: fee-schedules
  - description: >-
      NCCI (National Correct Coding Initiative) — dedicated MUE limits, PTP
      bundling edits, add-on code edits, and code pair validation. Medicare
      edits under /ncci/*, the separate CMS Medicaid edit set under
      /ncci/medicaid/*.
    name: ncci
  - description: >-
      Service code intelligence — CPT/HCPCS lookup, RVU data, NCCI edits,
      payment calculation, implant/GUDID search, and service group
      classification.
    name: codes
  - description: >-
      Submit asynchronous AI agent jobs for code research, medical necessity,
      and denial resolution. Poll for results and retrieve reasoning traces.
    name: agents
  - description: >-
      Register and manage healthcare facilities by CCN (Medicare Provider
      Number). Each facility is the root entity for knowledge resolution.
    name: facilities
  - description: >-
      NPI Registry — live search against CMS NPPES API for provider and
      organization National Provider Identifiers.
    name: npi
  - description: >-
      OpenFDA drug product lookup by NDC. Includes product-level fields with
      normalized ingredient and package detail.
    name: drugs
  - name: encounter
  - name: mcp
  - description: Health checks, service metadata, and Prometheus metrics.
    name: system
paths:
  /v1/codes/{code}/guidance:
    get:
      tags:
        - codes
      summary: Cited when→then, NCCI companions, and catalog cards for one code
      description: >-
        Compose definition + approved Rule Studio rules + NCCI + GET
        /v1/policies cards.
      operationId: get_code_guidance_v1_codes__code__guidance_get
      parameters:
        - description: >-
            Billing or terminology code value (CPT/HCPCS/NDC/etc depending on
            endpoint context).
          in: path
          name: code
          required: true
          schema:
            title: Code
            type: string
        - description: Payer name, slug, or alias used for payer-specific enrichment.
          in: query
          name: payer
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Payer
        - in: query
          name: state
          required: false
          schema:
            anyOf:
              - maxLength: 2
                minLength: 2
                type: string
              - type: 'null'
            title: State
        - in: query
          name: facility_type
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Facility Type
        - in: query
          name: as_of
          required: false
          schema:
            anyOf:
              - format: date
                type: string
              - type: 'null'
            title: As Of
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CodeGuidanceResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - APIKeyHeader: []
components:
  schemas:
    CodeGuidanceResponse:
      properties:
        as_of:
          anyOf:
            - type: string
            - type: 'null'
          title: As Of
        code:
          title: Code
          type: string
        companions:
          items:
            $ref: '#/components/schemas/GuidanceCompanion'
          title: Companions
          type: array
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        facility_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Facility Type
        payer:
          anyOf:
            - type: string
            - type: 'null'
          title: Payer
        policies:
          items:
            $ref: '#/components/schemas/GuidancePolicyCard'
          title: Policies
          type: array
        related_codes:
          items:
            type: string
          title: Related Codes
          type: array
        rules:
          items:
            $ref: '#/components/schemas/GuidanceRule'
          title: Rules
          type: array
        rules_by_type:
          additionalProperties:
            type: integer
          title: Rules By Type
          type: object
        state:
          anyOf:
            - type: string
            - type: 'null'
          title: State
        status_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Status Code
        telehealth:
          default: false
          title: Telehealth
          type: boolean
        warnings:
          items:
            type: string
          title: Warnings
          type: array
      required:
        - code
      title: CodeGuidanceResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    GuidanceCompanion:
      properties:
        bill_together:
          title: Bill Together
          type: string
        counterpart_code:
          title: Counterpart Code
          type: string
        modifier_allowed:
          title: Modifier Allowed
          type: boolean
        rationale:
          anyOf:
            - type: string
            - type: 'null'
          title: Rationale
      required:
        - counterpart_code
        - bill_together
        - modifier_allowed
      title: GuidanceCompanion
      type: object
    GuidancePolicyCard:
      properties:
        coverage_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Coverage Status
        doc_id:
          default: ''
          title: Doc Id
          type: string
        facility_types:
          items:
            type: string
          title: Facility Types
          type: array
        pdf_uri:
          default: ''
          title: Pdf Uri
          type: string
        rule_text:
          default: ''
          title: Rule Text
          type: string
        source_key:
          default: ''
          title: Source Key
          type: string
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
      title: GuidancePolicyCard
      type: object
    GuidanceRule:
      properties:
        because:
          anyOf:
            - type: string
            - type: 'null'
          title: Because
        citation:
          $ref: '#/components/schemas/GuidanceCitation'
        rule_id:
          title: Rule Id
          type: string
        rule_type:
          title: Rule Type
          type: string
        then:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Then
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        when:
          anyOf:
            - additionalProperties:
                additionalProperties: true
                type: object
              type: object
            - type: 'null'
          title: When
      required:
        - rule_id
        - rule_type
        - citation
      title: GuidanceRule
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    GuidanceCitation:
      properties:
        document_id:
          title: Document Id
          type: string
        document_title:
          anyOf:
            - type: string
            - type: 'null'
          title: Document Title
        effective_end:
          anyOf:
            - type: string
            - type: 'null'
          title: Effective End
        effective_start:
          anyOf:
            - type: string
            - type: 'null'
          title: Effective Start
        pages:
          items:
            type: integer
          title: Pages
          type: array
        payer:
          anyOf:
            - type: string
            - type: 'null'
          title: Payer
        quote:
          anyOf:
            - type: string
            - type: 'null'
          title: Quote
        section_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Section Id
      required:
        - document_id
      title: GuidanceCitation
      type: object
  securitySchemes:
    APIKeyHeader:
      in: header
      name: X-API-Key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.