﻿{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "http://hl7.org/fhir/json-schema/EnrollmentResponse",
  "$ref": "#/definitions/EnrollmentResponse",
  "description": "see http://hl7.org/fhir/json.html#schema for information about the FHIR Json Schemas",
  "definitions": {
    "EnrollmentResponse": {
      "allOf": [
        {
          "$ref": "DomainResource.schema.json/definitions/DomainResource"
        },
        {
          "description": "This resource provides enrollment and plan details from the processing of an Enrollment resource.",
          "properties": {
            "resourceType": {
              "description": "This is a EnrollmentResponse resource",
              "type": "string",
              "enum": [
                "EnrollmentResponse"
              ]
            },
            "identifier": {
              "description": "The Response business identifier.",
              "type": "array",
              "items": {
                "$ref": "Identifier.schema.json/definitions/Identifier"
              }
            },
            "status": {
              "description": "The status of the resource instance.",
              "type": "string",
              "pattern": "[^\\s]+([\\s]?[^\\s]+)*"
            },
            "status_": {
              "description": "Extensions for status",
              "$ref": "Element.schema.json/definitions/Element"
            },
            "requestIdentifier": {
              "description": "Original request resource reference.",
              "$ref": "Identifier.schema.json/definitions/Identifier"
            },
            "requestReference": {
              "description": "Original request resource reference.",
              "$ref": "Reference.schema.json/definitions/Reference"
            },
            "outcome": {
              "description": "Processing status: error, complete.",
              "type": "string",
              "pattern": "[^\\s]+([\\s]?[^\\s]+)*"
            },
            "outcome_": {
              "description": "Extensions for outcome",
              "$ref": "Element.schema.json/definitions/Element"
            },
            "disposition": {
              "description": "A description of the status of the adjudication.",
              "type": "string"
            },
            "disposition_": {
              "description": "Extensions for disposition",
              "$ref": "Element.schema.json/definitions/Element"
            },
            "ruleset": {
              "description": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "$ref": "Coding.schema.json/definitions/Coding"
            },
            "originalRuleset": {
              "description": "The style (standard) and version of the original material which was converted into this resource.",
              "$ref": "Coding.schema.json/definitions/Coding"
            },
            "created": {
              "description": "The date when the enclosed suite of services were performed or completed.",
              "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)))?)?)?"
            },
            "created_": {
              "description": "Extensions for created",
              "$ref": "Element.schema.json/definitions/Element"
            },
            "organizationIdentifier": {
              "description": "The Insurer who produced this adjudicated response.",
              "$ref": "Identifier.schema.json/definitions/Identifier"
            },
            "organizationReference": {
              "description": "The Insurer who produced this adjudicated response.",
              "$ref": "Reference.schema.json/definitions/Reference"
            },
            "requestProviderIdentifier": {
              "description": "The practitioner who is responsible for the services rendered to the patient.",
              "$ref": "Identifier.schema.json/definitions/Identifier"
            },
            "requestProviderReference": {
              "description": "The practitioner who is responsible for the services rendered to the patient.",
              "$ref": "Reference.schema.json/definitions/Reference"
            },
            "requestOrganizationIdentifier": {
              "description": "The organization which is responsible for the services rendered to the patient.",
              "$ref": "Identifier.schema.json/definitions/Identifier"
            },
            "requestOrganizationReference": {
              "description": "The organization which is responsible for the services rendered to the patient.",
              "$ref": "Reference.schema.json/definitions/Reference"
            }
          },
          "required": [
            "resourceType"
          ]
        }
      ]
    }
  }
}