{
	"id": "HealthPlanCostSharingSpecification.json",
	"title": "Health Plan Cost Sharing Specification",
	"description": "A description of costs to the patient under a given network or formulary.",
	"media": {"type": "application/json;profile=http://schema.org/HealthPlanCostSharingSpecification"},
	"allOf": [{"$ref": "Thing.json"}, {"$ref": "Intangible.json"}],
	"type": "object",
	"properties": {
		"healthPlanCoinsuranceOption": {
			"oneOf": [
				{"$ref": "#/definitions/healthPlanCoinsuranceOption"},
				{
					"type": "array",
					"items": {"$ref": "#/definitions/healthPlanCoinsuranceOption"}
				}
			]
		},
		"healthPlanCoinsuranceRate": {
			"oneOf": [
				{"$ref": "#/definitions/healthPlanCoinsuranceRate"},
				{
					"type": "array",
					"items": {"$ref": "#/definitions/healthPlanCoinsuranceRate"}
				}
			]
		},
		"healthPlanCopay": {
			"oneOf": [
				{"$ref": "PriceSpecification.json#/definitions/possibleRef"},
				{
					"type": "array",
					"items": {"$ref": "PriceSpecification.json#/definitions/possibleRef"}
				}
			]
		},
		"healthPlanCopayOption": {
			"oneOf": [
				{"$ref": "#/definitions/healthPlanCopayOption"},
				{
					"type": "array",
					"items": {"$ref": "#/definitions/healthPlanCopayOption"}
				}
			]
		},
		"healthPlanPharmacyCategory": {"$ref": "#/definitions/healthPlanPharmacyCategory"}
	},
	"definitions": {
		"array": {
			"type": "array",
			"items": {"$ref": "#"}
		},
		"possibleRef": {
			"oneOf": [
				{"$ref": "#"},
				{
					"type": "string",
					"format": "uri",
					"links": [{
						"rel": "full",
						"href": "{+$}"
					}]
				}
			]
		},
		"possibleRefArray": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/possibleRef"}
				},
				{
					"type": "string",
					"format": "uri",
					"links": [{
						"rel": "full",
						"href": "{+$}"
					}]
				}
			]
		},
		"healthPlanCoinsuranceOption": {
			"title": "Health Plan Coinsurance Option",
			"description": "Whether the coinsurance applies before or after deductible, etc. TODO: Is this a closed set?",
			"type": "string"
		},
		"healthPlanCoinsuranceRate": {
			"title": "Health Plan Coinsurance Rate",
			"description": "Whether The rate of coinsurance expressed as a number between 0.0 and 1.0.",
			"type": "number"
		},
		"healthPlanCopayOption": {
			"title": "Health Plan Copay Option",
			"description": "Whether the copay is before or after deductible, etc. TODO: Is this a closed set?",
			"type": "string"
		},
		"healthPlanPharmacyCategory": {
			"title": "Health Plan Pharmacy Category",
			"description": "The category or type of pharmacy associated with this cost sharing.",
			"type": "string"
		}
	}
}