Created
June 15, 2017 11:40
-
-
Save gayanW/93e6112c7855eb8349154fe0cdf66026 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger" : "2.0", | |
"info" : { | |
"version" : "1.0.0", | |
"title" : "Swagger WebServices REST" | |
}, | |
"schemes" : [ "http" ], | |
"consumes" : [ "application/json" ], | |
"produces" : [ "application/json" ], | |
"securityDefinitions" : { | |
"basicAuth" : { | |
"type" : "basic" | |
} | |
}, | |
"definitions" : { | |
"Patient" : { | |
"type" : "object", | |
"properties" : { | |
"uuid" : { | |
"type" : "string" | |
}, | |
"creator" : { | |
"$ref" : "#/definitions/User" | |
}, | |
"dateCreated" : { | |
"type" : "string", | |
"format" : "date-time" | |
}, | |
"changedBy" : { | |
"$ref" : "#/definitions/User" | |
}, | |
"dateChanged" : { | |
"type" : "string", | |
"format" : "date-time" | |
}, | |
"voided" : { | |
"type" : "boolean" | |
}, | |
"dateVoided" : { | |
"type" : "string", | |
"format" : "date-time" | |
}, | |
"voidedBy" : { | |
"$ref" : "#/definitions/User" | |
}, | |
"voidReason" : { | |
"type" : "string" | |
}, | |
"personId" : { | |
"type" : "integer", | |
"format" : "int32" | |
}, | |
"addresses" : { | |
"type" : "array", | |
"uniqueItems" : true, | |
"items" : { | |
"$ref" : "#/definitions/PersonAddress" | |
} | |
}, | |
"names" : { | |
"type" : "array", | |
"uniqueItems" : true, | |
"items" : { | |
"$ref" : "#/definitions/PersonName" | |
} | |
}, | |
"attributes" : { | |
"type" : "array", | |
"uniqueItems" : true, | |
"items" : { | |
"$ref" : "#/definitions/PersonAttribute" | |
} | |
}, | |
"gender" : { | |
"type" : "string" | |
}, | |
"birthdate" : { | |
"type" : "string", | |
"format" : "date-time" | |
}, | |
"birthdateEstimated" : { | |
"type" : "boolean" | |
}, | |
"dead" : { | |
"type" : "boolean" | |
}, | |
"deathDate" : { | |
"type" : "string", | |
"format" : "date-time" | |
}, | |
"causeOfDeath" : { | |
"$ref" : "#/definitions/Concept" | |
}, | |
"personCreator" : { | |
"$ref" : "#/definitions/User" | |
}, | |
"personDateCreated" : { | |
"type" : "string", | |
"format" : "date-time" | |
}, | |
"personChangedBy" : { | |
"$ref" : "#/definitions/User" | |
}, | |
"personDateChanged" : { | |
"type" : "string", | |
"format" : "date-time" | |
}, | |
"personVoided" : { | |
"type" : "boolean" | |
}, | |
"personVoidedBy" : { | |
"$ref" : "#/definitions/User" | |
}, | |
"personDateVoided" : { | |
"type" : "string", | |
"format" : "date-time" | |
}, | |
"personVoidReason" : { | |
"type" : "string" | |
}, | |
"attributeMap" : { | |
"type" : "object", | |
"additionalProperties" : { | |
"$ref" : "#/definitions/PersonAttribute" | |
} | |
}, | |
"patientId" : { | |
"type" : "integer", | |
"format" : "int32" | |
}, | |
"identifiers" : { | |
"type" : "array", | |
"uniqueItems" : true, | |
"items" : { | |
"$ref" : "#/definitions/PatientIdentifier" | |
} | |
}, | |
"id" : { | |
"type" : "integer", | |
"format" : "int32" | |
}, | |
"tribe" : { | |
"$ref" : "#/definitions/Tribe" | |
}, | |
"patientIdentifier" : { | |
"$ref" : "#/definitions/PatientIdentifier" | |
}, | |
"activeIdentifiers" : { | |
"type" : "array", | |
"items" : { | |
"$ref" : "#/definitions/PatientIdentifier" | |
} | |
}, | |
"familyName" : { | |
"type" : "string" | |
}, | |
"patient" : { | |
"type" : "boolean" | |
}, | |
"activeAttributes" : { | |
"type" : "array", | |
"items" : { | |
"$ref" : "#/definitions/PersonAttribute" | |
} | |
}, | |
"personName" : { | |
"$ref" : "#/definitions/PersonName" | |
}, | |
"givenName" : { | |
"type" : "string" | |
}, | |
"middleName" : { | |
"type" : "string" | |
}, | |
"personAddress" : { | |
"$ref" : "#/definitions/PersonAddress" | |
}, | |
"age" : { | |
"type" : "integer", | |
"format" : "int32" | |
}, | |
"user" : { | |
"type" : "boolean" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment