{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://schemas.mpai.community/CAV2/V1.0/data/UltrasoundObject.json",
  "title": "UltrasoundObject",
  "type": "object",
  "properties": {
    "Header": {
      "type": "string",
      "pattern": "^CAV-USO-V[0-9]{1,2}[.][0-9]{1,2}$"
    },
    "MInstanceID": {
      "type": "string"
    },
    "UltrasoundObjectID": {
      "type": "string"
    },
    "ParentUltrasoundObjects": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "ParentUltrasoundObjectID": {
            "type": "string"
          },
          "ParentUltrasoundObjectSpaceTime": {
            "$ref": "https://schemas.mpai.community/OSD/V1.3/data/SpaceTime.json"
          }
        }
      }
    },
    "ChildUltrasoundObjects": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "ChildUltrasoundObjectID": {
            "type": "string"
          },
          "ChildUltrasoundObjectSpaceTime": {
            "$ref": "https://schemas.mpai.community/OSD/V1.3/data/SpaceTime.json"
          }
        }
      }
    },
    "UltrasoundDataQualifier": {
      "$ref": "https://schemas.mpai.community/TFA/V1.3/data/UltrasoundQualifier.json"
    },
    "UltrasoundDataSpaceTime": {
      "$ref": "https://schemas.mpai.community/OSD/V1.3/data/SpaceTime.json"
    },
    "UltrasoundDataAnnotation": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "Annotation": {
            "$ref": "https://schemas.mpai.community/OSD/V1.3/data/Annotation.json"
          },
          "AnnotationTimeSpace": {
            "$ref": "https://schemas.mpai.community/OSD/V1.3/data/SpaceTime.json"
          },
          "AnnotationRights": {
            "RightsIDOrRights": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "RightsID": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "AudioObject": {
                        "$ref": "https://schemas.mpai.community/MMM4/V2.0/data/Rights.json"
                      }
                    }
                  }
                ]
              }
            }
          }
        }
      }
    },
    "DescrMetadata": {
      "type": "string"
    }
  }
}