EdgeResultRequest:
  type: object
  required:
    - sample_id
    - instrument_id
  properties:
    sample_id:
      type: string
      description: Sample barcode/identifier
    instrument_id:
      type: string
      description: Instrument identifier
    patient_id:
      type: string
      description: Patient identifier (optional)
    results:
      type: array
      items:
        type: object
        properties:
          test_code:
            type: string
          result_value:
            type: string
          unit:
            type: string
          flags:
            type: string
            enum: [H, L, N, A]
            description: H=High, L=Low, N=Normal, A=Abnormal

EdgeResultResponse:
  type: object
  properties:
    status:
      type: string
      example: success
    message:
      type: string
      example: Result received and queued
    data:
      type: object
      properties:
        edge_res_id:
          type: integer
        sample_id:
          type: string
        instrument_id:
          type: string

EdgeOrder:
  type: object
  properties:
    OrderID:
      type: string
    PatientID:
      type: string
    SampleID:
      type: string
    Tests:
      type: array
      items:
        type: object
        properties:
          TestCode:
            type: string
          TestName:
            type: string
          SpecimenType:
            type: string
    Priority:
      type: string
    DueDateTime:
      type: string
      format: date-time
