medidata · Capability

Medidata Rave EDC REST API — Subjects

Medidata Rave EDC REST API — Subjects. 3 operations. Lead operation: List subjects in a study. Self-contained Naftiko capability covering one Medidata business surface.

Run with Naftiko MedidataSubjects

What You Can Do

GET
Listsubjects — List subjects in a study
/v1/{studyoid}/subjects
POST
Createsubject — Create or update a subject
/v1/{studyoid}/subjects
GET
Getsubject — Get subject details
/v1/{studyoid}/subjects/{subjectkey}

MCP Tools

list-subjects-study

List subjects in a study

read-only idempotent
create-update-subject

Create or update a subject

get-subject-details

Get subject details

read-only idempotent

Capability Spec

rave-subjects.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Medidata Rave EDC REST API — Subjects
  description: 'Medidata Rave EDC REST API — Subjects. 3 operations. Lead operation: List subjects in a study. Self-contained
    Naftiko capability covering one Medidata business surface.'
  tags:
  - Medidata
  - Subjects
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MEDIDATA_API_KEY: MEDIDATA_API_KEY
capability:
  consumes:
  - type: http
    namespace: rave-subjects
    baseUri: https://{tenant}.medidata.com/RaveWebServices/studies
    description: Medidata Rave EDC REST API — Subjects business capability. Self-contained, no shared references.
    resources:
    - name: studyOID-Subjects
      path: /{studyOID}/Subjects
      operations:
      - name: listsubjects
        method: GET
        description: List subjects in a study
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: studyOID
          in: path
          type: string
          description: Study OID (e.g., Mediflex(Dev))
          required: true
        - name: Status
          in: query
          type: string
        - name: SiteID
          in: query
          type: string
      - name: createsubject
        method: POST
        description: Create or update a subject
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: studyOID
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: studyOID-Subjects-subjectKey
      path: /{studyOID}/Subjects/{subjectKey}
      operations:
      - name: getsubject
        method: GET
        description: Get subject details
        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
    authentication:
      type: bearer
      token: '{{env.MEDIDATA_API_KEY}}'
  exposes:
  - type: rest
    namespace: rave-subjects-rest
    port: 8080
    description: REST adapter for Medidata Rave EDC REST API — Subjects. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/{studyoid}/subjects
      name: studyoid-subjects
      description: REST surface for studyOID-Subjects.
      operations:
      - method: GET
        name: listsubjects
        description: List subjects in a study
        call: rave-subjects.listsubjects
        with:
          studyOID: rest.studyOID
          Status: rest.Status
          SiteID: rest.SiteID
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createsubject
        description: Create or update a subject
        call: rave-subjects.createsubject
        with:
          studyOID: rest.studyOID
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/{studyoid}/subjects/{subjectkey}
      name: studyoid-subjects-subjectkey
      description: REST surface for studyOID-Subjects-subjectKey.
      operations:
      - method: GET
        name: getsubject
        description: Get subject details
        call: rave-subjects.getsubject
        with:
          studyOID: rest.studyOID
          subjectKey: rest.subjectKey
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rave-subjects-mcp
    port: 9090
    transport: http
    description: MCP adapter for Medidata Rave EDC REST API — Subjects. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-subjects-study
      description: List subjects in a study
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rave-subjects.listsubjects
      with:
        studyOID: tools.studyOID
        Status: tools.Status
        SiteID: tools.SiteID
      outputParameters:
      - type: object
        mapping: $.
    - name: create-update-subject
      description: Create or update a subject
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rave-subjects.createsubject
      with:
        studyOID: tools.studyOID
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-subject-details
      description: Get subject details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rave-subjects.getsubject
      with:
        studyOID: tools.studyOID
        subjectKey: tools.subjectKey
      outputParameters:
      - type: object
        mapping: $.