{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovok/json-schema/ovok-post-fhir-r4-media-request-schema.json",
  "title": "PostFhirR4MediaRequest",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/ovok-openapi-generated.yml#/components/schemas/PostFhirR4MediaRequest",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Logical id of this artifact"
    },
    "meta": {
      "type": "string",
      "description": "Metadata about the resource"
    },
    "implicitRules": {
      "type": "string",
      "description": "A set of rules under which this content was created"
    },
    "language": {
      "type": "string",
      "description": "Language of the resource content"
    },
    "text": {
      "type": "string",
      "description": "Text summary of the resource, for human interpretation"
    },
    "contained": {
      "type": "string",
      "description": "Contained, inline Resources"
    },
    "extension": {
      "type": "string",
      "description": "Additional content defined by implementations"
    },
    "modifierExtension": {
      "type": "string",
      "description": "Extensions that cannot be ignored"
    },
    "identifier": {
      "type": "string",
      "description": "Identifier(s) for the image"
    },
    "basedOn": {
      "type": "string",
      "description": "Procedure that caused this media to be created"
    },
    "partOf": {
      "type": "string",
      "description": "Part of referenced event"
    },
    "status": {
      "type": "string",
      "description": "preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown"
    },
    "type": {
      "type": "string",
      "description": "Classification of media as image, video, or audio"
    },
    "modality": {
      "type": "string",
      "description": "The type of acquisition equipment/process"
    },
    "view": {
      "type": "string",
      "description": "Imaging view, e.g. Lateral or Antero-posterior"
    },
    "subject": {
      "type": "string",
      "description": "Who/What this Media is a record of"
    },
    "encounter": {
      "type": "string",
      "description": "Encounter associated with media"
    },
    "created[x]": {
      "type": "string",
      "description": "When Media was collected"
    },
    "issued": {
      "type": "string",
      "description": "Date/Time this version was made available"
    },
    "operator": {
      "type": "string",
      "description": "The person who generated the image"
    },
    "reasonCode": {
      "type": "string",
      "description": "Why was event performed?"
    },
    "bodySite": {
      "type": "string",
      "description": "Observed body part"
    },
    "deviceName": {
      "type": "string",
      "description": "Name of the device/manufacturer"
    },
    "device": {
      "type": "string",
      "description": "Observing Device"
    },
    "height": {
      "type": "string",
      "description": "Height of the image in pixels (photo/video)"
    },
    "width": {
      "type": "string",
      "description": "Width of the image in pixels (photo/video)"
    },
    "frames": {
      "type": "string",
      "description": "Number of frames if > 1 (photo)"
    },
    "duration": {
      "type": "number",
      "description": "Length in seconds (audio / video)"
    },
    "content": {
      "type": "string",
      "description": "Actual Media - reference or data"
    },
    "note": {
      "type": "string",
      "description": "Comments made about the media"
    }
  },
  "required": [
    "status",
    "content"
  ]
}