{ "definitions": { "ResourceDescriptor": { "description": "This object is a Resource Id", "type": "object", "properties": { "id": { "type": "string" }, "resourceType": { "type": "string" } }, "required": [ "id", "resourceType" ] }, "BaseResource": { "discriminator": "baseResType", "type": "object", "description": "This is base class for all resources", "properties": { "resourceDescriptor": { "$ref": "#/definitions/ResourceDescriptor" }, "language": { "type": "string" }, "baseResType": { "type": "string" } }, "required": [ "resourceDescriptor", "baseResType" ] }, "Outcome": { "type": "object", "properties": { "responseString": { "type": "string" }, "responseCode": { "type": "integer" }, "resourceDescriptor": { "$ref": "#/definitions/ResourceDescriptor" } } }, "Observation": { "allOf": [ { "$ref": "#/definitions/BaseResource" }, { "discriminator": "observationType", "type": "object", "properties": { "subject": { "$ref": "#/definitions/ResourceDescriptor" }, "effective": { "type": "string", "format": "date-time" }, "observationType": { "type": "string" } }, "required": [ "subject", "effective", "observationType" ] } ] } } }