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

# Retrieve an assessment by identifier



## OpenAPI

````yaml /openapi/marmar-cds.openapi.yaml get /v1/assessments/{assessmentId}
openapi: 3.1.0
info:
  title: Marmar Clinical Decision Support Reference
  version: 0.1.0
  description: >
    API for integrating Marmar's medication safety assessments into clinical
    workflows. Tenants can synchronize patient records, request assessments, and
    receive webhook notifications when assessments are completed.
servers:
  - url: https://cds.marmar.life
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags:
  - name: Patients
  - name: Assessments
  - name: Tenants
  - name: Webhooks
  - name: FHIR
paths:
  /v1/assessments/{assessmentId}:
    get:
      tags:
        - Assessments
      summary: Retrieve an assessment by identifier
      operationId: getAssessment
      parameters:
        - $ref: '#/components/parameters/AssessmentIdPath'
      responses:
        '200':
          description: Assessment details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssessmentResponse'
        '400':
          description: Invalid path parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Assessment not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  parameters:
    AssessmentIdPath:
      name: assessmentId
      in: path
      required: true
      description: Assessment identifier returned by the API.
      schema:
        type: string
        format: uuid
  schemas:
    AssessmentResponse:
      type: object
      properties:
        assessmentId:
          $ref: '#/components/schemas/Identifier'
        patientId:
          $ref: '#/components/schemas/Identifier'
          nullable: true
        riskLevel:
          $ref: '#/components/schemas/AssessmentRiskLevel'
        summary:
          type: string
        narrative:
          $ref: '#/components/schemas/AssessmentNarrative'
        dosageFindings:
          type: array
          items:
            $ref: '#/components/schemas/DosageFinding'
        symptoms:
          $ref: '#/components/schemas/SymptomSets'
        createdAt:
          type: string
          format: date-time
      required:
        - assessmentId
        - riskLevel
        - summary
        - narrative
        - dosageFindings
        - symptoms
        - createdAt
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
      required:
        - message
    Identifier:
      type: string
      format: uuid
    AssessmentRiskLevel:
      type: string
      enum:
        - SEVERE
        - MODERATE
        - MILD
    AssessmentNarrative:
      type: object
      properties:
        interactionRiskLevel:
          $ref: '#/components/schemas/AssessmentRiskLevel'
        generalExplanation:
          type: string
        detailedExplanation:
          type: string
        generalAdvice:
          type: string
        tailoredAdvice:
          type: string
        dosageAnalysis:
          type: array
          items:
            $ref: '#/components/schemas/DosageFinding'
          nullable: true
        symptoms:
          $ref: '#/components/schemas/SymptomSets'
        pharmacologicalExplanation:
          type: array
          items:
            $ref: '#/components/schemas/PharmacologicalExplanation'
        references:
          type: array
          items:
            $ref: '#/components/schemas/ReferenceEntry'
        alternativeMedications:
          type: array
          items:
            $ref: '#/components/schemas/AlternativeMedication'
          nullable: true
        dietaryPrecautions:
          type: array
          items:
            $ref: '#/components/schemas/DietaryPrecaution'
          nullable: true
      required:
        - interactionRiskLevel
        - generalExplanation
        - detailedExplanation
        - generalAdvice
        - tailoredAdvice
        - symptoms
        - pharmacologicalExplanation
        - references
    DosageFinding:
      type: object
      properties:
        medication:
          type: string
        currentDosage:
          type: string
        appropriatenessLevel:
          $ref: '#/components/schemas/DosageAppropriateness'
        explanation:
          type: string
        recommendation:
          type: string
      required:
        - medication
        - currentDosage
        - appropriatenessLevel
        - explanation
        - recommendation
    SymptomSets:
      type: object
      properties:
        expected:
          type: array
          items:
            $ref: '#/components/schemas/SymptomDetail'
        monitoring:
          type: array
          items:
            $ref: '#/components/schemas/MonitoringDetail'
        concerning:
          type: array
          items:
            $ref: '#/components/schemas/ConcerningSymptom'
      required:
        - expected
        - monitoring
        - concerning
    PharmacologicalExplanation:
      type: object
      properties:
        explanation:
          type: string
        referenceIndex:
          type: integer
        type:
          $ref: '#/components/schemas/PharmacologyType'
        confidence:
          $ref: '#/components/schemas/PharmacologyConfidenceLevel'
      required:
        - explanation
        - referenceIndex
        - type
        - confidence
    ReferenceEntry:
      type: object
      properties:
        citation:
          type: string
        url:
          type: string
          format: uri
        source:
          type: string
        year:
          type: string
        type:
          type: string
      required:
        - citation
        - url
        - source
        - year
        - type
    AlternativeMedication:
      type: object
      properties:
        emoji:
          type: string
        name:
          type: string
        category:
          type: string
        explanation:
          type: string
        precautions:
          type: string
        evidence:
          type: string
      required:
        - emoji
        - name
        - category
        - explanation
        - precautions
        - evidence
    DietaryPrecaution:
      type: object
      properties:
        emoji:
          type: string
        name:
          type: string
        type:
          type: string
        explanation:
          type: string
        duration:
          type: string
        alternatives:
          type: string
      required:
        - emoji
        - name
        - type
        - explanation
        - duration
        - alternatives
    DosageAppropriateness:
      type: string
      enum:
        - APPROPRIATE
        - POTENTIALLY_INAPPROPRIATE
        - INAPPROPRIATE
        - INSUFFICIENT_INFORMATION
    SymptomDetail:
      type: object
      properties:
        name:
          type: string
        duration:
          type: string
        explanation:
          type: string
      required:
        - name
        - duration
        - explanation
    MonitoringDetail:
      type: object
      properties:
        name:
          type: string
        frequency:
          type: string
        target:
          type: string
        action:
          type: string
      required:
        - name
        - frequency
        - target
        - action
    ConcerningSymptom:
      type: object
      properties:
        name:
          type: string
        severity:
          $ref: '#/components/schemas/SymptomSeverity'
        action:
          type: string
        explanation:
          type: string
      required:
        - name
        - severity
        - action
        - explanation
    PharmacologyType:
      type: string
      enum:
        - Primary Interaction
        - Secondary Effect
        - Risk Factor
    PharmacologyConfidenceLevel:
      type: string
      enum:
        - HIGH
        - MEDIUM
        - LOW
    SymptomSeverity:
      type: string
      enum:
        - HIGH
        - MEDIUM
        - LOW
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key obtained from the Tenant Dashboard. Use as Authorization: Bearer
        YOUR_API_KEY

````