﻿{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "http://hl7.org/fhir/json-schema/BodySite",
  "$ref": "#/definitions/BodySite",
  "description": "see http://hl7.org/fhir/json.html#schema for information about the FHIR Json Schemas",
  "definitions": {
    "BodySite": {
      "allOf": [
        {
          "$ref": "DomainResource.schema.json/definitions/DomainResource"
        },
        {
          "description": "Record details about the anatomical location of a specimen or body part.  This resource may be used when a coded concept does not provide the necessary detail needed for the use case.",
          "properties": {
            "resourceType": {
              "description": "This is a BodySite resource",
              "type": "string",
              "enum": [
                "BodySite"
              ]
            },
            "patient": {
              "description": "The person to which the body site belongs.",
              "$ref": "Reference.schema.json/definitions/Reference"
            },
            "identifier": {
              "description": "Identifier for this instance of the anatomical location.",
              "type": "array",
              "items": {
                "$ref": "Identifier.schema.json/definitions/Identifier"
              }
            },
            "code": {
              "description": "Named anatomical location - ideally coded where possible.",
              "$ref": "CodeableConcept.schema.json/definitions/CodeableConcept"
            },
            "modifier": {
              "description": "Modifier to refine the anatomical location.  These include modifiers for laterality, relative location, directionality, number, and plane.",
              "type": "array",
              "items": {
                "$ref": "CodeableConcept.schema.json/definitions/CodeableConcept"
              }
            },
            "description": {
              "description": "Description of anatomical location.",
              "type": "string"
            },
            "description_": {
              "description": "Extensions for description",
              "$ref": "Element.schema.json/definitions/Element"
            },
            "image": {
              "description": "Image or images used to identify a location.",
              "type": "array",
              "items": {
                "$ref": "Attachment.schema.json/definitions/Attachment"
              }
            }
          },
          "required": [
            "patient",
            "resourceType"
          ]
        }
      ]
    }
  }
}