﻿{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "http://hl7.org/fhir/json-schema/ImagingManifest",
  "$ref": "#/definitions/ImagingManifest",
  "description": "see http://hl7.org/fhir/json.html#schema for information about the FHIR Json Schemas",
  "definitions": {
    "ImagingManifest": {
      "allOf": [
        {
          "$ref": "DomainResource.schema.json/definitions/DomainResource"
        },
        {
          "description": "A manifest of a set of DICOM Service-Object Pair Instances (SOP Instances).  The referenced SOP Instances (images or other content) are for a single patient, and may be from one or more studies. The referenced SOP Instances may have been selected for a purpose, such as  conference, or consult.  Reflecting a range of sharing purposes, typical ImagingManifest resources may include all SOP Instances in a study (perhaps for sharing through a Health Information Exchange); key images from multiple studies (for reference by a referring or treating physician); both a multi-frame ultrasound instance (\"cine\" video clip) and a set of measurements taken from that instance (for inclusion in a teaching file); and so on.",
          "properties": {
            "resourceType": {
              "description": "This is a ImagingManifest resource",
              "type": "string",
              "enum": [
                "ImagingManifest"
              ]
            },
            "uid": {
              "description": "Unique identifier of the the DICOM Key Object Selection (KOS) that this resource represents.",
              "type": "string",
              "pattern": "urn:oid:(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*"
            },
            "uid_": {
              "description": "Extensions for uid",
              "$ref": "Element.schema.json/definitions/Element"
            },
            "patient": {
              "description": "A patient resource reference which is the patient subject of all DICOM SOP Instances in this ImagingManifest.",
              "$ref": "Reference.schema.json/definitions/Reference"
            },
            "authoringTime": {
              "description": "Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).",
              "type": "string",
              "pattern": "-?[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"
            },
            "authoringTime_": {
              "description": "Extensions for authoringTime",
              "$ref": "Element.schema.json/definitions/Element"
            },
            "author": {
              "description": "Author of ImagingManifest. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.",
              "$ref": "Reference.schema.json/definitions/Reference"
            },
            "title": {
              "description": "The reason for, or significance of, the selection of objects referenced in the resource.",
              "$ref": "CodeableConcept.schema.json/definitions/CodeableConcept"
            },
            "description": {
              "description": "Text description of the DICOM SOP instances selected in the ImagingManifest. This should be aligned with the content of the title element, and can provide further explanation of the SOP instances in the selection.",
              "type": "string"
            },
            "description_": {
              "description": "Extensions for description",
              "$ref": "Element.schema.json/definitions/Element"
            },
            "study": {
              "description": "Study identity and locating information of the DICOM SOP instances in the selection.",
              "type": "array",
              "items": {
                "$ref": "#/definitions/ImagingManifest.Study"
              }
            }
          },
          "required": [
            "study",
            "patient",
            "title",
            "resourceType"
          ]
        }
      ]
    },
    "ImagingManifest.Study": {
      "allOf": [
        {
          "$ref": "BackboneElement.schema.json/definitions/BackboneElement"
        },
        {
          "description": "A manifest of a set of DICOM Service-Object Pair Instances (SOP Instances).  The referenced SOP Instances (images or other content) are for a single patient, and may be from one or more studies. The referenced SOP Instances may have been selected for a purpose, such as  conference, or consult.  Reflecting a range of sharing purposes, typical ImagingManifest resources may include all SOP Instances in a study (perhaps for sharing through a Health Information Exchange); key images from multiple studies (for reference by a referring or treating physician); both a multi-frame ultrasound instance (\"cine\" video clip) and a set of measurements taken from that instance (for inclusion in a teaching file); and so on.",
          "properties": {
            "uid": {
              "description": "Study instance UID of the SOP instances in the selection.",
              "type": "string",
              "pattern": "urn:oid:(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*"
            },
            "uid_": {
              "description": "Extensions for uid",
              "$ref": "Element.schema.json/definitions/Element"
            },
            "imagingStudy": {
              "description": "Reference to the Imaging Study in FHIR form.",
              "$ref": "Reference.schema.json/definitions/Reference"
            },
            "baseLocation": {
              "description": "Methods of accessing  (e.g., retrieving, viewing) the study.",
              "type": "array",
              "items": {
                "$ref": "#/definitions/ImagingManifest.BaseLocation"
              }
            },
            "series": {
              "description": "Series identity and locating information of the DICOM SOP instances in the selection.",
              "type": "array",
              "items": {
                "$ref": "#/definitions/ImagingManifest.Series"
              }
            }
          },
          "required": [
            "series"
          ]
        }
      ]
    },
    "ImagingManifest.BaseLocation": {
      "allOf": [
        {
          "$ref": "BackboneElement.schema.json/definitions/BackboneElement"
        },
        {
          "description": "A manifest of a set of DICOM Service-Object Pair Instances (SOP Instances).  The referenced SOP Instances (images or other content) are for a single patient, and may be from one or more studies. The referenced SOP Instances may have been selected for a purpose, such as  conference, or consult.  Reflecting a range of sharing purposes, typical ImagingManifest resources may include all SOP Instances in a study (perhaps for sharing through a Health Information Exchange); key images from multiple studies (for reference by a referring or treating physician); both a multi-frame ultrasound instance (\"cine\" video clip) and a set of measurements taken from that instance (for inclusion in a teaching file); and so on.",
          "properties": {
            "type": {
              "description": "The service type for accessing (e.g., retrieving, viewing) the DICOM instances.",
              "$ref": "Coding.schema.json/definitions/Coding"
            },
            "url": {
              "description": "The service URL for accessing the study. The interpretation of the URL depends on the type of the service specified in ImagingManifest.study.baseLocation.type.",
              "type": "string"
            },
            "url_": {
              "description": "Extensions for url",
              "$ref": "Element.schema.json/definitions/Element"
            }
          },
          "required": [
            "type"
          ]
        }
      ]
    },
    "ImagingManifest.Series": {
      "allOf": [
        {
          "$ref": "BackboneElement.schema.json/definitions/BackboneElement"
        },
        {
          "description": "A manifest of a set of DICOM Service-Object Pair Instances (SOP Instances).  The referenced SOP Instances (images or other content) are for a single patient, and may be from one or more studies. The referenced SOP Instances may have been selected for a purpose, such as  conference, or consult.  Reflecting a range of sharing purposes, typical ImagingManifest resources may include all SOP Instances in a study (perhaps for sharing through a Health Information Exchange); key images from multiple studies (for reference by a referring or treating physician); both a multi-frame ultrasound instance (\"cine\" video clip) and a set of measurements taken from that instance (for inclusion in a teaching file); and so on.",
          "properties": {
            "uid": {
              "description": "Series instance UID of the SOP instances in the selection.",
              "type": "string",
              "pattern": "urn:oid:(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*"
            },
            "uid_": {
              "description": "Extensions for uid",
              "$ref": "Element.schema.json/definitions/Element"
            },
            "baseLocation": {
              "description": "Methods of accessing (e.g. retrieving) the series.",
              "type": "array",
              "items": {
                "$ref": "#/definitions/ImagingManifest.BaseLocation1"
              }
            },
            "instance": {
              "description": "Identity and locating information of the selected DICOM SOP instances.",
              "type": "array",
              "items": {
                "$ref": "#/definitions/ImagingManifest.Instance"
              }
            }
          },
          "required": [
            "instance"
          ]
        }
      ]
    },
    "ImagingManifest.BaseLocation1": {
      "allOf": [
        {
          "$ref": "BackboneElement.schema.json/definitions/BackboneElement"
        },
        {
          "description": "A manifest of a set of DICOM Service-Object Pair Instances (SOP Instances).  The referenced SOP Instances (images or other content) are for a single patient, and may be from one or more studies. The referenced SOP Instances may have been selected for a purpose, such as  conference, or consult.  Reflecting a range of sharing purposes, typical ImagingManifest resources may include all SOP Instances in a study (perhaps for sharing through a Health Information Exchange); key images from multiple studies (for reference by a referring or treating physician); both a multi-frame ultrasound instance (\"cine\" video clip) and a set of measurements taken from that instance (for inclusion in a teaching file); and so on.",
          "properties": {
            "type": {
              "description": "The service type for accessing (e.g., retrieving) the DICOM instances.",
              "$ref": "Coding.schema.json/definitions/Coding"
            },
            "url": {
              "description": "The service URL for accessing the study. The interpretation of the URL depends on the type of the service specified in ImagingManifest.study.series.baseLocation.type.",
              "type": "string"
            },
            "url_": {
              "description": "Extensions for url",
              "$ref": "Element.schema.json/definitions/Element"
            }
          },
          "required": [
            "type"
          ]
        }
      ]
    },
    "ImagingManifest.Instance": {
      "allOf": [
        {
          "$ref": "BackboneElement.schema.json/definitions/BackboneElement"
        },
        {
          "description": "A manifest of a set of DICOM Service-Object Pair Instances (SOP Instances).  The referenced SOP Instances (images or other content) are for a single patient, and may be from one or more studies. The referenced SOP Instances may have been selected for a purpose, such as  conference, or consult.  Reflecting a range of sharing purposes, typical ImagingManifest resources may include all SOP Instances in a study (perhaps for sharing through a Health Information Exchange); key images from multiple studies (for reference by a referring or treating physician); both a multi-frame ultrasound instance (\"cine\" video clip) and a set of measurements taken from that instance (for inclusion in a teaching file); and so on.",
          "properties": {
            "sopClass": {
              "description": "SOP class UID of the selected instance.",
              "type": "string",
              "pattern": "urn:oid:(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*"
            },
            "sopClass_": {
              "description": "Extensions for sopClass",
              "$ref": "Element.schema.json/definitions/Element"
            },
            "uid": {
              "description": "SOP Instance UID of the selected instance.",
              "type": "string",
              "pattern": "urn:oid:(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*"
            },
            "uid_": {
              "description": "Extensions for uid",
              "$ref": "Element.schema.json/definitions/Element"
            }
          }
        }
      ]
    }
  }
}