> ## 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.

# List service codes assigned to a group

> List HCPCS/CPT codes assigned to a single group node.

Works for any of the three taxonomies:

- ``service_group`` — codes joined via ``ServiceCode.service_group_id`` to
  the matching slug.
- ``betos`` / ``rbcs`` — codes whose ``betos_code`` / ``rbcs_code`` column
  matches ``group_code``. When ``include_descendants=true`` and the group
  is a non-leaf category (e.g. BETOS "P"), the response also includes
  codes assigned to any leaf below it.



## OpenAPI

````yaml /docs/openapi.client.json get /v1/codes/groups/{taxonomy}/{group_code}/codes
openapi: 3.1.0
info:
  description: >-
    Client API for RCIntel. Admin ingest, catalog sync, and internal audit
    routes are omitted. 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: >-
      Geographic payer policy lookup (national NCD vs MAC LCD vs state). Query
      payer, code, state, plan_type. Each row includes geo_scope and
      document_version.
    name: policies
  - 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.
    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
  - description: Health checks, service metadata, and Prometheus metrics.
    name: system
paths:
  /v1/codes/groups/{taxonomy}/{group_code}/codes:
    get:
      tags:
        - codes
      summary: List service codes assigned to a group
      description: >-
        List HCPCS/CPT codes assigned to a single group node.


        Works for any of the three taxonomies:


        - ``service_group`` — codes joined via ``ServiceCode.service_group_id``
        to
          the matching slug.
        - ``betos`` / ``rbcs`` — codes whose ``betos_code`` / ``rbcs_code``
        column
          matches ``group_code``. When ``include_descendants=true`` and the group
          is a non-leaf category (e.g. BETOS "P"), the response also includes
          codes assigned to any leaf below it.
      operationId: list_codes_in_group_v1_codes_groups__taxonomy___group_code__codes_get
      parameters:
        - description: Grouping taxonomy namespace (service_group, betos, or rbcs).
          in: path
          name: taxonomy
          required: true
          schema:
            title: Taxonomy
            type: string
        - description: Group identifier within the selected taxonomy.
          in: path
          name: group_code
          required: true
          schema:
            title: Group Code
            type: string
        - description: Pagination offset (number of records to skip).
          in: query
          name: offset
          required: false
          schema:
            default: 0
            minimum: 0
            title: Offset
            type: integer
        - description: Maximum number of records to return.
          in: query
          name: limit
          required: false
          schema:
            default: 100
            maximum: 500
            minimum: 1
            title: Limit
            type: integer
        - description: >-
            If the group is a category node, include codes from all descendant
            leaves.
          in: query
          name: include_descendants
          required: false
          schema:
            default: true
            description: >-
              If the group is a category node, include codes from all descendant
              leaves.
            title: Include Descendants
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GroupCodeListResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - APIKeyHeader: []
components:
  schemas:
    GroupCodeListResponse:
      description: Codes assigned to a single BETOS / RBCS / service_group node.
      properties:
        codes:
          items:
            $ref: '#/components/schemas/CodeSearchResult'
          title: Codes
          type: array
        group_code:
          title: Group Code
          type: string
        group_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Group Name
        taxonomy:
          enum:
            - service_group
            - betos
            - rbcs
          title: Taxonomy
          type: string
        total:
          title: Total
          type: integer
      required:
        - taxonomy
        - group_code
        - total
      title: GroupCodeListResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    CodeSearchResult:
      properties:
        category:
          anyOf:
            - type: string
            - type: 'null'
          title: Category
        code:
          title: Code
          type: string
        code_type:
          title: Code Type
          type: string
        short_description:
          anyOf:
            - type: string
            - type: 'null'
          title: Short Description
      required:
        - code
        - code_type
      title: CodeSearchResult
      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
  securitySchemes:
    APIKeyHeader:
      in: header
      name: X-API-Key
      type: apiKey

````