medidata · Capability

Medidata Rave EDC REST API — Clinical Data

Medidata Rave EDC REST API — Clinical Data. 2 operations. Lead operation: Get clinical data (CRF data) for a subject. Self-contained Naftiko capability covering one Medidata business surface.

Run with Naftiko MedidataClinical Data

What You Can Do

GET
Getsubjectclinicaldata — Get clinical data (CRF data) for a subject
/v1/{studyoid}/subjects/{subjectkey}/clinicaldata
POST
Submitclinicaldata — Submit clinical data for a subject
/v1/{studyoid}/subjects/{subjectkey}/clinicaldata

MCP Tools

get-clinical-data-crf-data

Get clinical data (CRF data) for a subject

read-only idempotent
submit-clinical-data-subject

Submit clinical data for a subject

Capability Spec

rave-clinical-data.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Medidata Rave EDC REST API — Clinical Data
  description: 'Medidata Rave EDC REST API — Clinical Data. 2 operations. Lead operation: Get clinical data (CRF data) for
    a subject. Self-contained Naftiko capability covering one Medidata business surface.'
  tags:
  - Medidata
  - Clinical Data
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MEDIDATA_API_KEY: MEDIDATA_API_KEY
capability:
  consumes:
  - type: http
    namespace: rave-clinical-data
    baseUri: https://{tenant}.medidata.com/RaveWebServices/studies
    description: Medidata Rave EDC REST API — Clinical Data business capability. Self-contained, no shared references.
    resources:
    - name: studyOID-Subjects-subjectKey-ClinicalData
      path: /{studyOID}/Subjects/{subjectKey}/ClinicalData
      operations:
      - name: getsubjectclinicaldata
        method: GET
        description: Get clinical data (CRF data) for a subject
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: studyOID
          in: path
          type: string
          required: true
        - name: subjectKey
          in: path
          type: string
          required: true
        - name: formOID
          in: query
          type: string
          description: Filter to a specific form OID
        - name: EventRepeatKey
          in: query
          type: string
      - name: submitclinicaldata
        method: POST
        description: Submit clinical data for a subject
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: studyOID
          in: path
          type: string
          required: true
        - name: subjectKey
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.MEDIDATA_API_KEY}}'
  exposes:
  - type: rest
    namespace: rave-clinical-data-rest
    port: 8080
    description: REST adapter for Medidata Rave EDC REST API — Clinical Data. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/{studyoid}/subjects/{subjectkey}/clinicaldata
      name: studyoid-subjects-subjectkey-clinicaldata
      description: REST surface for studyOID-Subjects-subjectKey-ClinicalData.
      operations:
      - method: GET
        name: getsubjectclinicaldata
        description: Get clinical data (CRF data) for a subject
        call: rave-clinical-data.getsubjectclinicaldata
        with:
          studyOID: rest.studyOID
          subjectKey: rest.subjectKey
          formOID: rest.formOID
          EventRepeatKey: rest.EventRepeatKey
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: submitclinicaldata
        description: Submit clinical data for a subject
        call: rave-clinical-data.submitclinicaldata
        with:
          studyOID: rest.studyOID
          subjectKey: rest.subjectKey
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rave-clinical-data-mcp
    port: 9090
    transport: http
    description: MCP adapter for Medidata Rave EDC REST API — Clinical Data. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: get-clinical-data-crf-data
      description: Get clinical data (CRF data) for a subject
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rave-clinical-data.getsubjectclinicaldata
      with:
        studyOID: tools.studyOID
        subjectKey: tools.subjectKey
        formOID: tools.formOID
        EventRepeatKey: tools.EventRepeatKey
      outputParameters:
      - type: object
        mapping: $.
    - name: submit-clinical-data-subject
      description: Submit clinical data for a subject
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rave-clinical-data.submitclinicaldata
      with:
        studyOID: tools.studyOID
        subjectKey: tools.subjectKey
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.