Skip to content

Instantly share code, notes, and snippets.

@gayanW
Created June 15, 2017 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gayanW/93e6112c7855eb8349154fe0cdf66026 to your computer and use it in GitHub Desktop.
Save gayanW/93e6112c7855eb8349154fe0cdf66026 to your computer and use it in GitHub Desktop.
{
"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