Advertisement
Guest User

openmrs swagger

a guest
Jul 13th, 2021
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 438.57 KB | None | 0 0
  1. {
  2. swagger: "2.0",
  3. info: {
  4. description: "OpenMRS RESTful API documentation generated by Swagger",
  5. version: "2.4.0",
  6. title: "OpenMRS API Docs",
  7. contact: {
  8. name: "OpenMRS",
  9. url: "http://openmrs.org"
  10. },
  11. license: {
  12. name: "MPL-2.0 w/ HD",
  13. url: "http://openmrs.org/license"
  14. }
  15. },
  16. host: "localhost:8080",
  17. basePath: "/openmrs/ws/rest/v1",
  18. schemes: [
  19. "http"
  20. ],
  21. consumes: [
  22. "application/json"
  23. ],
  24. produces: [
  25. "application/json"
  26. ],
  27. security: [
  28. {
  29. basic_auth: [ ]
  30. },
  31. {
  32. basic_auth: [ ]
  33. },
  34. {
  35. basic_auth: [ ]
  36. }
  37. ],
  38. paths: {
  39. /orderable: {
  40. get: {
  41. tags: [
  42. "orderable"
  43. ],
  44. summary: "Search for orderable",
  45. description: "At least one search parameter must be specified",
  46. operationId: "getAllOrderables",
  47. produces: [
  48. "application/json",
  49. "application/xml"
  50. ],
  51. parameters: [
  52. {
  53. name: "limit",
  54. in: "query",
  55. description: "The number of results to return",
  56. required: false,
  57. type: "integer"
  58. },
  59. {
  60. name: "startIndex",
  61. in: "query",
  62. description: "The offset at which to start",
  63. required: false,
  64. type: "integer"
  65. },
  66. {
  67. name: "v",
  68. in: "query",
  69. description: "The representation to return (ref, default, full or custom)",
  70. required: false,
  71. type: "string",
  72. enum: [
  73. "ref",
  74. "default",
  75. "full",
  76. "custom"
  77. ]
  78. },
  79. {
  80. name: "q",
  81. in: "query",
  82. description: "The search query",
  83. required: true,
  84. type: "string"
  85. }
  86. ],
  87. responses: {
  88. 200: {
  89. description: "orderable response",
  90. schema: {
  91. $ref: "#/definitions/FetchAll"
  92. }
  93. }
  94. }
  95. }
  96. },
  97. /form: {
  98. get: {
  99. tags: [
  100. "form"
  101. ],
  102. summary: "Fetch all non-retired form resources or perform search",
  103. description: "All search parameters are optional",
  104. operationId: "getAllForms",
  105. consumes: [
  106. "application/json"
  107. ],
  108. produces: [
  109. "application/json"
  110. ],
  111. parameters: [
  112. {
  113. name: "limit",
  114. in: "query",
  115. description: "The number of results to return",
  116. required: false,
  117. type: "integer"
  118. },
  119. {
  120. name: "startIndex",
  121. in: "query",
  122. description: "The offset at which to start",
  123. required: false,
  124. type: "integer"
  125. },
  126. {
  127. name: "v",
  128. in: "query",
  129. description: "The representation to return (ref, default, full or custom)",
  130. required: false,
  131. type: "string",
  132. enum: [
  133. "ref",
  134. "default",
  135. "full",
  136. "custom"
  137. ]
  138. },
  139. {
  140. name: "q",
  141. in: "query",
  142. description: "The search query",
  143. required: false,
  144. type: "string"
  145. }
  146. ],
  147. responses: {
  148. 200: {
  149. description: "form response",
  150. schema: {
  151. $ref: "#/definitions/FetchAll"
  152. }
  153. },
  154. 401: {
  155. description: "User not logged in"
  156. }
  157. }
  158. },
  159. post: {
  160. tags: [
  161. "form"
  162. ],
  163. summary: "Create with properties in request",
  164. operationId: "createForm",
  165. consumes: [
  166. "application/json"
  167. ],
  168. produces: [
  169. "application/json"
  170. ],
  171. parameters: [
  172. {
  173. in: "body",
  174. name: "resource",
  175. description: "Resource to create",
  176. required: true,
  177. schema: {
  178. $ref: "#/definitions/FormCreate"
  179. }
  180. }
  181. ],
  182. responses: {
  183. 201: {
  184. description: "form response"
  185. },
  186. 401: {
  187. description: "User not logged in"
  188. }
  189. }
  190. }
  191. },
  192. /form/{uuid}: {
  193. get: {
  194. tags: [
  195. "form"
  196. ],
  197. summary: "Fetch by uuid",
  198. operationId: "getForm",
  199. consumes: [
  200. "application/json"
  201. ],
  202. produces: [
  203. "application/json"
  204. ],
  205. parameters: [
  206. {
  207. name: "v",
  208. in: "query",
  209. description: "The representation to return (ref, default, full or custom)",
  210. required: false,
  211. type: "string",
  212. enum: [
  213. "ref",
  214. "default",
  215. "full",
  216. "custom"
  217. ]
  218. },
  219. {
  220. name: "uuid",
  221. in: "path",
  222. description: "uuid to filter by",
  223. required: true,
  224. type: "string"
  225. }
  226. ],
  227. responses: {
  228. 200: {
  229. description: "form response",
  230. schema: {
  231. $ref: "#/definitions/FormGet"
  232. }
  233. },
  234. 401: {
  235. description: "User not logged in"
  236. },
  237. 404: {
  238. description: "Resource with given uuid doesn't exist"
  239. }
  240. }
  241. },
  242. post: {
  243. tags: [
  244. "form"
  245. ],
  246. summary: "Edit with given uuid, only modifying properties in request",
  247. operationId: "updateForm",
  248. consumes: [
  249. "application/json"
  250. ],
  251. produces: [
  252. "application/json"
  253. ],
  254. parameters: [
  255. {
  256. name: "uuid",
  257. in: "path",
  258. description: "uuid of resource to update",
  259. required: true,
  260. type: "string"
  261. },
  262. {
  263. in: "body",
  264. name: "resource",
  265. description: "Resource properties to update",
  266. required: true,
  267. schema: {
  268. $ref: "#/definitions/FormUpdate"
  269. }
  270. }
  271. ],
  272. responses: {
  273. 201: {
  274. description: "form response"
  275. },
  276. 401: {
  277. description: "User not logged in"
  278. }
  279. }
  280. },
  281. delete: {
  282. tags: [
  283. "form"
  284. ],
  285. summary: "Delete or purge resource by uuid",
  286. description: "The resource will be voided/retired unless purge = 'true'",
  287. operationId: "deleteForm",
  288. consumes: [
  289. "application/json"
  290. ],
  291. produces: [
  292. "application/json"
  293. ],
  294. parameters: [
  295. {
  296. name: "uuid",
  297. in: "path",
  298. description: "uuid to delete",
  299. required: true,
  300. type: "string"
  301. },
  302. {
  303. name: "purge",
  304. in: "query",
  305. required: false,
  306. type: "boolean"
  307. }
  308. ],
  309. responses: {
  310. 204: {
  311. description: "Delete successful"
  312. },
  313. 401: {
  314. description: "User not logged in"
  315. },
  316. 404: {
  317. description: "Resource with given uuid doesn't exist"
  318. }
  319. }
  320. }
  321. },
  322. /condition: {
  323. get: {
  324. tags: [
  325. "condition"
  326. ],
  327. summary: "Search for condition",
  328. description: "At least one search parameter must be specified",
  329. operationId: "getAllConditions",
  330. produces: [
  331. "application/json",
  332. "application/xml"
  333. ],
  334. parameters: [
  335. {
  336. name: "limit",
  337. in: "query",
  338. description: "The number of results to return",
  339. required: false,
  340. type: "integer"
  341. },
  342. {
  343. name: "startIndex",
  344. in: "query",
  345. description: "The offset at which to start",
  346. required: false,
  347. type: "integer"
  348. },
  349. {
  350. name: "v",
  351. in: "query",
  352. description: "The representation to return (ref, default, full or custom)",
  353. required: false,
  354. type: "string",
  355. enum: [
  356. "ref",
  357. "default",
  358. "full",
  359. "custom"
  360. ]
  361. },
  362. {
  363. name: "q",
  364. in: "query",
  365. description: "The search query",
  366. required: true,
  367. type: "string"
  368. }
  369. ],
  370. responses: {
  371. 200: {
  372. description: "condition response",
  373. schema: {
  374. $ref: "#/definitions/FetchAll"
  375. }
  376. }
  377. }
  378. },
  379. post: {
  380. tags: [
  381. "condition"
  382. ],
  383. summary: "Create with properties in request",
  384. operationId: "createCondition",
  385. consumes: [
  386. "application/json"
  387. ],
  388. produces: [
  389. "application/json"
  390. ],
  391. parameters: [
  392. {
  393. in: "body",
  394. name: "resource",
  395. description: "Resource to create",
  396. required: true,
  397. schema: {
  398. $ref: "#/definitions/ConditionCreate"
  399. }
  400. }
  401. ],
  402. responses: {
  403. 201: {
  404. description: "condition response"
  405. },
  406. 401: {
  407. description: "User not logged in"
  408. }
  409. }
  410. }
  411. },
  412. /condition/{uuid}: {
  413. get: {
  414. tags: [
  415. "condition"
  416. ],
  417. summary: "Fetch by uuid",
  418. operationId: "getCondition",
  419. consumes: [
  420. "application/json"
  421. ],
  422. produces: [
  423. "application/json"
  424. ],
  425. parameters: [
  426. {
  427. name: "v",
  428. in: "query",
  429. description: "The representation to return (ref, default, full or custom)",
  430. required: false,
  431. type: "string",
  432. enum: [
  433. "ref",
  434. "default",
  435. "full",
  436. "custom"
  437. ]
  438. },
  439. {
  440. name: "uuid",
  441. in: "path",
  442. description: "uuid to filter by",
  443. required: true,
  444. type: "string"
  445. }
  446. ],
  447. responses: {
  448. 200: {
  449. description: "condition response",
  450. schema: {
  451. $ref: "#/definitions/ConditionGet"
  452. }
  453. },
  454. 401: {
  455. description: "User not logged in"
  456. },
  457. 404: {
  458. description: "Resource with given uuid doesn't exist"
  459. }
  460. }
  461. },
  462. post: {
  463. tags: [
  464. "condition"
  465. ],
  466. summary: "Edit with given uuid, only modifying properties in request",
  467. operationId: "updateCondition",
  468. consumes: [
  469. "application/json"
  470. ],
  471. produces: [
  472. "application/json"
  473. ],
  474. parameters: [
  475. {
  476. name: "uuid",
  477. in: "path",
  478. description: "uuid of resource to update",
  479. required: true,
  480. type: "string"
  481. },
  482. {
  483. in: "body",
  484. name: "resource",
  485. description: "Resource properties to update",
  486. required: true,
  487. schema: {
  488. $ref: "#/definitions/ConditionUpdate"
  489. }
  490. }
  491. ],
  492. responses: {
  493. 201: {
  494. description: "condition response"
  495. },
  496. 401: {
  497. description: "User not logged in"
  498. }
  499. }
  500. },
  501. delete: {
  502. tags: [
  503. "condition"
  504. ],
  505. summary: "Delete or purge resource by uuid",
  506. description: "The resource will be voided/retired unless purge = 'true'",
  507. operationId: "deleteCondition",
  508. consumes: [
  509. "application/json"
  510. ],
  511. produces: [
  512. "application/json"
  513. ],
  514. parameters: [
  515. {
  516. name: "uuid",
  517. in: "path",
  518. description: "uuid to delete",
  519. required: true,
  520. type: "string"
  521. },
  522. {
  523. name: "purge",
  524. in: "query",
  525. required: false,
  526. type: "boolean"
  527. }
  528. ],
  529. responses: {
  530. 204: {
  531. description: "Delete successful"
  532. },
  533. 401: {
  534. description: "User not logged in"
  535. },
  536. 404: {
  537. description: "Resource with given uuid doesn't exist"
  538. }
  539. }
  540. }
  541. },
  542. /privilege: {
  543. get: {
  544. tags: [
  545. "privilege"
  546. ],
  547. summary: "Fetch all non-retired privilege resources or perform search",
  548. description: "All search parameters are optional",
  549. operationId: "getAllPrivileges",
  550. consumes: [
  551. "application/json"
  552. ],
  553. produces: [
  554. "application/json"
  555. ],
  556. parameters: [
  557. {
  558. name: "limit",
  559. in: "query",
  560. description: "The number of results to return",
  561. required: false,
  562. type: "integer"
  563. },
  564. {
  565. name: "startIndex",
  566. in: "query",
  567. description: "The offset at which to start",
  568. required: false,
  569. type: "integer"
  570. },
  571. {
  572. name: "v",
  573. in: "query",
  574. description: "The representation to return (ref, default, full or custom)",
  575. required: false,
  576. type: "string",
  577. enum: [
  578. "ref",
  579. "default",
  580. "full",
  581. "custom"
  582. ]
  583. },
  584. {
  585. name: "q",
  586. in: "query",
  587. description: "The search query",
  588. required: false,
  589. type: "string"
  590. }
  591. ],
  592. responses: {
  593. 200: {
  594. description: "privilege response",
  595. schema: {
  596. $ref: "#/definitions/FetchAll"
  597. }
  598. },
  599. 401: {
  600. description: "User not logged in"
  601. }
  602. }
  603. },
  604. post: {
  605. tags: [
  606. "privilege"
  607. ],
  608. summary: "Create with properties in request",
  609. operationId: "createPrivilege",
  610. consumes: [
  611. "application/json"
  612. ],
  613. produces: [
  614. "application/json"
  615. ],
  616. parameters: [
  617. {
  618. in: "body",
  619. name: "resource",
  620. description: "Resource to create",
  621. required: true,
  622. schema: {
  623. $ref: "#/definitions/PrivilegeCreate"
  624. }
  625. }
  626. ],
  627. responses: {
  628. 201: {
  629. description: "privilege response"
  630. },
  631. 401: {
  632. description: "User not logged in"
  633. }
  634. }
  635. }
  636. },
  637. /privilege/{uuid}: {
  638. get: {
  639. tags: [
  640. "privilege"
  641. ],
  642. summary: "Fetch by uuid",
  643. operationId: "getPrivilege",
  644. consumes: [
  645. "application/json"
  646. ],
  647. produces: [
  648. "application/json"
  649. ],
  650. parameters: [
  651. {
  652. name: "v",
  653. in: "query",
  654. description: "The representation to return (ref, default, full or custom)",
  655. required: false,
  656. type: "string",
  657. enum: [
  658. "ref",
  659. "default",
  660. "full",
  661. "custom"
  662. ]
  663. },
  664. {
  665. name: "uuid",
  666. in: "path",
  667. description: "uuid to filter by",
  668. required: true,
  669. type: "string"
  670. }
  671. ],
  672. responses: {
  673. 200: {
  674. description: "privilege response",
  675. schema: {
  676. $ref: "#/definitions/PrivilegeGet"
  677. }
  678. },
  679. 401: {
  680. description: "User not logged in"
  681. },
  682. 404: {
  683. description: "Resource with given uuid doesn't exist"
  684. }
  685. }
  686. },
  687. post: {
  688. tags: [
  689. "privilege"
  690. ],
  691. summary: "Edit with given uuid, only modifying properties in request",
  692. operationId: "updatePrivilege",
  693. consumes: [
  694. "application/json"
  695. ],
  696. produces: [
  697. "application/json"
  698. ],
  699. parameters: [
  700. {
  701. name: "uuid",
  702. in: "path",
  703. description: "uuid of resource to update",
  704. required: true,
  705. type: "string"
  706. },
  707. {
  708. in: "body",
  709. name: "resource",
  710. description: "Resource properties to update",
  711. required: true,
  712. schema: {
  713. $ref: "#/definitions/PrivilegeUpdate"
  714. }
  715. }
  716. ],
  717. responses: {
  718. 201: {
  719. description: "privilege response"
  720. },
  721. 401: {
  722. description: "User not logged in"
  723. }
  724. }
  725. },
  726. delete: {
  727. tags: [
  728. "privilege"
  729. ],
  730. summary: "Delete or purge resource by uuid",
  731. description: "The resource will be voided/retired unless purge = 'true'",
  732. operationId: "deletePrivilege",
  733. consumes: [
  734. "application/json"
  735. ],
  736. produces: [
  737. "application/json"
  738. ],
  739. parameters: [
  740. {
  741. name: "uuid",
  742. in: "path",
  743. description: "uuid to delete",
  744. required: true,
  745. type: "string"
  746. },
  747. {
  748. name: "purge",
  749. in: "query",
  750. required: false,
  751. type: "boolean"
  752. }
  753. ],
  754. responses: {
  755. 204: {
  756. description: "Delete successful"
  757. },
  758. 401: {
  759. description: "User not logged in"
  760. },
  761. 404: {
  762. description: "Resource with given uuid doesn't exist"
  763. }
  764. }
  765. }
  766. },
  767. /taskaction: {
  768. post: {
  769. tags: [
  770. "taskaction"
  771. ],
  772. summary: "Create with properties in request",
  773. operationId: "createTaskAction",
  774. consumes: [
  775. "application/json"
  776. ],
  777. produces: [
  778. "application/json"
  779. ],
  780. parameters: [
  781. {
  782. in: "body",
  783. name: "resource",
  784. description: "Resource to create",
  785. required: true,
  786. schema: {
  787. $ref: "#/definitions/TaskactionCreate"
  788. }
  789. }
  790. ],
  791. responses: {
  792. 201: {
  793. description: "taskaction response"
  794. },
  795. 401: {
  796. description: "User not logged in"
  797. }
  798. }
  799. }
  800. },
  801. /taskaction/{uuid}: {
  802. get: {
  803. tags: [
  804. "taskaction"
  805. ],
  806. summary: "Fetch by uuid",
  807. operationId: "getTaskAction",
  808. consumes: [
  809. "application/json"
  810. ],
  811. produces: [
  812. "application/json"
  813. ],
  814. parameters: [
  815. {
  816. name: "v",
  817. in: "query",
  818. description: "The representation to return (ref, default, full or custom)",
  819. required: false,
  820. type: "string",
  821. enum: [
  822. "ref",
  823. "default",
  824. "full",
  825. "custom"
  826. ]
  827. },
  828. {
  829. name: "uuid",
  830. in: "path",
  831. description: "uuid to filter by",
  832. required: true,
  833. type: "string"
  834. }
  835. ],
  836. responses: {
  837. 200: {
  838. description: "taskaction response",
  839. schema: {
  840. $ref: "#/definitions/TaskactionGet"
  841. }
  842. },
  843. 401: {
  844. description: "User not logged in"
  845. },
  846. 404: {
  847. description: "Resource with given uuid doesn't exist"
  848. }
  849. }
  850. }
  851. },
  852. /orderfrequency: {
  853. get: {
  854. tags: [
  855. "orderfrequency"
  856. ],
  857. summary: "Fetch all non-retired orderfrequency resources or perform search",
  858. description: "All search parameters are optional",
  859. operationId: "getAllOrderFrequencies",
  860. consumes: [
  861. "application/json"
  862. ],
  863. produces: [
  864. "application/json"
  865. ],
  866. parameters: [
  867. {
  868. name: "limit",
  869. in: "query",
  870. description: "The number of results to return",
  871. required: false,
  872. type: "integer"
  873. },
  874. {
  875. name: "startIndex",
  876. in: "query",
  877. description: "The offset at which to start",
  878. required: false,
  879. type: "integer"
  880. },
  881. {
  882. name: "v",
  883. in: "query",
  884. description: "The representation to return (ref, default, full or custom)",
  885. required: false,
  886. type: "string",
  887. enum: [
  888. "ref",
  889. "default",
  890. "full",
  891. "custom"
  892. ]
  893. },
  894. {
  895. name: "q",
  896. in: "query",
  897. description: "The search query",
  898. required: false,
  899. type: "string"
  900. }
  901. ],
  902. responses: {
  903. 200: {
  904. description: "orderfrequency response",
  905. schema: {
  906. $ref: "#/definitions/FetchAll"
  907. }
  908. },
  909. 401: {
  910. description: "User not logged in"
  911. }
  912. }
  913. },
  914. post: {
  915. tags: [
  916. "orderfrequency"
  917. ],
  918. summary: "Create with properties in request",
  919. operationId: "createOrderFrequency",
  920. consumes: [
  921. "application/json"
  922. ],
  923. produces: [
  924. "application/json"
  925. ],
  926. parameters: [
  927. {
  928. in: "body",
  929. name: "resource",
  930. description: "Resource to create",
  931. required: true,
  932. schema: {
  933. $ref: "#/definitions/OrderfrequencyCreate"
  934. }
  935. }
  936. ],
  937. responses: {
  938. 201: {
  939. description: "orderfrequency response"
  940. },
  941. 401: {
  942. description: "User not logged in"
  943. }
  944. }
  945. }
  946. },
  947. /orderfrequency/{uuid}: {
  948. get: {
  949. tags: [
  950. "orderfrequency"
  951. ],
  952. summary: "Fetch by uuid",
  953. operationId: "getOrderFrequency",
  954. consumes: [
  955. "application/json"
  956. ],
  957. produces: [
  958. "application/json"
  959. ],
  960. parameters: [
  961. {
  962. name: "v",
  963. in: "query",
  964. description: "The representation to return (ref, default, full or custom)",
  965. required: false,
  966. type: "string",
  967. enum: [
  968. "ref",
  969. "default",
  970. "full",
  971. "custom"
  972. ]
  973. },
  974. {
  975. name: "uuid",
  976. in: "path",
  977. description: "uuid to filter by",
  978. required: true,
  979. type: "string"
  980. }
  981. ],
  982. responses: {
  983. 200: {
  984. description: "orderfrequency response",
  985. schema: {
  986. $ref: "#/definitions/OrderfrequencyGet"
  987. }
  988. },
  989. 401: {
  990. description: "User not logged in"
  991. },
  992. 404: {
  993. description: "Resource with given uuid doesn't exist"
  994. }
  995. }
  996. },
  997. post: {
  998. tags: [
  999. "orderfrequency"
  1000. ],
  1001. summary: "Edit with given uuid, only modifying properties in request",
  1002. operationId: "updateOrderFrequency",
  1003. consumes: [
  1004. "application/json"
  1005. ],
  1006. produces: [
  1007. "application/json"
  1008. ],
  1009. parameters: [
  1010. {
  1011. name: "uuid",
  1012. in: "path",
  1013. description: "uuid of resource to update",
  1014. required: true,
  1015. type: "string"
  1016. },
  1017. {
  1018. in: "body",
  1019. name: "resource",
  1020. description: "Resource properties to update",
  1021. required: true,
  1022. schema: {
  1023. $ref: "#/definitions/OrderfrequencyUpdate"
  1024. }
  1025. }
  1026. ],
  1027. responses: {
  1028. 201: {
  1029. description: "orderfrequency response"
  1030. },
  1031. 401: {
  1032. description: "User not logged in"
  1033. }
  1034. }
  1035. },
  1036. delete: {
  1037. tags: [
  1038. "orderfrequency"
  1039. ],
  1040. summary: "Delete or purge resource by uuid",
  1041. description: "The resource will be voided/retired unless purge = 'true'",
  1042. operationId: "deleteOrderFrequency",
  1043. consumes: [
  1044. "application/json"
  1045. ],
  1046. produces: [
  1047. "application/json"
  1048. ],
  1049. parameters: [
  1050. {
  1051. name: "uuid",
  1052. in: "path",
  1053. description: "uuid to delete",
  1054. required: true,
  1055. type: "string"
  1056. },
  1057. {
  1058. name: "purge",
  1059. in: "query",
  1060. required: false,
  1061. type: "boolean"
  1062. }
  1063. ],
  1064. responses: {
  1065. 204: {
  1066. description: "Delete successful"
  1067. },
  1068. 401: {
  1069. description: "User not logged in"
  1070. },
  1071. 404: {
  1072. description: "Resource with given uuid doesn't exist"
  1073. }
  1074. }
  1075. }
  1076. },
  1077. /module: {
  1078. get: {
  1079. tags: [
  1080. "module"
  1081. ],
  1082. summary: "Fetch all non-retired",
  1083. operationId: "getAllModules",
  1084. consumes: [
  1085. "application/json"
  1086. ],
  1087. produces: [
  1088. "application/json"
  1089. ],
  1090. parameters: [
  1091. {
  1092. name: "limit",
  1093. in: "query",
  1094. description: "The number of results to return",
  1095. required: false,
  1096. type: "integer"
  1097. },
  1098. {
  1099. name: "startIndex",
  1100. in: "query",
  1101. description: "The offset at which to start",
  1102. required: false,
  1103. type: "integer"
  1104. },
  1105. {
  1106. name: "v",
  1107. in: "query",
  1108. description: "The representation to return (ref, default, full or custom)",
  1109. required: false,
  1110. type: "string",
  1111. enum: [
  1112. "ref",
  1113. "default",
  1114. "full",
  1115. "custom"
  1116. ]
  1117. }
  1118. ],
  1119. responses: {
  1120. 200: {
  1121. description: "module response",
  1122. schema: {
  1123. $ref: "#/definitions/FetchAll"
  1124. }
  1125. },
  1126. 401: {
  1127. description: "User not logged in"
  1128. }
  1129. }
  1130. }
  1131. },
  1132. /module/{uuid}: {
  1133. get: {
  1134. tags: [
  1135. "module"
  1136. ],
  1137. summary: "Fetch by uuid",
  1138. operationId: "getModule",
  1139. consumes: [
  1140. "application/json"
  1141. ],
  1142. produces: [
  1143. "application/json"
  1144. ],
  1145. parameters: [
  1146. {
  1147. name: "v",
  1148. in: "query",
  1149. description: "The representation to return (ref, default, full or custom)",
  1150. required: false,
  1151. type: "string",
  1152. enum: [
  1153. "ref",
  1154. "default",
  1155. "full",
  1156. "custom"
  1157. ]
  1158. },
  1159. {
  1160. name: "uuid",
  1161. in: "path",
  1162. description: "uuid to filter by",
  1163. required: true,
  1164. type: "string"
  1165. }
  1166. ],
  1167. responses: {
  1168. 200: {
  1169. description: "module response",
  1170. schema: {
  1171. $ref: "#/definitions/ModuleGet"
  1172. }
  1173. },
  1174. 401: {
  1175. description: "User not logged in"
  1176. },
  1177. 404: {
  1178. description: "Resource with given uuid doesn't exist"
  1179. }
  1180. }
  1181. }
  1182. },
  1183. /visitattributetype: {
  1184. get: {
  1185. tags: [
  1186. "visitattributetype"
  1187. ],
  1188. summary: "Fetch all non-retired visitattributetype resources or perform search",
  1189. description: "All search parameters are optional",
  1190. operationId: "getAllVisitAttributeTypes",
  1191. consumes: [
  1192. "application/json"
  1193. ],
  1194. produces: [
  1195. "application/json"
  1196. ],
  1197. parameters: [
  1198. {
  1199. name: "limit",
  1200. in: "query",
  1201. description: "The number of results to return",
  1202. required: false,
  1203. type: "integer"
  1204. },
  1205. {
  1206. name: "startIndex",
  1207. in: "query",
  1208. description: "The offset at which to start",
  1209. required: false,
  1210. type: "integer"
  1211. },
  1212. {
  1213. name: "v",
  1214. in: "query",
  1215. description: "The representation to return (ref, default, full or custom)",
  1216. required: false,
  1217. type: "string",
  1218. enum: [
  1219. "ref",
  1220. "default",
  1221. "full",
  1222. "custom"
  1223. ]
  1224. },
  1225. {
  1226. name: "q",
  1227. in: "query",
  1228. description: "The search query",
  1229. required: false,
  1230. type: "string"
  1231. }
  1232. ],
  1233. responses: {
  1234. 200: {
  1235. description: "visitattributetype response",
  1236. schema: {
  1237. $ref: "#/definitions/FetchAll"
  1238. }
  1239. },
  1240. 401: {
  1241. description: "User not logged in"
  1242. }
  1243. }
  1244. },
  1245. post: {
  1246. tags: [
  1247. "visitattributetype"
  1248. ],
  1249. summary: "Create with properties in request",
  1250. operationId: "createVisitAttributeType",
  1251. consumes: [
  1252. "application/json"
  1253. ],
  1254. produces: [
  1255. "application/json"
  1256. ],
  1257. parameters: [
  1258. {
  1259. in: "body",
  1260. name: "resource",
  1261. description: "Resource to create",
  1262. required: true,
  1263. schema: {
  1264. $ref: "#/definitions/VisitattributetypeCreate"
  1265. }
  1266. }
  1267. ],
  1268. responses: {
  1269. 201: {
  1270. description: "visitattributetype response"
  1271. },
  1272. 401: {
  1273. description: "User not logged in"
  1274. }
  1275. }
  1276. }
  1277. },
  1278. /visitattributetype/{uuid}: {
  1279. get: {
  1280. tags: [
  1281. "visitattributetype"
  1282. ],
  1283. summary: "Fetch by uuid",
  1284. operationId: "getVisitAttributeType",
  1285. consumes: [
  1286. "application/json"
  1287. ],
  1288. produces: [
  1289. "application/json"
  1290. ],
  1291. parameters: [
  1292. {
  1293. name: "v",
  1294. in: "query",
  1295. description: "The representation to return (ref, default, full or custom)",
  1296. required: false,
  1297. type: "string",
  1298. enum: [
  1299. "ref",
  1300. "default",
  1301. "full",
  1302. "custom"
  1303. ]
  1304. },
  1305. {
  1306. name: "uuid",
  1307. in: "path",
  1308. description: "uuid to filter by",
  1309. required: true,
  1310. type: "string"
  1311. }
  1312. ],
  1313. responses: {
  1314. 200: {
  1315. description: "visitattributetype response",
  1316. schema: {
  1317. $ref: "#/definitions/VisitattributetypeGet"
  1318. }
  1319. },
  1320. 401: {
  1321. description: "User not logged in"
  1322. },
  1323. 404: {
  1324. description: "Resource with given uuid doesn't exist"
  1325. }
  1326. }
  1327. },
  1328. post: {
  1329. tags: [
  1330. "visitattributetype"
  1331. ],
  1332. summary: "Edit with given uuid, only modifying properties in request",
  1333. operationId: "updateVisitAttributeType",
  1334. consumes: [
  1335. "application/json"
  1336. ],
  1337. produces: [
  1338. "application/json"
  1339. ],
  1340. parameters: [
  1341. {
  1342. name: "uuid",
  1343. in: "path",
  1344. description: "uuid of resource to update",
  1345. required: true,
  1346. type: "string"
  1347. },
  1348. {
  1349. in: "body",
  1350. name: "resource",
  1351. description: "Resource properties to update",
  1352. required: true,
  1353. schema: {
  1354. $ref: "#/definitions/VisitattributetypeUpdate"
  1355. }
  1356. }
  1357. ],
  1358. responses: {
  1359. 201: {
  1360. description: "visitattributetype response"
  1361. },
  1362. 401: {
  1363. description: "User not logged in"
  1364. }
  1365. }
  1366. },
  1367. delete: {
  1368. tags: [
  1369. "visitattributetype"
  1370. ],
  1371. summary: "Delete or purge resource by uuid",
  1372. description: "The resource will be voided/retired unless purge = 'true'",
  1373. operationId: "deleteVisitAttributeType",
  1374. consumes: [
  1375. "application/json"
  1376. ],
  1377. produces: [
  1378. "application/json"
  1379. ],
  1380. parameters: [
  1381. {
  1382. name: "uuid",
  1383. in: "path",
  1384. description: "uuid to delete",
  1385. required: true,
  1386. type: "string"
  1387. },
  1388. {
  1389. name: "purge",
  1390. in: "query",
  1391. required: false,
  1392. type: "boolean"
  1393. }
  1394. ],
  1395. responses: {
  1396. 204: {
  1397. description: "Delete successful"
  1398. },
  1399. 401: {
  1400. description: "User not logged in"
  1401. },
  1402. 404: {
  1403. description: "Resource with given uuid doesn't exist"
  1404. }
  1405. }
  1406. }
  1407. },
  1408. /ordergroup: {
  1409. get: {
  1410. tags: [
  1411. "ordergroup"
  1412. ],
  1413. summary: "Search for ordergroup",
  1414. description: "At least one search parameter must be specified",
  1415. operationId: "getAllOrderGroups",
  1416. produces: [
  1417. "application/json",
  1418. "application/xml"
  1419. ],
  1420. parameters: [
  1421. {
  1422. name: "limit",
  1423. in: "query",
  1424. description: "The number of results to return",
  1425. required: false,
  1426. type: "integer"
  1427. },
  1428. {
  1429. name: "startIndex",
  1430. in: "query",
  1431. description: "The offset at which to start",
  1432. required: false,
  1433. type: "integer"
  1434. },
  1435. {
  1436. name: "v",
  1437. in: "query",
  1438. description: "The representation to return (ref, default, full or custom)",
  1439. required: false,
  1440. type: "string",
  1441. enum: [
  1442. "ref",
  1443. "default",
  1444. "full",
  1445. "custom"
  1446. ]
  1447. },
  1448. {
  1449. name: "q",
  1450. in: "query",
  1451. description: "The search query",
  1452. required: true,
  1453. type: "string"
  1454. }
  1455. ],
  1456. responses: {
  1457. 200: {
  1458. description: "ordergroup response",
  1459. schema: {
  1460. $ref: "#/definitions/FetchAll"
  1461. }
  1462. }
  1463. }
  1464. },
  1465. post: {
  1466. tags: [
  1467. "ordergroup"
  1468. ],
  1469. summary: "Create with properties in request",
  1470. operationId: "createOrderGroup",
  1471. consumes: [
  1472. "application/json"
  1473. ],
  1474. produces: [
  1475. "application/json"
  1476. ],
  1477. parameters: [
  1478. {
  1479. in: "body",
  1480. name: "resource",
  1481. description: "Resource to create",
  1482. required: true,
  1483. schema: {
  1484. $ref: "#/definitions/OrdergroupCreate"
  1485. }
  1486. }
  1487. ],
  1488. responses: {
  1489. 201: {
  1490. description: "ordergroup response"
  1491. },
  1492. 401: {
  1493. description: "User not logged in"
  1494. }
  1495. }
  1496. }
  1497. },
  1498. /ordergroup/{uuid}: {
  1499. get: {
  1500. tags: [
  1501. "ordergroup"
  1502. ],
  1503. summary: "Fetch by uuid",
  1504. operationId: "getOrderGroup",
  1505. consumes: [
  1506. "application/json"
  1507. ],
  1508. produces: [
  1509. "application/json"
  1510. ],
  1511. parameters: [
  1512. {
  1513. name: "v",
  1514. in: "query",
  1515. description: "The representation to return (ref, default, full or custom)",
  1516. required: false,
  1517. type: "string",
  1518. enum: [
  1519. "ref",
  1520. "default",
  1521. "full",
  1522. "custom"
  1523. ]
  1524. },
  1525. {
  1526. name: "uuid",
  1527. in: "path",
  1528. description: "uuid to filter by",
  1529. required: true,
  1530. type: "string"
  1531. }
  1532. ],
  1533. responses: {
  1534. 200: {
  1535. description: "ordergroup response",
  1536. schema: {
  1537. $ref: "#/definitions/OrdergroupGet"
  1538. }
  1539. },
  1540. 401: {
  1541. description: "User not logged in"
  1542. },
  1543. 404: {
  1544. description: "Resource with given uuid doesn't exist"
  1545. }
  1546. }
  1547. },
  1548. post: {
  1549. tags: [
  1550. "ordergroup"
  1551. ],
  1552. summary: "Edit with given uuid, only modifying properties in request",
  1553. operationId: "updateOrderGroup",
  1554. consumes: [
  1555. "application/json"
  1556. ],
  1557. produces: [
  1558. "application/json"
  1559. ],
  1560. parameters: [
  1561. {
  1562. name: "uuid",
  1563. in: "path",
  1564. description: "uuid of resource to update",
  1565. required: true,
  1566. type: "string"
  1567. },
  1568. {
  1569. in: "body",
  1570. name: "resource",
  1571. description: "Resource properties to update",
  1572. required: true,
  1573. schema: {
  1574. $ref: "#/definitions/OrdergroupUpdate"
  1575. }
  1576. }
  1577. ],
  1578. responses: {
  1579. 201: {
  1580. description: "ordergroup response"
  1581. },
  1582. 401: {
  1583. description: "User not logged in"
  1584. }
  1585. }
  1586. },
  1587. delete: {
  1588. tags: [
  1589. "ordergroup"
  1590. ],
  1591. summary: "Delete or purge resource by uuid",
  1592. description: "The resource will be voided/retired unless purge = 'true'",
  1593. operationId: "deleteOrderGroup",
  1594. consumes: [
  1595. "application/json"
  1596. ],
  1597. produces: [
  1598. "application/json"
  1599. ],
  1600. parameters: [
  1601. {
  1602. name: "uuid",
  1603. in: "path",
  1604. description: "uuid to delete",
  1605. required: true,
  1606. type: "string"
  1607. },
  1608. {
  1609. name: "purge",
  1610. in: "query",
  1611. required: false,
  1612. type: "boolean"
  1613. }
  1614. ],
  1615. responses: {
  1616. 204: {
  1617. description: "Delete successful"
  1618. },
  1619. 401: {
  1620. description: "User not logged in"
  1621. },
  1622. 404: {
  1623. description: "Resource with given uuid doesn't exist"
  1624. }
  1625. }
  1626. }
  1627. },
  1628. /personattributetype: {
  1629. get: {
  1630. tags: [
  1631. "personattributetype"
  1632. ],
  1633. summary: "Fetch all non-retired personattributetype resources or perform search",
  1634. description: "All search parameters are optional",
  1635. operationId: "getAllPersonAttributeTypes",
  1636. consumes: [
  1637. "application/json"
  1638. ],
  1639. produces: [
  1640. "application/json"
  1641. ],
  1642. parameters: [
  1643. {
  1644. name: "limit",
  1645. in: "query",
  1646. description: "The number of results to return",
  1647. required: false,
  1648. type: "integer"
  1649. },
  1650. {
  1651. name: "startIndex",
  1652. in: "query",
  1653. description: "The offset at which to start",
  1654. required: false,
  1655. type: "integer"
  1656. },
  1657. {
  1658. name: "v",
  1659. in: "query",
  1660. description: "The representation to return (ref, default, full or custom)",
  1661. required: false,
  1662. type: "string",
  1663. enum: [
  1664. "ref",
  1665. "default",
  1666. "full",
  1667. "custom"
  1668. ]
  1669. },
  1670. {
  1671. name: "q",
  1672. in: "query",
  1673. description: "The search query",
  1674. required: false,
  1675. type: "string"
  1676. }
  1677. ],
  1678. responses: {
  1679. 200: {
  1680. description: "personattributetype response",
  1681. schema: {
  1682. $ref: "#/definitions/FetchAll"
  1683. }
  1684. },
  1685. 401: {
  1686. description: "User not logged in"
  1687. }
  1688. }
  1689. },
  1690. post: {
  1691. tags: [
  1692. "personattributetype"
  1693. ],
  1694. summary: "Create with properties in request",
  1695. operationId: "createPersonAttributeType",
  1696. consumes: [
  1697. "application/json"
  1698. ],
  1699. produces: [
  1700. "application/json"
  1701. ],
  1702. parameters: [
  1703. {
  1704. in: "body",
  1705. name: "resource",
  1706. description: "Resource to create",
  1707. required: true,
  1708. schema: {
  1709. $ref: "#/definitions/PersonattributetypeCreate"
  1710. }
  1711. }
  1712. ],
  1713. responses: {
  1714. 201: {
  1715. description: "personattributetype response"
  1716. },
  1717. 401: {
  1718. description: "User not logged in"
  1719. }
  1720. }
  1721. }
  1722. },
  1723. /personattributetype/{uuid}: {
  1724. get: {
  1725. tags: [
  1726. "personattributetype"
  1727. ],
  1728. summary: "Fetch by uuid",
  1729. operationId: "getPersonAttributeType",
  1730. consumes: [
  1731. "application/json"
  1732. ],
  1733. produces: [
  1734. "application/json"
  1735. ],
  1736. parameters: [
  1737. {
  1738. name: "v",
  1739. in: "query",
  1740. description: "The representation to return (ref, default, full or custom)",
  1741. required: false,
  1742. type: "string",
  1743. enum: [
  1744. "ref",
  1745. "default",
  1746. "full",
  1747. "custom"
  1748. ]
  1749. },
  1750. {
  1751. name: "uuid",
  1752. in: "path",
  1753. description: "uuid to filter by",
  1754. required: true,
  1755. type: "string"
  1756. }
  1757. ],
  1758. responses: {
  1759. 200: {
  1760. description: "personattributetype response",
  1761. schema: {
  1762. $ref: "#/definitions/PersonattributetypeGet"
  1763. }
  1764. },
  1765. 401: {
  1766. description: "User not logged in"
  1767. },
  1768. 404: {
  1769. description: "Resource with given uuid doesn't exist"
  1770. }
  1771. }
  1772. },
  1773. post: {
  1774. tags: [
  1775. "personattributetype"
  1776. ],
  1777. summary: "Edit with given uuid, only modifying properties in request",
  1778. operationId: "updatePersonAttributeType",
  1779. consumes: [
  1780. "application/json"
  1781. ],
  1782. produces: [
  1783. "application/json"
  1784. ],
  1785. parameters: [
  1786. {
  1787. name: "uuid",
  1788. in: "path",
  1789. description: "uuid of resource to update",
  1790. required: true,
  1791. type: "string"
  1792. },
  1793. {
  1794. in: "body",
  1795. name: "resource",
  1796. description: "Resource properties to update",
  1797. required: true,
  1798. schema: {
  1799. $ref: "#/definitions/PersonattributetypeUpdate"
  1800. }
  1801. }
  1802. ],
  1803. responses: {
  1804. 201: {
  1805. description: "personattributetype response"
  1806. },
  1807. 401: {
  1808. description: "User not logged in"
  1809. }
  1810. }
  1811. },
  1812. delete: {
  1813. tags: [
  1814. "personattributetype"
  1815. ],
  1816. summary: "Delete or purge resource by uuid",
  1817. description: "The resource will be voided/retired unless purge = 'true'",
  1818. operationId: "deletePersonAttributeType",
  1819. consumes: [
  1820. "application/json"
  1821. ],
  1822. produces: [
  1823. "application/json"
  1824. ],
  1825. parameters: [
  1826. {
  1827. name: "uuid",
  1828. in: "path",
  1829. description: "uuid to delete",
  1830. required: true,
  1831. type: "string"
  1832. },
  1833. {
  1834. name: "purge",
  1835. in: "query",
  1836. required: false,
  1837. type: "boolean"
  1838. }
  1839. ],
  1840. responses: {
  1841. 204: {
  1842. description: "Delete successful"
  1843. },
  1844. 401: {
  1845. description: "User not logged in"
  1846. },
  1847. 404: {
  1848. description: "Resource with given uuid doesn't exist"
  1849. }
  1850. }
  1851. }
  1852. },
  1853. /conceptmaptype: {
  1854. get: {
  1855. tags: [
  1856. "conceptmaptype"
  1857. ],
  1858. summary: "Fetch all non-retired conceptmaptype resources or perform search",
  1859. description: "All search parameters are optional",
  1860. operationId: "getAllConceptMapTypes",
  1861. consumes: [
  1862. "application/json"
  1863. ],
  1864. produces: [
  1865. "application/json"
  1866. ],
  1867. parameters: [
  1868. {
  1869. name: "limit",
  1870. in: "query",
  1871. description: "The number of results to return",
  1872. required: false,
  1873. type: "integer"
  1874. },
  1875. {
  1876. name: "startIndex",
  1877. in: "query",
  1878. description: "The offset at which to start",
  1879. required: false,
  1880. type: "integer"
  1881. },
  1882. {
  1883. name: "v",
  1884. in: "query",
  1885. description: "The representation to return (ref, default, full or custom)",
  1886. required: false,
  1887. type: "string",
  1888. enum: [
  1889. "ref",
  1890. "default",
  1891. "full",
  1892. "custom"
  1893. ]
  1894. },
  1895. {
  1896. name: "q",
  1897. in: "query",
  1898. description: "The search query",
  1899. required: false,
  1900. type: "string"
  1901. }
  1902. ],
  1903. responses: {
  1904. 200: {
  1905. description: "conceptmaptype response",
  1906. schema: {
  1907. $ref: "#/definitions/FetchAll"
  1908. }
  1909. },
  1910. 401: {
  1911. description: "User not logged in"
  1912. }
  1913. }
  1914. },
  1915. post: {
  1916. tags: [
  1917. "conceptmaptype"
  1918. ],
  1919. summary: "Create with properties in request",
  1920. operationId: "createConceptMapType",
  1921. consumes: [
  1922. "application/json"
  1923. ],
  1924. produces: [
  1925. "application/json"
  1926. ],
  1927. parameters: [
  1928. {
  1929. in: "body",
  1930. name: "resource",
  1931. description: "Resource to create",
  1932. required: true,
  1933. schema: {
  1934. $ref: "#/definitions/ConceptmaptypeCreate"
  1935. }
  1936. }
  1937. ],
  1938. responses: {
  1939. 201: {
  1940. description: "conceptmaptype response"
  1941. },
  1942. 401: {
  1943. description: "User not logged in"
  1944. }
  1945. }
  1946. }
  1947. },
  1948. /conceptmaptype/{uuid}: {
  1949. get: {
  1950. tags: [
  1951. "conceptmaptype"
  1952. ],
  1953. summary: "Fetch by uuid",
  1954. operationId: "getConceptMapType",
  1955. consumes: [
  1956. "application/json"
  1957. ],
  1958. produces: [
  1959. "application/json"
  1960. ],
  1961. parameters: [
  1962. {
  1963. name: "v",
  1964. in: "query",
  1965. description: "The representation to return (ref, default, full or custom)",
  1966. required: false,
  1967. type: "string",
  1968. enum: [
  1969. "ref",
  1970. "default",
  1971. "full",
  1972. "custom"
  1973. ]
  1974. },
  1975. {
  1976. name: "uuid",
  1977. in: "path",
  1978. description: "uuid to filter by",
  1979. required: true,
  1980. type: "string"
  1981. }
  1982. ],
  1983. responses: {
  1984. 200: {
  1985. description: "conceptmaptype response",
  1986. schema: {
  1987. $ref: "#/definitions/ConceptmaptypeGet"
  1988. }
  1989. },
  1990. 401: {
  1991. description: "User not logged in"
  1992. },
  1993. 404: {
  1994. description: "Resource with given uuid doesn't exist"
  1995. }
  1996. }
  1997. },
  1998. post: {
  1999. tags: [
  2000. "conceptmaptype"
  2001. ],
  2002. summary: "Edit with given uuid, only modifying properties in request",
  2003. operationId: "updateConceptMapType",
  2004. consumes: [
  2005. "application/json"
  2006. ],
  2007. produces: [
  2008. "application/json"
  2009. ],
  2010. parameters: [
  2011. {
  2012. name: "uuid",
  2013. in: "path",
  2014. description: "uuid of resource to update",
  2015. required: true,
  2016. type: "string"
  2017. },
  2018. {
  2019. in: "body",
  2020. name: "resource",
  2021. description: "Resource properties to update",
  2022. required: true,
  2023. schema: {
  2024. $ref: "#/definitions/ConceptmaptypeUpdate"
  2025. }
  2026. }
  2027. ],
  2028. responses: {
  2029. 201: {
  2030. description: "conceptmaptype response"
  2031. },
  2032. 401: {
  2033. description: "User not logged in"
  2034. }
  2035. }
  2036. },
  2037. delete: {
  2038. tags: [
  2039. "conceptmaptype"
  2040. ],
  2041. summary: "Delete or purge resource by uuid",
  2042. description: "The resource will be voided/retired unless purge = 'true'",
  2043. operationId: "deleteConceptMapType",
  2044. consumes: [
  2045. "application/json"
  2046. ],
  2047. produces: [
  2048. "application/json"
  2049. ],
  2050. parameters: [
  2051. {
  2052. name: "uuid",
  2053. in: "path",
  2054. description: "uuid to delete",
  2055. required: true,
  2056. type: "string"
  2057. },
  2058. {
  2059. name: "purge",
  2060. in: "query",
  2061. required: false,
  2062. type: "boolean"
  2063. }
  2064. ],
  2065. responses: {
  2066. 204: {
  2067. description: "Delete successful"
  2068. },
  2069. 401: {
  2070. description: "User not logged in"
  2071. },
  2072. 404: {
  2073. description: "Resource with given uuid doesn't exist"
  2074. }
  2075. }
  2076. }
  2077. },
  2078. /cohort: {
  2079. get: {
  2080. tags: [
  2081. "cohort"
  2082. ],
  2083. summary: "Fetch all non-retired cohort resources or perform search",
  2084. description: "All search parameters are optional",
  2085. operationId: "getAllCohorts",
  2086. consumes: [
  2087. "application/json"
  2088. ],
  2089. produces: [
  2090. "application/json"
  2091. ],
  2092. parameters: [
  2093. {
  2094. name: "limit",
  2095. in: "query",
  2096. description: "The number of results to return",
  2097. required: false,
  2098. type: "integer"
  2099. },
  2100. {
  2101. name: "startIndex",
  2102. in: "query",
  2103. description: "The offset at which to start",
  2104. required: false,
  2105. type: "integer"
  2106. },
  2107. {
  2108. name: "v",
  2109. in: "query",
  2110. description: "The representation to return (ref, default, full or custom)",
  2111. required: false,
  2112. type: "string",
  2113. enum: [
  2114. "ref",
  2115. "default",
  2116. "full",
  2117. "custom"
  2118. ]
  2119. },
  2120. {
  2121. name: "q",
  2122. in: "query",
  2123. description: "The search query",
  2124. required: false,
  2125. type: "string"
  2126. }
  2127. ],
  2128. responses: {
  2129. 200: {
  2130. description: "cohort response",
  2131. schema: {
  2132. $ref: "#/definitions/FetchAll"
  2133. }
  2134. },
  2135. 401: {
  2136. description: "User not logged in"
  2137. }
  2138. }
  2139. },
  2140. post: {
  2141. tags: [
  2142. "cohort"
  2143. ],
  2144. summary: "Create with properties in request",
  2145. operationId: "createCohort",
  2146. consumes: [
  2147. "application/json"
  2148. ],
  2149. produces: [
  2150. "application/json"
  2151. ],
  2152. parameters: [
  2153. {
  2154. in: "body",
  2155. name: "resource",
  2156. description: "Resource to create",
  2157. required: true,
  2158. schema: {
  2159. $ref: "#/definitions/CohortCreate"
  2160. }
  2161. }
  2162. ],
  2163. responses: {
  2164. 201: {
  2165. description: "cohort response"
  2166. },
  2167. 401: {
  2168. description: "User not logged in"
  2169. }
  2170. }
  2171. }
  2172. },
  2173. /cohort/{uuid}: {
  2174. get: {
  2175. tags: [
  2176. "cohort"
  2177. ],
  2178. summary: "Fetch by uuid",
  2179. operationId: "getCohort",
  2180. consumes: [
  2181. "application/json"
  2182. ],
  2183. produces: [
  2184. "application/json"
  2185. ],
  2186. parameters: [
  2187. {
  2188. name: "v",
  2189. in: "query",
  2190. description: "The representation to return (ref, default, full or custom)",
  2191. required: false,
  2192. type: "string",
  2193. enum: [
  2194. "ref",
  2195. "default",
  2196. "full",
  2197. "custom"
  2198. ]
  2199. },
  2200. {
  2201. name: "uuid",
  2202. in: "path",
  2203. description: "uuid to filter by",
  2204. required: true,
  2205. type: "string"
  2206. }
  2207. ],
  2208. responses: {
  2209. 200: {
  2210. description: "cohort response",
  2211. schema: {
  2212. $ref: "#/definitions/CohortGet"
  2213. }
  2214. },
  2215. 401: {
  2216. description: "User not logged in"
  2217. },
  2218. 404: {
  2219. description: "Resource with given uuid doesn't exist"
  2220. }
  2221. }
  2222. },
  2223. post: {
  2224. tags: [
  2225. "cohort"
  2226. ],
  2227. summary: "Edit with given uuid, only modifying properties in request",
  2228. operationId: "updateCohort",
  2229. consumes: [
  2230. "application/json"
  2231. ],
  2232. produces: [
  2233. "application/json"
  2234. ],
  2235. parameters: [
  2236. {
  2237. name: "uuid",
  2238. in: "path",
  2239. description: "uuid of resource to update",
  2240. required: true,
  2241. type: "string"
  2242. },
  2243. {
  2244. in: "body",
  2245. name: "resource",
  2246. description: "Resource properties to update",
  2247. required: true,
  2248. schema: {
  2249. $ref: "#/definitions/CohortUpdate"
  2250. }
  2251. }
  2252. ],
  2253. responses: {
  2254. 201: {
  2255. description: "cohort response"
  2256. },
  2257. 401: {
  2258. description: "User not logged in"
  2259. }
  2260. }
  2261. },
  2262. delete: {
  2263. tags: [
  2264. "cohort"
  2265. ],
  2266. summary: "Delete or purge resource by uuid",
  2267. description: "The resource will be voided/retired unless purge = 'true'",
  2268. operationId: "deleteCohort",
  2269. consumes: [
  2270. "application/json"
  2271. ],
  2272. produces: [
  2273. "application/json"
  2274. ],
  2275. parameters: [
  2276. {
  2277. name: "uuid",
  2278. in: "path",
  2279. description: "uuid to delete",
  2280. required: true,
  2281. type: "string"
  2282. },
  2283. {
  2284. name: "purge",
  2285. in: "query",
  2286. required: false,
  2287. type: "boolean"
  2288. }
  2289. ],
  2290. responses: {
  2291. 204: {
  2292. description: "Delete successful"
  2293. },
  2294. 401: {
  2295. description: "User not logged in"
  2296. },
  2297. 404: {
  2298. description: "Resource with given uuid doesn't exist"
  2299. }
  2300. }
  2301. }
  2302. },
  2303. /conceptclass: {
  2304. get: {
  2305. tags: [
  2306. "conceptclass"
  2307. ],
  2308. summary: "Fetch all non-retired conceptclass resources or perform search",
  2309. description: "All search parameters are optional",
  2310. operationId: "getAllConceptClasses",
  2311. consumes: [
  2312. "application/json"
  2313. ],
  2314. produces: [
  2315. "application/json"
  2316. ],
  2317. parameters: [
  2318. {
  2319. name: "limit",
  2320. in: "query",
  2321. description: "The number of results to return",
  2322. required: false,
  2323. type: "integer"
  2324. },
  2325. {
  2326. name: "startIndex",
  2327. in: "query",
  2328. description: "The offset at which to start",
  2329. required: false,
  2330. type: "integer"
  2331. },
  2332. {
  2333. name: "v",
  2334. in: "query",
  2335. description: "The representation to return (ref, default, full or custom)",
  2336. required: false,
  2337. type: "string",
  2338. enum: [
  2339. "ref",
  2340. "default",
  2341. "full",
  2342. "custom"
  2343. ]
  2344. },
  2345. {
  2346. name: "q",
  2347. in: "query",
  2348. description: "The search query",
  2349. required: false,
  2350. type: "string"
  2351. }
  2352. ],
  2353. responses: {
  2354. 200: {
  2355. description: "conceptclass response",
  2356. schema: {
  2357. $ref: "#/definitions/FetchAll"
  2358. }
  2359. },
  2360. 401: {
  2361. description: "User not logged in"
  2362. }
  2363. }
  2364. },
  2365. post: {
  2366. tags: [
  2367. "conceptclass"
  2368. ],
  2369. summary: "Create with properties in request",
  2370. operationId: "createConceptClass",
  2371. consumes: [
  2372. "application/json"
  2373. ],
  2374. produces: [
  2375. "application/json"
  2376. ],
  2377. parameters: [
  2378. {
  2379. in: "body",
  2380. name: "resource",
  2381. description: "Resource to create",
  2382. required: true,
  2383. schema: {
  2384. $ref: "#/definitions/ConceptclassCreate"
  2385. }
  2386. }
  2387. ],
  2388. responses: {
  2389. 201: {
  2390. description: "conceptclass response"
  2391. },
  2392. 401: {
  2393. description: "User not logged in"
  2394. }
  2395. }
  2396. }
  2397. },
  2398. /conceptclass/{uuid}: {
  2399. get: {
  2400. tags: [
  2401. "conceptclass"
  2402. ],
  2403. summary: "Fetch by uuid",
  2404. operationId: "getConceptClass",
  2405. consumes: [
  2406. "application/json"
  2407. ],
  2408. produces: [
  2409. "application/json"
  2410. ],
  2411. parameters: [
  2412. {
  2413. name: "v",
  2414. in: "query",
  2415. description: "The representation to return (ref, default, full or custom)",
  2416. required: false,
  2417. type: "string",
  2418. enum: [
  2419. "ref",
  2420. "default",
  2421. "full",
  2422. "custom"
  2423. ]
  2424. },
  2425. {
  2426. name: "uuid",
  2427. in: "path",
  2428. description: "uuid to filter by",
  2429. required: true,
  2430. type: "string"
  2431. }
  2432. ],
  2433. responses: {
  2434. 200: {
  2435. description: "conceptclass response",
  2436. schema: {
  2437. $ref: "#/definitions/ConceptclassGet"
  2438. }
  2439. },
  2440. 401: {
  2441. description: "User not logged in"
  2442. },
  2443. 404: {
  2444. description: "Resource with given uuid doesn't exist"
  2445. }
  2446. }
  2447. },
  2448. post: {
  2449. tags: [
  2450. "conceptclass"
  2451. ],
  2452. summary: "Edit with given uuid, only modifying properties in request",
  2453. operationId: "updateConceptClass",
  2454. consumes: [
  2455. "application/json"
  2456. ],
  2457. produces: [
  2458. "application/json"
  2459. ],
  2460. parameters: [
  2461. {
  2462. name: "uuid",
  2463. in: "path",
  2464. description: "uuid of resource to update",
  2465. required: true,
  2466. type: "string"
  2467. },
  2468. {
  2469. in: "body",
  2470. name: "resource",
  2471. description: "Resource properties to update",
  2472. required: true,
  2473. schema: {
  2474. $ref: "#/definitions/ConceptclassUpdate"
  2475. }
  2476. }
  2477. ],
  2478. responses: {
  2479. 201: {
  2480. description: "conceptclass response"
  2481. },
  2482. 401: {
  2483. description: "User not logged in"
  2484. }
  2485. }
  2486. },
  2487. delete: {
  2488. tags: [
  2489. "conceptclass"
  2490. ],
  2491. summary: "Delete or purge resource by uuid",
  2492. description: "The resource will be voided/retired unless purge = 'true'",
  2493. operationId: "deleteConceptClass",
  2494. consumes: [
  2495. "application/json"
  2496. ],
  2497. produces: [
  2498. "application/json"
  2499. ],
  2500. parameters: [
  2501. {
  2502. name: "uuid",
  2503. in: "path",
  2504. description: "uuid to delete",
  2505. required: true,
  2506. type: "string"
  2507. },
  2508. {
  2509. name: "purge",
  2510. in: "query",
  2511. required: false,
  2512. type: "boolean"
  2513. }
  2514. ],
  2515. responses: {
  2516. 204: {
  2517. description: "Delete successful"
  2518. },
  2519. 401: {
  2520. description: "User not logged in"
  2521. },
  2522. 404: {
  2523. description: "Resource with given uuid doesn't exist"
  2524. }
  2525. }
  2526. }
  2527. },
  2528. /conceptattributetype: {
  2529. get: {
  2530. tags: [
  2531. "conceptattributetype"
  2532. ],
  2533. summary: "Fetch all non-retired conceptattributetype resources or perform search",
  2534. description: "All search parameters are optional",
  2535. operationId: "getAllConceptAttributeTypes",
  2536. consumes: [
  2537. "application/json"
  2538. ],
  2539. produces: [
  2540. "application/json"
  2541. ],
  2542. parameters: [
  2543. {
  2544. name: "limit",
  2545. in: "query",
  2546. description: "The number of results to return",
  2547. required: false,
  2548. type: "integer"
  2549. },
  2550. {
  2551. name: "startIndex",
  2552. in: "query",
  2553. description: "The offset at which to start",
  2554. required: false,
  2555. type: "integer"
  2556. },
  2557. {
  2558. name: "v",
  2559. in: "query",
  2560. description: "The representation to return (ref, default, full or custom)",
  2561. required: false,
  2562. type: "string",
  2563. enum: [
  2564. "ref",
  2565. "default",
  2566. "full",
  2567. "custom"
  2568. ]
  2569. },
  2570. {
  2571. name: "q",
  2572. in: "query",
  2573. description: "The search query",
  2574. required: false,
  2575. type: "string"
  2576. }
  2577. ],
  2578. responses: {
  2579. 200: {
  2580. description: "conceptattributetype response",
  2581. schema: {
  2582. $ref: "#/definitions/FetchAll"
  2583. }
  2584. },
  2585. 401: {
  2586. description: "User not logged in"
  2587. }
  2588. }
  2589. },
  2590. post: {
  2591. tags: [
  2592. "conceptattributetype"
  2593. ],
  2594. summary: "Create with properties in request",
  2595. operationId: "createConceptAttributeType",
  2596. consumes: [
  2597. "application/json"
  2598. ],
  2599. produces: [
  2600. "application/json"
  2601. ],
  2602. parameters: [
  2603. {
  2604. in: "body",
  2605. name: "resource",
  2606. description: "Resource to create",
  2607. required: true,
  2608. schema: {
  2609. $ref: "#/definitions/ConceptattributetypeCreate"
  2610. }
  2611. }
  2612. ],
  2613. responses: {
  2614. 201: {
  2615. description: "conceptattributetype response"
  2616. },
  2617. 401: {
  2618. description: "User not logged in"
  2619. }
  2620. }
  2621. }
  2622. },
  2623. /conceptattributetype/{uuid}: {
  2624. get: {
  2625. tags: [
  2626. "conceptattributetype"
  2627. ],
  2628. summary: "Fetch by uuid",
  2629. operationId: "getConceptAttributeType",
  2630. consumes: [
  2631. "application/json"
  2632. ],
  2633. produces: [
  2634. "application/json"
  2635. ],
  2636. parameters: [
  2637. {
  2638. name: "v",
  2639. in: "query",
  2640. description: "The representation to return (ref, default, full or custom)",
  2641. required: false,
  2642. type: "string",
  2643. enum: [
  2644. "ref",
  2645. "default",
  2646. "full",
  2647. "custom"
  2648. ]
  2649. },
  2650. {
  2651. name: "uuid",
  2652. in: "path",
  2653. description: "uuid to filter by",
  2654. required: true,
  2655. type: "string"
  2656. }
  2657. ],
  2658. responses: {
  2659. 200: {
  2660. description: "conceptattributetype response",
  2661. schema: {
  2662. $ref: "#/definitions/ConceptattributetypeGet"
  2663. }
  2664. },
  2665. 401: {
  2666. description: "User not logged in"
  2667. },
  2668. 404: {
  2669. description: "Resource with given uuid doesn't exist"
  2670. }
  2671. }
  2672. },
  2673. post: {
  2674. tags: [
  2675. "conceptattributetype"
  2676. ],
  2677. summary: "Edit with given uuid, only modifying properties in request",
  2678. operationId: "updateConceptAttributeType",
  2679. consumes: [
  2680. "application/json"
  2681. ],
  2682. produces: [
  2683. "application/json"
  2684. ],
  2685. parameters: [
  2686. {
  2687. name: "uuid",
  2688. in: "path",
  2689. description: "uuid of resource to update",
  2690. required: true,
  2691. type: "string"
  2692. },
  2693. {
  2694. in: "body",
  2695. name: "resource",
  2696. description: "Resource properties to update",
  2697. required: true,
  2698. schema: {
  2699. $ref: "#/definitions/ConceptattributetypeUpdate"
  2700. }
  2701. }
  2702. ],
  2703. responses: {
  2704. 201: {
  2705. description: "conceptattributetype response"
  2706. },
  2707. 401: {
  2708. description: "User not logged in"
  2709. }
  2710. }
  2711. },
  2712. delete: {
  2713. tags: [
  2714. "conceptattributetype"
  2715. ],
  2716. summary: "Delete or purge resource by uuid",
  2717. description: "The resource will be voided/retired unless purge = 'true'",
  2718. operationId: "deleteConceptAttributeType",
  2719. consumes: [
  2720. "application/json"
  2721. ],
  2722. produces: [
  2723. "application/json"
  2724. ],
  2725. parameters: [
  2726. {
  2727. name: "uuid",
  2728. in: "path",
  2729. description: "uuid to delete",
  2730. required: true,
  2731. type: "string"
  2732. },
  2733. {
  2734. name: "purge",
  2735. in: "query",
  2736. required: false,
  2737. type: "boolean"
  2738. }
  2739. ],
  2740. responses: {
  2741. 204: {
  2742. description: "Delete successful"
  2743. },
  2744. 401: {
  2745. description: "User not logged in"
  2746. },
  2747. 404: {
  2748. description: "Resource with given uuid doesn't exist"
  2749. }
  2750. }
  2751. }
  2752. },
  2753. /person: {
  2754. get: {
  2755. tags: [
  2756. "person"
  2757. ],
  2758. summary: "Search for person",
  2759. description: "At least one search parameter must be specified",
  2760. operationId: "getAllPersons",
  2761. produces: [
  2762. "application/json",
  2763. "application/xml"
  2764. ],
  2765. parameters: [
  2766. {
  2767. name: "limit",
  2768. in: "query",
  2769. description: "The number of results to return",
  2770. required: false,
  2771. type: "integer"
  2772. },
  2773. {
  2774. name: "startIndex",
  2775. in: "query",
  2776. description: "The offset at which to start",
  2777. required: false,
  2778. type: "integer"
  2779. },
  2780. {
  2781. name: "v",
  2782. in: "query",
  2783. description: "The representation to return (ref, default, full or custom)",
  2784. required: false,
  2785. type: "string",
  2786. enum: [
  2787. "ref",
  2788. "default",
  2789. "full",
  2790. "custom"
  2791. ]
  2792. },
  2793. {
  2794. name: "q",
  2795. in: "query",
  2796. description: "The search query",
  2797. required: true,
  2798. type: "string"
  2799. }
  2800. ],
  2801. responses: {
  2802. 200: {
  2803. description: "person response",
  2804. schema: {
  2805. $ref: "#/definitions/FetchAll"
  2806. }
  2807. }
  2808. }
  2809. },
  2810. post: {
  2811. tags: [
  2812. "person"
  2813. ],
  2814. summary: "Create with properties in request",
  2815. operationId: "createPerson",
  2816. consumes: [
  2817. "application/json"
  2818. ],
  2819. produces: [
  2820. "application/json"
  2821. ],
  2822. parameters: [
  2823. {
  2824. in: "body",
  2825. name: "resource",
  2826. description: "Resource to create",
  2827. required: true,
  2828. schema: {
  2829. $ref: "#/definitions/PersonCreate"
  2830. }
  2831. }
  2832. ],
  2833. responses: {
  2834. 201: {
  2835. description: "person response"
  2836. },
  2837. 401: {
  2838. description: "User not logged in"
  2839. }
  2840. }
  2841. }
  2842. },
  2843. /person/{uuid}: {
  2844. get: {
  2845. tags: [
  2846. "person"
  2847. ],
  2848. summary: "Fetch by uuid",
  2849. operationId: "getPerson",
  2850. consumes: [
  2851. "application/json"
  2852. ],
  2853. produces: [
  2854. "application/json"
  2855. ],
  2856. parameters: [
  2857. {
  2858. name: "v",
  2859. in: "query",
  2860. description: "The representation to return (ref, default, full or custom)",
  2861. required: false,
  2862. type: "string",
  2863. enum: [
  2864. "ref",
  2865. "default",
  2866. "full",
  2867. "custom"
  2868. ]
  2869. },
  2870. {
  2871. name: "uuid",
  2872. in: "path",
  2873. description: "uuid to filter by",
  2874. required: true,
  2875. type: "string"
  2876. }
  2877. ],
  2878. responses: {
  2879. 200: {
  2880. description: "person response",
  2881. schema: {
  2882. $ref: "#/definitions/PersonGet"
  2883. }
  2884. },
  2885. 401: {
  2886. description: "User not logged in"
  2887. },
  2888. 404: {
  2889. description: "Resource with given uuid doesn't exist"
  2890. }
  2891. }
  2892. },
  2893. post: {
  2894. tags: [
  2895. "person"
  2896. ],
  2897. summary: "Edit with given uuid, only modifying properties in request",
  2898. operationId: "updatePerson",
  2899. consumes: [
  2900. "application/json"
  2901. ],
  2902. produces: [
  2903. "application/json"
  2904. ],
  2905. parameters: [
  2906. {
  2907. name: "uuid",
  2908. in: "path",
  2909. description: "uuid of resource to update",
  2910. required: true,
  2911. type: "string"
  2912. },
  2913. {
  2914. in: "body",
  2915. name: "resource",
  2916. description: "Resource properties to update",
  2917. required: true,
  2918. schema: {
  2919. $ref: "#/definitions/PersonUpdate"
  2920. }
  2921. }
  2922. ],
  2923. responses: {
  2924. 201: {
  2925. description: "person response"
  2926. },
  2927. 401: {
  2928. description: "User not logged in"
  2929. }
  2930. }
  2931. },
  2932. delete: {
  2933. tags: [
  2934. "person"
  2935. ],
  2936. summary: "Delete or purge resource by uuid",
  2937. description: "The resource will be voided/retired unless purge = 'true'",
  2938. operationId: "deletePerson",
  2939. consumes: [
  2940. "application/json"
  2941. ],
  2942. produces: [
  2943. "application/json"
  2944. ],
  2945. parameters: [
  2946. {
  2947. name: "uuid",
  2948. in: "path",
  2949. description: "uuid to delete",
  2950. required: true,
  2951. type: "string"
  2952. },
  2953. {
  2954. name: "purge",
  2955. in: "query",
  2956. required: false,
  2957. type: "boolean"
  2958. }
  2959. ],
  2960. responses: {
  2961. 204: {
  2962. description: "Delete successful"
  2963. },
  2964. 401: {
  2965. description: "User not logged in"
  2966. },
  2967. 404: {
  2968. description: "Resource with given uuid doesn't exist"
  2969. }
  2970. }
  2971. }
  2972. },
  2973. /taskdefinition: {
  2974. get: {
  2975. tags: [
  2976. "taskdefinition"
  2977. ],
  2978. summary: "Fetch all non-retired taskdefinition resources or perform search",
  2979. description: "All search parameters are optional",
  2980. operationId: "getAllTaskDefinitions",
  2981. consumes: [
  2982. "application/json"
  2983. ],
  2984. produces: [
  2985. "application/json"
  2986. ],
  2987. parameters: [
  2988. {
  2989. name: "limit",
  2990. in: "query",
  2991. description: "The number of results to return",
  2992. required: false,
  2993. type: "integer"
  2994. },
  2995. {
  2996. name: "startIndex",
  2997. in: "query",
  2998. description: "The offset at which to start",
  2999. required: false,
  3000. type: "integer"
  3001. },
  3002. {
  3003. name: "v",
  3004. in: "query",
  3005. description: "The representation to return (ref, default, full or custom)",
  3006. required: false,
  3007. type: "string",
  3008. enum: [
  3009. "ref",
  3010. "default",
  3011. "full",
  3012. "custom"
  3013. ]
  3014. },
  3015. {
  3016. name: "q",
  3017. in: "query",
  3018. description: "The search query",
  3019. required: false,
  3020. type: "string"
  3021. }
  3022. ],
  3023. responses: {
  3024. 200: {
  3025. description: "taskdefinition response",
  3026. schema: {
  3027. $ref: "#/definitions/FetchAll"
  3028. }
  3029. },
  3030. 401: {
  3031. description: "User not logged in"
  3032. }
  3033. }
  3034. },
  3035. post: {
  3036. tags: [
  3037. "taskdefinition"
  3038. ],
  3039. summary: "Create with properties in request",
  3040. operationId: "createTaskDefinition",
  3041. consumes: [
  3042. "application/json"
  3043. ],
  3044. produces: [
  3045. "application/json"
  3046. ],
  3047. parameters: [
  3048. {
  3049. in: "body",
  3050. name: "resource",
  3051. description: "Resource to create",
  3052. required: true,
  3053. schema: {
  3054. $ref: "#/definitions/TaskdefinitionCreate"
  3055. }
  3056. }
  3057. ],
  3058. responses: {
  3059. 201: {
  3060. description: "taskdefinition response"
  3061. },
  3062. 401: {
  3063. description: "User not logged in"
  3064. }
  3065. }
  3066. }
  3067. },
  3068. /taskdefinition/{uuid}: {
  3069. get: {
  3070. tags: [
  3071. "taskdefinition"
  3072. ],
  3073. summary: "Fetch by uuid",
  3074. operationId: "getTaskDefinition",
  3075. consumes: [
  3076. "application/json"
  3077. ],
  3078. produces: [
  3079. "application/json"
  3080. ],
  3081. parameters: [
  3082. {
  3083. name: "v",
  3084. in: "query",
  3085. description: "The representation to return (ref, default, full or custom)",
  3086. required: false,
  3087. type: "string",
  3088. enum: [
  3089. "ref",
  3090. "default",
  3091. "full",
  3092. "custom"
  3093. ]
  3094. },
  3095. {
  3096. name: "uuid",
  3097. in: "path",
  3098. description: "uuid to filter by",
  3099. required: true,
  3100. type: "string"
  3101. }
  3102. ],
  3103. responses: {
  3104. 200: {
  3105. description: "taskdefinition response",
  3106. schema: {
  3107. $ref: "#/definitions/TaskdefinitionGet"
  3108. }
  3109. },
  3110. 401: {
  3111. description: "User not logged in"
  3112. },
  3113. 404: {
  3114. description: "Resource with given uuid doesn't exist"
  3115. }
  3116. }
  3117. },
  3118. post: {
  3119. tags: [
  3120. "taskdefinition"
  3121. ],
  3122. summary: "Edit with given uuid, only modifying properties in request",
  3123. operationId: "updateTaskDefinition",
  3124. consumes: [
  3125. "application/json"
  3126. ],
  3127. produces: [
  3128. "application/json"
  3129. ],
  3130. parameters: [
  3131. {
  3132. name: "uuid",
  3133. in: "path",
  3134. description: "uuid of resource to update",
  3135. required: true,
  3136. type: "string"
  3137. },
  3138. {
  3139. in: "body",
  3140. name: "resource",
  3141. description: "Resource properties to update",
  3142. required: true,
  3143. schema: {
  3144. $ref: "#/definitions/TaskdefinitionUpdate"
  3145. }
  3146. }
  3147. ],
  3148. responses: {
  3149. 201: {
  3150. description: "taskdefinition response"
  3151. },
  3152. 401: {
  3153. description: "User not logged in"
  3154. }
  3155. }
  3156. },
  3157. delete: {
  3158. tags: [
  3159. "taskdefinition"
  3160. ],
  3161. summary: "Delete or purge resource by uuid",
  3162. description: "The resource will be voided/retired unless purge = 'true'",
  3163. operationId: "deleteTaskDefinition",
  3164. consumes: [
  3165. "application/json"
  3166. ],
  3167. produces: [
  3168. "application/json"
  3169. ],
  3170. parameters: [
  3171. {
  3172. name: "uuid",
  3173. in: "path",
  3174. description: "uuid to delete",
  3175. required: true,
  3176. type: "string"
  3177. },
  3178. {
  3179. name: "purge",
  3180. in: "query",
  3181. required: false,
  3182. type: "boolean"
  3183. }
  3184. ],
  3185. responses: {
  3186. 204: {
  3187. description: "Delete successful"
  3188. },
  3189. 401: {
  3190. description: "User not logged in"
  3191. },
  3192. 404: {
  3193. description: "Resource with given uuid doesn't exist"
  3194. }
  3195. }
  3196. }
  3197. },
  3198. /role: {
  3199. get: {
  3200. tags: [
  3201. "role"
  3202. ],
  3203. summary: "Fetch all non-retired role resources or perform search",
  3204. description: "All search parameters are optional",
  3205. operationId: "getAllRoles",
  3206. consumes: [
  3207. "application/json"
  3208. ],
  3209. produces: [
  3210. "application/json"
  3211. ],
  3212. parameters: [
  3213. {
  3214. name: "limit",
  3215. in: "query",
  3216. description: "The number of results to return",
  3217. required: false,
  3218. type: "integer"
  3219. },
  3220. {
  3221. name: "startIndex",
  3222. in: "query",
  3223. description: "The offset at which to start",
  3224. required: false,
  3225. type: "integer"
  3226. },
  3227. {
  3228. name: "v",
  3229. in: "query",
  3230. description: "The representation to return (ref, default, full or custom)",
  3231. required: false,
  3232. type: "string",
  3233. enum: [
  3234. "ref",
  3235. "default",
  3236. "full",
  3237. "custom"
  3238. ]
  3239. },
  3240. {
  3241. name: "q",
  3242. in: "query",
  3243. description: "The search query",
  3244. required: false,
  3245. type: "string"
  3246. }
  3247. ],
  3248. responses: {
  3249. 200: {
  3250. description: "role response",
  3251. schema: {
  3252. $ref: "#/definitions/FetchAll"
  3253. }
  3254. },
  3255. 401: {
  3256. description: "User not logged in"
  3257. }
  3258. }
  3259. },
  3260. post: {
  3261. tags: [
  3262. "role"
  3263. ],
  3264. summary: "Create with properties in request",
  3265. operationId: "createRole",
  3266. consumes: [
  3267. "application/json"
  3268. ],
  3269. produces: [
  3270. "application/json"
  3271. ],
  3272. parameters: [
  3273. {
  3274. in: "body",
  3275. name: "resource",
  3276. description: "Resource to create",
  3277. required: true,
  3278. schema: {
  3279. $ref: "#/definitions/RoleCreate"
  3280. }
  3281. }
  3282. ],
  3283. responses: {
  3284. 201: {
  3285. description: "role response"
  3286. },
  3287. 401: {
  3288. description: "User not logged in"
  3289. }
  3290. }
  3291. }
  3292. },
  3293. /role/{uuid}: {
  3294. get: {
  3295. tags: [
  3296. "role"
  3297. ],
  3298. summary: "Fetch by uuid",
  3299. operationId: "getRole",
  3300. consumes: [
  3301. "application/json"
  3302. ],
  3303. produces: [
  3304. "application/json"
  3305. ],
  3306. parameters: [
  3307. {
  3308. name: "v",
  3309. in: "query",
  3310. description: "The representation to return (ref, default, full or custom)",
  3311. required: false,
  3312. type: "string",
  3313. enum: [
  3314. "ref",
  3315. "default",
  3316. "full",
  3317. "custom"
  3318. ]
  3319. },
  3320. {
  3321. name: "uuid",
  3322. in: "path",
  3323. description: "uuid to filter by",
  3324. required: true,
  3325. type: "string"
  3326. }
  3327. ],
  3328. responses: {
  3329. 200: {
  3330. description: "role response",
  3331. schema: {
  3332. $ref: "#/definitions/RoleGet"
  3333. }
  3334. },
  3335. 401: {
  3336. description: "User not logged in"
  3337. },
  3338. 404: {
  3339. description: "Resource with given uuid doesn't exist"
  3340. }
  3341. }
  3342. },
  3343. post: {
  3344. tags: [
  3345. "role"
  3346. ],
  3347. summary: "Edit with given uuid, only modifying properties in request",
  3348. operationId: "updateRole",
  3349. consumes: [
  3350. "application/json"
  3351. ],
  3352. produces: [
  3353. "application/json"
  3354. ],
  3355. parameters: [
  3356. {
  3357. name: "uuid",
  3358. in: "path",
  3359. description: "uuid of resource to update",
  3360. required: true,
  3361. type: "string"
  3362. },
  3363. {
  3364. in: "body",
  3365. name: "resource",
  3366. description: "Resource properties to update",
  3367. required: true,
  3368. schema: {
  3369. $ref: "#/definitions/RoleUpdate"
  3370. }
  3371. }
  3372. ],
  3373. responses: {
  3374. 201: {
  3375. description: "role response"
  3376. },
  3377. 401: {
  3378. description: "User not logged in"
  3379. }
  3380. }
  3381. },
  3382. delete: {
  3383. tags: [
  3384. "role"
  3385. ],
  3386. summary: "Delete or purge resource by uuid",
  3387. description: "The resource will be voided/retired unless purge = 'true'",
  3388. operationId: "deleteRole",
  3389. consumes: [
  3390. "application/json"
  3391. ],
  3392. produces: [
  3393. "application/json"
  3394. ],
  3395. parameters: [
  3396. {
  3397. name: "uuid",
  3398. in: "path",
  3399. description: "uuid to delete",
  3400. required: true,
  3401. type: "string"
  3402. },
  3403. {
  3404. name: "purge",
  3405. in: "query",
  3406. required: false,
  3407. type: "boolean"
  3408. }
  3409. ],
  3410. responses: {
  3411. 204: {
  3412. description: "Delete successful"
  3413. },
  3414. 401: {
  3415. description: "User not logged in"
  3416. },
  3417. 404: {
  3418. description: "Resource with given uuid doesn't exist"
  3419. }
  3420. }
  3421. }
  3422. },
  3423. /obs: {
  3424. get: {
  3425. tags: [
  3426. "obs"
  3427. ],
  3428. summary: "Search for obs",
  3429. description: "At least one search parameter must be specified",
  3430. operationId: "getAllObses",
  3431. produces: [
  3432. "application/json",
  3433. "application/xml"
  3434. ],
  3435. parameters: [
  3436. {
  3437. name: "limit",
  3438. in: "query",
  3439. description: "The number of results to return",
  3440. required: false,
  3441. type: "integer"
  3442. },
  3443. {
  3444. name: "startIndex",
  3445. in: "query",
  3446. description: "The offset at which to start",
  3447. required: false,
  3448. type: "integer"
  3449. },
  3450. {
  3451. name: "v",
  3452. in: "query",
  3453. description: "The representation to return (ref, default, full or custom)",
  3454. required: false,
  3455. type: "string",
  3456. enum: [
  3457. "ref",
  3458. "default",
  3459. "full",
  3460. "custom"
  3461. ]
  3462. },
  3463. {
  3464. name: "q",
  3465. in: "query",
  3466. description: "The search query",
  3467. required: false,
  3468. type: "string"
  3469. },
  3470. {
  3471. name: "concepts",
  3472. in: "query",
  3473. description: "Must be used with patient",
  3474. required: false,
  3475. type: "string"
  3476. },
  3477. {
  3478. name: "patient",
  3479. in: "query",
  3480. required: false,
  3481. type: "string"
  3482. },
  3483. {
  3484. name: "concept",
  3485. in: "query",
  3486. description: "Must be used with patient",
  3487. required: false,
  3488. type: "string"
  3489. },
  3490. {
  3491. name: "groupingConcepts",
  3492. in: "query",
  3493. description: "Must be used with patient",
  3494. required: false,
  3495. type: "string"
  3496. },
  3497. {
  3498. name: "answers",
  3499. in: "query",
  3500. description: "Must be used with patient",
  3501. required: false,
  3502. type: "string"
  3503. }
  3504. ],
  3505. responses: {
  3506. 200: {
  3507. description: "obs response",
  3508. schema: {
  3509. $ref: "#/definitions/FetchAll"
  3510. }
  3511. }
  3512. }
  3513. },
  3514. post: {
  3515. tags: [
  3516. "obs"
  3517. ],
  3518. summary: "Create with properties in request",
  3519. operationId: "createObs",
  3520. consumes: [
  3521. "application/json"
  3522. ],
  3523. produces: [
  3524. "application/json"
  3525. ],
  3526. parameters: [
  3527. {
  3528. in: "body",
  3529. name: "resource",
  3530. description: "Resource to create",
  3531. required: true,
  3532. schema: {
  3533. $ref: "#/definitions/ObsCreate"
  3534. }
  3535. }
  3536. ],
  3537. responses: {
  3538. 201: {
  3539. description: "obs response"
  3540. },
  3541. 401: {
  3542. description: "User not logged in"
  3543. }
  3544. }
  3545. }
  3546. },
  3547. /obs/{uuid}: {
  3548. get: {
  3549. tags: [
  3550. "obs"
  3551. ],
  3552. summary: "Fetch by uuid",
  3553. operationId: "getObs",
  3554. consumes: [
  3555. "application/json"
  3556. ],
  3557. produces: [
  3558. "application/json"
  3559. ],
  3560. parameters: [
  3561. {
  3562. name: "v",
  3563. in: "query",
  3564. description: "The representation to return (ref, default, full or custom)",
  3565. required: false,
  3566. type: "string",
  3567. enum: [
  3568. "ref",
  3569. "default",
  3570. "full",
  3571. "custom"
  3572. ]
  3573. },
  3574. {
  3575. name: "uuid",
  3576. in: "path",
  3577. description: "uuid to filter by",
  3578. required: true,
  3579. type: "string"
  3580. }
  3581. ],
  3582. responses: {
  3583. 200: {
  3584. description: "obs response",
  3585. schema: {
  3586. $ref: "#/definitions/ObsGet"
  3587. }
  3588. },
  3589. 401: {
  3590. description: "User not logged in"
  3591. },
  3592. 404: {
  3593. description: "Resource with given uuid doesn't exist"
  3594. }
  3595. }
  3596. },
  3597. post: {
  3598. tags: [
  3599. "obs"
  3600. ],
  3601. summary: "Edit with given uuid, only modifying properties in request",
  3602. operationId: "updateObs",
  3603. consumes: [
  3604. "application/json"
  3605. ],
  3606. produces: [
  3607. "application/json"
  3608. ],
  3609. parameters: [
  3610. {
  3611. name: "uuid",
  3612. in: "path",
  3613. description: "uuid of resource to update",
  3614. required: true,
  3615. type: "string"
  3616. },
  3617. {
  3618. in: "body",
  3619. name: "resource",
  3620. description: "Resource properties to update",
  3621. required: true,
  3622. schema: {
  3623. $ref: "#/definitions/ObsUpdate"
  3624. }
  3625. }
  3626. ],
  3627. responses: {
  3628. 201: {
  3629. description: "obs response"
  3630. },
  3631. 401: {
  3632. description: "User not logged in"
  3633. }
  3634. }
  3635. },
  3636. delete: {
  3637. tags: [
  3638. "obs"
  3639. ],
  3640. summary: "Delete or purge resource by uuid",
  3641. description: "The resource will be voided/retired unless purge = 'true'",
  3642. operationId: "deleteObs",
  3643. consumes: [
  3644. "application/json"
  3645. ],
  3646. produces: [
  3647. "application/json"
  3648. ],
  3649. parameters: [
  3650. {
  3651. name: "uuid",
  3652. in: "path",
  3653. description: "uuid to delete",
  3654. required: true,
  3655. type: "string"
  3656. },
  3657. {
  3658. name: "purge",
  3659. in: "query",
  3660. required: false,
  3661. type: "boolean"
  3662. }
  3663. ],
  3664. responses: {
  3665. 204: {
  3666. description: "Delete successful"
  3667. },
  3668. 401: {
  3669. description: "User not logged in"
  3670. },
  3671. 404: {
  3672. description: "Resource with given uuid doesn't exist"
  3673. }
  3674. }
  3675. }
  3676. },
  3677. /programattributetype: {
  3678. get: {
  3679. tags: [
  3680. "programattributetype"
  3681. ],
  3682. summary: "Fetch all non-retired programattributetype resources or perform search",
  3683. description: "All search parameters are optional",
  3684. operationId: "getAllProgramAttributeTypes",
  3685. consumes: [
  3686. "application/json"
  3687. ],
  3688. produces: [
  3689. "application/json"
  3690. ],
  3691. parameters: [
  3692. {
  3693. name: "limit",
  3694. in: "query",
  3695. description: "The number of results to return",
  3696. required: false,
  3697. type: "integer"
  3698. },
  3699. {
  3700. name: "startIndex",
  3701. in: "query",
  3702. description: "The offset at which to start",
  3703. required: false,
  3704. type: "integer"
  3705. },
  3706. {
  3707. name: "v",
  3708. in: "query",
  3709. description: "The representation to return (ref, default, full or custom)",
  3710. required: false,
  3711. type: "string",
  3712. enum: [
  3713. "ref",
  3714. "default",
  3715. "full",
  3716. "custom"
  3717. ]
  3718. },
  3719. {
  3720. name: "q",
  3721. in: "query",
  3722. description: "The search query",
  3723. required: false,
  3724. type: "string"
  3725. }
  3726. ],
  3727. responses: {
  3728. 200: {
  3729. description: "programattributetype response",
  3730. schema: {
  3731. $ref: "#/definitions/FetchAll"
  3732. }
  3733. },
  3734. 401: {
  3735. description: "User not logged in"
  3736. }
  3737. }
  3738. },
  3739. post: {
  3740. tags: [
  3741. "programattributetype"
  3742. ],
  3743. summary: "Create with properties in request",
  3744. operationId: "createProgramAttributeType",
  3745. consumes: [
  3746. "application/json"
  3747. ],
  3748. produces: [
  3749. "application/json"
  3750. ],
  3751. parameters: [
  3752. {
  3753. in: "body",
  3754. name: "resource",
  3755. description: "Resource to create",
  3756. required: true,
  3757. schema: {
  3758. $ref: "#/definitions/ProgramattributetypeCreate"
  3759. }
  3760. }
  3761. ],
  3762. responses: {
  3763. 201: {
  3764. description: "programattributetype response"
  3765. },
  3766. 401: {
  3767. description: "User not logged in"
  3768. }
  3769. }
  3770. }
  3771. },
  3772. /programattributetype/{uuid}: {
  3773. get: {
  3774. tags: [
  3775. "programattributetype"
  3776. ],
  3777. summary: "Fetch by uuid",
  3778. operationId: "getProgramAttributeType",
  3779. consumes: [
  3780. "application/json"
  3781. ],
  3782. produces: [
  3783. "application/json"
  3784. ],
  3785. parameters: [
  3786. {
  3787. name: "v",
  3788. in: "query",
  3789. description: "The representation to return (ref, default, full or custom)",
  3790. required: false,
  3791. type: "string",
  3792. enum: [
  3793. "ref",
  3794. "default",
  3795. "full",
  3796. "custom"
  3797. ]
  3798. },
  3799. {
  3800. name: "uuid",
  3801. in: "path",
  3802. description: "uuid to filter by",
  3803. required: true,
  3804. type: "string"
  3805. }
  3806. ],
  3807. responses: {
  3808. 200: {
  3809. description: "programattributetype response",
  3810. schema: {
  3811. $ref: "#/definitions/ProgramattributetypeGet"
  3812. }
  3813. },
  3814. 401: {
  3815. description: "User not logged in"
  3816. },
  3817. 404: {
  3818. description: "Resource with given uuid doesn't exist"
  3819. }
  3820. }
  3821. },
  3822. post: {
  3823. tags: [
  3824. "programattributetype"
  3825. ],
  3826. summary: "Edit with given uuid, only modifying properties in request",
  3827. operationId: "updateProgramAttributeType",
  3828. consumes: [
  3829. "application/json"
  3830. ],
  3831. produces: [
  3832. "application/json"
  3833. ],
  3834. parameters: [
  3835. {
  3836. name: "uuid",
  3837. in: "path",
  3838. description: "uuid of resource to update",
  3839. required: true,
  3840. type: "string"
  3841. },
  3842. {
  3843. in: "body",
  3844. name: "resource",
  3845. description: "Resource properties to update",
  3846. required: true,
  3847. schema: {
  3848. $ref: "#/definitions/ProgramattributetypeUpdate"
  3849. }
  3850. }
  3851. ],
  3852. responses: {
  3853. 201: {
  3854. description: "programattributetype response"
  3855. },
  3856. 401: {
  3857. description: "User not logged in"
  3858. }
  3859. }
  3860. },
  3861. delete: {
  3862. tags: [
  3863. "programattributetype"
  3864. ],
  3865. summary: "Delete or purge resource by uuid",
  3866. description: "The resource will be voided/retired unless purge = 'true'",
  3867. operationId: "deleteProgramAttributeType",
  3868. consumes: [
  3869. "application/json"
  3870. ],
  3871. produces: [
  3872. "application/json"
  3873. ],
  3874. parameters: [
  3875. {
  3876. name: "uuid",
  3877. in: "path",
  3878. description: "uuid to delete",
  3879. required: true,
  3880. type: "string"
  3881. },
  3882. {
  3883. name: "purge",
  3884. in: "query",
  3885. required: false,
  3886. type: "boolean"
  3887. }
  3888. ],
  3889. responses: {
  3890. 204: {
  3891. description: "Delete successful"
  3892. },
  3893. 401: {
  3894. description: "User not logged in"
  3895. },
  3896. 404: {
  3897. description: "Resource with given uuid doesn't exist"
  3898. }
  3899. }
  3900. }
  3901. },
  3902. /patientdiagnoses: {
  3903. get: {
  3904. tags: [
  3905. "patientdiagnoses"
  3906. ],
  3907. summary: "Search for patientdiagnoses",
  3908. description: "At least one search parameter must be specified",
  3909. operationId: "getAllDiagnoses",
  3910. produces: [
  3911. "application/json",
  3912. "application/xml"
  3913. ],
  3914. parameters: [
  3915. {
  3916. name: "limit",
  3917. in: "query",
  3918. description: "The number of results to return",
  3919. required: false,
  3920. type: "integer"
  3921. },
  3922. {
  3923. name: "startIndex",
  3924. in: "query",
  3925. description: "The offset at which to start",
  3926. required: false,
  3927. type: "integer"
  3928. },
  3929. {
  3930. name: "v",
  3931. in: "query",
  3932. description: "The representation to return (ref, default, full or custom)",
  3933. required: false,
  3934. type: "string",
  3935. enum: [
  3936. "ref",
  3937. "default",
  3938. "full",
  3939. "custom"
  3940. ]
  3941. },
  3942. {
  3943. name: "q",
  3944. in: "query",
  3945. description: "The search query",
  3946. required: true,
  3947. type: "string"
  3948. }
  3949. ],
  3950. responses: {
  3951. 200: {
  3952. description: "patientdiagnoses response",
  3953. schema: {
  3954. $ref: "#/definitions/FetchAll"
  3955. }
  3956. }
  3957. }
  3958. },
  3959. post: {
  3960. tags: [
  3961. "patientdiagnoses"
  3962. ],
  3963. summary: "Create with properties in request",
  3964. operationId: "createDiagnosis",
  3965. consumes: [
  3966. "application/json"
  3967. ],
  3968. produces: [
  3969. "application/json"
  3970. ],
  3971. parameters: [
  3972. {
  3973. in: "body",
  3974. name: "resource",
  3975. description: "Resource to create",
  3976. required: true,
  3977. schema: {
  3978. $ref: "#/definitions/PatientdiagnosesCreate"
  3979. }
  3980. }
  3981. ],
  3982. responses: {
  3983. 201: {
  3984. description: "patientdiagnoses response"
  3985. },
  3986. 401: {
  3987. description: "User not logged in"
  3988. }
  3989. }
  3990. }
  3991. },
  3992. /patientdiagnoses/{uuid}: {
  3993. get: {
  3994. tags: [
  3995. "patientdiagnoses"
  3996. ],
  3997. summary: "Fetch by uuid",
  3998. operationId: "getDiagnosis",
  3999. consumes: [
  4000. "application/json"
  4001. ],
  4002. produces: [
  4003. "application/json"
  4004. ],
  4005. parameters: [
  4006. {
  4007. name: "v",
  4008. in: "query",
  4009. description: "The representation to return (ref, default, full or custom)",
  4010. required: false,
  4011. type: "string",
  4012. enum: [
  4013. "ref",
  4014. "default",
  4015. "full",
  4016. "custom"
  4017. ]
  4018. },
  4019. {
  4020. name: "uuid",
  4021. in: "path",
  4022. description: "uuid to filter by",
  4023. required: true,
  4024. type: "string"
  4025. }
  4026. ],
  4027. responses: {
  4028. 200: {
  4029. description: "patientdiagnoses response",
  4030. schema: {
  4031. $ref: "#/definitions/PatientdiagnosesGet"
  4032. }
  4033. },
  4034. 401: {
  4035. description: "User not logged in"
  4036. },
  4037. 404: {
  4038. description: "Resource with given uuid doesn't exist"
  4039. }
  4040. }
  4041. },
  4042. post: {
  4043. tags: [
  4044. "patientdiagnoses"
  4045. ],
  4046. summary: "Edit with given uuid, only modifying properties in request",
  4047. operationId: "updateDiagnosis",
  4048. consumes: [
  4049. "application/json"
  4050. ],
  4051. produces: [
  4052. "application/json"
  4053. ],
  4054. parameters: [
  4055. {
  4056. name: "uuid",
  4057. in: "path",
  4058. description: "uuid of resource to update",
  4059. required: true,
  4060. type: "string"
  4061. },
  4062. {
  4063. in: "body",
  4064. name: "resource",
  4065. description: "Resource properties to update",
  4066. required: true,
  4067. schema: {
  4068. $ref: "#/definitions/PatientdiagnosesUpdate"
  4069. }
  4070. }
  4071. ],
  4072. responses: {
  4073. 201: {
  4074. description: "patientdiagnoses response"
  4075. },
  4076. 401: {
  4077. description: "User not logged in"
  4078. }
  4079. }
  4080. },
  4081. delete: {
  4082. tags: [
  4083. "patientdiagnoses"
  4084. ],
  4085. summary: "Delete or purge resource by uuid",
  4086. description: "The resource will be voided/retired unless purge = 'true'",
  4087. operationId: "deleteDiagnosis",
  4088. consumes: [
  4089. "application/json"
  4090. ],
  4091. produces: [
  4092. "application/json"
  4093. ],
  4094. parameters: [
  4095. {
  4096. name: "uuid",
  4097. in: "path",
  4098. description: "uuid to delete",
  4099. required: true,
  4100. type: "string"
  4101. },
  4102. {
  4103. name: "purge",
  4104. in: "query",
  4105. required: false,
  4106. type: "boolean"
  4107. }
  4108. ],
  4109. responses: {
  4110. 204: {
  4111. description: "Delete successful"
  4112. },
  4113. 401: {
  4114. description: "User not logged in"
  4115. },
  4116. 404: {
  4117. description: "Resource with given uuid doesn't exist"
  4118. }
  4119. }
  4120. }
  4121. },
  4122. /patient: {
  4123. get: {
  4124. tags: [
  4125. "patient"
  4126. ],
  4127. summary: "Search for patient",
  4128. description: "At least one search parameter must be specified",
  4129. operationId: "getAllPatients",
  4130. produces: [
  4131. "application/json",
  4132. "application/xml"
  4133. ],
  4134. parameters: [
  4135. {
  4136. name: "limit",
  4137. in: "query",
  4138. description: "The number of results to return",
  4139. required: false,
  4140. type: "integer"
  4141. },
  4142. {
  4143. name: "startIndex",
  4144. in: "query",
  4145. description: "The offset at which to start",
  4146. required: false,
  4147. type: "integer"
  4148. },
  4149. {
  4150. name: "v",
  4151. in: "query",
  4152. description: "The representation to return (ref, default, full or custom)",
  4153. required: false,
  4154. type: "string",
  4155. enum: [
  4156. "ref",
  4157. "default",
  4158. "full",
  4159. "custom"
  4160. ]
  4161. },
  4162. {
  4163. name: "q",
  4164. in: "query",
  4165. description: "The search query",
  4166. required: false,
  4167. type: "string"
  4168. },
  4169. {
  4170. name: "matchSimilar",
  4171. in: "query",
  4172. required: false,
  4173. type: "string"
  4174. },
  4175. {
  4176. name: "country",
  4177. in: "query",
  4178. description: "Must be used with matchSimilar",
  4179. required: false,
  4180. type: "string"
  4181. },
  4182. {
  4183. name: "identifier",
  4184. in: "query",
  4185. required: false,
  4186. type: "string"
  4187. },
  4188. {
  4189. name: "birthdate",
  4190. in: "query",
  4191. description: "Must be used with matchSimilar",
  4192. required: false,
  4193. type: "string"
  4194. },
  4195. {
  4196. name: "gender",
  4197. in: "query",
  4198. description: "Must be used with matchSimilar",
  4199. required: false,
  4200. type: "string"
  4201. },
  4202. {
  4203. name: "city",
  4204. in: "query",
  4205. description: "Must be used with matchSimilar",
  4206. required: false,
  4207. type: "string"
  4208. },
  4209. {
  4210. name: "address2",
  4211. in: "query",
  4212. description: "Must be used with matchSimilar",
  4213. required: false,
  4214. type: "string"
  4215. },
  4216. {
  4217. name: "searchType",
  4218. in: "query",
  4219. description: "Must be used with identifier",
  4220. required: false,
  4221. type: "string"
  4222. },
  4223. {
  4224. name: "address1",
  4225. in: "query",
  4226. description: "Must be used with matchSimilar",
  4227. required: false,
  4228. type: "string"
  4229. },
  4230. {
  4231. name: "familyname",
  4232. in: "query",
  4233. description: "Must be used with matchSimilar",
  4234. required: false,
  4235. type: "string"
  4236. },
  4237. {
  4238. name: "middlename",
  4239. in: "query",
  4240. description: "Must be used with matchSimilar",
  4241. required: false,
  4242. type: "string"
  4243. },
  4244. {
  4245. name: "q",
  4246. in: "query",
  4247. required: false,
  4248. type: "string"
  4249. },
  4250. {
  4251. name: "includeDead",
  4252. in: "query",
  4253. description: "Must be used with q",
  4254. required: false,
  4255. type: "string"
  4256. },
  4257. {
  4258. name: "postalcode",
  4259. in: "query",
  4260. description: "Must be used with matchSimilar",
  4261. required: false,
  4262. type: "string"
  4263. },
  4264. {
  4265. name: "givenname",
  4266. in: "query",
  4267. description: "Must be used with matchSimilar",
  4268. required: false,
  4269. type: "string"
  4270. },
  4271. {
  4272. name: "state",
  4273. in: "query",
  4274. description: "Must be used with matchSimilar",
  4275. required: false,
  4276. type: "string"
  4277. }
  4278. ],
  4279. responses: {
  4280. 200: {
  4281. description: "patient response",
  4282. schema: {
  4283. $ref: "#/definitions/FetchAll"
  4284. }
  4285. }
  4286. }
  4287. },
  4288. post: {
  4289. tags: [
  4290. "patient"
  4291. ],
  4292. summary: "Create with properties in request",
  4293. operationId: "createPatient",
  4294. consumes: [
  4295. "application/json"
  4296. ],
  4297. produces: [
  4298. "application/json"
  4299. ],
  4300. parameters: [
  4301. {
  4302. in: "body",
  4303. name: "resource",
  4304. description: "Resource to create",
  4305. required: true,
  4306. schema: {
  4307. $ref: "#/definitions/PatientCreate"
  4308. }
  4309. }
  4310. ],
  4311. responses: {
  4312. 201: {
  4313. description: "patient response"
  4314. },
  4315. 401: {
  4316. description: "User not logged in"
  4317. }
  4318. }
  4319. }
  4320. },
  4321. /patient/{uuid}: {
  4322. get: {
  4323. tags: [
  4324. "patient"
  4325. ],
  4326. summary: "Fetch by uuid",
  4327. operationId: "getPatient",
  4328. consumes: [
  4329. "application/json"
  4330. ],
  4331. produces: [
  4332. "application/json"
  4333. ],
  4334. parameters: [
  4335. {
  4336. name: "v",
  4337. in: "query",
  4338. description: "The representation to return (ref, default, full or custom)",
  4339. required: false,
  4340. type: "string",
  4341. enum: [
  4342. "ref",
  4343. "default",
  4344. "full",
  4345. "custom"
  4346. ]
  4347. },
  4348. {
  4349. name: "uuid",
  4350. in: "path",
  4351. description: "uuid to filter by",
  4352. required: true,
  4353. type: "string"
  4354. }
  4355. ],
  4356. responses: {
  4357. 200: {
  4358. description: "patient response",
  4359. schema: {
  4360. $ref: "#/definitions/PatientGet"
  4361. }
  4362. },
  4363. 401: {
  4364. description: "User not logged in"
  4365. },
  4366. 404: {
  4367. description: "Resource with given uuid doesn't exist"
  4368. }
  4369. }
  4370. },
  4371. post: {
  4372. tags: [
  4373. "patient"
  4374. ],
  4375. summary: "Edit with given uuid, only modifying properties in request",
  4376. operationId: "updatePatient",
  4377. consumes: [
  4378. "application/json"
  4379. ],
  4380. produces: [
  4381. "application/json"
  4382. ],
  4383. parameters: [
  4384. {
  4385. name: "uuid",
  4386. in: "path",
  4387. description: "uuid of resource to update",
  4388. required: true,
  4389. type: "string"
  4390. },
  4391. {
  4392. in: "body",
  4393. name: "resource",
  4394. description: "Resource properties to update",
  4395. required: true,
  4396. schema: {
  4397. $ref: "#/definitions/PatientUpdate"
  4398. }
  4399. }
  4400. ],
  4401. responses: {
  4402. 201: {
  4403. description: "patient response"
  4404. },
  4405. 401: {
  4406. description: "User not logged in"
  4407. }
  4408. }
  4409. },
  4410. delete: {
  4411. tags: [
  4412. "patient"
  4413. ],
  4414. summary: "Delete or purge resource by uuid",
  4415. description: "The resource will be voided/retired unless purge = 'true'",
  4416. operationId: "deletePatient",
  4417. consumes: [
  4418. "application/json"
  4419. ],
  4420. produces: [
  4421. "application/json"
  4422. ],
  4423. parameters: [
  4424. {
  4425. name: "uuid",
  4426. in: "path",
  4427. description: "uuid to delete",
  4428. required: true,
  4429. type: "string"
  4430. },
  4431. {
  4432. name: "purge",
  4433. in: "query",
  4434. required: false,
  4435. type: "boolean"
  4436. }
  4437. ],
  4438. responses: {
  4439. 204: {
  4440. description: "Delete successful"
  4441. },
  4442. 401: {
  4443. description: "User not logged in"
  4444. },
  4445. 404: {
  4446. description: "Resource with given uuid doesn't exist"
  4447. }
  4448. }
  4449. }
  4450. },
  4451. /customdatatype: {
  4452. get: {
  4453. tags: [
  4454. "customdatatype"
  4455. ],
  4456. summary: "Fetch all non-retired customdatatype resources or perform search",
  4457. description: "All search parameters are optional",
  4458. operationId: "getAllCustomDatatypes",
  4459. consumes: [
  4460. "application/json"
  4461. ],
  4462. produces: [
  4463. "application/json"
  4464. ],
  4465. parameters: [
  4466. {
  4467. name: "limit",
  4468. in: "query",
  4469. description: "The number of results to return",
  4470. required: false,
  4471. type: "integer"
  4472. },
  4473. {
  4474. name: "startIndex",
  4475. in: "query",
  4476. description: "The offset at which to start",
  4477. required: false,
  4478. type: "integer"
  4479. },
  4480. {
  4481. name: "v",
  4482. in: "query",
  4483. description: "The representation to return (ref, default, full or custom)",
  4484. required: false,
  4485. type: "string",
  4486. enum: [
  4487. "ref",
  4488. "default",
  4489. "full",
  4490. "custom"
  4491. ]
  4492. },
  4493. {
  4494. name: "q",
  4495. in: "query",
  4496. description: "The search query",
  4497. required: false,
  4498. type: "string"
  4499. }
  4500. ],
  4501. responses: {
  4502. 200: {
  4503. description: "customdatatype response",
  4504. schema: {
  4505. $ref: "#/definitions/FetchAll"
  4506. }
  4507. },
  4508. 401: {
  4509. description: "User not logged in"
  4510. }
  4511. }
  4512. }
  4513. },
  4514. /customdatatype/{uuid}: {
  4515. get: {
  4516. tags: [
  4517. "customdatatype"
  4518. ],
  4519. summary: "Fetch by uuid",
  4520. operationId: "getCustomDatatype",
  4521. consumes: [
  4522. "application/json"
  4523. ],
  4524. produces: [
  4525. "application/json"
  4526. ],
  4527. parameters: [
  4528. {
  4529. name: "v",
  4530. in: "query",
  4531. description: "The representation to return (ref, default, full or custom)",
  4532. required: false,
  4533. type: "string",
  4534. enum: [
  4535. "ref",
  4536. "default",
  4537. "full",
  4538. "custom"
  4539. ]
  4540. },
  4541. {
  4542. name: "uuid",
  4543. in: "path",
  4544. description: "uuid to filter by",
  4545. required: true,
  4546. type: "string"
  4547. }
  4548. ],
  4549. responses: {
  4550. 200: {
  4551. description: "customdatatype response",
  4552. schema: {
  4553. $ref: "#/definitions/CustomdatatypeGet"
  4554. }
  4555. },
  4556. 401: {
  4557. description: "User not logged in"
  4558. },
  4559. 404: {
  4560. description: "Resource with given uuid doesn't exist"
  4561. }
  4562. }
  4563. },
  4564. delete: {
  4565. tags: [
  4566. "customdatatype"
  4567. ],
  4568. summary: "Delete or purge resource by uuid",
  4569. description: "The resource will be voided/retired unless purge = 'true'",
  4570. operationId: "deleteCustomDatatype",
  4571. consumes: [
  4572. "application/json"
  4573. ],
  4574. produces: [
  4575. "application/json"
  4576. ],
  4577. parameters: [
  4578. {
  4579. name: "uuid",
  4580. in: "path",
  4581. description: "uuid to delete",
  4582. required: true,
  4583. type: "string"
  4584. },
  4585. {
  4586. name: "purge",
  4587. in: "query",
  4588. required: false,
  4589. type: "boolean"
  4590. }
  4591. ],
  4592. responses: {
  4593. 204: {
  4594. description: "Delete successful"
  4595. },
  4596. 401: {
  4597. description: "User not logged in"
  4598. },
  4599. 404: {
  4600. description: "Resource with given uuid doesn't exist"
  4601. }
  4602. }
  4603. }
  4604. },
  4605. /concept: {
  4606. get: {
  4607. tags: [
  4608. "concept"
  4609. ],
  4610. summary: "Fetch all non-retired concept resources or perform search",
  4611. description: "All search parameters are optional",
  4612. operationId: "getAllConcepts",
  4613. consumes: [
  4614. "application/json"
  4615. ],
  4616. produces: [
  4617. "application/json"
  4618. ],
  4619. parameters: [
  4620. {
  4621. name: "limit",
  4622. in: "query",
  4623. description: "The number of results to return",
  4624. required: false,
  4625. type: "integer"
  4626. },
  4627. {
  4628. name: "startIndex",
  4629. in: "query",
  4630. description: "The offset at which to start",
  4631. required: false,
  4632. type: "integer"
  4633. },
  4634. {
  4635. name: "v",
  4636. in: "query",
  4637. description: "The representation to return (ref, default, full or custom)",
  4638. required: false,
  4639. type: "string",
  4640. enum: [
  4641. "ref",
  4642. "default",
  4643. "full",
  4644. "custom"
  4645. ]
  4646. },
  4647. {
  4648. name: "q",
  4649. in: "query",
  4650. description: "The search query",
  4651. required: false,
  4652. type: "string"
  4653. },
  4654. {
  4655. name: "code",
  4656. in: "query",
  4657. description: "Must be used with source",
  4658. required: false,
  4659. type: "string"
  4660. },
  4661. {
  4662. name: "searchType",
  4663. in: "query",
  4664. description: "Must be used with name",
  4665. required: false,
  4666. type: "string"
  4667. },
  4668. {
  4669. name: "name",
  4670. in: "query",
  4671. required: false,
  4672. type: "string"
  4673. },
  4674. {
  4675. name: "term",
  4676. in: "query",
  4677. required: false,
  4678. type: "string"
  4679. },
  4680. {
  4681. name: "source",
  4682. in: "query",
  4683. required: false,
  4684. type: "string"
  4685. },
  4686. {
  4687. name: "class",
  4688. in: "query",
  4689. description: "Must be used with name",
  4690. required: false,
  4691. type: "string"
  4692. }
  4693. ],
  4694. responses: {
  4695. 200: {
  4696. description: "concept response",
  4697. schema: {
  4698. $ref: "#/definitions/FetchAll"
  4699. }
  4700. },
  4701. 401: {
  4702. description: "User not logged in"
  4703. }
  4704. }
  4705. },
  4706. post: {
  4707. tags: [
  4708. "concept"
  4709. ],
  4710. summary: "Create with properties in request",
  4711. operationId: "createConcept",
  4712. consumes: [
  4713. "application/json"
  4714. ],
  4715. produces: [
  4716. "application/json"
  4717. ],
  4718. parameters: [
  4719. {
  4720. in: "body",
  4721. name: "resource",
  4722. description: "Resource to create",
  4723. required: true,
  4724. schema: {
  4725. $ref: "#/definitions/ConceptCreate"
  4726. }
  4727. }
  4728. ],
  4729. responses: {
  4730. 201: {
  4731. description: "concept response"
  4732. },
  4733. 401: {
  4734. description: "User not logged in"
  4735. }
  4736. }
  4737. }
  4738. },
  4739. /concept/{uuid}: {
  4740. get: {
  4741. tags: [
  4742. "concept"
  4743. ],
  4744. summary: "Fetch by uuid",
  4745. operationId: "getConcept",
  4746. consumes: [
  4747. "application/json"
  4748. ],
  4749. produces: [
  4750. "application/json"
  4751. ],
  4752. parameters: [
  4753. {
  4754. name: "v",
  4755. in: "query",
  4756. description: "The representation to return (ref, default, full or custom)",
  4757. required: false,
  4758. type: "string",
  4759. enum: [
  4760. "ref",
  4761. "default",
  4762. "full",
  4763. "custom"
  4764. ]
  4765. },
  4766. {
  4767. name: "uuid",
  4768. in: "path",
  4769. description: "uuid to filter by",
  4770. required: true,
  4771. type: "string"
  4772. }
  4773. ],
  4774. responses: {
  4775. 200: {
  4776. description: "concept response",
  4777. schema: {
  4778. $ref: "#/definitions/ConceptGet"
  4779. }
  4780. },
  4781. 401: {
  4782. description: "User not logged in"
  4783. },
  4784. 404: {
  4785. description: "Resource with given uuid doesn't exist"
  4786. }
  4787. }
  4788. },
  4789. post: {
  4790. tags: [
  4791. "concept"
  4792. ],
  4793. summary: "Edit with given uuid, only modifying properties in request",
  4794. operationId: "updateConcept",
  4795. consumes: [
  4796. "application/json"
  4797. ],
  4798. produces: [
  4799. "application/json"
  4800. ],
  4801. parameters: [
  4802. {
  4803. name: "uuid",
  4804. in: "path",
  4805. description: "uuid of resource to update",
  4806. required: true,
  4807. type: "string"
  4808. },
  4809. {
  4810. in: "body",
  4811. name: "resource",
  4812. description: "Resource properties to update",
  4813. required: true,
  4814. schema: {
  4815. $ref: "#/definitions/ConceptUpdate"
  4816. }
  4817. }
  4818. ],
  4819. responses: {
  4820. 201: {
  4821. description: "concept response"
  4822. },
  4823. 401: {
  4824. description: "User not logged in"
  4825. }
  4826. }
  4827. },
  4828. delete: {
  4829. tags: [
  4830. "concept"
  4831. ],
  4832. summary: "Delete or purge resource by uuid",
  4833. description: "The resource will be voided/retired unless purge = 'true'",
  4834. operationId: "deleteConcept",
  4835. consumes: [
  4836. "application/json"
  4837. ],
  4838. produces: [
  4839. "application/json"
  4840. ],
  4841. parameters: [
  4842. {
  4843. name: "uuid",
  4844. in: "path",
  4845. description: "uuid to delete",
  4846. required: true,
  4847. type: "string"
  4848. },
  4849. {
  4850. name: "purge",
  4851. in: "query",
  4852. required: false,
  4853. type: "boolean"
  4854. }
  4855. ],
  4856. responses: {
  4857. 204: {
  4858. description: "Delete successful"
  4859. },
  4860. 401: {
  4861. description: "User not logged in"
  4862. },
  4863. 404: {
  4864. description: "Resource with given uuid doesn't exist"
  4865. }
  4866. }
  4867. }
  4868. },
  4869. /systemsetting: {
  4870. get: {
  4871. tags: [
  4872. "systemsetting"
  4873. ],
  4874. summary: "Fetch all non-retired systemsetting resources or perform search",
  4875. description: "All search parameters are optional",
  4876. operationId: "getAllSystemSettings",
  4877. consumes: [
  4878. "application/json"
  4879. ],
  4880. produces: [
  4881. "application/json"
  4882. ],
  4883. parameters: [
  4884. {
  4885. name: "limit",
  4886. in: "query",
  4887. description: "The number of results to return",
  4888. required: false,
  4889. type: "integer"
  4890. },
  4891. {
  4892. name: "startIndex",
  4893. in: "query",
  4894. description: "The offset at which to start",
  4895. required: false,
  4896. type: "integer"
  4897. },
  4898. {
  4899. name: "v",
  4900. in: "query",
  4901. description: "The representation to return (ref, default, full or custom)",
  4902. required: false,
  4903. type: "string",
  4904. enum: [
  4905. "ref",
  4906. "default",
  4907. "full",
  4908. "custom"
  4909. ]
  4910. },
  4911. {
  4912. name: "q",
  4913. in: "query",
  4914. description: "The search query",
  4915. required: false,
  4916. type: "string"
  4917. }
  4918. ],
  4919. responses: {
  4920. 200: {
  4921. description: "systemsetting response",
  4922. schema: {
  4923. $ref: "#/definitions/FetchAll"
  4924. }
  4925. },
  4926. 401: {
  4927. description: "User not logged in"
  4928. }
  4929. }
  4930. },
  4931. post: {
  4932. tags: [
  4933. "systemsetting"
  4934. ],
  4935. summary: "Create with properties in request",
  4936. operationId: "createSystemSetting",
  4937. consumes: [
  4938. "application/json"
  4939. ],
  4940. produces: [
  4941. "application/json"
  4942. ],
  4943. parameters: [
  4944. {
  4945. in: "body",
  4946. name: "resource",
  4947. description: "Resource to create",
  4948. required: true,
  4949. schema: {
  4950. $ref: "#/definitions/SystemsettingCreate"
  4951. }
  4952. }
  4953. ],
  4954. responses: {
  4955. 201: {
  4956. description: "systemsetting response"
  4957. },
  4958. 401: {
  4959. description: "User not logged in"
  4960. }
  4961. }
  4962. }
  4963. },
  4964. /systemsetting/{uuid}: {
  4965. get: {
  4966. tags: [
  4967. "systemsetting"
  4968. ],
  4969. summary: "Fetch by uuid",
  4970. operationId: "getSystemSetting",
  4971. consumes: [
  4972. "application/json"
  4973. ],
  4974. produces: [
  4975. "application/json"
  4976. ],
  4977. parameters: [
  4978. {
  4979. name: "v",
  4980. in: "query",
  4981. description: "The representation to return (ref, default, full or custom)",
  4982. required: false,
  4983. type: "string",
  4984. enum: [
  4985. "ref",
  4986. "default",
  4987. "full",
  4988. "custom"
  4989. ]
  4990. },
  4991. {
  4992. name: "uuid",
  4993. in: "path",
  4994. description: "uuid to filter by",
  4995. required: true,
  4996. type: "string"
  4997. }
  4998. ],
  4999. responses: {
  5000. 200: {
  5001. description: "systemsetting response",
  5002. schema: {
  5003. $ref: "#/definitions/SystemsettingGet"
  5004. }
  5005. },
  5006. 401: {
  5007. description: "User not logged in"
  5008. },
  5009. 404: {
  5010. description: "Resource with given uuid doesn't exist"
  5011. }
  5012. }
  5013. },
  5014. post: {
  5015. tags: [
  5016. "systemsetting"
  5017. ],
  5018. summary: "Edit with given uuid, only modifying properties in request",
  5019. operationId: "updateSystemSetting",
  5020. consumes: [
  5021. "application/json"
  5022. ],
  5023. produces: [
  5024. "application/json"
  5025. ],
  5026. parameters: [
  5027. {
  5028. name: "uuid",
  5029. in: "path",
  5030. description: "uuid of resource to update",
  5031. required: true,
  5032. type: "string"
  5033. },
  5034. {
  5035. in: "body",
  5036. name: "resource",
  5037. description: "Resource properties to update",
  5038. required: true,
  5039. schema: {
  5040. $ref: "#/definitions/SystemsettingUpdate"
  5041. }
  5042. }
  5043. ],
  5044. responses: {
  5045. 201: {
  5046. description: "systemsetting response"
  5047. },
  5048. 401: {
  5049. description: "User not logged in"
  5050. }
  5051. }
  5052. },
  5053. delete: {
  5054. tags: [
  5055. "systemsetting"
  5056. ],
  5057. summary: "Delete or purge resource by uuid",
  5058. description: "The resource will be voided/retired unless purge = 'true'",
  5059. operationId: "deleteSystemSetting",
  5060. consumes: [
  5061. "application/json"
  5062. ],
  5063. produces: [
  5064. "application/json"
  5065. ],
  5066. parameters: [
  5067. {
  5068. name: "uuid",
  5069. in: "path",
  5070. description: "uuid to delete",
  5071. required: true,
  5072. type: "string"
  5073. },
  5074. {
  5075. name: "purge",
  5076. in: "query",
  5077. required: false,
  5078. type: "boolean"
  5079. }
  5080. ],
  5081. responses: {
  5082. 204: {
  5083. description: "Delete successful"
  5084. },
  5085. 401: {
  5086. description: "User not logged in"
  5087. },
  5088. 404: {
  5089. description: "Resource with given uuid doesn't exist"
  5090. }
  5091. }
  5092. }
  5093. },
  5094. /conceptdatatype: {
  5095. get: {
  5096. tags: [
  5097. "conceptdatatype"
  5098. ],
  5099. summary: "Fetch all non-retired conceptdatatype resources or perform search",
  5100. description: "All search parameters are optional",
  5101. operationId: "getAllConceptDatatypes",
  5102. consumes: [
  5103. "application/json"
  5104. ],
  5105. produces: [
  5106. "application/json"
  5107. ],
  5108. parameters: [
  5109. {
  5110. name: "limit",
  5111. in: "query",
  5112. description: "The number of results to return",
  5113. required: false,
  5114. type: "integer"
  5115. },
  5116. {
  5117. name: "startIndex",
  5118. in: "query",
  5119. description: "The offset at which to start",
  5120. required: false,
  5121. type: "integer"
  5122. },
  5123. {
  5124. name: "v",
  5125. in: "query",
  5126. description: "The representation to return (ref, default, full or custom)",
  5127. required: false,
  5128. type: "string",
  5129. enum: [
  5130. "ref",
  5131. "default",
  5132. "full",
  5133. "custom"
  5134. ]
  5135. },
  5136. {
  5137. name: "q",
  5138. in: "query",
  5139. description: "The search query",
  5140. required: false,
  5141. type: "string"
  5142. }
  5143. ],
  5144. responses: {
  5145. 200: {
  5146. description: "conceptdatatype response",
  5147. schema: {
  5148. $ref: "#/definitions/FetchAll"
  5149. }
  5150. },
  5151. 401: {
  5152. description: "User not logged in"
  5153. }
  5154. }
  5155. }
  5156. },
  5157. /conceptdatatype/{uuid}: {
  5158. get: {
  5159. tags: [
  5160. "conceptdatatype"
  5161. ],
  5162. summary: "Fetch by uuid",
  5163. operationId: "getConceptDatatype",
  5164. consumes: [
  5165. "application/json"
  5166. ],
  5167. produces: [
  5168. "application/json"
  5169. ],
  5170. parameters: [
  5171. {
  5172. name: "v",
  5173. in: "query",
  5174. description: "The representation to return (ref, default, full or custom)",
  5175. required: false,
  5176. type: "string",
  5177. enum: [
  5178. "ref",
  5179. "default",
  5180. "full",
  5181. "custom"
  5182. ]
  5183. },
  5184. {
  5185. name: "uuid",
  5186. in: "path",
  5187. description: "uuid to filter by",
  5188. required: true,
  5189. type: "string"
  5190. }
  5191. ],
  5192. responses: {
  5193. 200: {
  5194. description: "conceptdatatype response",
  5195. schema: {
  5196. $ref: "#/definitions/ConceptdatatypeGet"
  5197. }
  5198. },
  5199. 401: {
  5200. description: "User not logged in"
  5201. },
  5202. 404: {
  5203. description: "Resource with given uuid doesn't exist"
  5204. }
  5205. }
  5206. },
  5207. delete: {
  5208. tags: [
  5209. "conceptdatatype"
  5210. ],
  5211. summary: "Delete or purge resource by uuid",
  5212. description: "The resource will be voided/retired unless purge = 'true'",
  5213. operationId: "deleteConceptDatatype",
  5214. consumes: [
  5215. "application/json"
  5216. ],
  5217. produces: [
  5218. "application/json"
  5219. ],
  5220. parameters: [
  5221. {
  5222. name: "uuid",
  5223. in: "path",
  5224. description: "uuid to delete",
  5225. required: true,
  5226. type: "string"
  5227. },
  5228. {
  5229. name: "purge",
  5230. in: "query",
  5231. required: false,
  5232. type: "boolean"
  5233. }
  5234. ],
  5235. responses: {
  5236. 204: {
  5237. description: "Delete successful"
  5238. },
  5239. 401: {
  5240. description: "User not logged in"
  5241. },
  5242. 404: {
  5243. description: "Resource with given uuid doesn't exist"
  5244. }
  5245. }
  5246. }
  5247. },
  5248. /hl7source: {
  5249. get: {
  5250. tags: [
  5251. "hl7source"
  5252. ],
  5253. summary: "Search for hl7source",
  5254. description: "At least one search parameter must be specified",
  5255. operationId: "getAllHL7Sources",
  5256. produces: [
  5257. "application/json",
  5258. "application/xml"
  5259. ],
  5260. parameters: [
  5261. {
  5262. name: "limit",
  5263. in: "query",
  5264. description: "The number of results to return",
  5265. required: false,
  5266. type: "integer"
  5267. },
  5268. {
  5269. name: "startIndex",
  5270. in: "query",
  5271. description: "The offset at which to start",
  5272. required: false,
  5273. type: "integer"
  5274. },
  5275. {
  5276. name: "v",
  5277. in: "query",
  5278. description: "The representation to return (ref, default, full or custom)",
  5279. required: false,
  5280. type: "string",
  5281. enum: [
  5282. "ref",
  5283. "default",
  5284. "full",
  5285. "custom"
  5286. ]
  5287. },
  5288. {
  5289. name: "q",
  5290. in: "query",
  5291. description: "The search query",
  5292. required: true,
  5293. type: "string"
  5294. }
  5295. ],
  5296. responses: {
  5297. 200: {
  5298. description: "hl7source response",
  5299. schema: {
  5300. $ref: "#/definitions/FetchAll"
  5301. }
  5302. }
  5303. }
  5304. },
  5305. post: {
  5306. tags: [
  5307. "hl7source"
  5308. ],
  5309. summary: "Create with properties in request",
  5310. operationId: "createHL7Source",
  5311. consumes: [
  5312. "application/json"
  5313. ],
  5314. produces: [
  5315. "application/json"
  5316. ],
  5317. parameters: [
  5318. {
  5319. in: "body",
  5320. name: "resource",
  5321. description: "Resource to create",
  5322. required: true,
  5323. schema: {
  5324. $ref: "#/definitions/Hl7sourceCreate"
  5325. }
  5326. }
  5327. ],
  5328. responses: {
  5329. 201: {
  5330. description: "hl7source response"
  5331. },
  5332. 401: {
  5333. description: "User not logged in"
  5334. }
  5335. }
  5336. }
  5337. },
  5338. /hl7source/{uuid}: {
  5339. get: {
  5340. tags: [
  5341. "hl7source"
  5342. ],
  5343. summary: "Fetch by uuid",
  5344. operationId: "getHL7Source",
  5345. consumes: [
  5346. "application/json"
  5347. ],
  5348. produces: [
  5349. "application/json"
  5350. ],
  5351. parameters: [
  5352. {
  5353. name: "v",
  5354. in: "query",
  5355. description: "The representation to return (ref, default, full or custom)",
  5356. required: false,
  5357. type: "string",
  5358. enum: [
  5359. "ref",
  5360. "default",
  5361. "full",
  5362. "custom"
  5363. ]
  5364. },
  5365. {
  5366. name: "uuid",
  5367. in: "path",
  5368. description: "uuid to filter by",
  5369. required: true,
  5370. type: "string"
  5371. }
  5372. ],
  5373. responses: {
  5374. 200: {
  5375. description: "hl7source response",
  5376. schema: {
  5377. $ref: "#/definitions/Hl7sourceGet"
  5378. }
  5379. },
  5380. 401: {
  5381. description: "User not logged in"
  5382. },
  5383. 404: {
  5384. description: "Resource with given uuid doesn't exist"
  5385. }
  5386. }
  5387. },
  5388. post: {
  5389. tags: [
  5390. "hl7source"
  5391. ],
  5392. summary: "Edit with given uuid, only modifying properties in request",
  5393. operationId: "updateHL7Source",
  5394. consumes: [
  5395. "application/json"
  5396. ],
  5397. produces: [
  5398. "application/json"
  5399. ],
  5400. parameters: [
  5401. {
  5402. name: "uuid",
  5403. in: "path",
  5404. description: "uuid of resource to update",
  5405. required: true,
  5406. type: "string"
  5407. },
  5408. {
  5409. in: "body",
  5410. name: "resource",
  5411. description: "Resource properties to update",
  5412. required: true,
  5413. schema: {
  5414. $ref: "#/definitions/Hl7sourceUpdate"
  5415. }
  5416. }
  5417. ],
  5418. responses: {
  5419. 201: {
  5420. description: "hl7source response"
  5421. },
  5422. 401: {
  5423. description: "User not logged in"
  5424. }
  5425. }
  5426. },
  5427. delete: {
  5428. tags: [
  5429. "hl7source"
  5430. ],
  5431. summary: "Delete or purge resource by uuid",
  5432. description: "The resource will be voided/retired unless purge = 'true'",
  5433. operationId: "deleteHL7Source",
  5434. consumes: [
  5435. "application/json"
  5436. ],
  5437. produces: [
  5438. "application/json"
  5439. ],
  5440. parameters: [
  5441. {
  5442. name: "uuid",
  5443. in: "path",
  5444. description: "uuid to delete",
  5445. required: true,
  5446. type: "string"
  5447. },
  5448. {
  5449. name: "purge",
  5450. in: "query",
  5451. required: false,
  5452. type: "boolean"
  5453. }
  5454. ],
  5455. responses: {
  5456. 204: {
  5457. description: "Delete successful"
  5458. },
  5459. 401: {
  5460. description: "User not logged in"
  5461. },
  5462. 404: {
  5463. description: "Resource with given uuid doesn't exist"
  5464. }
  5465. }
  5466. }
  5467. },
  5468. /workflow: {
  5469. get: {
  5470. tags: [
  5471. "workflow"
  5472. ],
  5473. summary: "Search for workflow",
  5474. description: "At least one search parameter must be specified",
  5475. operationId: "getAllProgramWorkflows",
  5476. produces: [
  5477. "application/json",
  5478. "application/xml"
  5479. ],
  5480. parameters: [
  5481. {
  5482. name: "limit",
  5483. in: "query",
  5484. description: "The number of results to return",
  5485. required: false,
  5486. type: "integer"
  5487. },
  5488. {
  5489. name: "startIndex",
  5490. in: "query",
  5491. description: "The offset at which to start",
  5492. required: false,
  5493. type: "integer"
  5494. },
  5495. {
  5496. name: "v",
  5497. in: "query",
  5498. description: "The representation to return (ref, default, full or custom)",
  5499. required: false,
  5500. type: "string",
  5501. enum: [
  5502. "ref",
  5503. "default",
  5504. "full",
  5505. "custom"
  5506. ]
  5507. },
  5508. {
  5509. name: "q",
  5510. in: "query",
  5511. description: "The search query",
  5512. required: true,
  5513. type: "string"
  5514. }
  5515. ],
  5516. responses: {
  5517. 200: {
  5518. description: "workflow response",
  5519. schema: {
  5520. $ref: "#/definitions/FetchAll"
  5521. }
  5522. }
  5523. }
  5524. },
  5525. post: {
  5526. tags: [
  5527. "workflow"
  5528. ],
  5529. summary: "Create with properties in request",
  5530. operationId: "createProgramWorkflow",
  5531. consumes: [
  5532. "application/json"
  5533. ],
  5534. produces: [
  5535. "application/json"
  5536. ],
  5537. parameters: [
  5538. {
  5539. in: "body",
  5540. name: "resource",
  5541. description: "Resource to create",
  5542. required: true,
  5543. schema: {
  5544. $ref: "#/definitions/WorkflowCreate"
  5545. }
  5546. }
  5547. ],
  5548. responses: {
  5549. 201: {
  5550. description: "workflow response"
  5551. },
  5552. 401: {
  5553. description: "User not logged in"
  5554. }
  5555. }
  5556. }
  5557. },
  5558. /workflow/{uuid}: {
  5559. get: {
  5560. tags: [
  5561. "workflow"
  5562. ],
  5563. summary: "Fetch by uuid",
  5564. operationId: "getProgramWorkflow",
  5565. consumes: [
  5566. "application/json"
  5567. ],
  5568. produces: [
  5569. "application/json"
  5570. ],
  5571. parameters: [
  5572. {
  5573. name: "v",
  5574. in: "query",
  5575. description: "The representation to return (ref, default, full or custom)",
  5576. required: false,
  5577. type: "string",
  5578. enum: [
  5579. "ref",
  5580. "default",
  5581. "full",
  5582. "custom"
  5583. ]
  5584. },
  5585. {
  5586. name: "uuid",
  5587. in: "path",
  5588. description: "uuid to filter by",
  5589. required: true,
  5590. type: "string"
  5591. }
  5592. ],
  5593. responses: {
  5594. 200: {
  5595. description: "workflow response",
  5596. schema: {
  5597. $ref: "#/definitions/WorkflowGet"
  5598. }
  5599. },
  5600. 401: {
  5601. description: "User not logged in"
  5602. },
  5603. 404: {
  5604. description: "Resource with given uuid doesn't exist"
  5605. }
  5606. }
  5607. },
  5608. post: {
  5609. tags: [
  5610. "workflow"
  5611. ],
  5612. summary: "Edit with given uuid, only modifying properties in request",
  5613. operationId: "updateProgramWorkflow",
  5614. consumes: [
  5615. "application/json"
  5616. ],
  5617. produces: [
  5618. "application/json"
  5619. ],
  5620. parameters: [
  5621. {
  5622. name: "uuid",
  5623. in: "path",
  5624. description: "uuid of resource to update",
  5625. required: true,
  5626. type: "string"
  5627. },
  5628. {
  5629. in: "body",
  5630. name: "resource",
  5631. description: "Resource properties to update",
  5632. required: true,
  5633. schema: {
  5634. $ref: "#/definitions/WorkflowUpdate"
  5635. }
  5636. }
  5637. ],
  5638. responses: {
  5639. 201: {
  5640. description: "workflow response"
  5641. },
  5642. 401: {
  5643. description: "User not logged in"
  5644. }
  5645. }
  5646. },
  5647. delete: {
  5648. tags: [
  5649. "workflow"
  5650. ],
  5651. summary: "Delete or purge resource by uuid",
  5652. description: "The resource will be voided/retired unless purge = 'true'",
  5653. operationId: "deleteProgramWorkflow",
  5654. consumes: [
  5655. "application/json"
  5656. ],
  5657. produces: [
  5658. "application/json"
  5659. ],
  5660. parameters: [
  5661. {
  5662. name: "uuid",
  5663. in: "path",
  5664. description: "uuid to delete",
  5665. required: true,
  5666. type: "string"
  5667. },
  5668. {
  5669. name: "purge",
  5670. in: "query",
  5671. required: false,
  5672. type: "boolean"
  5673. }
  5674. ],
  5675. responses: {
  5676. 204: {
  5677. description: "Delete successful"
  5678. },
  5679. 401: {
  5680. description: "User not logged in"
  5681. },
  5682. 404: {
  5683. description: "Resource with given uuid doesn't exist"
  5684. }
  5685. }
  5686. }
  5687. },
  5688. /orderset: {
  5689. get: {
  5690. tags: [
  5691. "orderset"
  5692. ],
  5693. summary: "Fetch all non-retired orderset resources or perform search",
  5694. description: "All search parameters are optional",
  5695. operationId: "getAllOrderSets",
  5696. consumes: [
  5697. "application/json"
  5698. ],
  5699. produces: [
  5700. "application/json"
  5701. ],
  5702. parameters: [
  5703. {
  5704. name: "limit",
  5705. in: "query",
  5706. description: "The number of results to return",
  5707. required: false,
  5708. type: "integer"
  5709. },
  5710. {
  5711. name: "startIndex",
  5712. in: "query",
  5713. description: "The offset at which to start",
  5714. required: false,
  5715. type: "integer"
  5716. },
  5717. {
  5718. name: "v",
  5719. in: "query",
  5720. description: "The representation to return (ref, default, full or custom)",
  5721. required: false,
  5722. type: "string",
  5723. enum: [
  5724. "ref",
  5725. "default",
  5726. "full",
  5727. "custom"
  5728. ]
  5729. },
  5730. {
  5731. name: "q",
  5732. in: "query",
  5733. description: "The search query",
  5734. required: false,
  5735. type: "string"
  5736. }
  5737. ],
  5738. responses: {
  5739. 200: {
  5740. description: "orderset response",
  5741. schema: {
  5742. $ref: "#/definitions/FetchAll"
  5743. }
  5744. },
  5745. 401: {
  5746. description: "User not logged in"
  5747. }
  5748. }
  5749. },
  5750. post: {
  5751. tags: [
  5752. "orderset"
  5753. ],
  5754. summary: "Create with properties in request",
  5755. operationId: "createOrderSet",
  5756. consumes: [
  5757. "application/json"
  5758. ],
  5759. produces: [
  5760. "application/json"
  5761. ],
  5762. parameters: [
  5763. {
  5764. in: "body",
  5765. name: "resource",
  5766. description: "Resource to create",
  5767. required: true,
  5768. schema: {
  5769. $ref: "#/definitions/OrdersetCreate"
  5770. }
  5771. }
  5772. ],
  5773. responses: {
  5774. 201: {
  5775. description: "orderset response"
  5776. },
  5777. 401: {
  5778. description: "User not logged in"
  5779. }
  5780. }
  5781. }
  5782. },
  5783. /orderset/{uuid}: {
  5784. get: {
  5785. tags: [
  5786. "orderset"
  5787. ],
  5788. summary: "Fetch by uuid",
  5789. operationId: "getOrderSet",
  5790. consumes: [
  5791. "application/json"
  5792. ],
  5793. produces: [
  5794. "application/json"
  5795. ],
  5796. parameters: [
  5797. {
  5798. name: "v",
  5799. in: "query",
  5800. description: "The representation to return (ref, default, full or custom)",
  5801. required: false,
  5802. type: "string",
  5803. enum: [
  5804. "ref",
  5805. "default",
  5806. "full",
  5807. "custom"
  5808. ]
  5809. },
  5810. {
  5811. name: "uuid",
  5812. in: "path",
  5813. description: "uuid to filter by",
  5814. required: true,
  5815. type: "string"
  5816. }
  5817. ],
  5818. responses: {
  5819. 200: {
  5820. description: "orderset response",
  5821. schema: {
  5822. $ref: "#/definitions/OrdersetGet"
  5823. }
  5824. },
  5825. 401: {
  5826. description: "User not logged in"
  5827. },
  5828. 404: {
  5829. description: "Resource with given uuid doesn't exist"
  5830. }
  5831. }
  5832. },
  5833. post: {
  5834. tags: [
  5835. "orderset"
  5836. ],
  5837. summary: "Edit with given uuid, only modifying properties in request",
  5838. operationId: "updateOrderSet",
  5839. consumes: [
  5840. "application/json"
  5841. ],
  5842. produces: [
  5843. "application/json"
  5844. ],
  5845. parameters: [
  5846. {
  5847. name: "uuid",
  5848. in: "path",
  5849. description: "uuid of resource to update",
  5850. required: true,
  5851. type: "string"
  5852. },
  5853. {
  5854. in: "body",
  5855. name: "resource",
  5856. description: "Resource properties to update",
  5857. required: true,
  5858. schema: {
  5859. $ref: "#/definitions/OrdersetUpdate"
  5860. }
  5861. }
  5862. ],
  5863. responses: {
  5864. 201: {
  5865. description: "orderset response"
  5866. },
  5867. 401: {
  5868. description: "User not logged in"
  5869. }
  5870. }
  5871. },
  5872. delete: {
  5873. tags: [
  5874. "orderset"
  5875. ],
  5876. summary: "Delete or purge resource by uuid",
  5877. description: "The resource will be voided/retired unless purge = 'true'",
  5878. operationId: "deleteOrderSet",
  5879. consumes: [
  5880. "application/json"
  5881. ],
  5882. produces: [
  5883. "application/json"
  5884. ],
  5885. parameters: [
  5886. {
  5887. name: "uuid",
  5888. in: "path",
  5889. description: "uuid to delete",
  5890. required: true,
  5891. type: "string"
  5892. },
  5893. {
  5894. name: "purge",
  5895. in: "query",
  5896. required: false,
  5897. type: "boolean"
  5898. }
  5899. ],
  5900. responses: {
  5901. 204: {
  5902. description: "Delete successful"
  5903. },
  5904. 401: {
  5905. description: "User not logged in"
  5906. },
  5907. 404: {
  5908. description: "Resource with given uuid doesn't exist"
  5909. }
  5910. }
  5911. }
  5912. },
  5913. /location: {
  5914. get: {
  5915. tags: [
  5916. "location"
  5917. ],
  5918. summary: "Fetch all non-retired location resources or perform search",
  5919. description: "All search parameters are optional",
  5920. operationId: "getAllLocations",
  5921. consumes: [
  5922. "application/json"
  5923. ],
  5924. produces: [
  5925. "application/json"
  5926. ],
  5927. parameters: [
  5928. {
  5929. name: "limit",
  5930. in: "query",
  5931. description: "The number of results to return",
  5932. required: false,
  5933. type: "integer"
  5934. },
  5935. {
  5936. name: "startIndex",
  5937. in: "query",
  5938. description: "The offset at which to start",
  5939. required: false,
  5940. type: "integer"
  5941. },
  5942. {
  5943. name: "v",
  5944. in: "query",
  5945. description: "The representation to return (ref, default, full or custom)",
  5946. required: false,
  5947. type: "string",
  5948. enum: [
  5949. "ref",
  5950. "default",
  5951. "full",
  5952. "custom"
  5953. ]
  5954. },
  5955. {
  5956. name: "q",
  5957. in: "query",
  5958. description: "The search query",
  5959. required: false,
  5960. type: "string"
  5961. },
  5962. {
  5963. name: "tag",
  5964. in: "query",
  5965. required: false,
  5966. type: "string"
  5967. }
  5968. ],
  5969. responses: {
  5970. 200: {
  5971. description: "location response",
  5972. schema: {
  5973. $ref: "#/definitions/FetchAll"
  5974. }
  5975. },
  5976. 401: {
  5977. description: "User not logged in"
  5978. }
  5979. }
  5980. },
  5981. post: {
  5982. tags: [
  5983. "location"
  5984. ],
  5985. summary: "Create with properties in request",
  5986. operationId: "createLocation",
  5987. consumes: [
  5988. "application/json"
  5989. ],
  5990. produces: [
  5991. "application/json"
  5992. ],
  5993. parameters: [
  5994. {
  5995. in: "body",
  5996. name: "resource",
  5997. description: "Resource to create",
  5998. required: true,
  5999. schema: {
  6000. $ref: "#/definitions/LocationCreate"
  6001. }
  6002. }
  6003. ],
  6004. responses: {
  6005. 201: {
  6006. description: "location response"
  6007. },
  6008. 401: {
  6009. description: "User not logged in"
  6010. }
  6011. }
  6012. }
  6013. },
  6014. /location/{uuid}: {
  6015. get: {
  6016. tags: [
  6017. "location"
  6018. ],
  6019. summary: "Fetch by uuid",
  6020. operationId: "getLocation",
  6021. consumes: [
  6022. "application/json"
  6023. ],
  6024. produces: [
  6025. "application/json"
  6026. ],
  6027. parameters: [
  6028. {
  6029. name: "v",
  6030. in: "query",
  6031. description: "The representation to return (ref, default, full or custom)",
  6032. required: false,
  6033. type: "string",
  6034. enum: [
  6035. "ref",
  6036. "default",
  6037. "full",
  6038. "custom"
  6039. ]
  6040. },
  6041. {
  6042. name: "uuid",
  6043. in: "path",
  6044. description: "uuid to filter by",
  6045. required: true,
  6046. type: "string"
  6047. }
  6048. ],
  6049. responses: {
  6050. 200: {
  6051. description: "location response",
  6052. schema: {
  6053. $ref: "#/definitions/LocationGet"
  6054. }
  6055. },
  6056. 401: {
  6057. description: "User not logged in"
  6058. },
  6059. 404: {
  6060. description: "Resource with given uuid doesn't exist"
  6061. }
  6062. }
  6063. },
  6064. post: {
  6065. tags: [
  6066. "location"
  6067. ],
  6068. summary: "Edit with given uuid, only modifying properties in request",
  6069. operationId: "updateLocation",
  6070. consumes: [
  6071. "application/json"
  6072. ],
  6073. produces: [
  6074. "application/json"
  6075. ],
  6076. parameters: [
  6077. {
  6078. name: "uuid",
  6079. in: "path",
  6080. description: "uuid of resource to update",
  6081. required: true,
  6082. type: "string"
  6083. },
  6084. {
  6085. in: "body",
  6086. name: "resource",
  6087. description: "Resource properties to update",
  6088. required: true,
  6089. schema: {
  6090. $ref: "#/definitions/LocationUpdate"
  6091. }
  6092. }
  6093. ],
  6094. responses: {
  6095. 201: {
  6096. description: "location response"
  6097. },
  6098. 401: {
  6099. description: "User not logged in"
  6100. }
  6101. }
  6102. },
  6103. delete: {
  6104. tags: [
  6105. "location"
  6106. ],
  6107. summary: "Delete or purge resource by uuid",
  6108. description: "The resource will be voided/retired unless purge = 'true'",
  6109. operationId: "deleteLocation",
  6110. consumes: [
  6111. "application/json"
  6112. ],
  6113. produces: [
  6114. "application/json"
  6115. ],
  6116. parameters: [
  6117. {
  6118. name: "uuid",
  6119. in: "path",
  6120. description: "uuid to delete",
  6121. required: true,
  6122. type: "string"
  6123. },
  6124. {
  6125. name: "purge",
  6126. in: "query",
  6127. required: false,
  6128. type: "boolean"
  6129. }
  6130. ],
  6131. responses: {
  6132. 204: {
  6133. description: "Delete successful"
  6134. },
  6135. 401: {
  6136. description: "User not logged in"
  6137. },
  6138. 404: {
  6139. description: "Resource with given uuid doesn't exist"
  6140. }
  6141. }
  6142. }
  6143. },
  6144. /providerattributetype: {
  6145. get: {
  6146. tags: [
  6147. "providerattributetype"
  6148. ],
  6149. summary: "Fetch all non-retired providerattributetype resources or perform search",
  6150. description: "All search parameters are optional",
  6151. operationId: "getAllProviderAttributeTypes",
  6152. consumes: [
  6153. "application/json"
  6154. ],
  6155. produces: [
  6156. "application/json"
  6157. ],
  6158. parameters: [
  6159. {
  6160. name: "limit",
  6161. in: "query",
  6162. description: "The number of results to return",
  6163. required: false,
  6164. type: "integer"
  6165. },
  6166. {
  6167. name: "startIndex",
  6168. in: "query",
  6169. description: "The offset at which to start",
  6170. required: false,
  6171. type: "integer"
  6172. },
  6173. {
  6174. name: "v",
  6175. in: "query",
  6176. description: "The representation to return (ref, default, full or custom)",
  6177. required: false,
  6178. type: "string",
  6179. enum: [
  6180. "ref",
  6181. "default",
  6182. "full",
  6183. "custom"
  6184. ]
  6185. },
  6186. {
  6187. name: "q",
  6188. in: "query",
  6189. description: "The search query",
  6190. required: false,
  6191. type: "string"
  6192. }
  6193. ],
  6194. responses: {
  6195. 200: {
  6196. description: "providerattributetype response",
  6197. schema: {
  6198. $ref: "#/definitions/FetchAll"
  6199. }
  6200. },
  6201. 401: {
  6202. description: "User not logged in"
  6203. }
  6204. }
  6205. },
  6206. post: {
  6207. tags: [
  6208. "providerattributetype"
  6209. ],
  6210. summary: "Create with properties in request",
  6211. operationId: "createProviderAttributeType",
  6212. consumes: [
  6213. "application/json"
  6214. ],
  6215. produces: [
  6216. "application/json"
  6217. ],
  6218. parameters: [
  6219. {
  6220. in: "body",
  6221. name: "resource",
  6222. description: "Resource to create",
  6223. required: true,
  6224. schema: {
  6225. $ref: "#/definitions/ProviderattributetypeCreate"
  6226. }
  6227. }
  6228. ],
  6229. responses: {
  6230. 201: {
  6231. description: "providerattributetype response"
  6232. },
  6233. 401: {
  6234. description: "User not logged in"
  6235. }
  6236. }
  6237. }
  6238. },
  6239. /providerattributetype/{uuid}: {
  6240. get: {
  6241. tags: [
  6242. "providerattributetype"
  6243. ],
  6244. summary: "Fetch by uuid",
  6245. operationId: "getProviderAttributeType",
  6246. consumes: [
  6247. "application/json"
  6248. ],
  6249. produces: [
  6250. "application/json"
  6251. ],
  6252. parameters: [
  6253. {
  6254. name: "v",
  6255. in: "query",
  6256. description: "The representation to return (ref, default, full or custom)",
  6257. required: false,
  6258. type: "string",
  6259. enum: [
  6260. "ref",
  6261. "default",
  6262. "full",
  6263. "custom"
  6264. ]
  6265. },
  6266. {
  6267. name: "uuid",
  6268. in: "path",
  6269. description: "uuid to filter by",
  6270. required: true,
  6271. type: "string"
  6272. }
  6273. ],
  6274. responses: {
  6275. 200: {
  6276. description: "providerattributetype response",
  6277. schema: {
  6278. $ref: "#/definitions/ProviderattributetypeGet"
  6279. }
  6280. },
  6281. 401: {
  6282. description: "User not logged in"
  6283. },
  6284. 404: {
  6285. description: "Resource with given uuid doesn't exist"
  6286. }
  6287. }
  6288. },
  6289. post: {
  6290. tags: [
  6291. "providerattributetype"
  6292. ],
  6293. summary: "Edit with given uuid, only modifying properties in request",
  6294. operationId: "updateProviderAttributeType",
  6295. consumes: [
  6296. "application/json"
  6297. ],
  6298. produces: [
  6299. "application/json"
  6300. ],
  6301. parameters: [
  6302. {
  6303. name: "uuid",
  6304. in: "path",
  6305. description: "uuid of resource to update",
  6306. required: true,
  6307. type: "string"
  6308. },
  6309. {
  6310. in: "body",
  6311. name: "resource",
  6312. description: "Resource properties to update",
  6313. required: true,
  6314. schema: {
  6315. $ref: "#/definitions/ProviderattributetypeUpdate"
  6316. }
  6317. }
  6318. ],
  6319. responses: {
  6320. 201: {
  6321. description: "providerattributetype response"
  6322. },
  6323. 401: {
  6324. description: "User not logged in"
  6325. }
  6326. }
  6327. },
  6328. delete: {
  6329. tags: [
  6330. "providerattributetype"
  6331. ],
  6332. summary: "Delete or purge resource by uuid",
  6333. description: "The resource will be voided/retired unless purge = 'true'",
  6334. operationId: "deleteProviderAttributeType",
  6335. consumes: [
  6336. "application/json"
  6337. ],
  6338. produces: [
  6339. "application/json"
  6340. ],
  6341. parameters: [
  6342. {
  6343. name: "uuid",
  6344. in: "path",
  6345. description: "uuid to delete",
  6346. required: true,
  6347. type: "string"
  6348. },
  6349. {
  6350. name: "purge",
  6351. in: "query",
  6352. required: false,
  6353. type: "boolean"
  6354. }
  6355. ],
  6356. responses: {
  6357. 204: {
  6358. description: "Delete successful"
  6359. },
  6360. 401: {
  6361. description: "User not logged in"
  6362. },
  6363. 404: {
  6364. description: "Resource with given uuid doesn't exist"
  6365. }
  6366. }
  6367. }
  6368. },
  6369. /programenrollment: {
  6370. get: {
  6371. tags: [
  6372. "programenrollment"
  6373. ],
  6374. summary: "Search for programenrollment",
  6375. description: "At least one search parameter must be specified",
  6376. operationId: "getAllProgramEnrollments",
  6377. produces: [
  6378. "application/json",
  6379. "application/xml"
  6380. ],
  6381. parameters: [
  6382. {
  6383. name: "limit",
  6384. in: "query",
  6385. description: "The number of results to return",
  6386. required: false,
  6387. type: "integer"
  6388. },
  6389. {
  6390. name: "startIndex",
  6391. in: "query",
  6392. description: "The offset at which to start",
  6393. required: false,
  6394. type: "integer"
  6395. },
  6396. {
  6397. name: "v",
  6398. in: "query",
  6399. description: "The representation to return (ref, default, full or custom)",
  6400. required: false,
  6401. type: "string",
  6402. enum: [
  6403. "ref",
  6404. "default",
  6405. "full",
  6406. "custom"
  6407. ]
  6408. },
  6409. {
  6410. name: "q",
  6411. in: "query",
  6412. description: "The search query",
  6413. required: true,
  6414. type: "string"
  6415. }
  6416. ],
  6417. responses: {
  6418. 200: {
  6419. description: "programenrollment response",
  6420. schema: {
  6421. $ref: "#/definitions/FetchAll"
  6422. }
  6423. }
  6424. }
  6425. },
  6426. post: {
  6427. tags: [
  6428. "programenrollment"
  6429. ],
  6430. summary: "Create with properties in request",
  6431. operationId: "createProgramEnrollment",
  6432. consumes: [
  6433. "application/json"
  6434. ],
  6435. produces: [
  6436. "application/json"
  6437. ],
  6438. parameters: [
  6439. {
  6440. in: "body",
  6441. name: "resource",
  6442. description: "Resource to create",
  6443. required: true,
  6444. schema: {
  6445. $ref: "#/definitions/ProgramenrollmentCreate"
  6446. }
  6447. }
  6448. ],
  6449. responses: {
  6450. 201: {
  6451. description: "programenrollment response"
  6452. },
  6453. 401: {
  6454. description: "User not logged in"
  6455. }
  6456. }
  6457. }
  6458. },
  6459. /programenrollment/{uuid}: {
  6460. get: {
  6461. tags: [
  6462. "programenrollment"
  6463. ],
  6464. summary: "Fetch by uuid",
  6465. operationId: "getProgramEnrollment",
  6466. consumes: [
  6467. "application/json"
  6468. ],
  6469. produces: [
  6470. "application/json"
  6471. ],
  6472. parameters: [
  6473. {
  6474. name: "v",
  6475. in: "query",
  6476. description: "The representation to return (ref, default, full or custom)",
  6477. required: false,
  6478. type: "string",
  6479. enum: [
  6480. "ref",
  6481. "default",
  6482. "full",
  6483. "custom"
  6484. ]
  6485. },
  6486. {
  6487. name: "uuid",
  6488. in: "path",
  6489. description: "uuid to filter by",
  6490. required: true,
  6491. type: "string"
  6492. }
  6493. ],
  6494. responses: {
  6495. 200: {
  6496. description: "programenrollment response",
  6497. schema: {
  6498. $ref: "#/definitions/ProgramenrollmentGet"
  6499. }
  6500. },
  6501. 401: {
  6502. description: "User not logged in"
  6503. },
  6504. 404: {
  6505. description: "Resource with given uuid doesn't exist"
  6506. }
  6507. }
  6508. },
  6509. post: {
  6510. tags: [
  6511. "programenrollment"
  6512. ],
  6513. summary: "Edit with given uuid, only modifying properties in request",
  6514. operationId: "updateProgramEnrollment",
  6515. consumes: [
  6516. "application/json"
  6517. ],
  6518. produces: [
  6519. "application/json"
  6520. ],
  6521. parameters: [
  6522. {
  6523. name: "uuid",
  6524. in: "path",
  6525. description: "uuid of resource to update",
  6526. required: true,
  6527. type: "string"
  6528. },
  6529. {
  6530. in: "body",
  6531. name: "resource",
  6532. description: "Resource properties to update",
  6533. required: true,
  6534. schema: {
  6535. $ref: "#/definitions/ProgramenrollmentUpdate"
  6536. }
  6537. }
  6538. ],
  6539. responses: {
  6540. 201: {
  6541. description: "programenrollment response"
  6542. },
  6543. 401: {
  6544. description: "User not logged in"
  6545. }
  6546. }
  6547. },
  6548. delete: {
  6549. tags: [
  6550. "programenrollment"
  6551. ],
  6552. summary: "Delete or purge resource by uuid",
  6553. description: "The resource will be voided/retired unless purge = 'true'",
  6554. operationId: "deleteProgramEnrollment",
  6555. consumes: [
  6556. "application/json"
  6557. ],
  6558. produces: [
  6559. "application/json"
  6560. ],
  6561. parameters: [
  6562. {
  6563. name: "uuid",
  6564. in: "path",
  6565. description: "uuid to delete",
  6566. required: true,
  6567. type: "string"
  6568. },
  6569. {
  6570. name: "purge",
  6571. in: "query",
  6572. required: false,
  6573. type: "boolean"
  6574. }
  6575. ],
  6576. responses: {
  6577. 204: {
  6578. description: "Delete successful"
  6579. },
  6580. 401: {
  6581. description: "User not logged in"
  6582. },
  6583. 404: {
  6584. description: "Resource with given uuid doesn't exist"
  6585. }
  6586. }
  6587. }
  6588. },
  6589. /encounterrole: {
  6590. get: {
  6591. tags: [
  6592. "encounterrole"
  6593. ],
  6594. summary: "Fetch all non-retired encounterrole resources or perform search",
  6595. description: "All search parameters are optional",
  6596. operationId: "getAllEncounterRoles",
  6597. consumes: [
  6598. "application/json"
  6599. ],
  6600. produces: [
  6601. "application/json"
  6602. ],
  6603. parameters: [
  6604. {
  6605. name: "limit",
  6606. in: "query",
  6607. description: "The number of results to return",
  6608. required: false,
  6609. type: "integer"
  6610. },
  6611. {
  6612. name: "startIndex",
  6613. in: "query",
  6614. description: "The offset at which to start",
  6615. required: false,
  6616. type: "integer"
  6617. },
  6618. {
  6619. name: "v",
  6620. in: "query",
  6621. description: "The representation to return (ref, default, full or custom)",
  6622. required: false,
  6623. type: "string",
  6624. enum: [
  6625. "ref",
  6626. "default",
  6627. "full",
  6628. "custom"
  6629. ]
  6630. },
  6631. {
  6632. name: "q",
  6633. in: "query",
  6634. description: "The search query",
  6635. required: false,
  6636. type: "string"
  6637. }
  6638. ],
  6639. responses: {
  6640. 200: {
  6641. description: "encounterrole response",
  6642. schema: {
  6643. $ref: "#/definitions/FetchAll"
  6644. }
  6645. },
  6646. 401: {
  6647. description: "User not logged in"
  6648. }
  6649. }
  6650. },
  6651. post: {
  6652. tags: [
  6653. "encounterrole"
  6654. ],
  6655. summary: "Create with properties in request",
  6656. operationId: "createEncounterRole",
  6657. consumes: [
  6658. "application/json"
  6659. ],
  6660. produces: [
  6661. "application/json"
  6662. ],
  6663. parameters: [
  6664. {
  6665. in: "body",
  6666. name: "resource",
  6667. description: "Resource to create",
  6668. required: true,
  6669. schema: {
  6670. $ref: "#/definitions/EncounterroleCreate"
  6671. }
  6672. }
  6673. ],
  6674. responses: {
  6675. 201: {
  6676. description: "encounterrole response"
  6677. },
  6678. 401: {
  6679. description: "User not logged in"
  6680. }
  6681. }
  6682. }
  6683. },
  6684. /encounterrole/{uuid}: {
  6685. get: {
  6686. tags: [
  6687. "encounterrole"
  6688. ],
  6689. summary: "Fetch by uuid",
  6690. operationId: "getEncounterRole",
  6691. consumes: [
  6692. "application/json"
  6693. ],
  6694. produces: [
  6695. "application/json"
  6696. ],
  6697. parameters: [
  6698. {
  6699. name: "v",
  6700. in: "query",
  6701. description: "The representation to return (ref, default, full or custom)",
  6702. required: false,
  6703. type: "string",
  6704. enum: [
  6705. "ref",
  6706. "default",
  6707. "full",
  6708. "custom"
  6709. ]
  6710. },
  6711. {
  6712. name: "uuid",
  6713. in: "path",
  6714. description: "uuid to filter by",
  6715. required: true,
  6716. type: "string"
  6717. }
  6718. ],
  6719. responses: {
  6720. 200: {
  6721. description: "encounterrole response",
  6722. schema: {
  6723. $ref: "#/definitions/EncounterroleGet"
  6724. }
  6725. },
  6726. 401: {
  6727. description: "User not logged in"
  6728. },
  6729. 404: {
  6730. description: "Resource with given uuid doesn't exist"
  6731. }
  6732. }
  6733. },
  6734. post: {
  6735. tags: [
  6736. "encounterrole"
  6737. ],
  6738. summary: "Edit with given uuid, only modifying properties in request",
  6739. operationId: "updateEncounterRole",
  6740. consumes: [
  6741. "application/json"
  6742. ],
  6743. produces: [
  6744. "application/json"
  6745. ],
  6746. parameters: [
  6747. {
  6748. name: "uuid",
  6749. in: "path",
  6750. description: "uuid of resource to update",
  6751. required: true,
  6752. type: "string"
  6753. },
  6754. {
  6755. in: "body",
  6756. name: "resource",
  6757. description: "Resource properties to update",
  6758. required: true,
  6759. schema: {
  6760. $ref: "#/definitions/EncounterroleUpdate"
  6761. }
  6762. }
  6763. ],
  6764. responses: {
  6765. 201: {
  6766. description: "encounterrole response"
  6767. },
  6768. 401: {
  6769. description: "User not logged in"
  6770. }
  6771. }
  6772. },
  6773. delete: {
  6774. tags: [
  6775. "encounterrole"
  6776. ],
  6777. summary: "Delete or purge resource by uuid",
  6778. description: "The resource will be voided/retired unless purge = 'true'",
  6779. operationId: "deleteEncounterRole",
  6780. consumes: [
  6781. "application/json"
  6782. ],
  6783. produces: [
  6784. "application/json"
  6785. ],
  6786. parameters: [
  6787. {
  6788. name: "uuid",
  6789. in: "path",
  6790. description: "uuid to delete",
  6791. required: true,
  6792. type: "string"
  6793. },
  6794. {
  6795. name: "purge",
  6796. in: "query",
  6797. required: false,
  6798. type: "boolean"
  6799. }
  6800. ],
  6801. responses: {
  6802. 204: {
  6803. description: "Delete successful"
  6804. },
  6805. 401: {
  6806. description: "User not logged in"
  6807. },
  6808. 404: {
  6809. description: "Resource with given uuid doesn't exist"
  6810. }
  6811. }
  6812. }
  6813. },
  6814. /visit: {
  6815. get: {
  6816. tags: [
  6817. "visit"
  6818. ],
  6819. summary: "Fetch all non-retired visit resources or perform search",
  6820. description: "All search parameters are optional",
  6821. operationId: "getAllVisits",
  6822. consumes: [
  6823. "application/json"
  6824. ],
  6825. produces: [
  6826. "application/json"
  6827. ],
  6828. parameters: [
  6829. {
  6830. name: "limit",
  6831. in: "query",
  6832. description: "The number of results to return",
  6833. required: false,
  6834. type: "integer"
  6835. },
  6836. {
  6837. name: "startIndex",
  6838. in: "query",
  6839. description: "The offset at which to start",
  6840. required: false,
  6841. type: "integer"
  6842. },
  6843. {
  6844. name: "v",
  6845. in: "query",
  6846. description: "The representation to return (ref, default, full or custom)",
  6847. required: false,
  6848. type: "string",
  6849. enum: [
  6850. "ref",
  6851. "default",
  6852. "full",
  6853. "custom"
  6854. ]
  6855. },
  6856. {
  6857. name: "q",
  6858. in: "query",
  6859. description: "The search query",
  6860. required: false,
  6861. type: "string"
  6862. }
  6863. ],
  6864. responses: {
  6865. 200: {
  6866. description: "visit response",
  6867. schema: {
  6868. $ref: "#/definitions/FetchAll"
  6869. }
  6870. },
  6871. 401: {
  6872. description: "User not logged in"
  6873. }
  6874. }
  6875. },
  6876. post: {
  6877. tags: [
  6878. "visit"
  6879. ],
  6880. summary: "Create with properties in request",
  6881. operationId: "createVisit",
  6882. consumes: [
  6883. "application/json"
  6884. ],
  6885. produces: [
  6886. "application/json"
  6887. ],
  6888. parameters: [
  6889. {
  6890. in: "body",
  6891. name: "resource",
  6892. description: "Resource to create",
  6893. required: true,
  6894. schema: {
  6895. $ref: "#/definitions/VisitCreate"
  6896. }
  6897. }
  6898. ],
  6899. responses: {
  6900. 201: {
  6901. description: "visit response"
  6902. },
  6903. 401: {
  6904. description: "User not logged in"
  6905. }
  6906. }
  6907. }
  6908. },
  6909. /visit/{uuid}: {
  6910. get: {
  6911. tags: [
  6912. "visit"
  6913. ],
  6914. summary: "Fetch by uuid",
  6915. operationId: "getVisit",
  6916. consumes: [
  6917. "application/json"
  6918. ],
  6919. produces: [
  6920. "application/json"
  6921. ],
  6922. parameters: [
  6923. {
  6924. name: "v",
  6925. in: "query",
  6926. description: "The representation to return (ref, default, full or custom)",
  6927. required: false,
  6928. type: "string",
  6929. enum: [
  6930. "ref",
  6931. "default",
  6932. "full",
  6933. "custom"
  6934. ]
  6935. },
  6936. {
  6937. name: "uuid",
  6938. in: "path",
  6939. description: "uuid to filter by",
  6940. required: true,
  6941. type: "string"
  6942. }
  6943. ],
  6944. responses: {
  6945. 200: {
  6946. description: "visit response",
  6947. schema: {
  6948. $ref: "#/definitions/VisitGet"
  6949. }
  6950. },
  6951. 401: {
  6952. description: "User not logged in"
  6953. },
  6954. 404: {
  6955. description: "Resource with given uuid doesn't exist"
  6956. }
  6957. }
  6958. },
  6959. post: {
  6960. tags: [
  6961. "visit"
  6962. ],
  6963. summary: "Edit with given uuid, only modifying properties in request",
  6964. operationId: "updateVisit",
  6965. consumes: [
  6966. "application/json"
  6967. ],
  6968. produces: [
  6969. "application/json"
  6970. ],
  6971. parameters: [
  6972. {
  6973. name: "uuid",
  6974. in: "path",
  6975. description: "uuid of resource to update",
  6976. required: true,
  6977. type: "string"
  6978. },
  6979. {
  6980. in: "body",
  6981. name: "resource",
  6982. description: "Resource properties to update",
  6983. required: true,
  6984. schema: {
  6985. $ref: "#/definitions/VisitUpdate"
  6986. }
  6987. }
  6988. ],
  6989. responses: {
  6990. 201: {
  6991. description: "visit response"
  6992. },
  6993. 401: {
  6994. description: "User not logged in"
  6995. }
  6996. }
  6997. },
  6998. delete: {
  6999. tags: [
  7000. "visit"
  7001. ],
  7002. summary: "Delete or purge resource by uuid",
  7003. description: "The resource will be voided/retired unless purge = 'true'",
  7004. operationId: "deleteVisit",
  7005. consumes: [
  7006. "application/json"
  7007. ],
  7008. produces: [
  7009. "application/json"
  7010. ],
  7011. parameters: [
  7012. {
  7013. name: "uuid",
  7014. in: "path",
  7015. description: "uuid to delete",
  7016. required: true,
  7017. type: "string"
  7018. },
  7019. {
  7020. name: "purge",
  7021. in: "query",
  7022. required: false,
  7023. type: "boolean"
  7024. }
  7025. ],
  7026. responses: {
  7027. 204: {
  7028. description: "Delete successful"
  7029. },
  7030. 401: {
  7031. description: "User not logged in"
  7032. },
  7033. 404: {
  7034. description: "Resource with given uuid doesn't exist"
  7035. }
  7036. }
  7037. }
  7038. },
  7039. /user: {
  7040. get: {
  7041. tags: [
  7042. "user"
  7043. ],
  7044. summary: "Fetch all non-retired user resources or perform search",
  7045. description: "All search parameters are optional",
  7046. operationId: "getAllUsers",
  7047. consumes: [
  7048. "application/json"
  7049. ],
  7050. produces: [
  7051. "application/json"
  7052. ],
  7053. parameters: [
  7054. {
  7055. name: "limit",
  7056. in: "query",
  7057. description: "The number of results to return",
  7058. required: false,
  7059. type: "integer"
  7060. },
  7061. {
  7062. name: "startIndex",
  7063. in: "query",
  7064. description: "The offset at which to start",
  7065. required: false,
  7066. type: "integer"
  7067. },
  7068. {
  7069. name: "v",
  7070. in: "query",
  7071. description: "The representation to return (ref, default, full or custom)",
  7072. required: false,
  7073. type: "string",
  7074. enum: [
  7075. "ref",
  7076. "default",
  7077. "full",
  7078. "custom"
  7079. ]
  7080. },
  7081. {
  7082. name: "q",
  7083. in: "query",
  7084. description: "The search query",
  7085. required: false,
  7086. type: "string"
  7087. },
  7088. {
  7089. name: "username",
  7090. in: "query",
  7091. required: false,
  7092. type: "string"
  7093. }
  7094. ],
  7095. responses: {
  7096. 200: {
  7097. description: "user response",
  7098. schema: {
  7099. $ref: "#/definitions/FetchAll"
  7100. }
  7101. },
  7102. 401: {
  7103. description: "User not logged in"
  7104. }
  7105. }
  7106. },
  7107. post: {
  7108. tags: [
  7109. "user"
  7110. ],
  7111. summary: "Create with properties in request",
  7112. operationId: "createUser",
  7113. consumes: [
  7114. "application/json"
  7115. ],
  7116. produces: [
  7117. "application/json"
  7118. ],
  7119. parameters: [
  7120. {
  7121. in: "body",
  7122. name: "resource",
  7123. description: "Resource to create",
  7124. required: true,
  7125. schema: {
  7126. $ref: "#/definitions/UserCreate"
  7127. }
  7128. }
  7129. ],
  7130. responses: {
  7131. 201: {
  7132. description: "user response"
  7133. },
  7134. 401: {
  7135. description: "User not logged in"
  7136. }
  7137. }
  7138. }
  7139. },
  7140. /user/{uuid}: {
  7141. get: {
  7142. tags: [
  7143. "user"
  7144. ],
  7145. summary: "Fetch by uuid",
  7146. operationId: "getUser",
  7147. consumes: [
  7148. "application/json"
  7149. ],
  7150. produces: [
  7151. "application/json"
  7152. ],
  7153. parameters: [
  7154. {
  7155. name: "v",
  7156. in: "query",
  7157. description: "The representation to return (ref, default, full or custom)",
  7158. required: false,
  7159. type: "string",
  7160. enum: [
  7161. "ref",
  7162. "default",
  7163. "full",
  7164. "custom"
  7165. ]
  7166. },
  7167. {
  7168. name: "uuid",
  7169. in: "path",
  7170. description: "uuid to filter by",
  7171. required: true,
  7172. type: "string"
  7173. }
  7174. ],
  7175. responses: {
  7176. 200: {
  7177. description: "user response",
  7178. schema: {
  7179. $ref: "#/definitions/UserGet"
  7180. }
  7181. },
  7182. 401: {
  7183. description: "User not logged in"
  7184. },
  7185. 404: {
  7186. description: "Resource with given uuid doesn't exist"
  7187. }
  7188. }
  7189. },
  7190. post: {
  7191. tags: [
  7192. "user"
  7193. ],
  7194. summary: "Edit with given uuid, only modifying properties in request",
  7195. operationId: "updateUser",
  7196. consumes: [
  7197. "application/json"
  7198. ],
  7199. produces: [
  7200. "application/json"
  7201. ],
  7202. parameters: [
  7203. {
  7204. name: "uuid",
  7205. in: "path",
  7206. description: "uuid of resource to update",
  7207. required: true,
  7208. type: "string"
  7209. },
  7210. {
  7211. in: "body",
  7212. name: "resource",
  7213. description: "Resource properties to update",
  7214. required: true,
  7215. schema: {
  7216. $ref: "#/definitions/UserUpdate"
  7217. }
  7218. }
  7219. ],
  7220. responses: {
  7221. 201: {
  7222. description: "user response"
  7223. },
  7224. 401: {
  7225. description: "User not logged in"
  7226. }
  7227. }
  7228. },
  7229. delete: {
  7230. tags: [
  7231. "user"
  7232. ],
  7233. summary: "Delete or purge resource by uuid",
  7234. description: "The resource will be voided/retired unless purge = 'true'",
  7235. operationId: "deleteUser",
  7236. consumes: [
  7237. "application/json"
  7238. ],
  7239. produces: [
  7240. "application/json"
  7241. ],
  7242. parameters: [
  7243. {
  7244. name: "uuid",
  7245. in: "path",
  7246. description: "uuid to delete",
  7247. required: true,
  7248. type: "string"
  7249. },
  7250. {
  7251. name: "purge",
  7252. in: "query",
  7253. required: false,
  7254. type: "boolean"
  7255. }
  7256. ],
  7257. responses: {
  7258. 204: {
  7259. description: "Delete successful"
  7260. },
  7261. 401: {
  7262. description: "User not logged in"
  7263. },
  7264. 404: {
  7265. description: "Resource with given uuid doesn't exist"
  7266. }
  7267. }
  7268. }
  7269. },
  7270. /caresetting: {
  7271. get: {
  7272. tags: [
  7273. "caresetting"
  7274. ],
  7275. summary: "Fetch all non-retired caresetting resources or perform search",
  7276. description: "All search parameters are optional",
  7277. operationId: "getAllCareSettings",
  7278. consumes: [
  7279. "application/json"
  7280. ],
  7281. produces: [
  7282. "application/json"
  7283. ],
  7284. parameters: [
  7285. {
  7286. name: "limit",
  7287. in: "query",
  7288. description: "The number of results to return",
  7289. required: false,
  7290. type: "integer"
  7291. },
  7292. {
  7293. name: "startIndex",
  7294. in: "query",
  7295. description: "The offset at which to start",
  7296. required: false,
  7297. type: "integer"
  7298. },
  7299. {
  7300. name: "v",
  7301. in: "query",
  7302. description: "The representation to return (ref, default, full or custom)",
  7303. required: false,
  7304. type: "string",
  7305. enum: [
  7306. "ref",
  7307. "default",
  7308. "full",
  7309. "custom"
  7310. ]
  7311. },
  7312. {
  7313. name: "q",
  7314. in: "query",
  7315. description: "The search query",
  7316. required: false,
  7317. type: "string"
  7318. }
  7319. ],
  7320. responses: {
  7321. 200: {
  7322. description: "caresetting response",
  7323. schema: {
  7324. $ref: "#/definitions/FetchAll"
  7325. }
  7326. },
  7327. 401: {
  7328. description: "User not logged in"
  7329. }
  7330. }
  7331. }
  7332. },
  7333. /caresetting/{uuid}: {
  7334. get: {
  7335. tags: [
  7336. "caresetting"
  7337. ],
  7338. summary: "Fetch by uuid",
  7339. operationId: "getCareSetting",
  7340. consumes: [
  7341. "application/json"
  7342. ],
  7343. produces: [
  7344. "application/json"
  7345. ],
  7346. parameters: [
  7347. {
  7348. name: "v",
  7349. in: "query",
  7350. description: "The representation to return (ref, default, full or custom)",
  7351. required: false,
  7352. type: "string",
  7353. enum: [
  7354. "ref",
  7355. "default",
  7356. "full",
  7357. "custom"
  7358. ]
  7359. },
  7360. {
  7361. name: "uuid",
  7362. in: "path",
  7363. description: "uuid to filter by",
  7364. required: true,
  7365. type: "string"
  7366. }
  7367. ],
  7368. responses: {
  7369. 200: {
  7370. description: "caresetting response",
  7371. schema: {
  7372. $ref: "#/definitions/CaresettingGet"
  7373. }
  7374. },
  7375. 401: {
  7376. description: "User not logged in"
  7377. },
  7378. 404: {
  7379. description: "Resource with given uuid doesn't exist"
  7380. }
  7381. }
  7382. },
  7383. delete: {
  7384. tags: [
  7385. "caresetting"
  7386. ],
  7387. summary: "Delete or purge resource by uuid",
  7388. description: "The resource will be voided/retired unless purge = 'true'",
  7389. operationId: "deleteCareSetting",
  7390. consumes: [
  7391. "application/json"
  7392. ],
  7393. produces: [
  7394. "application/json"
  7395. ],
  7396. parameters: [
  7397. {
  7398. name: "uuid",
  7399. in: "path",
  7400. description: "uuid to delete",
  7401. required: true,
  7402. type: "string"
  7403. },
  7404. {
  7405. name: "purge",
  7406. in: "query",
  7407. required: false,
  7408. type: "boolean"
  7409. }
  7410. ],
  7411. responses: {
  7412. 204: {
  7413. description: "Delete successful"
  7414. },
  7415. 401: {
  7416. description: "User not logged in"
  7417. },
  7418. 404: {
  7419. description: "Resource with given uuid doesn't exist"
  7420. }
  7421. }
  7422. }
  7423. },
  7424. /moduleaction: {
  7425. post: {
  7426. tags: [
  7427. "moduleaction"
  7428. ],
  7429. summary: "Create with properties in request",
  7430. operationId: "createModuleAction",
  7431. consumes: [
  7432. "application/json"
  7433. ],
  7434. produces: [
  7435. "application/json"
  7436. ],
  7437. parameters: [
  7438. {
  7439. in: "body",
  7440. name: "resource",
  7441. description: "Resource to create",
  7442. required: true,
  7443. schema: {
  7444. $ref: "#/definitions/ModuleactionCreate"
  7445. }
  7446. }
  7447. ],
  7448. responses: {
  7449. 201: {
  7450. description: "moduleaction response"
  7451. },
  7452. 401: {
  7453. description: "User not logged in"
  7454. }
  7455. }
  7456. }
  7457. },
  7458. /relationshiptype: {
  7459. get: {
  7460. tags: [
  7461. "relationshiptype"
  7462. ],
  7463. summary: "Fetch all non-retired relationshiptype resources or perform search",
  7464. description: "All search parameters are optional",
  7465. operationId: "getAllRelationShipTypes",
  7466. consumes: [
  7467. "application/json"
  7468. ],
  7469. produces: [
  7470. "application/json"
  7471. ],
  7472. parameters: [
  7473. {
  7474. name: "limit",
  7475. in: "query",
  7476. description: "The number of results to return",
  7477. required: false,
  7478. type: "integer"
  7479. },
  7480. {
  7481. name: "startIndex",
  7482. in: "query",
  7483. description: "The offset at which to start",
  7484. required: false,
  7485. type: "integer"
  7486. },
  7487. {
  7488. name: "v",
  7489. in: "query",
  7490. description: "The representation to return (ref, default, full or custom)",
  7491. required: false,
  7492. type: "string",
  7493. enum: [
  7494. "ref",
  7495. "default",
  7496. "full",
  7497. "custom"
  7498. ]
  7499. },
  7500. {
  7501. name: "q",
  7502. in: "query",
  7503. description: "The search query",
  7504. required: false,
  7505. type: "string"
  7506. }
  7507. ],
  7508. responses: {
  7509. 200: {
  7510. description: "relationshiptype response",
  7511. schema: {
  7512. $ref: "#/definitions/FetchAll"
  7513. }
  7514. },
  7515. 401: {
  7516. description: "User not logged in"
  7517. }
  7518. }
  7519. },
  7520. post: {
  7521. tags: [
  7522. "relationshiptype"
  7523. ],
  7524. summary: "Create with properties in request",
  7525. operationId: "createRelationShipType",
  7526. consumes: [
  7527. "application/json"
  7528. ],
  7529. produces: [
  7530. "application/json"
  7531. ],
  7532. parameters: [
  7533. {
  7534. in: "body",
  7535. name: "resource",
  7536. description: "Resource to create",
  7537. required: true,
  7538. schema: {
  7539. $ref: "#/definitions/RelationshiptypeCreate"
  7540. }
  7541. }
  7542. ],
  7543. responses: {
  7544. 201: {
  7545. description: "relationshiptype response"
  7546. },
  7547. 401: {
  7548. description: "User not logged in"
  7549. }
  7550. }
  7551. }
  7552. },
  7553. /relationshiptype/{uuid}: {
  7554. get: {
  7555. tags: [
  7556. "relationshiptype"
  7557. ],
  7558. summary: "Fetch by uuid",
  7559. operationId: "getRelationShipType",
  7560. consumes: [
  7561. "application/json"
  7562. ],
  7563. produces: [
  7564. "application/json"
  7565. ],
  7566. parameters: [
  7567. {
  7568. name: "v",
  7569. in: "query",
  7570. description: "The representation to return (ref, default, full or custom)",
  7571. required: false,
  7572. type: "string",
  7573. enum: [
  7574. "ref",
  7575. "default",
  7576. "full",
  7577. "custom"
  7578. ]
  7579. },
  7580. {
  7581. name: "uuid",
  7582. in: "path",
  7583. description: "uuid to filter by",
  7584. required: true,
  7585. type: "string"
  7586. }
  7587. ],
  7588. responses: {
  7589. 200: {
  7590. description: "relationshiptype response",
  7591. schema: {
  7592. $ref: "#/definitions/RelationshiptypeGet"
  7593. }
  7594. },
  7595. 401: {
  7596. description: "User not logged in"
  7597. },
  7598. 404: {
  7599. description: "Resource with given uuid doesn't exist"
  7600. }
  7601. }
  7602. },
  7603. post: {
  7604. tags: [
  7605. "relationshiptype"
  7606. ],
  7607. summary: "Edit with given uuid, only modifying properties in request",
  7608. operationId: "updateRelationShipType",
  7609. consumes: [
  7610. "application/json"
  7611. ],
  7612. produces: [
  7613. "application/json"
  7614. ],
  7615. parameters: [
  7616. {
  7617. name: "uuid",
  7618. in: "path",
  7619. description: "uuid of resource to update",
  7620. required: true,
  7621. type: "string"
  7622. },
  7623. {
  7624. in: "body",
  7625. name: "resource",
  7626. description: "Resource properties to update",
  7627. required: true,
  7628. schema: {
  7629. $ref: "#/definitions/RelationshiptypeUpdate"
  7630. }
  7631. }
  7632. ],
  7633. responses: {
  7634. 201: {
  7635. description: "relationshiptype response"
  7636. },
  7637. 401: {
  7638. description: "User not logged in"
  7639. }
  7640. }
  7641. },
  7642. delete: {
  7643. tags: [
  7644. "relationshiptype"
  7645. ],
  7646. summary: "Delete or purge resource by uuid",
  7647. description: "The resource will be voided/retired unless purge = 'true'",
  7648. operationId: "deleteRelationShipType",
  7649. consumes: [
  7650. "application/json"
  7651. ],
  7652. produces: [
  7653. "application/json"
  7654. ],
  7655. parameters: [
  7656. {
  7657. name: "uuid",
  7658. in: "path",
  7659. description: "uuid to delete",
  7660. required: true,
  7661. type: "string"
  7662. },
  7663. {
  7664. name: "purge",
  7665. in: "query",
  7666. required: false,
  7667. type: "boolean"
  7668. }
  7669. ],
  7670. responses: {
  7671. 204: {
  7672. description: "Delete successful"
  7673. },
  7674. 401: {
  7675. description: "User not logged in"
  7676. },
  7677. 404: {
  7678. description: "Resource with given uuid doesn't exist"
  7679. }
  7680. }
  7681. }
  7682. },
  7683. /ordertype: {
  7684. get: {
  7685. tags: [
  7686. "ordertype"
  7687. ],
  7688. summary: "Fetch all non-retired ordertype resources or perform search",
  7689. description: "All search parameters are optional",
  7690. operationId: "getAllOrderTypes",
  7691. consumes: [
  7692. "application/json"
  7693. ],
  7694. produces: [
  7695. "application/json"
  7696. ],
  7697. parameters: [
  7698. {
  7699. name: "limit",
  7700. in: "query",
  7701. description: "The number of results to return",
  7702. required: false,
  7703. type: "integer"
  7704. },
  7705. {
  7706. name: "startIndex",
  7707. in: "query",
  7708. description: "The offset at which to start",
  7709. required: false,
  7710. type: "integer"
  7711. },
  7712. {
  7713. name: "v",
  7714. in: "query",
  7715. description: "The representation to return (ref, default, full or custom)",
  7716. required: false,
  7717. type: "string",
  7718. enum: [
  7719. "ref",
  7720. "default",
  7721. "full",
  7722. "custom"
  7723. ]
  7724. },
  7725. {
  7726. name: "q",
  7727. in: "query",
  7728. description: "The search query",
  7729. required: false,
  7730. type: "string"
  7731. }
  7732. ],
  7733. responses: {
  7734. 200: {
  7735. description: "ordertype response",
  7736. schema: {
  7737. $ref: "#/definitions/FetchAll"
  7738. }
  7739. },
  7740. 401: {
  7741. description: "User not logged in"
  7742. }
  7743. }
  7744. },
  7745. post: {
  7746. tags: [
  7747. "ordertype"
  7748. ],
  7749. summary: "Create with properties in request",
  7750. operationId: "createOrderType",
  7751. consumes: [
  7752. "application/json"
  7753. ],
  7754. produces: [
  7755. "application/json"
  7756. ],
  7757. parameters: [
  7758. {
  7759. in: "body",
  7760. name: "resource",
  7761. description: "Resource to create",
  7762. required: true,
  7763. schema: {
  7764. $ref: "#/definitions/OrdertypeCreate"
  7765. }
  7766. }
  7767. ],
  7768. responses: {
  7769. 201: {
  7770. description: "ordertype response"
  7771. },
  7772. 401: {
  7773. description: "User not logged in"
  7774. }
  7775. }
  7776. }
  7777. },
  7778. /ordertype/{uuid}: {
  7779. get: {
  7780. tags: [
  7781. "ordertype"
  7782. ],
  7783. summary: "Fetch by uuid",
  7784. operationId: "getOrderType",
  7785. consumes: [
  7786. "application/json"
  7787. ],
  7788. produces: [
  7789. "application/json"
  7790. ],
  7791. parameters: [
  7792. {
  7793. name: "v",
  7794. in: "query",
  7795. description: "The representation to return (ref, default, full or custom)",
  7796. required: false,
  7797. type: "string",
  7798. enum: [
  7799. "ref",
  7800. "default",
  7801. "full",
  7802. "custom"
  7803. ]
  7804. },
  7805. {
  7806. name: "uuid",
  7807. in: "path",
  7808. description: "uuid to filter by",
  7809. required: true,
  7810. type: "string"
  7811. }
  7812. ],
  7813. responses: {
  7814. 200: {
  7815. description: "ordertype response",
  7816. schema: {
  7817. $ref: "#/definitions/OrdertypeGet"
  7818. }
  7819. },
  7820. 401: {
  7821. description: "User not logged in"
  7822. },
  7823. 404: {
  7824. description: "Resource with given uuid doesn't exist"
  7825. }
  7826. }
  7827. },
  7828. post: {
  7829. tags: [
  7830. "ordertype"
  7831. ],
  7832. summary: "Edit with given uuid, only modifying properties in request",
  7833. operationId: "updateOrderType",
  7834. consumes: [
  7835. "application/json"
  7836. ],
  7837. produces: [
  7838. "application/json"
  7839. ],
  7840. parameters: [
  7841. {
  7842. name: "uuid",
  7843. in: "path",
  7844. description: "uuid of resource to update",
  7845. required: true,
  7846. type: "string"
  7847. },
  7848. {
  7849. in: "body",
  7850. name: "resource",
  7851. description: "Resource properties to update",
  7852. required: true,
  7853. schema: {
  7854. $ref: "#/definitions/OrdertypeUpdate"
  7855. }
  7856. }
  7857. ],
  7858. responses: {
  7859. 201: {
  7860. description: "ordertype response"
  7861. },
  7862. 401: {
  7863. description: "User not logged in"
  7864. }
  7865. }
  7866. },
  7867. delete: {
  7868. tags: [
  7869. "ordertype"
  7870. ],
  7871. summary: "Delete or purge resource by uuid",
  7872. description: "The resource will be voided/retired unless purge = 'true'",
  7873. operationId: "deleteOrderType",
  7874. consumes: [
  7875. "application/json"
  7876. ],
  7877. produces: [
  7878. "application/json"
  7879. ],
  7880. parameters: [
  7881. {
  7882. name: "uuid",
  7883. in: "path",
  7884. description: "uuid to delete",
  7885. required: true,
  7886. type: "string"
  7887. },
  7888. {
  7889. name: "purge",
  7890. in: "query",
  7891. required: false,
  7892. type: "boolean"
  7893. }
  7894. ],
  7895. responses: {
  7896. 204: {
  7897. description: "Delete successful"
  7898. },
  7899. 401: {
  7900. description: "User not logged in"
  7901. },
  7902. 404: {
  7903. description: "Resource with given uuid doesn't exist"
  7904. }
  7905. }
  7906. }
  7907. },
  7908. /conceptstopword: {
  7909. get: {
  7910. tags: [
  7911. "conceptstopword"
  7912. ],
  7913. summary: "Fetch all non-retired conceptstopword resources or perform search",
  7914. description: "All search parameters are optional",
  7915. operationId: "getAllConceptStopwords",
  7916. consumes: [
  7917. "application/json"
  7918. ],
  7919. produces: [
  7920. "application/json"
  7921. ],
  7922. parameters: [
  7923. {
  7924. name: "limit",
  7925. in: "query",
  7926. description: "The number of results to return",
  7927. required: false,
  7928. type: "integer"
  7929. },
  7930. {
  7931. name: "startIndex",
  7932. in: "query",
  7933. description: "The offset at which to start",
  7934. required: false,
  7935. type: "integer"
  7936. },
  7937. {
  7938. name: "v",
  7939. in: "query",
  7940. description: "The representation to return (ref, default, full or custom)",
  7941. required: false,
  7942. type: "string",
  7943. enum: [
  7944. "ref",
  7945. "default",
  7946. "full",
  7947. "custom"
  7948. ]
  7949. },
  7950. {
  7951. name: "q",
  7952. in: "query",
  7953. description: "The search query",
  7954. required: false,
  7955. type: "string"
  7956. }
  7957. ],
  7958. responses: {
  7959. 200: {
  7960. description: "conceptstopword response",
  7961. schema: {
  7962. $ref: "#/definitions/FetchAll"
  7963. }
  7964. },
  7965. 401: {
  7966. description: "User not logged in"
  7967. }
  7968. }
  7969. },
  7970. post: {
  7971. tags: [
  7972. "conceptstopword"
  7973. ],
  7974. summary: "Create with properties in request",
  7975. operationId: "createConceptStopword",
  7976. consumes: [
  7977. "application/json"
  7978. ],
  7979. produces: [
  7980. "application/json"
  7981. ],
  7982. parameters: [
  7983. {
  7984. in: "body",
  7985. name: "resource",
  7986. description: "Resource to create",
  7987. required: true,
  7988. schema: {
  7989. $ref: "#/definitions/ConceptstopwordCreate"
  7990. }
  7991. }
  7992. ],
  7993. responses: {
  7994. 201: {
  7995. description: "conceptstopword response"
  7996. },
  7997. 401: {
  7998. description: "User not logged in"
  7999. }
  8000. }
  8001. }
  8002. },
  8003. /conceptstopword/{uuid}: {
  8004. get: {
  8005. tags: [
  8006. "conceptstopword"
  8007. ],
  8008. summary: "Fetch by uuid",
  8009. operationId: "getConceptStopword",
  8010. consumes: [
  8011. "application/json"
  8012. ],
  8013. produces: [
  8014. "application/json"
  8015. ],
  8016. parameters: [
  8017. {
  8018. name: "v",
  8019. in: "query",
  8020. description: "The representation to return (ref, default, full or custom)",
  8021. required: false,
  8022. type: "string",
  8023. enum: [
  8024. "ref",
  8025. "default",
  8026. "full",
  8027. "custom"
  8028. ]
  8029. },
  8030. {
  8031. name: "uuid",
  8032. in: "path",
  8033. description: "uuid to filter by",
  8034. required: true,
  8035. type: "string"
  8036. }
  8037. ],
  8038. responses: {
  8039. 200: {
  8040. description: "conceptstopword response",
  8041. schema: {
  8042. $ref: "#/definitions/ConceptstopwordGet"
  8043. }
  8044. },
  8045. 401: {
  8046. description: "User not logged in"
  8047. },
  8048. 404: {
  8049. description: "Resource with given uuid doesn't exist"
  8050. }
  8051. }
  8052. },
  8053. post: {
  8054. tags: [
  8055. "conceptstopword"
  8056. ],
  8057. summary: "Edit with given uuid, only modifying properties in request",
  8058. operationId: "updateConceptStopword",
  8059. consumes: [
  8060. "application/json"
  8061. ],
  8062. produces: [
  8063. "application/json"
  8064. ],
  8065. parameters: [
  8066. {
  8067. name: "uuid",
  8068. in: "path",
  8069. description: "uuid of resource to update",
  8070. required: true,
  8071. type: "string"
  8072. },
  8073. {
  8074. in: "body",
  8075. name: "resource",
  8076. description: "Resource properties to update",
  8077. required: true,
  8078. schema: {
  8079. $ref: "#/definitions/ConceptstopwordUpdate"
  8080. }
  8081. }
  8082. ],
  8083. responses: {
  8084. 201: {
  8085. description: "conceptstopword response"
  8086. },
  8087. 401: {
  8088. description: "User not logged in"
  8089. }
  8090. }
  8091. },
  8092. delete: {
  8093. tags: [
  8094. "conceptstopword"
  8095. ],
  8096. summary: "Delete or purge resource by uuid",
  8097. description: "The resource will be voided/retired unless purge = 'true'",
  8098. operationId: "deleteConceptStopword",
  8099. consumes: [
  8100. "application/json"
  8101. ],
  8102. produces: [
  8103. "application/json"
  8104. ],
  8105. parameters: [
  8106. {
  8107. name: "uuid",
  8108. in: "path",
  8109. description: "uuid to delete",
  8110. required: true,
  8111. type: "string"
  8112. },
  8113. {
  8114. name: "purge",
  8115. in: "query",
  8116. required: false,
  8117. type: "boolean"
  8118. }
  8119. ],
  8120. responses: {
  8121. 204: {
  8122. description: "Delete successful"
  8123. },
  8124. 401: {
  8125. description: "User not logged in"
  8126. },
  8127. 404: {
  8128. description: "Resource with given uuid doesn't exist"
  8129. }
  8130. }
  8131. }
  8132. },
  8133. /fieldtype: {
  8134. get: {
  8135. tags: [
  8136. "fieldtype"
  8137. ],
  8138. summary: "Fetch all non-retired fieldtype resources or perform search",
  8139. description: "All search parameters are optional",
  8140. operationId: "getAllFieldTypes",
  8141. consumes: [
  8142. "application/json"
  8143. ],
  8144. produces: [
  8145. "application/json"
  8146. ],
  8147. parameters: [
  8148. {
  8149. name: "limit",
  8150. in: "query",
  8151. description: "The number of results to return",
  8152. required: false,
  8153. type: "integer"
  8154. },
  8155. {
  8156. name: "startIndex",
  8157. in: "query",
  8158. description: "The offset at which to start",
  8159. required: false,
  8160. type: "integer"
  8161. },
  8162. {
  8163. name: "v",
  8164. in: "query",
  8165. description: "The representation to return (ref, default, full or custom)",
  8166. required: false,
  8167. type: "string",
  8168. enum: [
  8169. "ref",
  8170. "default",
  8171. "full",
  8172. "custom"
  8173. ]
  8174. },
  8175. {
  8176. name: "q",
  8177. in: "query",
  8178. description: "The search query",
  8179. required: false,
  8180. type: "string"
  8181. }
  8182. ],
  8183. responses: {
  8184. 200: {
  8185. description: "fieldtype response",
  8186. schema: {
  8187. $ref: "#/definitions/FetchAll"
  8188. }
  8189. },
  8190. 401: {
  8191. description: "User not logged in"
  8192. }
  8193. }
  8194. },
  8195. post: {
  8196. tags: [
  8197. "fieldtype"
  8198. ],
  8199. summary: "Create with properties in request",
  8200. operationId: "createFieldType",
  8201. consumes: [
  8202. "application/json"
  8203. ],
  8204. produces: [
  8205. "application/json"
  8206. ],
  8207. parameters: [
  8208. {
  8209. in: "body",
  8210. name: "resource",
  8211. description: "Resource to create",
  8212. required: true,
  8213. schema: {
  8214. $ref: "#/definitions/FieldtypeCreate"
  8215. }
  8216. }
  8217. ],
  8218. responses: {
  8219. 201: {
  8220. description: "fieldtype response"
  8221. },
  8222. 401: {
  8223. description: "User not logged in"
  8224. }
  8225. }
  8226. }
  8227. },
  8228. /fieldtype/{uuid}: {
  8229. get: {
  8230. tags: [
  8231. "fieldtype"
  8232. ],
  8233. summary: "Fetch by uuid",
  8234. operationId: "getFieldType",
  8235. consumes: [
  8236. "application/json"
  8237. ],
  8238. produces: [
  8239. "application/json"
  8240. ],
  8241. parameters: [
  8242. {
  8243. name: "v",
  8244. in: "query",
  8245. description: "The representation to return (ref, default, full or custom)",
  8246. required: false,
  8247. type: "string",
  8248. enum: [
  8249. "ref",
  8250. "default",
  8251. "full",
  8252. "custom"
  8253. ]
  8254. },
  8255. {
  8256. name: "uuid",
  8257. in: "path",
  8258. description: "uuid to filter by",
  8259. required: true,
  8260. type: "string"
  8261. }
  8262. ],
  8263. responses: {
  8264. 200: {
  8265. description: "fieldtype response",
  8266. schema: {
  8267. $ref: "#/definitions/FieldtypeGet"
  8268. }
  8269. },
  8270. 401: {
  8271. description: "User not logged in"
  8272. },
  8273. 404: {
  8274. description: "Resource with given uuid doesn't exist"
  8275. }
  8276. }
  8277. },
  8278. post: {
  8279. tags: [
  8280. "fieldtype"
  8281. ],
  8282. summary: "Edit with given uuid, only modifying properties in request",
  8283. operationId: "updateFieldType",
  8284. consumes: [
  8285. "application/json"
  8286. ],
  8287. produces: [
  8288. "application/json"
  8289. ],
  8290. parameters: [
  8291. {
  8292. name: "uuid",
  8293. in: "path",
  8294. description: "uuid of resource to update",
  8295. required: true,
  8296. type: "string"
  8297. },
  8298. {
  8299. in: "body",
  8300. name: "resource",
  8301. description: "Resource properties to update",
  8302. required: true,
  8303. schema: {
  8304. $ref: "#/definitions/FieldtypeUpdate"
  8305. }
  8306. }
  8307. ],
  8308. responses: {
  8309. 201: {
  8310. description: "fieldtype response"
  8311. },
  8312. 401: {
  8313. description: "User not logged in"
  8314. }
  8315. }
  8316. },
  8317. delete: {
  8318. tags: [
  8319. "fieldtype"
  8320. ],
  8321. summary: "Delete or purge resource by uuid",
  8322. description: "The resource will be voided/retired unless purge = 'true'",
  8323. operationId: "deleteFieldType",
  8324. consumes: [
  8325. "application/json"
  8326. ],
  8327. produces: [
  8328. "application/json"
  8329. ],
  8330. parameters: [
  8331. {
  8332. name: "uuid",
  8333. in: "path",
  8334. description: "uuid to delete",
  8335. required: true,
  8336. type: "string"
  8337. },
  8338. {
  8339. name: "purge",
  8340. in: "query",
  8341. required: false,
  8342. type: "boolean"
  8343. }
  8344. ],
  8345. responses: {
  8346. 204: {
  8347. description: "Delete successful"
  8348. },
  8349. 401: {
  8350. description: "User not logged in"
  8351. },
  8352. 404: {
  8353. description: "Resource with given uuid doesn't exist"
  8354. }
  8355. }
  8356. }
  8357. },
  8358. /locationattributetype: {
  8359. get: {
  8360. tags: [
  8361. "locationattributetype"
  8362. ],
  8363. summary: "Fetch all non-retired locationattributetype resources or perform search",
  8364. description: "All search parameters are optional",
  8365. operationId: "getAllLocationAttributeTypes",
  8366. consumes: [
  8367. "application/json"
  8368. ],
  8369. produces: [
  8370. "application/json"
  8371. ],
  8372. parameters: [
  8373. {
  8374. name: "limit",
  8375. in: "query",
  8376. description: "The number of results to return",
  8377. required: false,
  8378. type: "integer"
  8379. },
  8380. {
  8381. name: "startIndex",
  8382. in: "query",
  8383. description: "The offset at which to start",
  8384. required: false,
  8385. type: "integer"
  8386. },
  8387. {
  8388. name: "v",
  8389. in: "query",
  8390. description: "The representation to return (ref, default, full or custom)",
  8391. required: false,
  8392. type: "string",
  8393. enum: [
  8394. "ref",
  8395. "default",
  8396. "full",
  8397. "custom"
  8398. ]
  8399. },
  8400. {
  8401. name: "q",
  8402. in: "query",
  8403. description: "The search query",
  8404. required: false,
  8405. type: "string"
  8406. }
  8407. ],
  8408. responses: {
  8409. 200: {
  8410. description: "locationattributetype response",
  8411. schema: {
  8412. $ref: "#/definitions/FetchAll"
  8413. }
  8414. },
  8415. 401: {
  8416. description: "User not logged in"
  8417. }
  8418. }
  8419. },
  8420. post: {
  8421. tags: [
  8422. "locationattributetype"
  8423. ],
  8424. summary: "Create with properties in request",
  8425. operationId: "createLocationAttributeType",
  8426. consumes: [
  8427. "application/json"
  8428. ],
  8429. produces: [
  8430. "application/json"
  8431. ],
  8432. parameters: [
  8433. {
  8434. in: "body",
  8435. name: "resource",
  8436. description: "Resource to create",
  8437. required: true,
  8438. schema: {
  8439. $ref: "#/definitions/LocationattributetypeCreate"
  8440. }
  8441. }
  8442. ],
  8443. responses: {
  8444. 201: {
  8445. description: "locationattributetype response"
  8446. },
  8447. 401: {
  8448. description: "User not logged in"
  8449. }
  8450. }
  8451. }
  8452. },
  8453. /locationattributetype/{uuid}: {
  8454. get: {
  8455. tags: [
  8456. "locationattributetype"
  8457. ],
  8458. summary: "Fetch by uuid",
  8459. operationId: "getLocationAttributeType",
  8460. consumes: [
  8461. "application/json"
  8462. ],
  8463. produces: [
  8464. "application/json"
  8465. ],
  8466. parameters: [
  8467. {
  8468. name: "v",
  8469. in: "query",
  8470. description: "The representation to return (ref, default, full or custom)",
  8471. required: false,
  8472. type: "string",
  8473. enum: [
  8474. "ref",
  8475. "default",
  8476. "full",
  8477. "custom"
  8478. ]
  8479. },
  8480. {
  8481. name: "uuid",
  8482. in: "path",
  8483. description: "uuid to filter by",
  8484. required: true,
  8485. type: "string"
  8486. }
  8487. ],
  8488. responses: {
  8489. 200: {
  8490. description: "locationattributetype response",
  8491. schema: {
  8492. $ref: "#/definitions/LocationattributetypeGet"
  8493. }
  8494. },
  8495. 401: {
  8496. description: "User not logged in"
  8497. },
  8498. 404: {
  8499. description: "Resource with given uuid doesn't exist"
  8500. }
  8501. }
  8502. },
  8503. post: {
  8504. tags: [
  8505. "locationattributetype"
  8506. ],
  8507. summary: "Edit with given uuid, only modifying properties in request",
  8508. operationId: "updateLocationAttributeType",
  8509. consumes: [
  8510. "application/json"
  8511. ],
  8512. produces: [
  8513. "application/json"
  8514. ],
  8515. parameters: [
  8516. {
  8517. name: "uuid",
  8518. in: "path",
  8519. description: "uuid of resource to update",
  8520. required: true,
  8521. type: "string"
  8522. },
  8523. {
  8524. in: "body",
  8525. name: "resource",
  8526. description: "Resource properties to update",
  8527. required: true,
  8528. schema: {
  8529. $ref: "#/definitions/LocationattributetypeUpdate"
  8530. }
  8531. }
  8532. ],
  8533. responses: {
  8534. 201: {
  8535. description: "locationattributetype response"
  8536. },
  8537. 401: {
  8538. description: "User not logged in"
  8539. }
  8540. }
  8541. },
  8542. delete: {
  8543. tags: [
  8544. "locationattributetype"
  8545. ],
  8546. summary: "Delete or purge resource by uuid",
  8547. description: "The resource will be voided/retired unless purge = 'true'",
  8548. operationId: "deleteLocationAttributeType",
  8549. consumes: [
  8550. "application/json"
  8551. ],
  8552. produces: [
  8553. "application/json"
  8554. ],
  8555. parameters: [
  8556. {
  8557. name: "uuid",
  8558. in: "path",
  8559. description: "uuid to delete",
  8560. required: true,
  8561. type: "string"
  8562. },
  8563. {
  8564. name: "purge",
  8565. in: "query",
  8566. required: false,
  8567. type: "boolean"
  8568. }
  8569. ],
  8570. responses: {
  8571. 204: {
  8572. description: "Delete successful"
  8573. },
  8574. 401: {
  8575. description: "User not logged in"
  8576. },
  8577. 404: {
  8578. description: "Resource with given uuid doesn't exist"
  8579. }
  8580. }
  8581. }
  8582. },
  8583. /relationship: {
  8584. get: {
  8585. tags: [
  8586. "relationship"
  8587. ],
  8588. summary: "Fetch all non-retired relationship resources or perform search",
  8589. description: "All search parameters are optional",
  8590. operationId: "getAllRelationships",
  8591. consumes: [
  8592. "application/json"
  8593. ],
  8594. produces: [
  8595. "application/json"
  8596. ],
  8597. parameters: [
  8598. {
  8599. name: "limit",
  8600. in: "query",
  8601. description: "The number of results to return",
  8602. required: false,
  8603. type: "integer"
  8604. },
  8605. {
  8606. name: "startIndex",
  8607. in: "query",
  8608. description: "The offset at which to start",
  8609. required: false,
  8610. type: "integer"
  8611. },
  8612. {
  8613. name: "v",
  8614. in: "query",
  8615. description: "The representation to return (ref, default, full or custom)",
  8616. required: false,
  8617. type: "string",
  8618. enum: [
  8619. "ref",
  8620. "default",
  8621. "full",
  8622. "custom"
  8623. ]
  8624. },
  8625. {
  8626. name: "q",
  8627. in: "query",
  8628. description: "The search query",
  8629. required: false,
  8630. type: "string"
  8631. },
  8632. {
  8633. name: "personB",
  8634. in: "query",
  8635. required: false,
  8636. type: "string"
  8637. },
  8638. {
  8639. name: "personA",
  8640. in: "query",
  8641. required: false,
  8642. type: "string"
  8643. },
  8644. {
  8645. name: "person",
  8646. in: "query",
  8647. required: false,
  8648. type: "string"
  8649. },
  8650. {
  8651. name: "relation",
  8652. in: "query",
  8653. required: false,
  8654. type: "string"
  8655. },
  8656. {
  8657. name: "relatedPerson",
  8658. in: "query",
  8659. required: false,
  8660. type: "string"
  8661. }
  8662. ],
  8663. responses: {
  8664. 200: {
  8665. description: "relationship response",
  8666. schema: {
  8667. $ref: "#/definitions/FetchAll"
  8668. }
  8669. },
  8670. 401: {
  8671. description: "User not logged in"
  8672. }
  8673. }
  8674. },
  8675. post: {
  8676. tags: [
  8677. "relationship"
  8678. ],
  8679. summary: "Create with properties in request",
  8680. operationId: "createRelationship",
  8681. consumes: [
  8682. "application/json"
  8683. ],
  8684. produces: [
  8685. "application/json"
  8686. ],
  8687. parameters: [
  8688. {
  8689. in: "body",
  8690. name: "resource",
  8691. description: "Resource to create",
  8692. required: true,
  8693. schema: {
  8694. $ref: "#/definitions/RelationshipCreate"
  8695. }
  8696. }
  8697. ],
  8698. responses: {
  8699. 201: {
  8700. description: "relationship response"
  8701. },
  8702. 401: {
  8703. description: "User not logged in"
  8704. }
  8705. }
  8706. }
  8707. },
  8708. /relationship/{uuid}: {
  8709. get: {
  8710. tags: [
  8711. "relationship"
  8712. ],
  8713. summary: "Fetch by uuid",
  8714. operationId: "getRelationship",
  8715. consumes: [
  8716. "application/json"
  8717. ],
  8718. produces: [
  8719. "application/json"
  8720. ],
  8721. parameters: [
  8722. {
  8723. name: "v",
  8724. in: "query",
  8725. description: "The representation to return (ref, default, full or custom)",
  8726. required: false,
  8727. type: "string",
  8728. enum: [
  8729. "ref",
  8730. "default",
  8731. "full",
  8732. "custom"
  8733. ]
  8734. },
  8735. {
  8736. name: "uuid",
  8737. in: "path",
  8738. description: "uuid to filter by",
  8739. required: true,
  8740. type: "string"
  8741. }
  8742. ],
  8743. responses: {
  8744. 200: {
  8745. description: "relationship response",
  8746. schema: {
  8747. $ref: "#/definitions/RelationshipGet"
  8748. }
  8749. },
  8750. 401: {
  8751. description: "User not logged in"
  8752. },
  8753. 404: {
  8754. description: "Resource with given uuid doesn't exist"
  8755. }
  8756. }
  8757. },
  8758. post: {
  8759. tags: [
  8760. "relationship"
  8761. ],
  8762. summary: "Edit with given uuid, only modifying properties in request",
  8763. operationId: "updateRelationship",
  8764. consumes: [
  8765. "application/json"
  8766. ],
  8767. produces: [
  8768. "application/json"
  8769. ],
  8770. parameters: [
  8771. {
  8772. name: "uuid",
  8773. in: "path",
  8774. description: "uuid of resource to update",
  8775. required: true,
  8776. type: "string"
  8777. },
  8778. {
  8779. in: "body",
  8780. name: "resource",
  8781. description: "Resource properties to update",
  8782. required: true,
  8783. schema: {
  8784. $ref: "#/definitions/RelationshipUpdate"
  8785. }
  8786. }
  8787. ],
  8788. responses: {
  8789. 201: {
  8790. description: "relationship response"
  8791. },
  8792. 401: {
  8793. description: "User not logged in"
  8794. }
  8795. }
  8796. },
  8797. delete: {
  8798. tags: [
  8799. "relationship"
  8800. ],
  8801. summary: "Delete or purge resource by uuid",
  8802. description: "The resource will be voided/retired unless purge = 'true'",
  8803. operationId: "deleteRelationship",
  8804. consumes: [
  8805. "application/json"
  8806. ],
  8807. produces: [
  8808. "application/json"
  8809. ],
  8810. parameters: [
  8811. {
  8812. name: "uuid",
  8813. in: "path",
  8814. description: "uuid to delete",
  8815. required: true,
  8816. type: "string"
  8817. },
  8818. {
  8819. name: "purge",
  8820. in: "query",
  8821. required: false,
  8822. type: "boolean"
  8823. }
  8824. ],
  8825. responses: {
  8826. 204: {
  8827. description: "Delete successful"
  8828. },
  8829. 401: {
  8830. description: "User not logged in"
  8831. },
  8832. 404: {
  8833. description: "Resource with given uuid doesn't exist"
  8834. }
  8835. }
  8836. }
  8837. },
  8838. /visittype: {
  8839. get: {
  8840. tags: [
  8841. "visittype"
  8842. ],
  8843. summary: "Fetch all non-retired visittype resources or perform search",
  8844. description: "All search parameters are optional",
  8845. operationId: "getAllVisitTypes",
  8846. consumes: [
  8847. "application/json"
  8848. ],
  8849. produces: [
  8850. "application/json"
  8851. ],
  8852. parameters: [
  8853. {
  8854. name: "limit",
  8855. in: "query",
  8856. description: "The number of results to return",
  8857. required: false,
  8858. type: "integer"
  8859. },
  8860. {
  8861. name: "startIndex",
  8862. in: "query",
  8863. description: "The offset at which to start",
  8864. required: false,
  8865. type: "integer"
  8866. },
  8867. {
  8868. name: "v",
  8869. in: "query",
  8870. description: "The representation to return (ref, default, full or custom)",
  8871. required: false,
  8872. type: "string",
  8873. enum: [
  8874. "ref",
  8875. "default",
  8876. "full",
  8877. "custom"
  8878. ]
  8879. },
  8880. {
  8881. name: "q",
  8882. in: "query",
  8883. description: "The search query",
  8884. required: false,
  8885. type: "string"
  8886. }
  8887. ],
  8888. responses: {
  8889. 200: {
  8890. description: "visittype response",
  8891. schema: {
  8892. $ref: "#/definitions/FetchAll"
  8893. }
  8894. },
  8895. 401: {
  8896. description: "User not logged in"
  8897. }
  8898. }
  8899. },
  8900. post: {
  8901. tags: [
  8902. "visittype"
  8903. ],
  8904. summary: "Create with properties in request",
  8905. operationId: "createVisitType",
  8906. consumes: [
  8907. "application/json"
  8908. ],
  8909. produces: [
  8910. "application/json"
  8911. ],
  8912. parameters: [
  8913. {
  8914. in: "body",
  8915. name: "resource",
  8916. description: "Resource to create",
  8917. required: true,
  8918. schema: {
  8919. $ref: "#/definitions/VisittypeCreate"
  8920. }
  8921. }
  8922. ],
  8923. responses: {
  8924. 201: {
  8925. description: "visittype response"
  8926. },
  8927. 401: {
  8928. description: "User not logged in"
  8929. }
  8930. }
  8931. }
  8932. },
  8933. /visittype/{uuid}: {
  8934. get: {
  8935. tags: [
  8936. "visittype"
  8937. ],
  8938. summary: "Fetch by uuid",
  8939. operationId: "getVisitType",
  8940. consumes: [
  8941. "application/json"
  8942. ],
  8943. produces: [
  8944. "application/json"
  8945. ],
  8946. parameters: [
  8947. {
  8948. name: "v",
  8949. in: "query",
  8950. description: "The representation to return (ref, default, full or custom)",
  8951. required: false,
  8952. type: "string",
  8953. enum: [
  8954. "ref",
  8955. "default",
  8956. "full",
  8957. "custom"
  8958. ]
  8959. },
  8960. {
  8961. name: "uuid",
  8962. in: "path",
  8963. description: "uuid to filter by",
  8964. required: true,
  8965. type: "string"
  8966. }
  8967. ],
  8968. responses: {
  8969. 200: {
  8970. description: "visittype response",
  8971. schema: {
  8972. $ref: "#/definitions/VisittypeGet"
  8973. }
  8974. },
  8975. 401: {
  8976. description: "User not logged in"
  8977. },
  8978. 404: {
  8979. description: "Resource with given uuid doesn't exist"
  8980. }
  8981. }
  8982. },
  8983. post: {
  8984. tags: [
  8985. "visittype"
  8986. ],
  8987. summary: "Edit with given uuid, only modifying properties in request",
  8988. operationId: "updateVisitType",
  8989. consumes: [
  8990. "application/json"
  8991. ],
  8992. produces: [
  8993. "application/json"
  8994. ],
  8995. parameters: [
  8996. {
  8997. name: "uuid",
  8998. in: "path",
  8999. description: "uuid of resource to update",
  9000. required: true,
  9001. type: "string"
  9002. },
  9003. {
  9004. in: "body",
  9005. name: "resource",
  9006. description: "Resource properties to update",
  9007. required: true,
  9008. schema: {
  9009. $ref: "#/definitions/VisittypeUpdate"
  9010. }
  9011. }
  9012. ],
  9013. responses: {
  9014. 201: {
  9015. description: "visittype response"
  9016. },
  9017. 401: {
  9018. description: "User not logged in"
  9019. }
  9020. }
  9021. },
  9022. delete: {
  9023. tags: [
  9024. "visittype"
  9025. ],
  9026. summary: "Delete or purge resource by uuid",
  9027. description: "The resource will be voided/retired unless purge = 'true'",
  9028. operationId: "deleteVisitType",
  9029. consumes: [
  9030. "application/json"
  9031. ],
  9032. produces: [
  9033. "application/json"
  9034. ],
  9035. parameters: [
  9036. {
  9037. name: "uuid",
  9038. in: "path",
  9039. description: "uuid to delete",
  9040. required: true,
  9041. type: "string"
  9042. },
  9043. {
  9044. name: "purge",
  9045. in: "query",
  9046. required: false,
  9047. type: "boolean"
  9048. }
  9049. ],
  9050. responses: {
  9051. 204: {
  9052. description: "Delete successful"
  9053. },
  9054. 401: {
  9055. description: "User not logged in"
  9056. },
  9057. 404: {
  9058. description: "Resource with given uuid doesn't exist"
  9059. }
  9060. }
  9061. }
  9062. },
  9063. /order: {
  9064. get: {
  9065. tags: [
  9066. "order"
  9067. ],
  9068. summary: "Search for order",
  9069. description: "At least one search parameter must be specified",
  9070. operationId: "getAllOrders",
  9071. produces: [
  9072. "application/json",
  9073. "application/xml"
  9074. ],
  9075. parameters: [
  9076. {
  9077. name: "limit",
  9078. in: "query",
  9079. description: "The number of results to return",
  9080. required: false,
  9081. type: "integer"
  9082. },
  9083. {
  9084. name: "startIndex",
  9085. in: "query",
  9086. description: "The offset at which to start",
  9087. required: false,
  9088. type: "integer"
  9089. },
  9090. {
  9091. name: "v",
  9092. in: "query",
  9093. description: "The representation to return (ref, default, full or custom)",
  9094. required: false,
  9095. type: "string",
  9096. enum: [
  9097. "ref",
  9098. "default",
  9099. "full",
  9100. "custom"
  9101. ]
  9102. },
  9103. {
  9104. name: "q",
  9105. in: "query",
  9106. description: "The search query",
  9107. required: false,
  9108. type: "string"
  9109. },
  9110. {
  9111. name: "t",
  9112. in: "query",
  9113. description: "The type of Subclass Resource to return",
  9114. required: false,
  9115. type: "string"
  9116. },
  9117. {
  9118. name: "careSetting",
  9119. in: "query",
  9120. description: "Must be used with ",
  9121. required: false,
  9122. type: "string"
  9123. },
  9124. {
  9125. name: "includeVoided",
  9126. in: "query",
  9127. description: "Must be used with ",
  9128. required: false,
  9129. type: "string"
  9130. },
  9131. {
  9132. name: "concepts",
  9133. in: "query",
  9134. description: "Must be used with ",
  9135. required: false,
  9136. type: "string"
  9137. },
  9138. {
  9139. name: "patient",
  9140. in: "query",
  9141. description: "Must be used with ",
  9142. required: false,
  9143. type: "string"
  9144. },
  9145. {
  9146. name: "orderTypes",
  9147. in: "query",
  9148. description: "Must be used with ",
  9149. required: false,
  9150. type: "string"
  9151. },
  9152. {
  9153. name: "activatedOnOrBeforeDate",
  9154. in: "query",
  9155. description: "Must be used with ",
  9156. required: false,
  9157. type: "string"
  9158. },
  9159. {
  9160. name: "activatedOnOrAfterDate",
  9161. in: "query",
  9162. description: "Must be used with ",
  9163. required: false,
  9164. type: "string"
  9165. }
  9166. ],
  9167. responses: {
  9168. 200: {
  9169. description: "order response",
  9170. schema: {
  9171. $ref: "#/definitions/FetchAll"
  9172. }
  9173. }
  9174. }
  9175. },
  9176. post: {
  9177. tags: [
  9178. "order"
  9179. ],
  9180. summary: "Create with properties in request",
  9181. operationId: "createOrder",
  9182. consumes: [
  9183. "application/json"
  9184. ],
  9185. produces: [
  9186. "application/json"
  9187. ],
  9188. parameters: [
  9189. {
  9190. in: "body",
  9191. name: "resource",
  9192. description: "Resource to create",
  9193. required: true,
  9194. schema: {
  9195. $ref: "#/definitions/OrderCreate"
  9196. }
  9197. }
  9198. ],
  9199. responses: {
  9200. 201: {
  9201. description: "order response"
  9202. },
  9203. 401: {
  9204. description: "User not logged in"
  9205. }
  9206. }
  9207. }
  9208. },
  9209. /order/{uuid}: {
  9210. get: {
  9211. tags: [
  9212. "order"
  9213. ],
  9214. summary: "Fetch by uuid",
  9215. operationId: "getOrder",
  9216. consumes: [
  9217. "application/json"
  9218. ],
  9219. produces: [
  9220. "application/json"
  9221. ],
  9222. parameters: [
  9223. {
  9224. name: "v",
  9225. in: "query",
  9226. description: "The representation to return (ref, default, full or custom)",
  9227. required: false,
  9228. type: "string",
  9229. enum: [
  9230. "ref",
  9231. "default",
  9232. "full",
  9233. "custom"
  9234. ]
  9235. },
  9236. {
  9237. name: "uuid",
  9238. in: "path",
  9239. description: "uuid to filter by",
  9240. required: true,
  9241. type: "string"
  9242. }
  9243. ],
  9244. responses: {
  9245. 200: {
  9246. description: "order response",
  9247. schema: {
  9248. $ref: "#/definitions/OrderGet"
  9249. }
  9250. },
  9251. 401: {
  9252. description: "User not logged in"
  9253. },
  9254. 404: {
  9255. description: "Resource with given uuid doesn't exist"
  9256. }
  9257. }
  9258. },
  9259. delete: {
  9260. tags: [
  9261. "order"
  9262. ],
  9263. summary: "Delete or purge resource by uuid",
  9264. description: "The resource will be voided/retired unless purge = 'true'",
  9265. operationId: "deleteOrder",
  9266. consumes: [
  9267. "application/json"
  9268. ],
  9269. produces: [
  9270. "application/json"
  9271. ],
  9272. parameters: [
  9273. {
  9274. name: "uuid",
  9275. in: "path",
  9276. description: "uuid to delete",
  9277. required: true,
  9278. type: "string"
  9279. },
  9280. {
  9281. name: "purge",
  9282. in: "query",
  9283. required: false,
  9284. type: "boolean"
  9285. }
  9286. ],
  9287. responses: {
  9288. 204: {
  9289. description: "Delete successful"
  9290. },
  9291. 401: {
  9292. description: "User not logged in"
  9293. },
  9294. 404: {
  9295. description: "Resource with given uuid doesn't exist"
  9296. }
  9297. }
  9298. }
  9299. },
  9300. /drug: {
  9301. get: {
  9302. tags: [
  9303. "drug"
  9304. ],
  9305. summary: "Fetch all non-retired drug resources or perform search",
  9306. description: "All search parameters are optional",
  9307. operationId: "getAllDrugs",
  9308. consumes: [
  9309. "application/json"
  9310. ],
  9311. produces: [
  9312. "application/json"
  9313. ],
  9314. parameters: [
  9315. {
  9316. name: "limit",
  9317. in: "query",
  9318. description: "The number of results to return",
  9319. required: false,
  9320. type: "integer"
  9321. },
  9322. {
  9323. name: "startIndex",
  9324. in: "query",
  9325. description: "The offset at which to start",
  9326. required: false,
  9327. type: "integer"
  9328. },
  9329. {
  9330. name: "v",
  9331. in: "query",
  9332. description: "The representation to return (ref, default, full or custom)",
  9333. required: false,
  9334. type: "string",
  9335. enum: [
  9336. "ref",
  9337. "default",
  9338. "full",
  9339. "custom"
  9340. ]
  9341. },
  9342. {
  9343. name: "q",
  9344. in: "query",
  9345. description: "The search query",
  9346. required: false,
  9347. type: "string"
  9348. },
  9349. {
  9350. name: "q",
  9351. in: "query",
  9352. required: false,
  9353. type: "string"
  9354. },
  9355. {
  9356. name: "code",
  9357. in: "query",
  9358. description: "Must be used with source",
  9359. required: false,
  9360. type: "string"
  9361. },
  9362. {
  9363. name: "preferredMapTypes",
  9364. in: "query",
  9365. description: "Must be used with source",
  9366. required: false,
  9367. type: "string"
  9368. },
  9369. {
  9370. name: "source",
  9371. in: "query",
  9372. required: false,
  9373. type: "string"
  9374. },
  9375. {
  9376. name: "locale",
  9377. in: "query",
  9378. description: "Must be used with q",
  9379. required: false,
  9380. type: "string"
  9381. },
  9382. {
  9383. name: "exactLocale",
  9384. in: "query",
  9385. description: "Must be used with q",
  9386. required: false,
  9387. type: "string"
  9388. }
  9389. ],
  9390. responses: {
  9391. 200: {
  9392. description: "drug response",
  9393. schema: {
  9394. $ref: "#/definitions/FetchAll"
  9395. }
  9396. },
  9397. 401: {
  9398. description: "User not logged in"
  9399. }
  9400. }
  9401. },
  9402. post: {
  9403. tags: [
  9404. "drug"
  9405. ],
  9406. summary: "Create with properties in request",
  9407. operationId: "createDrug",
  9408. consumes: [
  9409. "application/json"
  9410. ],
  9411. produces: [
  9412. "application/json"
  9413. ],
  9414. parameters: [
  9415. {
  9416. in: "body",
  9417. name: "resource",
  9418. description: "Resource to create",
  9419. required: true,
  9420. schema: {
  9421. $ref: "#/definitions/DrugCreate"
  9422. }
  9423. }
  9424. ],
  9425. responses: {
  9426. 201: {
  9427. description: "drug response"
  9428. },
  9429. 401: {
  9430. description: "User not logged in"
  9431. }
  9432. }
  9433. }
  9434. },
  9435. /drug/{uuid}: {
  9436. get: {
  9437. tags: [
  9438. "drug"
  9439. ],
  9440. summary: "Fetch by uuid",
  9441. operationId: "getDrug",
  9442. consumes: [
  9443. "application/json"
  9444. ],
  9445. produces: [
  9446. "application/json"
  9447. ],
  9448. parameters: [
  9449. {
  9450. name: "v",
  9451. in: "query",
  9452. description: "The representation to return (ref, default, full or custom)",
  9453. required: false,
  9454. type: "string",
  9455. enum: [
  9456. "ref",
  9457. "default",
  9458. "full",
  9459. "custom"
  9460. ]
  9461. },
  9462. {
  9463. name: "uuid",
  9464. in: "path",
  9465. description: "uuid to filter by",
  9466. required: true,
  9467. type: "string"
  9468. }
  9469. ],
  9470. responses: {
  9471. 200: {
  9472. description: "drug response",
  9473. schema: {
  9474. $ref: "#/definitions/DrugGet"
  9475. }
  9476. },
  9477. 401: {
  9478. description: "User not logged in"
  9479. },
  9480. 404: {
  9481. description: "Resource with given uuid doesn't exist"
  9482. }
  9483. }
  9484. },
  9485. post: {
  9486. tags: [
  9487. "drug"
  9488. ],
  9489. summary: "Edit with given uuid, only modifying properties in request",
  9490. operationId: "updateDrug",
  9491. consumes: [
  9492. "application/json"
  9493. ],
  9494. produces: [
  9495. "application/json"
  9496. ],
  9497. parameters: [
  9498. {
  9499. name: "uuid",
  9500. in: "path",
  9501. description: "uuid of resource to update",
  9502. required: true,
  9503. type: "string"
  9504. },
  9505. {
  9506. in: "body",
  9507. name: "resource",
  9508. description: "Resource properties to update",
  9509. required: true,
  9510. schema: {
  9511. $ref: "#/definitions/DrugUpdate"
  9512. }
  9513. }
  9514. ],
  9515. responses: {
  9516. 201: {
  9517. description: "drug response"
  9518. },
  9519. 401: {
  9520. description: "User not logged in"
  9521. }
  9522. }
  9523. },
  9524. delete: {
  9525. tags: [
  9526. "drug"
  9527. ],
  9528. summary: "Delete or purge resource by uuid",
  9529. description: "The resource will be voided/retired unless purge = 'true'",
  9530. operationId: "deleteDrug",
  9531. consumes: [
  9532. "application/json"
  9533. ],
  9534. produces: [
  9535. "application/json"
  9536. ],
  9537. parameters: [
  9538. {
  9539. name: "uuid",
  9540. in: "path",
  9541. description: "uuid to delete",
  9542. required: true,
  9543. type: "string"
  9544. },
  9545. {
  9546. name: "purge",
  9547. in: "query",
  9548. required: false,
  9549. type: "boolean"
  9550. }
  9551. ],
  9552. responses: {
  9553. 204: {
  9554. description: "Delete successful"
  9555. },
  9556. 401: {
  9557. description: "User not logged in"
  9558. },
  9559. 404: {
  9560. description: "Resource with given uuid doesn't exist"
  9561. }
  9562. }
  9563. }
  9564. },
  9565. /field: {
  9566. get: {
  9567. tags: [
  9568. "field"
  9569. ],
  9570. summary: "Fetch all non-retired field resources or perform search",
  9571. description: "All search parameters are optional",
  9572. operationId: "getAllFields",
  9573. consumes: [
  9574. "application/json"
  9575. ],
  9576. produces: [
  9577. "application/json"
  9578. ],
  9579. parameters: [
  9580. {
  9581. name: "limit",
  9582. in: "query",
  9583. description: "The number of results to return",
  9584. required: false,
  9585. type: "integer"
  9586. },
  9587. {
  9588. name: "startIndex",
  9589. in: "query",
  9590. description: "The offset at which to start",
  9591. required: false,
  9592. type: "integer"
  9593. },
  9594. {
  9595. name: "v",
  9596. in: "query",
  9597. description: "The representation to return (ref, default, full or custom)",
  9598. required: false,
  9599. type: "string",
  9600. enum: [
  9601. "ref",
  9602. "default",
  9603. "full",
  9604. "custom"
  9605. ]
  9606. },
  9607. {
  9608. name: "q",
  9609. in: "query",
  9610. description: "The search query",
  9611. required: false,
  9612. type: "string"
  9613. }
  9614. ],
  9615. responses: {
  9616. 200: {
  9617. description: "field response",
  9618. schema: {
  9619. $ref: "#/definitions/FetchAll"
  9620. }
  9621. },
  9622. 401: {
  9623. description: "User not logged in"
  9624. }
  9625. }
  9626. },
  9627. post: {
  9628. tags: [
  9629. "field"
  9630. ],
  9631. summary: "Create with properties in request",
  9632. operationId: "createField",
  9633. consumes: [
  9634. "application/json"
  9635. ],
  9636. produces: [
  9637. "application/json"
  9638. ],
  9639. parameters: [
  9640. {
  9641. in: "body",
  9642. name: "resource",
  9643. description: "Resource to create",
  9644. required: true,
  9645. schema: {
  9646. $ref: "#/definitions/FieldCreate"
  9647. }
  9648. }
  9649. ],
  9650. responses: {
  9651. 201: {
  9652. description: "field response"
  9653. },
  9654. 401: {
  9655. description: "User not logged in"
  9656. }
  9657. }
  9658. }
  9659. },
  9660. /field/{uuid}: {
  9661. get: {
  9662. tags: [
  9663. "field"
  9664. ],
  9665. summary: "Fetch by uuid",
  9666. operationId: "getField",
  9667. consumes: [
  9668. "application/json"
  9669. ],
  9670. produces: [
  9671. "application/json"
  9672. ],
  9673. parameters: [
  9674. {
  9675. name: "v",
  9676. in: "query",
  9677. description: "The representation to return (ref, default, full or custom)",
  9678. required: false,
  9679. type: "string",
  9680. enum: [
  9681. "ref",
  9682. "default",
  9683. "full",
  9684. "custom"
  9685. ]
  9686. },
  9687. {
  9688. name: "uuid",
  9689. in: "path",
  9690. description: "uuid to filter by",
  9691. required: true,
  9692. type: "string"
  9693. }
  9694. ],
  9695. responses: {
  9696. 200: {
  9697. description: "field response",
  9698. schema: {
  9699. $ref: "#/definitions/FieldGet"
  9700. }
  9701. },
  9702. 401: {
  9703. description: "User not logged in"
  9704. },
  9705. 404: {
  9706. description: "Resource with given uuid doesn't exist"
  9707. }
  9708. }
  9709. },
  9710. post: {
  9711. tags: [
  9712. "field"
  9713. ],
  9714. summary: "Edit with given uuid, only modifying properties in request",
  9715. operationId: "updateField",
  9716. consumes: [
  9717. "application/json"
  9718. ],
  9719. produces: [
  9720. "application/json"
  9721. ],
  9722. parameters: [
  9723. {
  9724. name: "uuid",
  9725. in: "path",
  9726. description: "uuid of resource to update",
  9727. required: true,
  9728. type: "string"
  9729. },
  9730. {
  9731. in: "body",
  9732. name: "resource",
  9733. description: "Resource properties to update",
  9734. required: true,
  9735. schema: {
  9736. $ref: "#/definitions/FieldUpdate"
  9737. }
  9738. }
  9739. ],
  9740. responses: {
  9741. 201: {
  9742. description: "field response"
  9743. },
  9744. 401: {
  9745. description: "User not logged in"
  9746. }
  9747. }
  9748. },
  9749. delete: {
  9750. tags: [
  9751. "field"
  9752. ],
  9753. summary: "Delete or purge resource by uuid",
  9754. description: "The resource will be voided/retired unless purge = 'true'",
  9755. operationId: "deleteField",
  9756. consumes: [
  9757. "application/json"
  9758. ],
  9759. produces: [
  9760. "application/json"
  9761. ],
  9762. parameters: [
  9763. {
  9764. name: "uuid",
  9765. in: "path",
  9766. description: "uuid to delete",
  9767. required: true,
  9768. type: "string"
  9769. },
  9770. {
  9771. name: "purge",
  9772. in: "query",
  9773. required: false,
  9774. type: "boolean"
  9775. }
  9776. ],
  9777. responses: {
  9778. 204: {
  9779. description: "Delete successful"
  9780. },
  9781. 401: {
  9782. description: "User not logged in"
  9783. },
  9784. 404: {
  9785. description: "Resource with given uuid doesn't exist"
  9786. }
  9787. }
  9788. }
  9789. },
  9790. /encountertype: {
  9791. get: {
  9792. tags: [
  9793. "encountertype"
  9794. ],
  9795. summary: "Fetch all non-retired encountertype resources or perform search",
  9796. description: "All search parameters are optional",
  9797. operationId: "getAllEncounterTypes",
  9798. consumes: [
  9799. "application/json"
  9800. ],
  9801. produces: [
  9802. "application/json"
  9803. ],
  9804. parameters: [
  9805. {
  9806. name: "limit",
  9807. in: "query",
  9808. description: "The number of results to return",
  9809. required: false,
  9810. type: "integer"
  9811. },
  9812. {
  9813. name: "startIndex",
  9814. in: "query",
  9815. description: "The offset at which to start",
  9816. required: false,
  9817. type: "integer"
  9818. },
  9819. {
  9820. name: "v",
  9821. in: "query",
  9822. description: "The representation to return (ref, default, full or custom)",
  9823. required: false,
  9824. type: "string",
  9825. enum: [
  9826. "ref",
  9827. "default",
  9828. "full",
  9829. "custom"
  9830. ]
  9831. },
  9832. {
  9833. name: "q",
  9834. in: "query",
  9835. description: "The search query",
  9836. required: false,
  9837. type: "string"
  9838. }
  9839. ],
  9840. responses: {
  9841. 200: {
  9842. description: "encountertype response",
  9843. schema: {
  9844. $ref: "#/definitions/FetchAll"
  9845. }
  9846. },
  9847. 401: {
  9848. description: "User not logged in"
  9849. }
  9850. }
  9851. },
  9852. post: {
  9853. tags: [
  9854. "encountertype"
  9855. ],
  9856. summary: "Create with properties in request",
  9857. operationId: "createEncounterType",
  9858. consumes: [
  9859. "application/json"
  9860. ],
  9861. produces: [
  9862. "application/json"
  9863. ],
  9864. parameters: [
  9865. {
  9866. in: "body",
  9867. name: "resource",
  9868. description: "Resource to create",
  9869. required: true,
  9870. schema: {
  9871. $ref: "#/definitions/EncountertypeCreate"
  9872. }
  9873. }
  9874. ],
  9875. responses: {
  9876. 201: {
  9877. description: "encountertype response"
  9878. },
  9879. 401: {
  9880. description: "User not logged in"
  9881. }
  9882. }
  9883. }
  9884. },
  9885. /encountertype/{uuid}: {
  9886. get: {
  9887. tags: [
  9888. "encountertype"
  9889. ],
  9890. summary: "Fetch by uuid",
  9891. operationId: "getEncounterType",
  9892. consumes: [
  9893. "application/json"
  9894. ],
  9895. produces: [
  9896. "application/json"
  9897. ],
  9898. parameters: [
  9899. {
  9900. name: "v",
  9901. in: "query",
  9902. description: "The representation to return (ref, default, full or custom)",
  9903. required: false,
  9904. type: "string",
  9905. enum: [
  9906. "ref",
  9907. "default",
  9908. "full",
  9909. "custom"
  9910. ]
  9911. },
  9912. {
  9913. name: "uuid",
  9914. in: "path",
  9915. description: "uuid to filter by",
  9916. required: true,
  9917. type: "string"
  9918. }
  9919. ],
  9920. responses: {
  9921. 200: {
  9922. description: "encountertype response",
  9923. schema: {
  9924. $ref: "#/definitions/EncountertypeGet"
  9925. }
  9926. },
  9927. 401: {
  9928. description: "User not logged in"
  9929. },
  9930. 404: {
  9931. description: "Resource with given uuid doesn't exist"
  9932. }
  9933. }
  9934. },
  9935. post: {
  9936. tags: [
  9937. "encountertype"
  9938. ],
  9939. summary: "Edit with given uuid, only modifying properties in request",
  9940. operationId: "updateEncounterType",
  9941. consumes: [
  9942. "application/json"
  9943. ],
  9944. produces: [
  9945. "application/json"
  9946. ],
  9947. parameters: [
  9948. {
  9949. name: "uuid",
  9950. in: "path",
  9951. description: "uuid of resource to update",
  9952. required: true,
  9953. type: "string"
  9954. },
  9955. {
  9956. in: "body",
  9957. name: "resource",
  9958. description: "Resource properties to update",
  9959. required: true,
  9960. schema: {
  9961. $ref: "#/definitions/EncountertypeUpdate"
  9962. }
  9963. }
  9964. ],
  9965. responses: {
  9966. 201: {
  9967. description: "encountertype response"
  9968. },
  9969. 401: {
  9970. description: "User not logged in"
  9971. }
  9972. }
  9973. },
  9974. delete: {
  9975. tags: [
  9976. "encountertype"
  9977. ],
  9978. summary: "Delete or purge resource by uuid",
  9979. description: "The resource will be voided/retired unless purge = 'true'",
  9980. operationId: "deleteEncounterType",
  9981. consumes: [
  9982. "application/json"
  9983. ],
  9984. produces: [
  9985. "application/json"
  9986. ],
  9987. parameters: [
  9988. {
  9989. name: "uuid",
  9990. in: "path",
  9991. description: "uuid to delete",
  9992. required: true,
  9993. type: "string"
  9994. },
  9995. {
  9996. name: "purge",
  9997. in: "query",
  9998. required: false,
  9999. type: "boolean"
  10000. }
  10001. ],
  10002. responses: {
  10003. 204: {
  10004. description: "Delete successful"
  10005. },
  10006. 401: {
  10007. description: "User not logged in"
  10008. },
  10009. 404: {
  10010. description: "Resource with given uuid doesn't exist"
  10011. }
  10012. }
  10013. }
  10014. },
  10015. /conceptreferencetermmap: {
  10016. get: {
  10017. tags: [
  10018. "conceptreferencetermmap"
  10019. ],
  10020. summary: "Search for conceptreferencetermmap",
  10021. description: "At least one search parameter must be specified",
  10022. operationId: "getAllConceptReferenceTermMaps",
  10023. produces: [
  10024. "application/json",
  10025. "application/xml"
  10026. ],
  10027. parameters: [
  10028. {
  10029. name: "limit",
  10030. in: "query",
  10031. description: "The number of results to return",
  10032. required: false,
  10033. type: "integer"
  10034. },
  10035. {
  10036. name: "startIndex",
  10037. in: "query",
  10038. description: "The offset at which to start",
  10039. required: false,
  10040. type: "integer"
  10041. },
  10042. {
  10043. name: "v",
  10044. in: "query",
  10045. description: "The representation to return (ref, default, full or custom)",
  10046. required: false,
  10047. type: "string",
  10048. enum: [
  10049. "ref",
  10050. "default",
  10051. "full",
  10052. "custom"
  10053. ]
  10054. },
  10055. {
  10056. name: "q",
  10057. in: "query",
  10058. description: "The search query",
  10059. required: false,
  10060. type: "string"
  10061. },
  10062. {
  10063. name: "maps",
  10064. in: "query",
  10065. required: false,
  10066. type: "string"
  10067. },
  10068. {
  10069. name: "termB",
  10070. in: "query",
  10071. required: false,
  10072. type: "string"
  10073. },
  10074. {
  10075. name: "termA",
  10076. in: "query",
  10077. required: false,
  10078. type: "string"
  10079. },
  10080. {
  10081. name: "maptype",
  10082. in: "query",
  10083. description: "Must be used with maps",
  10084. required: false,
  10085. type: "string"
  10086. },
  10087. {
  10088. name: "to",
  10089. in: "query",
  10090. required: false,
  10091. type: "string"
  10092. }
  10093. ],
  10094. responses: {
  10095. 200: {
  10096. description: "conceptreferencetermmap response",
  10097. schema: {
  10098. $ref: "#/definitions/FetchAll"
  10099. }
  10100. }
  10101. }
  10102. },
  10103. post: {
  10104. tags: [
  10105. "conceptreferencetermmap"
  10106. ],
  10107. summary: "Create with properties in request",
  10108. operationId: "createConceptReferenceTermMap",
  10109. consumes: [
  10110. "application/json"
  10111. ],
  10112. produces: [
  10113. "application/json"
  10114. ],
  10115. parameters: [
  10116. {
  10117. in: "body",
  10118. name: "resource",
  10119. description: "Resource to create",
  10120. required: true,
  10121. schema: {
  10122. $ref: "#/definitions/ConceptreferencetermmapCreate"
  10123. }
  10124. }
  10125. ],
  10126. responses: {
  10127. 201: {
  10128. description: "conceptreferencetermmap response"
  10129. },
  10130. 401: {
  10131. description: "User not logged in"
  10132. }
  10133. }
  10134. }
  10135. },
  10136. /conceptreferencetermmap/{uuid}: {
  10137. get: {
  10138. tags: [
  10139. "conceptreferencetermmap"
  10140. ],
  10141. summary: "Fetch by uuid",
  10142. operationId: "getConceptReferenceTermMap",
  10143. consumes: [
  10144. "application/json"
  10145. ],
  10146. produces: [
  10147. "application/json"
  10148. ],
  10149. parameters: [
  10150. {
  10151. name: "v",
  10152. in: "query",
  10153. description: "The representation to return (ref, default, full or custom)",
  10154. required: false,
  10155. type: "string",
  10156. enum: [
  10157. "ref",
  10158. "default",
  10159. "full",
  10160. "custom"
  10161. ]
  10162. },
  10163. {
  10164. name: "uuid",
  10165. in: "path",
  10166. description: "uuid to filter by",
  10167. required: true,
  10168. type: "string"
  10169. }
  10170. ],
  10171. responses: {
  10172. 200: {
  10173. description: "conceptreferencetermmap response",
  10174. schema: {
  10175. $ref: "#/definitions/ConceptreferencetermmapGet"
  10176. }
  10177. },
  10178. 401: {
  10179. description: "User not logged in"
  10180. },
  10181. 404: {
  10182. description: "Resource with given uuid doesn't exist"
  10183. }
  10184. }
  10185. },
  10186. post: {
  10187. tags: [
  10188. "conceptreferencetermmap"
  10189. ],
  10190. summary: "Edit with given uuid, only modifying properties in request",
  10191. operationId: "updateConceptReferenceTermMap",
  10192. consumes: [
  10193. "application/json"
  10194. ],
  10195. produces: [
  10196. "application/json"
  10197. ],
  10198. parameters: [
  10199. {
  10200. name: "uuid",
  10201. in: "path",
  10202. description: "uuid of resource to update",
  10203. required: true,
  10204. type: "string"
  10205. },
  10206. {
  10207. in: "body",
  10208. name: "resource",
  10209. description: "Resource properties to update",
  10210. required: true,
  10211. schema: {
  10212. $ref: "#/definitions/ConceptreferencetermmapUpdate"
  10213. }
  10214. }
  10215. ],
  10216. responses: {
  10217. 201: {
  10218. description: "conceptreferencetermmap response"
  10219. },
  10220. 401: {
  10221. description: "User not logged in"
  10222. }
  10223. }
  10224. },
  10225. delete: {
  10226. tags: [
  10227. "conceptreferencetermmap"
  10228. ],
  10229. summary: "Delete or purge resource by uuid",
  10230. description: "The resource will be voided/retired unless purge = 'true'",
  10231. operationId: "deleteConceptReferenceTermMap",
  10232. consumes: [
  10233. "application/json"
  10234. ],
  10235. produces: [
  10236. "application/json"
  10237. ],
  10238. parameters: [
  10239. {
  10240. name: "uuid",
  10241. in: "path",
  10242. description: "uuid to delete",
  10243. required: true,
  10244. type: "string"
  10245. },
  10246. {
  10247. name: "purge",
  10248. in: "query",
  10249. required: false,
  10250. type: "boolean"
  10251. }
  10252. ],
  10253. responses: {
  10254. 204: {
  10255. description: "Delete successful"
  10256. },
  10257. 401: {
  10258. description: "User not logged in"
  10259. },
  10260. 404: {
  10261. description: "Resource with given uuid doesn't exist"
  10262. }
  10263. }
  10264. }
  10265. },
  10266. /encounter: {
  10267. get: {
  10268. tags: [
  10269. "encounter"
  10270. ],
  10271. summary: "Search for encounter",
  10272. description: "At least one search parameter must be specified",
  10273. operationId: "getAllEncounters",
  10274. produces: [
  10275. "application/json",
  10276. "application/xml"
  10277. ],
  10278. parameters: [
  10279. {
  10280. name: "limit",
  10281. in: "query",
  10282. description: "The number of results to return",
  10283. required: false,
  10284. type: "integer"
  10285. },
  10286. {
  10287. name: "startIndex",
  10288. in: "query",
  10289. description: "The offset at which to start",
  10290. required: false,
  10291. type: "integer"
  10292. },
  10293. {
  10294. name: "v",
  10295. in: "query",
  10296. description: "The representation to return (ref, default, full or custom)",
  10297. required: false,
  10298. type: "string",
  10299. enum: [
  10300. "ref",
  10301. "default",
  10302. "full",
  10303. "custom"
  10304. ]
  10305. },
  10306. {
  10307. name: "q",
  10308. in: "query",
  10309. description: "The search query",
  10310. required: false,
  10311. type: "string"
  10312. },
  10313. {
  10314. name: "obsConcept",
  10315. in: "query",
  10316. required: false,
  10317. type: "string"
  10318. },
  10319. {
  10320. name: "obsValues",
  10321. in: "query",
  10322. description: "Must be used with patient and obsConcept",
  10323. required: false,
  10324. type: "string"
  10325. },
  10326. {
  10327. name: "todate",
  10328. in: "query",
  10329. description: "Must be used with patient",
  10330. required: false,
  10331. type: "string"
  10332. },
  10333. {
  10334. name: "patient",
  10335. in: "query",
  10336. required: false,
  10337. type: "string"
  10338. },
  10339. {
  10340. name: "encounterType",
  10341. in: "query",
  10342. description: "Must be used with patient",
  10343. required: false,
  10344. type: "string"
  10345. },
  10346. {
  10347. name: "fromdate",
  10348. in: "query",
  10349. description: "Must be used with patient",
  10350. required: false,
  10351. type: "string"
  10352. },
  10353. {
  10354. name: "order",
  10355. in: "query",
  10356. description: "Must be used with patient",
  10357. required: false,
  10358. type: "string"
  10359. }
  10360. ],
  10361. responses: {
  10362. 200: {
  10363. description: "encounter response",
  10364. schema: {
  10365. $ref: "#/definitions/FetchAll"
  10366. }
  10367. }
  10368. }
  10369. },
  10370. post: {
  10371. tags: [
  10372. "encounter"
  10373. ],
  10374. summary: "Create with properties in request",
  10375. operationId: "createEncounter",
  10376. consumes: [
  10377. "application/json"
  10378. ],
  10379. produces: [
  10380. "application/json"
  10381. ],
  10382. parameters: [
  10383. {
  10384. in: "body",
  10385. name: "resource",
  10386. description: "Resource to create",
  10387. required: true,
  10388. schema: {
  10389. $ref: "#/definitions/EncounterCreate"
  10390. }
  10391. }
  10392. ],
  10393. responses: {
  10394. 201: {
  10395. description: "encounter response"
  10396. },
  10397. 401: {
  10398. description: "User not logged in"
  10399. }
  10400. }
  10401. }
  10402. },
  10403. /encounter/{uuid}: {
  10404. get: {
  10405. tags: [
  10406. "encounter"
  10407. ],
  10408. summary: "Fetch by uuid",
  10409. operationId: "getEncounter",
  10410. consumes: [
  10411. "application/json"
  10412. ],
  10413. produces: [
  10414. "application/json"
  10415. ],
  10416. parameters: [
  10417. {
  10418. name: "v",
  10419. in: "query",
  10420. description: "The representation to return (ref, default, full or custom)",
  10421. required: false,
  10422. type: "string",
  10423. enum: [
  10424. "ref",
  10425. "default",
  10426. "full",
  10427. "custom"
  10428. ]
  10429. },
  10430. {
  10431. name: "uuid",
  10432. in: "path",
  10433. description: "uuid to filter by",
  10434. required: true,
  10435. type: "string"
  10436. }
  10437. ],
  10438. responses: {
  10439. 200: {
  10440. description: "encounter response",
  10441. schema: {
  10442. $ref: "#/definitions/EncounterGet"
  10443. }
  10444. },
  10445. 401: {
  10446. description: "User not logged in"
  10447. },
  10448. 404: {
  10449. description: "Resource with given uuid doesn't exist"
  10450. }
  10451. }
  10452. },
  10453. post: {
  10454. tags: [
  10455. "encounter"
  10456. ],
  10457. summary: "Edit with given uuid, only modifying properties in request",
  10458. operationId: "updateEncounter",
  10459. consumes: [
  10460. "application/json"
  10461. ],
  10462. produces: [
  10463. "application/json"
  10464. ],
  10465. parameters: [
  10466. {
  10467. name: "uuid",
  10468. in: "path",
  10469. description: "uuid of resource to update",
  10470. required: true,
  10471. type: "string"
  10472. },
  10473. {
  10474. in: "body",
  10475. name: "resource",
  10476. description: "Resource properties to update",
  10477. required: true,
  10478. schema: {
  10479. $ref: "#/definitions/EncounterUpdate"
  10480. }
  10481. }
  10482. ],
  10483. responses: {
  10484. 201: {
  10485. description: "encounter response"
  10486. },
  10487. 401: {
  10488. description: "User not logged in"
  10489. }
  10490. }
  10491. },
  10492. delete: {
  10493. tags: [
  10494. "encounter"
  10495. ],
  10496. summary: "Delete or purge resource by uuid",
  10497. description: "The resource will be voided/retired unless purge = 'true'",
  10498. operationId: "deleteEncounter",
  10499. consumes: [
  10500. "application/json"
  10501. ],
  10502. produces: [
  10503. "application/json"
  10504. ],
  10505. parameters: [
  10506. {
  10507. name: "uuid",
  10508. in: "path",
  10509. description: "uuid to delete",
  10510. required: true,
  10511. type: "string"
  10512. },
  10513. {
  10514. name: "purge",
  10515. in: "query",
  10516. required: false,
  10517. type: "boolean"
  10518. }
  10519. ],
  10520. responses: {
  10521. 204: {
  10522. description: "Delete successful"
  10523. },
  10524. 401: {
  10525. description: "User not logged in"
  10526. },
  10527. 404: {
  10528. description: "Resource with given uuid doesn't exist"
  10529. }
  10530. }
  10531. }
  10532. },
  10533. /serverlog: {
  10534. get: {
  10535. tags: [
  10536. "serverlog"
  10537. ],
  10538. summary: "Fetch all non-retired",
  10539. operationId: "getAllServerLogs",
  10540. consumes: [
  10541. "application/json"
  10542. ],
  10543. produces: [
  10544. "application/json"
  10545. ],
  10546. parameters: [
  10547. {
  10548. name: "limit",
  10549. in: "query",
  10550. description: "The number of results to return",
  10551. required: false,
  10552. type: "integer"
  10553. },
  10554. {
  10555. name: "startIndex",
  10556. in: "query",
  10557. description: "The offset at which to start",
  10558. required: false,
  10559. type: "integer"
  10560. },
  10561. {
  10562. name: "v",
  10563. in: "query",
  10564. description: "The representation to return (ref, default, full or custom)",
  10565. required: false,
  10566. type: "string",
  10567. enum: [
  10568. "ref",
  10569. "default",
  10570. "full",
  10571. "custom"
  10572. ]
  10573. }
  10574. ],
  10575. responses: {
  10576. 200: {
  10577. description: "serverlog response",
  10578. schema: {
  10579. $ref: "#/definitions/FetchAll"
  10580. }
  10581. },
  10582. 401: {
  10583. description: "User not logged in"
  10584. }
  10585. }
  10586. }
  10587. },
  10588. /serverlog/{uuid}: {
  10589. get: {
  10590. tags: [
  10591. "serverlog"
  10592. ],
  10593. summary: "Fetch by uuid",
  10594. operationId: "getServerLog",
  10595. consumes: [
  10596. "application/json"
  10597. ],
  10598. produces: [
  10599. "application/json"
  10600. ],
  10601. parameters: [
  10602. {
  10603. name: "v",
  10604. in: "query",
  10605. description: "The representation to return (ref, default, full or custom)",
  10606. required: false,
  10607. type: "string",
  10608. enum: [
  10609. "ref",
  10610. "default",
  10611. "full",
  10612. "custom"
  10613. ]
  10614. },
  10615. {
  10616. name: "uuid",
  10617. in: "path",
  10618. description: "uuid to filter by",
  10619. required: true,
  10620. type: "string"
  10621. }
  10622. ],
  10623. responses: {
  10624. 200: {
  10625. description: "serverlog response",
  10626. schema: {
  10627. $ref: "#/definitions/ServerlogGet"
  10628. }
  10629. },
  10630. 401: {
  10631. description: "User not logged in"
  10632. },
  10633. 404: {
  10634. description: "Resource with given uuid doesn't exist"
  10635. }
  10636. }
  10637. }
  10638. },
  10639. /hl7: {
  10640. get: {
  10641. tags: [
  10642. "hl7"
  10643. ],
  10644. summary: "Search for hl7",
  10645. description: "At least one search parameter must be specified",
  10646. operationId: "getAllHL7Messages",
  10647. produces: [
  10648. "application/json",
  10649. "application/xml"
  10650. ],
  10651. parameters: [
  10652. {
  10653. name: "limit",
  10654. in: "query",
  10655. description: "The number of results to return",
  10656. required: false,
  10657. type: "integer"
  10658. },
  10659. {
  10660. name: "startIndex",
  10661. in: "query",
  10662. description: "The offset at which to start",
  10663. required: false,
  10664. type: "integer"
  10665. },
  10666. {
  10667. name: "v",
  10668. in: "query",
  10669. description: "The representation to return (ref, default, full or custom)",
  10670. required: false,
  10671. type: "string",
  10672. enum: [
  10673. "ref",
  10674. "default",
  10675. "full",
  10676. "custom"
  10677. ]
  10678. },
  10679. {
  10680. name: "q",
  10681. in: "query",
  10682. description: "The search query",
  10683. required: true,
  10684. type: "string"
  10685. }
  10686. ],
  10687. responses: {
  10688. 200: {
  10689. description: "hl7 response",
  10690. schema: {
  10691. $ref: "#/definitions/FetchAll"
  10692. }
  10693. }
  10694. }
  10695. },
  10696. post: {
  10697. tags: [
  10698. "hl7"
  10699. ],
  10700. summary: "Create with properties in request",
  10701. operationId: "createHL7Message",
  10702. consumes: [
  10703. "application/json"
  10704. ],
  10705. produces: [
  10706. "application/json"
  10707. ],
  10708. parameters: [
  10709. {
  10710. in: "body",
  10711. name: "resource",
  10712. description: "Resource to create",
  10713. required: true,
  10714. schema: {
  10715. $ref: "#/definitions/Hl7Create"
  10716. }
  10717. }
  10718. ],
  10719. responses: {
  10720. 201: {
  10721. description: "hl7 response"
  10722. },
  10723. 401: {
  10724. description: "User not logged in"
  10725. }
  10726. }
  10727. }
  10728. },
  10729. /conceptsource: {
  10730. get: {
  10731. tags: [
  10732. "conceptsource"
  10733. ],
  10734. summary: "Fetch all non-retired conceptsource resources or perform search",
  10735. description: "All search parameters are optional",
  10736. operationId: "getAllConceptSources",
  10737. consumes: [
  10738. "application/json"
  10739. ],
  10740. produces: [
  10741. "application/json"
  10742. ],
  10743. parameters: [
  10744. {
  10745. name: "limit",
  10746. in: "query",
  10747. description: "The number of results to return",
  10748. required: false,
  10749. type: "integer"
  10750. },
  10751. {
  10752. name: "startIndex",
  10753. in: "query",
  10754. description: "The offset at which to start",
  10755. required: false,
  10756. type: "integer"
  10757. },
  10758. {
  10759. name: "v",
  10760. in: "query",
  10761. description: "The representation to return (ref, default, full or custom)",
  10762. required: false,
  10763. type: "string",
  10764. enum: [
  10765. "ref",
  10766. "default",
  10767. "full",
  10768. "custom"
  10769. ]
  10770. },
  10771. {
  10772. name: "q",
  10773. in: "query",
  10774. description: "The search query",
  10775. required: false,
  10776. type: "string"
  10777. }
  10778. ],
  10779. responses: {
  10780. 200: {
  10781. description: "conceptsource response",
  10782. schema: {
  10783. $ref: "#/definitions/FetchAll"
  10784. }
  10785. },
  10786. 401: {
  10787. description: "User not logged in"
  10788. }
  10789. }
  10790. },
  10791. post: {
  10792. tags: [
  10793. "conceptsource"
  10794. ],
  10795. summary: "Create with properties in request",
  10796. operationId: "createConceptSource",
  10797. consumes: [
  10798. "application/json"
  10799. ],
  10800. produces: [
  10801. "application/json"
  10802. ],
  10803. parameters: [
  10804. {
  10805. in: "body",
  10806. name: "resource",
  10807. description: "Resource to create",
  10808. required: true,
  10809. schema: {
  10810. $ref: "#/definitions/ConceptsourceCreate"
  10811. }
  10812. }
  10813. ],
  10814. responses: {
  10815. 201: {
  10816. description: "conceptsource response"
  10817. },
  10818. 401: {
  10819. description: "User not logged in"
  10820. }
  10821. }
  10822. }
  10823. },
  10824. /conceptsource/{uuid}: {
  10825. get: {
  10826. tags: [
  10827. "conceptsource"
  10828. ],
  10829. summary: "Fetch by uuid",
  10830. operationId: "getConceptSource",
  10831. consumes: [
  10832. "application/json"
  10833. ],
  10834. produces: [
  10835. "application/json"
  10836. ],
  10837. parameters: [
  10838. {
  10839. name: "v",
  10840. in: "query",
  10841. description: "The representation to return (ref, default, full or custom)",
  10842. required: false,
  10843. type: "string",
  10844. enum: [
  10845. "ref",
  10846. "default",
  10847. "full",
  10848. "custom"
  10849. ]
  10850. },
  10851. {
  10852. name: "uuid",
  10853. in: "path",
  10854. description: "uuid to filter by",
  10855. required: true,
  10856. type: "string"
  10857. }
  10858. ],
  10859. responses: {
  10860. 200: {
  10861. description: "conceptsource response",
  10862. schema: {
  10863. $ref: "#/definitions/ConceptsourceGet"
  10864. }
  10865. },
  10866. 401: {
  10867. description: "User not logged in"
  10868. },
  10869. 404: {
  10870. description: "Resource with given uuid doesn't exist"
  10871. }
  10872. }
  10873. },
  10874. post: {
  10875. tags: [
  10876. "conceptsource"
  10877. ],
  10878. summary: "Edit with given uuid, only modifying properties in request",
  10879. operationId: "updateConceptSource",
  10880. consumes: [
  10881. "application/json"
  10882. ],
  10883. produces: [
  10884. "application/json"
  10885. ],
  10886. parameters: [
  10887. {
  10888. name: "uuid",
  10889. in: "path",
  10890. description: "uuid of resource to update",
  10891. required: true,
  10892. type: "string"
  10893. },
  10894. {
  10895. in: "body",
  10896. name: "resource",
  10897. description: "Resource properties to update",
  10898. required: true,
  10899. schema: {
  10900. $ref: "#/definitions/ConceptsourceUpdate"
  10901. }
  10902. }
  10903. ],
  10904. responses: {
  10905. 201: {
  10906. description: "conceptsource response"
  10907. },
  10908. 401: {
  10909. description: "User not logged in"
  10910. }
  10911. }
  10912. },
  10913. delete: {
  10914. tags: [
  10915. "conceptsource"
  10916. ],
  10917. summary: "Delete or purge resource by uuid",
  10918. description: "The resource will be voided/retired unless purge = 'true'",
  10919. operationId: "deleteConceptSource",
  10920. consumes: [
  10921. "application/json"
  10922. ],
  10923. produces: [
  10924. "application/json"
  10925. ],
  10926. parameters: [
  10927. {
  10928. name: "uuid",
  10929. in: "path",
  10930. description: "uuid to delete",
  10931. required: true,
  10932. type: "string"
  10933. },
  10934. {
  10935. name: "purge",
  10936. in: "query",
  10937. required: false,
  10938. type: "boolean"
  10939. }
  10940. ],
  10941. responses: {
  10942. 204: {
  10943. description: "Delete successful"
  10944. },
  10945. 401: {
  10946. description: "User not logged in"
  10947. },
  10948. 404: {
  10949. description: "Resource with given uuid doesn't exist"
  10950. }
  10951. }
  10952. }
  10953. },
  10954. /provider: {
  10955. get: {
  10956. tags: [
  10957. "provider"
  10958. ],
  10959. summary: "Fetch all non-retired provider resources or perform search",
  10960. description: "All search parameters are optional",
  10961. operationId: "getAllProviders",
  10962. consumes: [
  10963. "application/json"
  10964. ],
  10965. produces: [
  10966. "application/json"
  10967. ],
  10968. parameters: [
  10969. {
  10970. name: "limit",
  10971. in: "query",
  10972. description: "The number of results to return",
  10973. required: false,
  10974. type: "integer"
  10975. },
  10976. {
  10977. name: "startIndex",
  10978. in: "query",
  10979. description: "The offset at which to start",
  10980. required: false,
  10981. type: "integer"
  10982. },
  10983. {
  10984. name: "v",
  10985. in: "query",
  10986. description: "The representation to return (ref, default, full or custom)",
  10987. required: false,
  10988. type: "string",
  10989. enum: [
  10990. "ref",
  10991. "default",
  10992. "full",
  10993. "custom"
  10994. ]
  10995. },
  10996. {
  10997. name: "q",
  10998. in: "query",
  10999. description: "The search query",
  11000. required: false,
  11001. type: "string"
  11002. },
  11003. {
  11004. name: "user",
  11005. in: "query",
  11006. required: false,
  11007. type: "string"
  11008. }
  11009. ],
  11010. responses: {
  11011. 200: {
  11012. description: "provider response",
  11013. schema: {
  11014. $ref: "#/definitions/FetchAll"
  11015. }
  11016. },
  11017. 401: {
  11018. description: "User not logged in"
  11019. }
  11020. }
  11021. },
  11022. post: {
  11023. tags: [
  11024. "provider"
  11025. ],
  11026. summary: "Create with properties in request",
  11027. operationId: "createProvider",
  11028. consumes: [
  11029. "application/json"
  11030. ],
  11031. produces: [
  11032. "application/json"
  11033. ],
  11034. parameters: [
  11035. {
  11036. in: "body",
  11037. name: "resource",
  11038. description: "Resource to create",
  11039. required: true,
  11040. schema: {
  11041. $ref: "#/definitions/ProviderCreate"
  11042. }
  11043. }
  11044. ],
  11045. responses: {
  11046. 201: {
  11047. description: "provider response"
  11048. },
  11049. 401: {
  11050. description: "User not logged in"
  11051. }
  11052. }
  11053. }
  11054. },
  11055. /provider/{uuid}: {
  11056. get: {
  11057. tags: [
  11058. "provider"
  11059. ],
  11060. summary: "Fetch by uuid",
  11061. operationId: "getProvider",
  11062. consumes: [
  11063. "application/json"
  11064. ],
  11065. produces: [
  11066. "application/json"
  11067. ],
  11068. parameters: [
  11069. {
  11070. name: "v",
  11071. in: "query",
  11072. description: "The representation to return (ref, default, full or custom)",
  11073. required: false,
  11074. type: "string",
  11075. enum: [
  11076. "ref",
  11077. "default",
  11078. "full",
  11079. "custom"
  11080. ]
  11081. },
  11082. {
  11083. name: "uuid",
  11084. in: "path",
  11085. description: "uuid to filter by",
  11086. required: true,
  11087. type: "string"
  11088. }
  11089. ],
  11090. responses: {
  11091. 200: {
  11092. description: "provider response",
  11093. schema: {
  11094. $ref: "#/definitions/ProviderGet"
  11095. }
  11096. },
  11097. 401: {
  11098. description: "User not logged in"
  11099. },
  11100. 404: {
  11101. description: "Resource with given uuid doesn't exist"
  11102. }
  11103. }
  11104. },
  11105. post: {
  11106. tags: [
  11107. "provider"
  11108. ],
  11109. summary: "Edit with given uuid, only modifying properties in request",
  11110. operationId: "updateProvider",
  11111. consumes: [
  11112. "application/json"
  11113. ],
  11114. produces: [
  11115. "application/json"
  11116. ],
  11117. parameters: [
  11118. {
  11119. name: "uuid",
  11120. in: "path",
  11121. description: "uuid of resource to update",
  11122. required: true,
  11123. type: "string"
  11124. },
  11125. {
  11126. in: "body",
  11127. name: "resource",
  11128. description: "Resource properties to update",
  11129. required: true,
  11130. schema: {
  11131. $ref: "#/definitions/ProviderUpdate"
  11132. }
  11133. }
  11134. ],
  11135. responses: {
  11136. 201: {
  11137. description: "provider response"
  11138. },
  11139. 401: {
  11140. description: "User not logged in"
  11141. }
  11142. }
  11143. },
  11144. delete: {
  11145. tags: [
  11146. "provider"
  11147. ],
  11148. summary: "Delete or purge resource by uuid",
  11149. description: "The resource will be voided/retired unless purge = 'true'",
  11150. operationId: "deleteProvider",
  11151. consumes: [
  11152. "application/json"
  11153. ],
  11154. produces: [
  11155. "application/json"
  11156. ],
  11157. parameters: [
  11158. {
  11159. name: "uuid",
  11160. in: "path",
  11161. description: "uuid to delete",
  11162. required: true,
  11163. type: "string"
  11164. },
  11165. {
  11166. name: "purge",
  11167. in: "query",
  11168. required: false,
  11169. type: "boolean"
  11170. }
  11171. ],
  11172. responses: {
  11173. 204: {
  11174. description: "Delete successful"
  11175. },
  11176. 401: {
  11177. description: "User not logged in"
  11178. },
  11179. 404: {
  11180. description: "Resource with given uuid doesn't exist"
  11181. }
  11182. }
  11183. }
  11184. },
  11185. /locationtag: {
  11186. get: {
  11187. tags: [
  11188. "locationtag"
  11189. ],
  11190. summary: "Fetch all non-retired locationtag resources or perform search",
  11191. description: "All search parameters are optional",
  11192. operationId: "getAllLocationTags",
  11193. consumes: [
  11194. "application/json"
  11195. ],
  11196. produces: [
  11197. "application/json"
  11198. ],
  11199. parameters: [
  11200. {
  11201. name: "limit",
  11202. in: "query",
  11203. description: "The number of results to return",
  11204. required: false,
  11205. type: "integer"
  11206. },
  11207. {
  11208. name: "startIndex",
  11209. in: "query",
  11210. description: "The offset at which to start",
  11211. required: false,
  11212. type: "integer"
  11213. },
  11214. {
  11215. name: "v",
  11216. in: "query",
  11217. description: "The representation to return (ref, default, full or custom)",
  11218. required: false,
  11219. type: "string",
  11220. enum: [
  11221. "ref",
  11222. "default",
  11223. "full",
  11224. "custom"
  11225. ]
  11226. },
  11227. {
  11228. name: "q",
  11229. in: "query",
  11230. description: "The search query",
  11231. required: false,
  11232. type: "string"
  11233. }
  11234. ],
  11235. responses: {
  11236. 200: {
  11237. description: "locationtag response",
  11238. schema: {
  11239. $ref: "#/definitions/FetchAll"
  11240. }
  11241. },
  11242. 401: {
  11243. description: "User not logged in"
  11244. }
  11245. }
  11246. },
  11247. post: {
  11248. tags: [
  11249. "locationtag"
  11250. ],
  11251. summary: "Create with properties in request",
  11252. operationId: "createLocationTag",
  11253. consumes: [
  11254. "application/json"
  11255. ],
  11256. produces: [
  11257. "application/json"
  11258. ],
  11259. parameters: [
  11260. {
  11261. in: "body",
  11262. name: "resource",
  11263. description: "Resource to create",
  11264. required: true,
  11265. schema: {
  11266. $ref: "#/definitions/LocationtagCreate"
  11267. }
  11268. }
  11269. ],
  11270. responses: {
  11271. 201: {
  11272. description: "locationtag response"
  11273. },
  11274. 401: {
  11275. description: "User not logged in"
  11276. }
  11277. }
  11278. }
  11279. },
  11280. /locationtag/{uuid}: {
  11281. get: {
  11282. tags: [
  11283. "locationtag"
  11284. ],
  11285. summary: "Fetch by uuid",
  11286. operationId: "getLocationTag",
  11287. consumes: [
  11288. "application/json"
  11289. ],
  11290. produces: [
  11291. "application/json"
  11292. ],
  11293. parameters: [
  11294. {
  11295. name: "v",
  11296. in: "query",
  11297. description: "The representation to return (ref, default, full or custom)",
  11298. required: false,
  11299. type: "string",
  11300. enum: [
  11301. "ref",
  11302. "default",
  11303. "full",
  11304. "custom"
  11305. ]
  11306. },
  11307. {
  11308. name: "uuid",
  11309. in: "path",
  11310. description: "uuid to filter by",
  11311. required: true,
  11312. type: "string"
  11313. }
  11314. ],
  11315. responses: {
  11316. 200: {
  11317. description: "locationtag response",
  11318. schema: {
  11319. $ref: "#/definitions/LocationtagGet"
  11320. }
  11321. },
  11322. 401: {
  11323. description: "User not logged in"
  11324. },
  11325. 404: {
  11326. description: "Resource with given uuid doesn't exist"
  11327. }
  11328. }
  11329. },
  11330. post: {
  11331. tags: [
  11332. "locationtag"
  11333. ],
  11334. summary: "Edit with given uuid, only modifying properties in request",
  11335. operationId: "updateLocationTag",
  11336. consumes: [
  11337. "application/json"
  11338. ],
  11339. produces: [
  11340. "application/json"
  11341. ],
  11342. parameters: [
  11343. {
  11344. name: "uuid",
  11345. in: "path",
  11346. description: "uuid of resource to update",
  11347. required: true,
  11348. type: "string"
  11349. },
  11350. {
  11351. in: "body",
  11352. name: "resource",
  11353. description: "Resource properties to update",
  11354. required: true,
  11355. schema: {
  11356. $ref: "#/definitions/LocationtagUpdate"
  11357. }
  11358. }
  11359. ],
  11360. responses: {
  11361. 201: {
  11362. description: "locationtag response"
  11363. },
  11364. 401: {
  11365. description: "User not logged in"
  11366. }
  11367. }
  11368. },
  11369. delete: {
  11370. tags: [
  11371. "locationtag"
  11372. ],
  11373. summary: "Delete or purge resource by uuid",
  11374. description: "The resource will be voided/retired unless purge = 'true'",
  11375. operationId: "deleteLocationTag",
  11376. consumes: [
  11377. "application/json"
  11378. ],
  11379. produces: [
  11380. "application/json"
  11381. ],
  11382. parameters: [
  11383. {
  11384. name: "uuid",
  11385. in: "path",
  11386. description: "uuid to delete",
  11387. required: true,
  11388. type: "string"
  11389. },
  11390. {
  11391. name: "purge",
  11392. in: "query",
  11393. required: false,
  11394. type: "boolean"
  11395. }
  11396. ],
  11397. responses: {
  11398. 204: {
  11399. description: "Delete successful"
  11400. },
  11401. 401: {
  11402. description: "User not logged in"
  11403. },
  11404. 404: {
  11405. description: "Resource with given uuid doesn't exist"
  11406. }
  11407. }
  11408. }
  11409. },
  11410. /patientidentifiertype: {
  11411. get: {
  11412. tags: [
  11413. "patientidentifiertype"
  11414. ],
  11415. summary: "Fetch all non-retired patientidentifiertype resources or perform search",
  11416. description: "All search parameters are optional",
  11417. operationId: "getAllPatientIdentifierTypes",
  11418. consumes: [
  11419. "application/json"
  11420. ],
  11421. produces: [
  11422. "application/json"
  11423. ],
  11424. parameters: [
  11425. {
  11426. name: "limit",
  11427. in: "query",
  11428. description: "The number of results to return",
  11429. required: false,
  11430. type: "integer"
  11431. },
  11432. {
  11433. name: "startIndex",
  11434. in: "query",
  11435. description: "The offset at which to start",
  11436. required: false,
  11437. type: "integer"
  11438. },
  11439. {
  11440. name: "v",
  11441. in: "query",
  11442. description: "The representation to return (ref, default, full or custom)",
  11443. required: false,
  11444. type: "string",
  11445. enum: [
  11446. "ref",
  11447. "default",
  11448. "full",
  11449. "custom"
  11450. ]
  11451. },
  11452. {
  11453. name: "q",
  11454. in: "query",
  11455. description: "The search query",
  11456. required: false,
  11457. type: "string"
  11458. }
  11459. ],
  11460. responses: {
  11461. 200: {
  11462. description: "patientidentifiertype response",
  11463. schema: {
  11464. $ref: "#/definitions/FetchAll"
  11465. }
  11466. },
  11467. 401: {
  11468. description: "User not logged in"
  11469. }
  11470. }
  11471. },
  11472. post: {
  11473. tags: [
  11474. "patientidentifiertype"
  11475. ],
  11476. summary: "Create with properties in request",
  11477. operationId: "createPatientIdentifierType",
  11478. consumes: [
  11479. "application/json"
  11480. ],
  11481. produces: [
  11482. "application/json"
  11483. ],
  11484. parameters: [
  11485. {
  11486. in: "body",
  11487. name: "resource",
  11488. description: "Resource to create",
  11489. required: true,
  11490. schema: {
  11491. $ref: "#/definitions/PatientidentifiertypeCreate"
  11492. }
  11493. }
  11494. ],
  11495. responses: {
  11496. 201: {
  11497. description: "patientidentifiertype response"
  11498. },
  11499. 401: {
  11500. description: "User not logged in"
  11501. }
  11502. }
  11503. }
  11504. },
  11505. /patientidentifiertype/{uuid}: {
  11506. get: {
  11507. tags: [
  11508. "patientidentifiertype"
  11509. ],
  11510. summary: "Fetch by uuid",
  11511. operationId: "getPatientIdentifierType",
  11512. consumes: [
  11513. "application/json"
  11514. ],
  11515. produces: [
  11516. "application/json"
  11517. ],
  11518. parameters: [
  11519. {
  11520. name: "v",
  11521. in: "query",
  11522. description: "The representation to return (ref, default, full or custom)",
  11523. required: false,
  11524. type: "string",
  11525. enum: [
  11526. "ref",
  11527. "default",
  11528. "full",
  11529. "custom"
  11530. ]
  11531. },
  11532. {
  11533. name: "uuid",
  11534. in: "path",
  11535. description: "uuid to filter by",
  11536. required: true,
  11537. type: "string"
  11538. }
  11539. ],
  11540. responses: {
  11541. 200: {
  11542. description: "patientidentifiertype response",
  11543. schema: {
  11544. $ref: "#/definitions/PatientidentifiertypeGet"
  11545. }
  11546. },
  11547. 401: {
  11548. description: "User not logged in"
  11549. },
  11550. 404: {
  11551. description: "Resource with given uuid doesn't exist"
  11552. }
  11553. }
  11554. },
  11555. post: {
  11556. tags: [
  11557. "patientidentifiertype"
  11558. ],
  11559. summary: "Edit with given uuid, only modifying properties in request",
  11560. operationId: "updatePatientIdentifierType",
  11561. consumes: [
  11562. "application/json"
  11563. ],
  11564. produces: [
  11565. "application/json"
  11566. ],
  11567. parameters: [
  11568. {
  11569. name: "uuid",
  11570. in: "path",
  11571. description: "uuid of resource to update",
  11572. required: true,
  11573. type: "string"
  11574. },
  11575. {
  11576. in: "body",
  11577. name: "resource",
  11578. description: "Resource properties to update",
  11579. required: true,
  11580. schema: {
  11581. $ref: "#/definitions/PatientidentifiertypeUpdate"
  11582. }
  11583. }
  11584. ],
  11585. responses: {
  11586. 201: {
  11587. description: "patientidentifiertype response"
  11588. },
  11589. 401: {
  11590. description: "User not logged in"
  11591. }
  11592. }
  11593. },
  11594. delete: {
  11595. tags: [
  11596. "patientidentifiertype"
  11597. ],
  11598. summary: "Delete or purge resource by uuid",
  11599. description: "The resource will be voided/retired unless purge = 'true'",
  11600. operationId: "deletePatientIdentifierType",
  11601. consumes: [
  11602. "application/json"
  11603. ],
  11604. produces: [
  11605. "application/json"
  11606. ],
  11607. parameters: [
  11608. {
  11609. name: "uuid",
  11610. in: "path",
  11611. description: "uuid to delete",
  11612. required: true,
  11613. type: "string"
  11614. },
  11615. {
  11616. name: "purge",
  11617. in: "query",
  11618. required: false,
  11619. type: "boolean"
  11620. }
  11621. ],
  11622. responses: {
  11623. 204: {
  11624. description: "Delete successful"
  11625. },
  11626. 401: {
  11627. description: "User not logged in"
  11628. },
  11629. 404: {
  11630. description: "Resource with given uuid doesn't exist"
  11631. }
  11632. }
  11633. }
  11634. },
  11635. /conceptreferenceterm: {
  11636. get: {
  11637. tags: [
  11638. "conceptreferenceterm"
  11639. ],
  11640. summary: "Fetch all non-retired conceptreferenceterm resources or perform search",
  11641. description: "All search parameters are optional",
  11642. operationId: "getAllConceptReferenceTerms",
  11643. consumes: [
  11644. "application/json"
  11645. ],
  11646. produces: [
  11647. "application/json"
  11648. ],
  11649. parameters: [
  11650. {
  11651. name: "limit",
  11652. in: "query",
  11653. description: "The number of results to return",
  11654. required: false,
  11655. type: "integer"
  11656. },
  11657. {
  11658. name: "startIndex",
  11659. in: "query",
  11660. description: "The offset at which to start",
  11661. required: false,
  11662. type: "integer"
  11663. },
  11664. {
  11665. name: "v",
  11666. in: "query",
  11667. description: "The representation to return (ref, default, full or custom)",
  11668. required: false,
  11669. type: "string",
  11670. enum: [
  11671. "ref",
  11672. "default",
  11673. "full",
  11674. "custom"
  11675. ]
  11676. },
  11677. {
  11678. name: "q",
  11679. in: "query",
  11680. description: "The search query",
  11681. required: false,
  11682. type: "string"
  11683. },
  11684. {
  11685. name: "codeOrName",
  11686. in: "query",
  11687. description: "Must be used with ",
  11688. required: false,
  11689. type: "string"
  11690. },
  11691. {
  11692. name: "searchType",
  11693. in: "query",
  11694. description: "Must be used with ",
  11695. required: false,
  11696. type: "string"
  11697. },
  11698. {
  11699. name: "source",
  11700. in: "query",
  11701. description: "Must be used with ",
  11702. required: false,
  11703. type: "string"
  11704. }
  11705. ],
  11706. responses: {
  11707. 200: {
  11708. description: "conceptreferenceterm response",
  11709. schema: {
  11710. $ref: "#/definitions/FetchAll"
  11711. }
  11712. },
  11713. 401: {
  11714. description: "User not logged in"
  11715. }
  11716. }
  11717. },
  11718. post: {
  11719. tags: [
  11720. "conceptreferenceterm"
  11721. ],
  11722. summary: "Create with properties in request",
  11723. operationId: "createConceptReferenceTerm",
  11724. consumes: [
  11725. "application/json"
  11726. ],
  11727. produces: [
  11728. "application/json"
  11729. ],
  11730. parameters: [
  11731. {
  11732. in: "body",
  11733. name: "resource",
  11734. description: "Resource to create",
  11735. required: true,
  11736. schema: {
  11737. $ref: "#/definitions/ConceptreferencetermCreate"
  11738. }
  11739. }
  11740. ],
  11741. responses: {
  11742. 201: {
  11743. description: "conceptreferenceterm response"
  11744. },
  11745. 401: {
  11746. description: "User not logged in"
  11747. }
  11748. }
  11749. }
  11750. },
  11751. /conceptreferenceterm/{uuid}: {
  11752. get: {
  11753. tags: [
  11754. "conceptreferenceterm"
  11755. ],
  11756. summary: "Fetch by uuid",
  11757. operationId: "getConceptReferenceTerm",
  11758. consumes: [
  11759. "application/json"
  11760. ],
  11761. produces: [
  11762. "application/json"
  11763. ],
  11764. parameters: [
  11765. {
  11766. name: "v",
  11767. in: "query",
  11768. description: "The representation to return (ref, default, full or custom)",
  11769. required: false,
  11770. type: "string",
  11771. enum: [
  11772. "ref",
  11773. "default",
  11774. "full",
  11775. "custom"
  11776. ]
  11777. },
  11778. {
  11779. name: "uuid",
  11780. in: "path",
  11781. description: "uuid to filter by",
  11782. required: true,
  11783. type: "string"
  11784. }
  11785. ],
  11786. responses: {
  11787. 200: {
  11788. description: "conceptreferenceterm response",
  11789. schema: {
  11790. $ref: "#/definitions/ConceptreferencetermGet"
  11791. }
  11792. },
  11793. 401: {
  11794. description: "User not logged in"
  11795. },
  11796. 404: {
  11797. description: "Resource with given uuid doesn't exist"
  11798. }
  11799. }
  11800. },
  11801. post: {
  11802. tags: [
  11803. "conceptreferenceterm"
  11804. ],
  11805. summary: "Edit with given uuid, only modifying properties in request",
  11806. operationId: "updateConceptReferenceTerm",
  11807. consumes: [
  11808. "application/json"
  11809. ],
  11810. produces: [
  11811. "application/json"
  11812. ],
  11813. parameters: [
  11814. {
  11815. name: "uuid",
  11816. in: "path",
  11817. description: "uuid of resource to update",
  11818. required: true,
  11819. type: "string"
  11820. },
  11821. {
  11822. in: "body",
  11823. name: "resource",
  11824. description: "Resource properties to update",
  11825. required: true,
  11826. schema: {
  11827. $ref: "#/definitions/ConceptreferencetermUpdate"
  11828. }
  11829. }
  11830. ],
  11831. responses: {
  11832. 201: {
  11833. description: "conceptreferenceterm response"
  11834. },
  11835. 401: {
  11836. description: "User not logged in"
  11837. }
  11838. }
  11839. },
  11840. delete: {
  11841. tags: [
  11842. "conceptreferenceterm"
  11843. ],
  11844. summary: "Delete or purge resource by uuid",
  11845. description: "The resource will be voided/retired unless purge = 'true'",
  11846. operationId: "deleteConceptReferenceTerm",
  11847. consumes: [
  11848. "application/json"
  11849. ],
  11850. produces: [
  11851. "application/json"
  11852. ],
  11853. parameters: [
  11854. {
  11855. name: "uuid",
  11856. in: "path",
  11857. description: "uuid to delete",
  11858. required: true,
  11859. type: "string"
  11860. },
  11861. {
  11862. name: "purge",
  11863. in: "query",
  11864. required: false,
  11865. type: "boolean"
  11866. }
  11867. ],
  11868. responses: {
  11869. 204: {
  11870. description: "Delete successful"
  11871. },
  11872. 401: {
  11873. description: "User not logged in"
  11874. },
  11875. 404: {
  11876. description: "Resource with given uuid doesn't exist"
  11877. }
  11878. }
  11879. }
  11880. },
  11881. /program: {
  11882. get: {
  11883. tags: [
  11884. "program"
  11885. ],
  11886. summary: "Fetch all non-retired program resources or perform search",
  11887. description: "All search parameters are optional",
  11888. operationId: "getAllPrograms",
  11889. consumes: [
  11890. "application/json"
  11891. ],
  11892. produces: [
  11893. "application/json"
  11894. ],
  11895. parameters: [
  11896. {
  11897. name: "limit",
  11898. in: "query",
  11899. description: "The number of results to return",
  11900. required: false,
  11901. type: "integer"
  11902. },
  11903. {
  11904. name: "startIndex",
  11905. in: "query",
  11906. description: "The offset at which to start",
  11907. required: false,
  11908. type: "integer"
  11909. },
  11910. {
  11911. name: "v",
  11912. in: "query",
  11913. description: "The representation to return (ref, default, full or custom)",
  11914. required: false,
  11915. type: "string",
  11916. enum: [
  11917. "ref",
  11918. "default",
  11919. "full",
  11920. "custom"
  11921. ]
  11922. },
  11923. {
  11924. name: "q",
  11925. in: "query",
  11926. description: "The search query",
  11927. required: false,
  11928. type: "string"
  11929. }
  11930. ],
  11931. responses: {
  11932. 200: {
  11933. description: "program response",
  11934. schema: {
  11935. $ref: "#/definitions/FetchAll"
  11936. }
  11937. },
  11938. 401: {
  11939. description: "User not logged in"
  11940. }
  11941. }
  11942. },
  11943. post: {
  11944. tags: [
  11945. "program"
  11946. ],
  11947. summary: "Create with properties in request",
  11948. operationId: "createProgram",
  11949. consumes: [
  11950. "application/json"
  11951. ],
  11952. produces: [
  11953. "application/json"
  11954. ],
  11955. parameters: [
  11956. {
  11957. in: "body",
  11958. name: "resource",
  11959. description: "Resource to create",
  11960. required: true,
  11961. schema: {
  11962. $ref: "#/definitions/ProgramCreate"
  11963. }
  11964. }
  11965. ],
  11966. responses: {
  11967. 201: {
  11968. description: "program response"
  11969. },
  11970. 401: {
  11971. description: "User not logged in"
  11972. }
  11973. }
  11974. }
  11975. },
  11976. /program/{uuid}: {
  11977. get: {
  11978. tags: [
  11979. "program"
  11980. ],
  11981. summary: "Fetch by uuid",
  11982. operationId: "getProgram",
  11983. consumes: [
  11984. "application/json"
  11985. ],
  11986. produces: [
  11987. "application/json"
  11988. ],
  11989. parameters: [
  11990. {
  11991. name: "v",
  11992. in: "query",
  11993. description: "The representation to return (ref, default, full or custom)",
  11994. required: false,
  11995. type: "string",
  11996. enum: [
  11997. "ref",
  11998. "default",
  11999. "full",
  12000. "custom"
  12001. ]
  12002. },
  12003. {
  12004. name: "uuid",
  12005. in: "path",
  12006. description: "uuid to filter by",
  12007. required: true,
  12008. type: "string"
  12009. }
  12010. ],
  12011. responses: {
  12012. 200: {
  12013. description: "program response",
  12014. schema: {
  12015. $ref: "#/definitions/ProgramGet"
  12016. }
  12017. },
  12018. 401: {
  12019. description: "User not logged in"
  12020. },
  12021. 404: {
  12022. description: "Resource with given uuid doesn't exist"
  12023. }
  12024. }
  12025. },
  12026. post: {
  12027. tags: [
  12028. "program"
  12029. ],
  12030. summary: "Edit with given uuid, only modifying properties in request",
  12031. operationId: "updateProgram",
  12032. consumes: [
  12033. "application/json"
  12034. ],
  12035. produces: [
  12036. "application/json"
  12037. ],
  12038. parameters: [
  12039. {
  12040. name: "uuid",
  12041. in: "path",
  12042. description: "uuid of resource to update",
  12043. required: true,
  12044. type: "string"
  12045. },
  12046. {
  12047. in: "body",
  12048. name: "resource",
  12049. description: "Resource properties to update",
  12050. required: true,
  12051. schema: {
  12052. $ref: "#/definitions/ProgramUpdate"
  12053. }
  12054. }
  12055. ],
  12056. responses: {
  12057. 201: {
  12058. description: "program response"
  12059. },
  12060. 401: {
  12061. description: "User not logged in"
  12062. }
  12063. }
  12064. },
  12065. delete: {
  12066. tags: [
  12067. "program"
  12068. ],
  12069. summary: "Delete or purge resource by uuid",
  12070. description: "The resource will be voided/retired unless purge = 'true'",
  12071. operationId: "deleteProgram",
  12072. consumes: [
  12073. "application/json"
  12074. ],
  12075. produces: [
  12076. "application/json"
  12077. ],
  12078. parameters: [
  12079. {
  12080. name: "uuid",
  12081. in: "path",
  12082. description: "uuid to delete",
  12083. required: true,
  12084. type: "string"
  12085. },
  12086. {
  12087. name: "purge",
  12088. in: "query",
  12089. required: false,
  12090. type: "boolean"
  12091. }
  12092. ],
  12093. responses: {
  12094. 204: {
  12095. description: "Delete successful"
  12096. },
  12097. 401: {
  12098. description: "User not logged in"
  12099. },
  12100. 404: {
  12101. description: "Resource with given uuid doesn't exist"
  12102. }
  12103. }
  12104. }
  12105. },
  12106. /drugreferencemap: {
  12107. get: {
  12108. tags: [
  12109. "drugreferencemap"
  12110. ],
  12111. summary: "Search for drugreferencemap",
  12112. description: "At least one search parameter must be specified",
  12113. operationId: "getAllDrugReferenceMaps",
  12114. produces: [
  12115. "application/json",
  12116. "application/xml"
  12117. ],
  12118. parameters: [
  12119. {
  12120. name: "limit",
  12121. in: "query",
  12122. description: "The number of results to return",
  12123. required: false,
  12124. type: "integer"
  12125. },
  12126. {
  12127. name: "startIndex",
  12128. in: "query",
  12129. description: "The offset at which to start",
  12130. required: false,
  12131. type: "integer"
  12132. },
  12133. {
  12134. name: "v",
  12135. in: "query",
  12136. description: "The representation to return (ref, default, full or custom)",
  12137. required: false,
  12138. type: "string",
  12139. enum: [
  12140. "ref",
  12141. "default",
  12142. "full",
  12143. "custom"
  12144. ]
  12145. },
  12146. {
  12147. name: "q",
  12148. in: "query",
  12149. description: "The search query",
  12150. required: true,
  12151. type: "string"
  12152. }
  12153. ],
  12154. responses: {
  12155. 200: {
  12156. description: "drugreferencemap response",
  12157. schema: {
  12158. $ref: "#/definitions/FetchAll"
  12159. }
  12160. }
  12161. }
  12162. },
  12163. post: {
  12164. tags: [
  12165. "drugreferencemap"
  12166. ],
  12167. summary: "Create with properties in request",
  12168. operationId: "createDrugReferenceMap",
  12169. consumes: [
  12170. "application/json"
  12171. ],
  12172. produces: [
  12173. "application/json"
  12174. ],
  12175. parameters: [
  12176. {
  12177. in: "body",
  12178. name: "resource",
  12179. description: "Resource to create",
  12180. required: true,
  12181. schema: {
  12182. $ref: "#/definitions/DrugreferencemapCreate"
  12183. }
  12184. }
  12185. ],
  12186. responses: {
  12187. 201: {
  12188. description: "drugreferencemap response"
  12189. },
  12190. 401: {
  12191. description: "User not logged in"
  12192. }
  12193. }
  12194. }
  12195. },
  12196. /drugreferencemap/{uuid}: {
  12197. get: {
  12198. tags: [
  12199. "drugreferencemap"
  12200. ],
  12201. summary: "Fetch by uuid",
  12202. operationId: "getDrugReferenceMap",
  12203. consumes: [
  12204. "application/json"
  12205. ],
  12206. produces: [
  12207. "application/json"
  12208. ],
  12209. parameters: [
  12210. {
  12211. name: "v",
  12212. in: "query",
  12213. description: "The representation to return (ref, default, full or custom)",
  12214. required: false,
  12215. type: "string",
  12216. enum: [
  12217. "ref",
  12218. "default",
  12219. "full",
  12220. "custom"
  12221. ]
  12222. },
  12223. {
  12224. name: "uuid",
  12225. in: "path",
  12226. description: "uuid to filter by",
  12227. required: true,
  12228. type: "string"
  12229. }
  12230. ],
  12231. responses: {
  12232. 200: {
  12233. description: "drugreferencemap response",
  12234. schema: {
  12235. $ref: "#/definitions/DrugreferencemapGet"
  12236. }
  12237. },
  12238. 401: {
  12239. description: "User not logged in"
  12240. },
  12241. 404: {
  12242. description: "Resource with given uuid doesn't exist"
  12243. }
  12244. }
  12245. },
  12246. post: {
  12247. tags: [
  12248. "drugreferencemap"
  12249. ],
  12250. summary: "Edit with given uuid, only modifying properties in request",
  12251. operationId: "updateDrugReferenceMap",
  12252. consumes: [
  12253. "application/json"
  12254. ],
  12255. produces: [
  12256. "application/json"
  12257. ],
  12258. parameters: [
  12259. {
  12260. name: "uuid",
  12261. in: "path",
  12262. description: "uuid of resource to update",
  12263. required: true,
  12264. type: "string"
  12265. },
  12266. {
  12267. in: "body",
  12268. name: "resource",
  12269. description: "Resource properties to update",
  12270. required: true,
  12271. schema: {
  12272. $ref: "#/definitions/DrugreferencemapUpdate"
  12273. }
  12274. }
  12275. ],
  12276. responses: {
  12277. 201: {
  12278. description: "drugreferencemap response"
  12279. },
  12280. 401: {
  12281. description: "User not logged in"
  12282. }
  12283. }
  12284. },
  12285. delete: {
  12286. tags: [
  12287. "drugreferencemap"
  12288. ],
  12289. summary: "Delete or purge resource by uuid",
  12290. description: "The resource will be voided/retired unless purge = 'true'",
  12291. operationId: "deleteDrugReferenceMap",
  12292. consumes: [
  12293. "application/json"
  12294. ],
  12295. produces: [
  12296. "application/json"
  12297. ],
  12298. parameters: [
  12299. {
  12300. name: "uuid",
  12301. in: "path",
  12302. description: "uuid to delete",
  12303. required: true,
  12304. type: "string"
  12305. },
  12306. {
  12307. name: "purge",
  12308. in: "query",
  12309. required: false,
  12310. type: "boolean"
  12311. }
  12312. ],
  12313. responses: {
  12314. 204: {
  12315. description: "Delete successful"
  12316. },
  12317. 401: {
  12318. description: "User not logged in"
  12319. },
  12320. 404: {
  12321. description: "Resource with given uuid doesn't exist"
  12322. }
  12323. }
  12324. }
  12325. },
  12326. /patient/{parent-uuid}/allergy: {
  12327. post: {
  12328. tags: [
  12329. "patient"
  12330. ],
  12331. summary: "Create allergy subresource with properties in request",
  12332. operationId: "createPatientAllergy",
  12333. consumes: [
  12334. "application/json"
  12335. ],
  12336. produces: [
  12337. "application/json"
  12338. ],
  12339. parameters: [
  12340. {
  12341. name: "parent-uuid",
  12342. in: "path",
  12343. description: "parent resource uuid",
  12344. required: true,
  12345. type: "string"
  12346. },
  12347. {
  12348. in: "body",
  12349. name: "resource",
  12350. description: "Resource to create",
  12351. required: true,
  12352. schema: {
  12353. $ref: "#/definitions/PatientAllergyCreate"
  12354. }
  12355. }
  12356. ],
  12357. responses: {
  12358. 201: {
  12359. description: "allergy response"
  12360. },
  12361. 401: {
  12362. description: "User not logged in"
  12363. }
  12364. }
  12365. }
  12366. },
  12367. /patient/{parent-uuid}/allergy/{uuid}: {
  12368. get: {
  12369. tags: [
  12370. "patient"
  12371. ],
  12372. summary: "Fetch allergy subresources by uuid",
  12373. operationId: "getPatientAllergy",
  12374. consumes: [
  12375. "application/json"
  12376. ],
  12377. produces: [
  12378. "application/json"
  12379. ],
  12380. parameters: [
  12381. {
  12382. name: "parent-uuid",
  12383. in: "path",
  12384. description: "parent resource uuid",
  12385. required: true,
  12386. type: "string"
  12387. },
  12388. {
  12389. name: "uuid",
  12390. in: "path",
  12391. description: "uuid to filter by",
  12392. required: true,
  12393. type: "string"
  12394. },
  12395. {
  12396. name: "v",
  12397. in: "query",
  12398. description: "The representation to return (ref, default, full or custom)",
  12399. required: false,
  12400. type: "string",
  12401. enum: [
  12402. "ref",
  12403. "default",
  12404. "full",
  12405. "custom"
  12406. ]
  12407. }
  12408. ],
  12409. responses: {
  12410. 200: {
  12411. description: "allergy response",
  12412. schema: {
  12413. $ref: "#/definitions/PatientAllergyGet"
  12414. }
  12415. },
  12416. 401: {
  12417. description: "User not logged in"
  12418. },
  12419. 404: {
  12420. description: "Resource with given uuid doesn't exist"
  12421. }
  12422. }
  12423. },
  12424. post: {
  12425. tags: [
  12426. "patient"
  12427. ],
  12428. summary: "edit allergy subresource with given uuid, only modifying properties in request",
  12429. operationId: "updatePatientAllergy",
  12430. consumes: [
  12431. "application/json"
  12432. ],
  12433. produces: [
  12434. "application/json"
  12435. ],
  12436. parameters: [
  12437. {
  12438. name: "parent-uuid",
  12439. in: "path",
  12440. description: "parent resource uuid",
  12441. required: true,
  12442. type: "string"
  12443. },
  12444. {
  12445. name: "uuid",
  12446. in: "path",
  12447. description: "uuid of resource to update",
  12448. required: true,
  12449. type: "string"
  12450. },
  12451. {
  12452. in: "body",
  12453. name: "resource",
  12454. description: "Resource properties to update",
  12455. required: true,
  12456. schema: {
  12457. $ref: "#/definitions/PatientAllergyUpdate"
  12458. }
  12459. }
  12460. ],
  12461. responses: {
  12462. 201: {
  12463. description: "allergy response"
  12464. },
  12465. 401: {
  12466. description: "User not logged in"
  12467. }
  12468. }
  12469. },
  12470. delete: {
  12471. tags: [
  12472. "patient"
  12473. ],
  12474. summary: "Delete or purge resource by uuid",
  12475. description: "The resource will be voided/retired unless purge = 'true'",
  12476. operationId: "deletePatientAllergy",
  12477. consumes: [
  12478. "application/json"
  12479. ],
  12480. produces: [
  12481. "application/json"
  12482. ],
  12483. parameters: [
  12484. {
  12485. name: "parent-uuid",
  12486. in: "path",
  12487. description: "parent resource uuid",
  12488. required: true,
  12489. type: "string"
  12490. },
  12491. {
  12492. name: "uuid",
  12493. in: "path",
  12494. description: "uuid to delete",
  12495. required: true,
  12496. type: "string"
  12497. },
  12498. {
  12499. name: "purge",
  12500. in: "query",
  12501. required: false,
  12502. type: "boolean"
  12503. }
  12504. ],
  12505. responses: {
  12506. 204: {
  12507. description: "Delete successful"
  12508. },
  12509. 401: {
  12510. description: "User not logged in"
  12511. },
  12512. 404: {
  12513. description: "Resource with given uuid doesn't exist"
  12514. }
  12515. }
  12516. }
  12517. },
  12518. /concept/{parent-uuid}/mapping: {
  12519. get: {
  12520. tags: [
  12521. "concept"
  12522. ],
  12523. summary: "Fetch all non-retired mapping subresources",
  12524. operationId: "getAllConceptMaps",
  12525. consumes: [
  12526. "application/json"
  12527. ],
  12528. produces: [
  12529. "application/json"
  12530. ],
  12531. parameters: [
  12532. {
  12533. name: "limit",
  12534. in: "query",
  12535. description: "The number of results to return",
  12536. required: false,
  12537. type: "integer"
  12538. },
  12539. {
  12540. name: "startIndex",
  12541. in: "query",
  12542. description: "The offset at which to start",
  12543. required: false,
  12544. type: "integer"
  12545. },
  12546. {
  12547. name: "parent-uuid",
  12548. in: "path",
  12549. description: "parent resource uuid",
  12550. required: true,
  12551. type: "string"
  12552. },
  12553. {
  12554. name: "v",
  12555. in: "query",
  12556. description: "The representation to return (ref, default, full or custom)",
  12557. required: false,
  12558. type: "string",
  12559. enum: [
  12560. "ref",
  12561. "default",
  12562. "full",
  12563. "custom"
  12564. ]
  12565. }
  12566. ],
  12567. responses: {
  12568. 200: {
  12569. description: "mapping response",
  12570. schema: {
  12571. type: "object",
  12572. properties: {
  12573. results: {
  12574. type: "array",
  12575. items: {
  12576. $ref: "#/definitions/ConceptMappingGet"
  12577. }
  12578. }
  12579. }
  12580. }
  12581. },
  12582. 401: {
  12583. description: "User not logged in"
  12584. }
  12585. }
  12586. },
  12587. post: {
  12588. tags: [
  12589. "concept"
  12590. ],
  12591. summary: "Create mapping subresource with properties in request",
  12592. operationId: "createConceptMap",
  12593. consumes: [
  12594. "application/json"
  12595. ],
  12596. produces: [
  12597. "application/json"
  12598. ],
  12599. parameters: [
  12600. {
  12601. name: "parent-uuid",
  12602. in: "path",
  12603. description: "parent resource uuid",
  12604. required: true,
  12605. type: "string"
  12606. },
  12607. {
  12608. in: "body",
  12609. name: "resource",
  12610. description: "Resource to create",
  12611. required: true,
  12612. schema: {
  12613. $ref: "#/definitions/ConceptMappingCreate"
  12614. }
  12615. }
  12616. ],
  12617. responses: {
  12618. 201: {
  12619. description: "mapping response"
  12620. },
  12621. 401: {
  12622. description: "User not logged in"
  12623. }
  12624. }
  12625. }
  12626. },
  12627. /concept/{parent-uuid}/mapping/{uuid}: {
  12628. get: {
  12629. tags: [
  12630. "concept"
  12631. ],
  12632. summary: "Fetch mapping subresources by uuid",
  12633. operationId: "getConceptMap",
  12634. consumes: [
  12635. "application/json"
  12636. ],
  12637. produces: [
  12638. "application/json"
  12639. ],
  12640. parameters: [
  12641. {
  12642. name: "parent-uuid",
  12643. in: "path",
  12644. description: "parent resource uuid",
  12645. required: true,
  12646. type: "string"
  12647. },
  12648. {
  12649. name: "uuid",
  12650. in: "path",
  12651. description: "uuid to filter by",
  12652. required: true,
  12653. type: "string"
  12654. },
  12655. {
  12656. name: "v",
  12657. in: "query",
  12658. description: "The representation to return (ref, default, full or custom)",
  12659. required: false,
  12660. type: "string",
  12661. enum: [
  12662. "ref",
  12663. "default",
  12664. "full",
  12665. "custom"
  12666. ]
  12667. }
  12668. ],
  12669. responses: {
  12670. 200: {
  12671. description: "mapping response",
  12672. schema: {
  12673. $ref: "#/definitions/ConceptMappingGet"
  12674. }
  12675. },
  12676. 401: {
  12677. description: "User not logged in"
  12678. },
  12679. 404: {
  12680. description: "Resource with given uuid doesn't exist"
  12681. }
  12682. }
  12683. },
  12684. post: {
  12685. tags: [
  12686. "concept"
  12687. ],
  12688. summary: "edit mapping subresource with given uuid, only modifying properties in request",
  12689. operationId: "updateConceptMap",
  12690. consumes: [
  12691. "application/json"
  12692. ],
  12693. produces: [
  12694. "application/json"
  12695. ],
  12696. parameters: [
  12697. {
  12698. name: "parent-uuid",
  12699. in: "path",
  12700. description: "parent resource uuid",
  12701. required: true,
  12702. type: "string"
  12703. },
  12704. {
  12705. name: "uuid",
  12706. in: "path",
  12707. description: "uuid of resource to update",
  12708. required: true,
  12709. type: "string"
  12710. },
  12711. {
  12712. in: "body",
  12713. name: "resource",
  12714. description: "Resource properties to update",
  12715. required: true,
  12716. schema: {
  12717. $ref: "#/definitions/ConceptMappingUpdate"
  12718. }
  12719. }
  12720. ],
  12721. responses: {
  12722. 201: {
  12723. description: "mapping response"
  12724. },
  12725. 401: {
  12726. description: "User not logged in"
  12727. }
  12728. }
  12729. },
  12730. delete: {
  12731. tags: [
  12732. "concept"
  12733. ],
  12734. summary: "Delete or purge resource by uuid",
  12735. description: "The resource will be voided/retired unless purge = 'true'",
  12736. operationId: "deleteConceptMap",
  12737. consumes: [
  12738. "application/json"
  12739. ],
  12740. produces: [
  12741. "application/json"
  12742. ],
  12743. parameters: [
  12744. {
  12745. name: "parent-uuid",
  12746. in: "path",
  12747. description: "parent resource uuid",
  12748. required: true,
  12749. type: "string"
  12750. },
  12751. {
  12752. name: "uuid",
  12753. in: "path",
  12754. description: "uuid to delete",
  12755. required: true,
  12756. type: "string"
  12757. },
  12758. {
  12759. name: "purge",
  12760. in: "query",
  12761. required: false,
  12762. type: "boolean"
  12763. }
  12764. ],
  12765. responses: {
  12766. 204: {
  12767. description: "Delete successful"
  12768. },
  12769. 401: {
  12770. description: "User not logged in"
  12771. },
  12772. 404: {
  12773. description: "Resource with given uuid doesn't exist"
  12774. }
  12775. }
  12776. }
  12777. },
  12778. /drug/{parent-uuid}/ingredient: {
  12779. get: {
  12780. tags: [
  12781. "drug"
  12782. ],
  12783. summary: "Fetch all non-retired ingredient subresources",
  12784. operationId: "getAllDrugIngredients",
  12785. consumes: [
  12786. "application/json"
  12787. ],
  12788. produces: [
  12789. "application/json"
  12790. ],
  12791. parameters: [
  12792. {
  12793. name: "limit",
  12794. in: "query",
  12795. description: "The number of results to return",
  12796. required: false,
  12797. type: "integer"
  12798. },
  12799. {
  12800. name: "startIndex",
  12801. in: "query",
  12802. description: "The offset at which to start",
  12803. required: false,
  12804. type: "integer"
  12805. },
  12806. {
  12807. name: "parent-uuid",
  12808. in: "path",
  12809. description: "parent resource uuid",
  12810. required: true,
  12811. type: "string"
  12812. },
  12813. {
  12814. name: "v",
  12815. in: "query",
  12816. description: "The representation to return (ref, default, full or custom)",
  12817. required: false,
  12818. type: "string",
  12819. enum: [
  12820. "ref",
  12821. "default",
  12822. "full",
  12823. "custom"
  12824. ]
  12825. }
  12826. ],
  12827. responses: {
  12828. 200: {
  12829. description: "ingredient response",
  12830. schema: {
  12831. type: "object",
  12832. properties: {
  12833. results: {
  12834. type: "array",
  12835. items: {
  12836. $ref: "#/definitions/DrugIngredientGet"
  12837. }
  12838. }
  12839. }
  12840. }
  12841. },
  12842. 401: {
  12843. description: "User not logged in"
  12844. }
  12845. }
  12846. },
  12847. post: {
  12848. tags: [
  12849. "drug"
  12850. ],
  12851. summary: "Create ingredient subresource with properties in request",
  12852. operationId: "createDrugIngredient",
  12853. consumes: [
  12854. "application/json"
  12855. ],
  12856. produces: [
  12857. "application/json"
  12858. ],
  12859. parameters: [
  12860. {
  12861. name: "parent-uuid",
  12862. in: "path",
  12863. description: "parent resource uuid",
  12864. required: true,
  12865. type: "string"
  12866. },
  12867. {
  12868. in: "body",
  12869. name: "resource",
  12870. description: "Resource to create",
  12871. required: true,
  12872. schema: {
  12873. $ref: "#/definitions/DrugIngredientCreate"
  12874. }
  12875. }
  12876. ],
  12877. responses: {
  12878. 201: {
  12879. description: "ingredient response"
  12880. },
  12881. 401: {
  12882. description: "User not logged in"
  12883. }
  12884. }
  12885. }
  12886. },
  12887. /drug/{parent-uuid}/ingredient/{uuid}: {
  12888. get: {
  12889. tags: [
  12890. "drug"
  12891. ],
  12892. summary: "Fetch ingredient subresources by uuid",
  12893. operationId: "getDrugIngredient",
  12894. consumes: [
  12895. "application/json"
  12896. ],
  12897. produces: [
  12898. "application/json"
  12899. ],
  12900. parameters: [
  12901. {
  12902. name: "parent-uuid",
  12903. in: "path",
  12904. description: "parent resource uuid",
  12905. required: true,
  12906. type: "string"
  12907. },
  12908. {
  12909. name: "uuid",
  12910. in: "path",
  12911. description: "uuid to filter by",
  12912. required: true,
  12913. type: "string"
  12914. },
  12915. {
  12916. name: "v",
  12917. in: "query",
  12918. description: "The representation to return (ref, default, full or custom)",
  12919. required: false,
  12920. type: "string",
  12921. enum: [
  12922. "ref",
  12923. "default",
  12924. "full",
  12925. "custom"
  12926. ]
  12927. }
  12928. ],
  12929. responses: {
  12930. 200: {
  12931. description: "ingredient response",
  12932. schema: {
  12933. $ref: "#/definitions/DrugIngredientGet"
  12934. }
  12935. },
  12936. 401: {
  12937. description: "User not logged in"
  12938. },
  12939. 404: {
  12940. description: "Resource with given uuid doesn't exist"
  12941. }
  12942. }
  12943. },
  12944. post: {
  12945. tags: [
  12946. "drug"
  12947. ],
  12948. summary: "edit ingredient subresource with given uuid, only modifying properties in request",
  12949. operationId: "updateDrugIngredient",
  12950. consumes: [
  12951. "application/json"
  12952. ],
  12953. produces: [
  12954. "application/json"
  12955. ],
  12956. parameters: [
  12957. {
  12958. name: "parent-uuid",
  12959. in: "path",
  12960. description: "parent resource uuid",
  12961. required: true,
  12962. type: "string"
  12963. },
  12964. {
  12965. name: "uuid",
  12966. in: "path",
  12967. description: "uuid of resource to update",
  12968. required: true,
  12969. type: "string"
  12970. },
  12971. {
  12972. in: "body",
  12973. name: "resource",
  12974. description: "Resource properties to update",
  12975. required: true,
  12976. schema: {
  12977. $ref: "#/definitions/DrugIngredientUpdate"
  12978. }
  12979. }
  12980. ],
  12981. responses: {
  12982. 201: {
  12983. description: "ingredient response"
  12984. },
  12985. 401: {
  12986. description: "User not logged in"
  12987. }
  12988. }
  12989. },
  12990. delete: {
  12991. tags: [
  12992. "drug"
  12993. ],
  12994. summary: "Delete or purge resource by uuid",
  12995. description: "The resource will be voided/retired unless purge = 'true'",
  12996. operationId: "deleteDrugIngredient",
  12997. consumes: [
  12998. "application/json"
  12999. ],
  13000. produces: [
  13001. "application/json"
  13002. ],
  13003. parameters: [
  13004. {
  13005. name: "parent-uuid",
  13006. in: "path",
  13007. description: "parent resource uuid",
  13008. required: true,
  13009. type: "string"
  13010. },
  13011. {
  13012. name: "uuid",
  13013. in: "path",
  13014. description: "uuid to delete",
  13015. required: true,
  13016. type: "string"
  13017. },
  13018. {
  13019. name: "purge",
  13020. in: "query",
  13021. required: false,
  13022. type: "boolean"
  13023. }
  13024. ],
  13025. responses: {
  13026. 204: {
  13027. description: "Delete successful"
  13028. },
  13029. 401: {
  13030. description: "User not logged in"
  13031. },
  13032. 404: {
  13033. description: "Resource with given uuid doesn't exist"
  13034. }
  13035. }
  13036. }
  13037. },
  13038. /visit/{parent-uuid}/attribute: {
  13039. get: {
  13040. tags: [
  13041. "visit"
  13042. ],
  13043. summary: "Fetch all non-retired attribute subresources",
  13044. operationId: "getAllVisitAttributes",
  13045. consumes: [
  13046. "application/json"
  13047. ],
  13048. produces: [
  13049. "application/json"
  13050. ],
  13051. parameters: [
  13052. {
  13053. name: "limit",
  13054. in: "query",
  13055. description: "The number of results to return",
  13056. required: false,
  13057. type: "integer"
  13058. },
  13059. {
  13060. name: "startIndex",
  13061. in: "query",
  13062. description: "The offset at which to start",
  13063. required: false,
  13064. type: "integer"
  13065. },
  13066. {
  13067. name: "parent-uuid",
  13068. in: "path",
  13069. description: "parent resource uuid",
  13070. required: true,
  13071. type: "string"
  13072. },
  13073. {
  13074. name: "v",
  13075. in: "query",
  13076. description: "The representation to return (ref, default, full or custom)",
  13077. required: false,
  13078. type: "string",
  13079. enum: [
  13080. "ref",
  13081. "default",
  13082. "full",
  13083. "custom"
  13084. ]
  13085. }
  13086. ],
  13087. responses: {
  13088. 200: {
  13089. description: "attribute response",
  13090. schema: {
  13091. type: "object",
  13092. properties: {
  13093. results: {
  13094. type: "array",
  13095. items: {
  13096. $ref: "#/definitions/VisitAttributeGet"
  13097. }
  13098. }
  13099. }
  13100. }
  13101. },
  13102. 401: {
  13103. description: "User not logged in"
  13104. }
  13105. }
  13106. },
  13107. post: {
  13108. tags: [
  13109. "visit"
  13110. ],
  13111. summary: "Create attribute subresource with properties in request",
  13112. operationId: "createVisitAttribute",
  13113. consumes: [
  13114. "application/json"
  13115. ],
  13116. produces: [
  13117. "application/json"
  13118. ],
  13119. parameters: [
  13120. {
  13121. name: "parent-uuid",
  13122. in: "path",
  13123. description: "parent resource uuid",
  13124. required: true,
  13125. type: "string"
  13126. },
  13127. {
  13128. in: "body",
  13129. name: "resource",
  13130. description: "Resource to create",
  13131. required: true,
  13132. schema: {
  13133. $ref: "#/definitions/VisitAttributeCreate"
  13134. }
  13135. }
  13136. ],
  13137. responses: {
  13138. 201: {
  13139. description: "attribute response"
  13140. },
  13141. 401: {
  13142. description: "User not logged in"
  13143. }
  13144. }
  13145. }
  13146. },
  13147. /visit/{parent-uuid}/attribute/{uuid}: {
  13148. get: {
  13149. tags: [
  13150. "visit"
  13151. ],
  13152. summary: "Fetch attribute subresources by uuid",
  13153. operationId: "getVisitAttribute",
  13154. consumes: [
  13155. "application/json"
  13156. ],
  13157. produces: [
  13158. "application/json"
  13159. ],
  13160. parameters: [
  13161. {
  13162. name: "parent-uuid",
  13163. in: "path",
  13164. description: "parent resource uuid",
  13165. required: true,
  13166. type: "string"
  13167. },
  13168. {
  13169. name: "uuid",
  13170. in: "path",
  13171. description: "uuid to filter by",
  13172. required: true,
  13173. type: "string"
  13174. },
  13175. {
  13176. name: "v",
  13177. in: "query",
  13178. description: "The representation to return (ref, default, full or custom)",
  13179. required: false,
  13180. type: "string",
  13181. enum: [
  13182. "ref",
  13183. "default",
  13184. "full",
  13185. "custom"
  13186. ]
  13187. }
  13188. ],
  13189. responses: {
  13190. 200: {
  13191. description: "attribute response",
  13192. schema: {
  13193. $ref: "#/definitions/VisitAttributeGet"
  13194. }
  13195. },
  13196. 401: {
  13197. description: "User not logged in"
  13198. },
  13199. 404: {
  13200. description: "Resource with given uuid doesn't exist"
  13201. }
  13202. }
  13203. },
  13204. post: {
  13205. tags: [
  13206. "visit"
  13207. ],
  13208. summary: "edit attribute subresource with given uuid, only modifying properties in request",
  13209. operationId: "updateVisitAttribute",
  13210. consumes: [
  13211. "application/json"
  13212. ],
  13213. produces: [
  13214. "application/json"
  13215. ],
  13216. parameters: [
  13217. {
  13218. name: "parent-uuid",
  13219. in: "path",
  13220. description: "parent resource uuid",
  13221. required: true,
  13222. type: "string"
  13223. },
  13224. {
  13225. name: "uuid",
  13226. in: "path",
  13227. description: "uuid of resource to update",
  13228. required: true,
  13229. type: "string"
  13230. },
  13231. {
  13232. in: "body",
  13233. name: "resource",
  13234. description: "Resource properties to update",
  13235. required: true,
  13236. schema: {
  13237. $ref: "#/definitions/VisitAttributeUpdate"
  13238. }
  13239. }
  13240. ],
  13241. responses: {
  13242. 201: {
  13243. description: "attribute response"
  13244. },
  13245. 401: {
  13246. description: "User not logged in"
  13247. }
  13248. }
  13249. },
  13250. delete: {
  13251. tags: [
  13252. "visit"
  13253. ],
  13254. summary: "Delete or purge resource by uuid",
  13255. description: "The resource will be voided/retired unless purge = 'true'",
  13256. operationId: "deleteVisitAttribute",
  13257. consumes: [
  13258. "application/json"
  13259. ],
  13260. produces: [
  13261. "application/json"
  13262. ],
  13263. parameters: [
  13264. {
  13265. name: "parent-uuid",
  13266. in: "path",
  13267. description: "parent resource uuid",
  13268. required: true,
  13269. type: "string"
  13270. },
  13271. {
  13272. name: "uuid",
  13273. in: "path",
  13274. description: "uuid to delete",
  13275. required: true,
  13276. type: "string"
  13277. },
  13278. {
  13279. name: "purge",
  13280. in: "query",
  13281. required: false,
  13282. type: "boolean"
  13283. }
  13284. ],
  13285. responses: {
  13286. 204: {
  13287. description: "Delete successful"
  13288. },
  13289. 401: {
  13290. description: "User not logged in"
  13291. },
  13292. 404: {
  13293. description: "Resource with given uuid doesn't exist"
  13294. }
  13295. }
  13296. }
  13297. },
  13298. /provider/{parent-uuid}/attribute: {
  13299. get: {
  13300. tags: [
  13301. "provider"
  13302. ],
  13303. summary: "Fetch all non-retired attribute subresources",
  13304. operationId: "getAllProviderAttributes",
  13305. consumes: [
  13306. "application/json"
  13307. ],
  13308. produces: [
  13309. "application/json"
  13310. ],
  13311. parameters: [
  13312. {
  13313. name: "limit",
  13314. in: "query",
  13315. description: "The number of results to return",
  13316. required: false,
  13317. type: "integer"
  13318. },
  13319. {
  13320. name: "startIndex",
  13321. in: "query",
  13322. description: "The offset at which to start",
  13323. required: false,
  13324. type: "integer"
  13325. },
  13326. {
  13327. name: "parent-uuid",
  13328. in: "path",
  13329. description: "parent resource uuid",
  13330. required: true,
  13331. type: "string"
  13332. },
  13333. {
  13334. name: "v",
  13335. in: "query",
  13336. description: "The representation to return (ref, default, full or custom)",
  13337. required: false,
  13338. type: "string",
  13339. enum: [
  13340. "ref",
  13341. "default",
  13342. "full",
  13343. "custom"
  13344. ]
  13345. }
  13346. ],
  13347. responses: {
  13348. 200: {
  13349. description: "attribute response",
  13350. schema: {
  13351. type: "object",
  13352. properties: {
  13353. results: {
  13354. type: "array",
  13355. items: {
  13356. $ref: "#/definitions/ProviderAttributeGet"
  13357. }
  13358. }
  13359. }
  13360. }
  13361. },
  13362. 401: {
  13363. description: "User not logged in"
  13364. }
  13365. }
  13366. },
  13367. post: {
  13368. tags: [
  13369. "provider"
  13370. ],
  13371. summary: "Create attribute subresource with properties in request",
  13372. operationId: "createProviderAttribute",
  13373. consumes: [
  13374. "application/json"
  13375. ],
  13376. produces: [
  13377. "application/json"
  13378. ],
  13379. parameters: [
  13380. {
  13381. name: "parent-uuid",
  13382. in: "path",
  13383. description: "parent resource uuid",
  13384. required: true,
  13385. type: "string"
  13386. },
  13387. {
  13388. in: "body",
  13389. name: "resource",
  13390. description: "Resource to create",
  13391. required: true,
  13392. schema: {
  13393. $ref: "#/definitions/ProviderAttributeCreate"
  13394. }
  13395. }
  13396. ],
  13397. responses: {
  13398. 201: {
  13399. description: "attribute response"
  13400. },
  13401. 401: {
  13402. description: "User not logged in"
  13403. }
  13404. }
  13405. }
  13406. },
  13407. /provider/{parent-uuid}/attribute/{uuid}: {
  13408. get: {
  13409. tags: [
  13410. "provider"
  13411. ],
  13412. summary: "Fetch attribute subresources by uuid",
  13413. operationId: "getProviderAttribute",
  13414. consumes: [
  13415. "application/json"
  13416. ],
  13417. produces: [
  13418. "application/json"
  13419. ],
  13420. parameters: [
  13421. {
  13422. name: "parent-uuid",
  13423. in: "path",
  13424. description: "parent resource uuid",
  13425. required: true,
  13426. type: "string"
  13427. },
  13428. {
  13429. name: "uuid",
  13430. in: "path",
  13431. description: "uuid to filter by",
  13432. required: true,
  13433. type: "string"
  13434. },
  13435. {
  13436. name: "v",
  13437. in: "query",
  13438. description: "The representation to return (ref, default, full or custom)",
  13439. required: false,
  13440. type: "string",
  13441. enum: [
  13442. "ref",
  13443. "default",
  13444. "full",
  13445. "custom"
  13446. ]
  13447. }
  13448. ],
  13449. responses: {
  13450. 200: {
  13451. description: "attribute response",
  13452. schema: {
  13453. $ref: "#/definitions/ProviderAttributeGet"
  13454. }
  13455. },
  13456. 401: {
  13457. description: "User not logged in"
  13458. },
  13459. 404: {
  13460. description: "Resource with given uuid doesn't exist"
  13461. }
  13462. }
  13463. },
  13464. post: {
  13465. tags: [
  13466. "provider"
  13467. ],
  13468. summary: "edit attribute subresource with given uuid, only modifying properties in request",
  13469. operationId: "updateProviderAttribute",
  13470. consumes: [
  13471. "application/json"
  13472. ],
  13473. produces: [
  13474. "application/json"
  13475. ],
  13476. parameters: [
  13477. {
  13478. name: "parent-uuid",
  13479. in: "path",
  13480. description: "parent resource uuid",
  13481. required: true,
  13482. type: "string"
  13483. },
  13484. {
  13485. name: "uuid",
  13486. in: "path",
  13487. description: "uuid of resource to update",
  13488. required: true,
  13489. type: "string"
  13490. },
  13491. {
  13492. in: "body",
  13493. name: "resource",
  13494. description: "Resource properties to update",
  13495. required: true,
  13496. schema: {
  13497. $ref: "#/definitions/ProviderAttributeUpdate"
  13498. }
  13499. }
  13500. ],
  13501. responses: {
  13502. 201: {
  13503. description: "attribute response"
  13504. },
  13505. 401: {
  13506. description: "User not logged in"
  13507. }
  13508. }
  13509. },
  13510. delete: {
  13511. tags: [
  13512. "provider"
  13513. ],
  13514. summary: "Delete or purge resource by uuid",
  13515. description: "The resource will be voided/retired unless purge = 'true'",
  13516. operationId: "deleteProviderAttribute",
  13517. consumes: [
  13518. "application/json"
  13519. ],
  13520. produces: [
  13521. "application/json"
  13522. ],
  13523. parameters: [
  13524. {
  13525. name: "parent-uuid",
  13526. in: "path",
  13527. description: "parent resource uuid",
  13528. required: true,
  13529. type: "string"
  13530. },
  13531. {
  13532. name: "uuid",
  13533. in: "path",
  13534. description: "uuid to delete",
  13535. required: true,
  13536. type: "string"
  13537. },
  13538. {
  13539. name: "purge",
  13540. in: "query",
  13541. required: false,
  13542. type: "boolean"
  13543. }
  13544. ],
  13545. responses: {
  13546. 204: {
  13547. description: "Delete successful"
  13548. },
  13549. 401: {
  13550. description: "User not logged in"
  13551. },
  13552. 404: {
  13553. description: "Resource with given uuid doesn't exist"
  13554. }
  13555. }
  13556. }
  13557. },
  13558. /field/{parent-uuid}/answer: {
  13559. get: {
  13560. tags: [
  13561. "field"
  13562. ],
  13563. summary: "Fetch all non-retired answer subresources",
  13564. operationId: "getAllFieldAnswers",
  13565. consumes: [
  13566. "application/json"
  13567. ],
  13568. produces: [
  13569. "application/json"
  13570. ],
  13571. parameters: [
  13572. {
  13573. name: "limit",
  13574. in: "query",
  13575. description: "The number of results to return",
  13576. required: false,
  13577. type: "integer"
  13578. },
  13579. {
  13580. name: "startIndex",
  13581. in: "query",
  13582. description: "The offset at which to start",
  13583. required: false,
  13584. type: "integer"
  13585. },
  13586. {
  13587. name: "parent-uuid",
  13588. in: "path",
  13589. description: "parent resource uuid",
  13590. required: true,
  13591. type: "string"
  13592. },
  13593. {
  13594. name: "v",
  13595. in: "query",
  13596. description: "The representation to return (ref, default, full or custom)",
  13597. required: false,
  13598. type: "string",
  13599. enum: [
  13600. "ref",
  13601. "default",
  13602. "full",
  13603. "custom"
  13604. ]
  13605. }
  13606. ],
  13607. responses: {
  13608. 200: {
  13609. description: "answer response",
  13610. schema: {
  13611. type: "object",
  13612. properties: {
  13613. results: {
  13614. type: "array",
  13615. items: {
  13616. $ref: "#/definitions/FieldAnswerGet"
  13617. }
  13618. }
  13619. }
  13620. }
  13621. },
  13622. 401: {
  13623. description: "User not logged in"
  13624. }
  13625. }
  13626. },
  13627. post: {
  13628. tags: [
  13629. "field"
  13630. ],
  13631. summary: "Create answer subresource with properties in request",
  13632. operationId: "createFieldAnswer",
  13633. consumes: [
  13634. "application/json"
  13635. ],
  13636. produces: [
  13637. "application/json"
  13638. ],
  13639. parameters: [
  13640. {
  13641. name: "parent-uuid",
  13642. in: "path",
  13643. description: "parent resource uuid",
  13644. required: true,
  13645. type: "string"
  13646. },
  13647. {
  13648. in: "body",
  13649. name: "resource",
  13650. description: "Resource to create",
  13651. required: true,
  13652. schema: {
  13653. $ref: "#/definitions/FieldAnswerCreate"
  13654. }
  13655. }
  13656. ],
  13657. responses: {
  13658. 201: {
  13659. description: "answer response"
  13660. },
  13661. 401: {
  13662. description: "User not logged in"
  13663. }
  13664. }
  13665. }
  13666. },
  13667. /field/{parent-uuid}/answer/{uuid}: {
  13668. get: {
  13669. tags: [
  13670. "field"
  13671. ],
  13672. summary: "Fetch answer subresources by uuid",
  13673. operationId: "getFieldAnswer",
  13674. consumes: [
  13675. "application/json"
  13676. ],
  13677. produces: [
  13678. "application/json"
  13679. ],
  13680. parameters: [
  13681. {
  13682. name: "parent-uuid",
  13683. in: "path",
  13684. description: "parent resource uuid",
  13685. required: true,
  13686. type: "string"
  13687. },
  13688. {
  13689. name: "uuid",
  13690. in: "path",
  13691. description: "uuid to filter by",
  13692. required: true,
  13693. type: "string"
  13694. },
  13695. {
  13696. name: "v",
  13697. in: "query",
  13698. description: "The representation to return (ref, default, full or custom)",
  13699. required: false,
  13700. type: "string",
  13701. enum: [
  13702. "ref",
  13703. "default",
  13704. "full",
  13705. "custom"
  13706. ]
  13707. }
  13708. ],
  13709. responses: {
  13710. 200: {
  13711. description: "answer response",
  13712. schema: {
  13713. $ref: "#/definitions/FieldAnswerGet"
  13714. }
  13715. },
  13716. 401: {
  13717. description: "User not logged in"
  13718. },
  13719. 404: {
  13720. description: "Resource with given uuid doesn't exist"
  13721. }
  13722. }
  13723. },
  13724. post: {
  13725. tags: [
  13726. "field"
  13727. ],
  13728. summary: "edit answer subresource with given uuid, only modifying properties in request",
  13729. operationId: "updateFieldAnswer",
  13730. consumes: [
  13731. "application/json"
  13732. ],
  13733. produces: [
  13734. "application/json"
  13735. ],
  13736. parameters: [
  13737. {
  13738. name: "parent-uuid",
  13739. in: "path",
  13740. description: "parent resource uuid",
  13741. required: true,
  13742. type: "string"
  13743. },
  13744. {
  13745. name: "uuid",
  13746. in: "path",
  13747. description: "uuid of resource to update",
  13748. required: true,
  13749. type: "string"
  13750. },
  13751. {
  13752. in: "body",
  13753. name: "resource",
  13754. description: "Resource properties to update",
  13755. required: true,
  13756. schema: {
  13757. $ref: "#/definitions/FieldAnswerUpdate"
  13758. }
  13759. }
  13760. ],
  13761. responses: {
  13762. 201: {
  13763. description: "answer response"
  13764. },
  13765. 401: {
  13766. description: "User not logged in"
  13767. }
  13768. }
  13769. },
  13770. delete: {
  13771. tags: [
  13772. "field"
  13773. ],
  13774. summary: "Delete or purge resource by uuid",
  13775. description: "The resource will be voided/retired unless purge = 'true'",
  13776. operationId: "deleteFieldAnswer",
  13777. consumes: [
  13778. "application/json"
  13779. ],
  13780. produces: [
  13781. "application/json"
  13782. ],
  13783. parameters: [
  13784. {
  13785. name: "parent-uuid",
  13786. in: "path",
  13787. description: "parent resource uuid",
  13788. required: true,
  13789. type: "string"
  13790. },
  13791. {
  13792. name: "uuid",
  13793. in: "path",
  13794. description: "uuid to delete",
  13795. required: true,
  13796. type: "string"
  13797. },
  13798. {
  13799. name: "purge",
  13800. in: "query",
  13801. required: false,
  13802. type: "boolean"
  13803. }
  13804. ],
  13805. responses: {
  13806. 204: {
  13807. description: "Delete successful"
  13808. },
  13809. 401: {
  13810. description: "User not logged in"
  13811. },
  13812. 404: {
  13813. description: "Resource with given uuid doesn't exist"
  13814. }
  13815. }
  13816. }
  13817. },
  13818. /person/{parent-uuid}/name: {
  13819. get: {
  13820. tags: [
  13821. "person"
  13822. ],
  13823. summary: "Fetch all non-retired name subresources",
  13824. operationId: "getAllPersonNames",
  13825. consumes: [
  13826. "application/json"
  13827. ],
  13828. produces: [
  13829. "application/json"
  13830. ],
  13831. parameters: [
  13832. {
  13833. name: "limit",
  13834. in: "query",
  13835. description: "The number of results to return",
  13836. required: false,
  13837. type: "integer"
  13838. },
  13839. {
  13840. name: "startIndex",
  13841. in: "query",
  13842. description: "The offset at which to start",
  13843. required: false,
  13844. type: "integer"
  13845. },
  13846. {
  13847. name: "parent-uuid",
  13848. in: "path",
  13849. description: "parent resource uuid",
  13850. required: true,
  13851. type: "string"
  13852. },
  13853. {
  13854. name: "v",
  13855. in: "query",
  13856. description: "The representation to return (ref, default, full or custom)",
  13857. required: false,
  13858. type: "string",
  13859. enum: [
  13860. "ref",
  13861. "default",
  13862. "full",
  13863. "custom"
  13864. ]
  13865. }
  13866. ],
  13867. responses: {
  13868. 200: {
  13869. description: "name response",
  13870. schema: {
  13871. type: "object",
  13872. properties: {
  13873. results: {
  13874. type: "array",
  13875. items: {
  13876. $ref: "#/definitions/PersonNameGet"
  13877. }
  13878. }
  13879. }
  13880. }
  13881. },
  13882. 401: {
  13883. description: "User not logged in"
  13884. }
  13885. }
  13886. },
  13887. post: {
  13888. tags: [
  13889. "person"
  13890. ],
  13891. summary: "Create name subresource with properties in request",
  13892. operationId: "createPersonName",
  13893. consumes: [
  13894. "application/json"
  13895. ],
  13896. produces: [
  13897. "application/json"
  13898. ],
  13899. parameters: [
  13900. {
  13901. name: "parent-uuid",
  13902. in: "path",
  13903. description: "parent resource uuid",
  13904. required: true,
  13905. type: "string"
  13906. },
  13907. {
  13908. in: "body",
  13909. name: "resource",
  13910. description: "Resource to create",
  13911. required: true,
  13912. schema: {
  13913. $ref: "#/definitions/PersonNameCreate"
  13914. }
  13915. }
  13916. ],
  13917. responses: {
  13918. 201: {
  13919. description: "name response"
  13920. },
  13921. 401: {
  13922. description: "User not logged in"
  13923. }
  13924. }
  13925. }
  13926. },
  13927. /person/{parent-uuid}/name/{uuid}: {
  13928. get: {
  13929. tags: [
  13930. "person"
  13931. ],
  13932. summary: "Fetch name subresources by uuid",
  13933. operationId: "getPersonName",
  13934. consumes: [
  13935. "application/json"
  13936. ],
  13937. produces: [
  13938. "application/json"
  13939. ],
  13940. parameters: [
  13941. {
  13942. name: "parent-uuid",
  13943. in: "path",
  13944. description: "parent resource uuid",
  13945. required: true,
  13946. type: "string"
  13947. },
  13948. {
  13949. name: "uuid",
  13950. in: "path",
  13951. description: "uuid to filter by",
  13952. required: true,
  13953. type: "string"
  13954. },
  13955. {
  13956. name: "v",
  13957. in: "query",
  13958. description: "The representation to return (ref, default, full or custom)",
  13959. required: false,
  13960. type: "string",
  13961. enum: [
  13962. "ref",
  13963. "default",
  13964. "full",
  13965. "custom"
  13966. ]
  13967. }
  13968. ],
  13969. responses: {
  13970. 200: {
  13971. description: "name response",
  13972. schema: {
  13973. $ref: "#/definitions/PersonNameGet"
  13974. }
  13975. },
  13976. 401: {
  13977. description: "User not logged in"
  13978. },
  13979. 404: {
  13980. description: "Resource with given uuid doesn't exist"
  13981. }
  13982. }
  13983. },
  13984. post: {
  13985. tags: [
  13986. "person"
  13987. ],
  13988. summary: "edit name subresource with given uuid, only modifying properties in request",
  13989. operationId: "updatePersonName",
  13990. consumes: [
  13991. "application/json"
  13992. ],
  13993. produces: [
  13994. "application/json"
  13995. ],
  13996. parameters: [
  13997. {
  13998. name: "parent-uuid",
  13999. in: "path",
  14000. description: "parent resource uuid",
  14001. required: true,
  14002. type: "string"
  14003. },
  14004. {
  14005. name: "uuid",
  14006. in: "path",
  14007. description: "uuid of resource to update",
  14008. required: true,
  14009. type: "string"
  14010. },
  14011. {
  14012. in: "body",
  14013. name: "resource",
  14014. description: "Resource properties to update",
  14015. required: true,
  14016. schema: {
  14017. $ref: "#/definitions/PersonNameUpdate"
  14018. }
  14019. }
  14020. ],
  14021. responses: {
  14022. 201: {
  14023. description: "name response"
  14024. },
  14025. 401: {
  14026. description: "User not logged in"
  14027. }
  14028. }
  14029. },
  14030. delete: {
  14031. tags: [
  14032. "person"
  14033. ],
  14034. summary: "Delete or purge resource by uuid",
  14035. description: "The resource will be voided/retired unless purge = 'true'",
  14036. operationId: "deletePersonName",
  14037. consumes: [
  14038. "application/json"
  14039. ],
  14040. produces: [
  14041. "application/json"
  14042. ],
  14043. parameters: [
  14044. {
  14045. name: "parent-uuid",
  14046. in: "path",
  14047. description: "parent resource uuid",
  14048. required: true,
  14049. type: "string"
  14050. },
  14051. {
  14052. name: "uuid",
  14053. in: "path",
  14054. description: "uuid to delete",
  14055. required: true,
  14056. type: "string"
  14057. },
  14058. {
  14059. name: "purge",
  14060. in: "query",
  14061. required: false,
  14062. type: "boolean"
  14063. }
  14064. ],
  14065. responses: {
  14066. 204: {
  14067. description: "Delete successful"
  14068. },
  14069. 401: {
  14070. description: "User not logged in"
  14071. },
  14072. 404: {
  14073. description: "Resource with given uuid doesn't exist"
  14074. }
  14075. }
  14076. }
  14077. },
  14078. /cohort/{parent-uuid}/membership: {
  14079. get: {
  14080. tags: [
  14081. "cohort"
  14082. ],
  14083. summary: "Fetch all non-retired membership subresources",
  14084. operationId: "getAllCohortMemberships",
  14085. consumes: [
  14086. "application/json"
  14087. ],
  14088. produces: [
  14089. "application/json"
  14090. ],
  14091. parameters: [
  14092. {
  14093. name: "limit",
  14094. in: "query",
  14095. description: "The number of results to return",
  14096. required: false,
  14097. type: "integer"
  14098. },
  14099. {
  14100. name: "startIndex",
  14101. in: "query",
  14102. description: "The offset at which to start",
  14103. required: false,
  14104. type: "integer"
  14105. },
  14106. {
  14107. name: "parent-uuid",
  14108. in: "path",
  14109. description: "parent resource uuid",
  14110. required: true,
  14111. type: "string"
  14112. },
  14113. {
  14114. name: "v",
  14115. in: "query",
  14116. description: "The representation to return (ref, default, full or custom)",
  14117. required: false,
  14118. type: "string",
  14119. enum: [
  14120. "ref",
  14121. "default",
  14122. "full",
  14123. "custom"
  14124. ]
  14125. }
  14126. ],
  14127. responses: {
  14128. 200: {
  14129. description: "membership response",
  14130. schema: {
  14131. type: "object",
  14132. properties: {
  14133. results: {
  14134. type: "array",
  14135. items: {
  14136. $ref: "#/definitions/CohortMembershipGet"
  14137. }
  14138. }
  14139. }
  14140. }
  14141. },
  14142. 401: {
  14143. description: "User not logged in"
  14144. }
  14145. }
  14146. },
  14147. post: {
  14148. tags: [
  14149. "cohort"
  14150. ],
  14151. summary: "Create membership subresource with properties in request",
  14152. operationId: "createCohortMembership",
  14153. consumes: [
  14154. "application/json"
  14155. ],
  14156. produces: [
  14157. "application/json"
  14158. ],
  14159. parameters: [
  14160. {
  14161. name: "parent-uuid",
  14162. in: "path",
  14163. description: "parent resource uuid",
  14164. required: true,
  14165. type: "string"
  14166. },
  14167. {
  14168. in: "body",
  14169. name: "resource",
  14170. description: "Resource to create",
  14171. required: true,
  14172. schema: {
  14173. $ref: "#/definitions/CohortMembershipCreate"
  14174. }
  14175. }
  14176. ],
  14177. responses: {
  14178. 201: {
  14179. description: "membership response"
  14180. },
  14181. 401: {
  14182. description: "User not logged in"
  14183. }
  14184. }
  14185. }
  14186. },
  14187. /cohort/{parent-uuid}/membership/{uuid}: {
  14188. get: {
  14189. tags: [
  14190. "cohort"
  14191. ],
  14192. summary: "Fetch membership subresources by uuid",
  14193. operationId: "getCohortMembership",
  14194. consumes: [
  14195. "application/json"
  14196. ],
  14197. produces: [
  14198. "application/json"
  14199. ],
  14200. parameters: [
  14201. {
  14202. name: "parent-uuid",
  14203. in: "path",
  14204. description: "parent resource uuid",
  14205. required: true,
  14206. type: "string"
  14207. },
  14208. {
  14209. name: "uuid",
  14210. in: "path",
  14211. description: "uuid to filter by",
  14212. required: true,
  14213. type: "string"
  14214. },
  14215. {
  14216. name: "v",
  14217. in: "query",
  14218. description: "The representation to return (ref, default, full or custom)",
  14219. required: false,
  14220. type: "string",
  14221. enum: [
  14222. "ref",
  14223. "default",
  14224. "full",
  14225. "custom"
  14226. ]
  14227. }
  14228. ],
  14229. responses: {
  14230. 200: {
  14231. description: "membership response",
  14232. schema: {
  14233. $ref: "#/definitions/CohortMembershipGet"
  14234. }
  14235. },
  14236. 401: {
  14237. description: "User not logged in"
  14238. },
  14239. 404: {
  14240. description: "Resource with given uuid doesn't exist"
  14241. }
  14242. }
  14243. },
  14244. post: {
  14245. tags: [
  14246. "cohort"
  14247. ],
  14248. summary: "edit membership subresource with given uuid, only modifying properties in request",
  14249. operationId: "updateCohortMembership",
  14250. consumes: [
  14251. "application/json"
  14252. ],
  14253. produces: [
  14254. "application/json"
  14255. ],
  14256. parameters: [
  14257. {
  14258. name: "parent-uuid",
  14259. in: "path",
  14260. description: "parent resource uuid",
  14261. required: true,
  14262. type: "string"
  14263. },
  14264. {
  14265. name: "uuid",
  14266. in: "path",
  14267. description: "uuid of resource to update",
  14268. required: true,
  14269. type: "string"
  14270. },
  14271. {
  14272. in: "body",
  14273. name: "resource",
  14274. description: "Resource properties to update",
  14275. required: true,
  14276. schema: {
  14277. $ref: "#/definitions/CohortMembershipUpdate"
  14278. }
  14279. }
  14280. ],
  14281. responses: {
  14282. 201: {
  14283. description: "membership response"
  14284. },
  14285. 401: {
  14286. description: "User not logged in"
  14287. }
  14288. }
  14289. },
  14290. delete: {
  14291. tags: [
  14292. "cohort"
  14293. ],
  14294. summary: "Delete or purge resource by uuid",
  14295. description: "The resource will be voided/retired unless purge = 'true'",
  14296. operationId: "deleteCohortMembership",
  14297. consumes: [
  14298. "application/json"
  14299. ],
  14300. produces: [
  14301. "application/json"
  14302. ],
  14303. parameters: [
  14304. {
  14305. name: "parent-uuid",
  14306. in: "path",
  14307. description: "parent resource uuid",
  14308. required: true,
  14309. type: "string"
  14310. },
  14311. {
  14312. name: "uuid",
  14313. in: "path",
  14314. description: "uuid to delete",
  14315. required: true,
  14316. type: "string"
  14317. },
  14318. {
  14319. name: "purge",
  14320. in: "query",
  14321. required: false,
  14322. type: "boolean"
  14323. }
  14324. ],
  14325. responses: {
  14326. 204: {
  14327. description: "Delete successful"
  14328. },
  14329. 401: {
  14330. description: "User not logged in"
  14331. },
  14332. 404: {
  14333. description: "Resource with given uuid doesn't exist"
  14334. }
  14335. }
  14336. }
  14337. },
  14338. /person/{parent-uuid}/address: {
  14339. get: {
  14340. tags: [
  14341. "person"
  14342. ],
  14343. summary: "Fetch all non-retired address subresources",
  14344. operationId: "getAllPersonAddresses",
  14345. consumes: [
  14346. "application/json"
  14347. ],
  14348. produces: [
  14349. "application/json"
  14350. ],
  14351. parameters: [
  14352. {
  14353. name: "limit",
  14354. in: "query",
  14355. description: "The number of results to return",
  14356. required: false,
  14357. type: "integer"
  14358. },
  14359. {
  14360. name: "startIndex",
  14361. in: "query",
  14362. description: "The offset at which to start",
  14363. required: false,
  14364. type: "integer"
  14365. },
  14366. {
  14367. name: "parent-uuid",
  14368. in: "path",
  14369. description: "parent resource uuid",
  14370. required: true,
  14371. type: "string"
  14372. },
  14373. {
  14374. name: "v",
  14375. in: "query",
  14376. description: "The representation to return (ref, default, full or custom)",
  14377. required: false,
  14378. type: "string",
  14379. enum: [
  14380. "ref",
  14381. "default",
  14382. "full",
  14383. "custom"
  14384. ]
  14385. }
  14386. ],
  14387. responses: {
  14388. 200: {
  14389. description: "address response",
  14390. schema: {
  14391. type: "object",
  14392. properties: {
  14393. results: {
  14394. type: "array",
  14395. items: {
  14396. $ref: "#/definitions/PersonAddressGet"
  14397. }
  14398. }
  14399. }
  14400. }
  14401. },
  14402. 401: {
  14403. description: "User not logged in"
  14404. }
  14405. }
  14406. },
  14407. post: {
  14408. tags: [
  14409. "person"
  14410. ],
  14411. summary: "Create address subresource with properties in request",
  14412. operationId: "createPersonAddress",
  14413. consumes: [
  14414. "application/json"
  14415. ],
  14416. produces: [
  14417. "application/json"
  14418. ],
  14419. parameters: [
  14420. {
  14421. name: "parent-uuid",
  14422. in: "path",
  14423. description: "parent resource uuid",
  14424. required: true,
  14425. type: "string"
  14426. },
  14427. {
  14428. in: "body",
  14429. name: "resource",
  14430. description: "Resource to create",
  14431. required: true,
  14432. schema: {
  14433. $ref: "#/definitions/PersonAddressCreate"
  14434. }
  14435. }
  14436. ],
  14437. responses: {
  14438. 201: {
  14439. description: "address response"
  14440. },
  14441. 401: {
  14442. description: "User not logged in"
  14443. }
  14444. }
  14445. }
  14446. },
  14447. /person/{parent-uuid}/address/{uuid}: {
  14448. get: {
  14449. tags: [
  14450. "person"
  14451. ],
  14452. summary: "Fetch address subresources by uuid",
  14453. operationId: "getPersonAddress",
  14454. consumes: [
  14455. "application/json"
  14456. ],
  14457. produces: [
  14458. "application/json"
  14459. ],
  14460. parameters: [
  14461. {
  14462. name: "parent-uuid",
  14463. in: "path",
  14464. description: "parent resource uuid",
  14465. required: true,
  14466. type: "string"
  14467. },
  14468. {
  14469. name: "uuid",
  14470. in: "path",
  14471. description: "uuid to filter by",
  14472. required: true,
  14473. type: "string"
  14474. },
  14475. {
  14476. name: "v",
  14477. in: "query",
  14478. description: "The representation to return (ref, default, full or custom)",
  14479. required: false,
  14480. type: "string",
  14481. enum: [
  14482. "ref",
  14483. "default",
  14484. "full",
  14485. "custom"
  14486. ]
  14487. }
  14488. ],
  14489. responses: {
  14490. 200: {
  14491. description: "address response",
  14492. schema: {
  14493. $ref: "#/definitions/PersonAddressGet"
  14494. }
  14495. },
  14496. 401: {
  14497. description: "User not logged in"
  14498. },
  14499. 404: {
  14500. description: "Resource with given uuid doesn't exist"
  14501. }
  14502. }
  14503. },
  14504. post: {
  14505. tags: [
  14506. "person"
  14507. ],
  14508. summary: "edit address subresource with given uuid, only modifying properties in request",
  14509. operationId: "updatePersonAddress",
  14510. consumes: [
  14511. "application/json"
  14512. ],
  14513. produces: [
  14514. "application/json"
  14515. ],
  14516. parameters: [
  14517. {
  14518. name: "parent-uuid",
  14519. in: "path",
  14520. description: "parent resource uuid",
  14521. required: true,
  14522. type: "string"
  14523. },
  14524. {
  14525. name: "uuid",
  14526. in: "path",
  14527. description: "uuid of resource to update",
  14528. required: true,
  14529. type: "string"
  14530. },
  14531. {
  14532. in: "body",
  14533. name: "resource",
  14534. description: "Resource properties to update",
  14535. required: true,
  14536. schema: {
  14537. $ref: "#/definitions/PersonAddressUpdate"
  14538. }
  14539. }
  14540. ],
  14541. responses: {
  14542. 201: {
  14543. description: "address response"
  14544. },
  14545. 401: {
  14546. description: "User not logged in"
  14547. }
  14548. }
  14549. },
  14550. delete: {
  14551. tags: [
  14552. "person"
  14553. ],
  14554. summary: "Delete or purge resource by uuid",
  14555. description: "The resource will be voided/retired unless purge = 'true'",
  14556. operationId: "deletePersonAddress",
  14557. consumes: [
  14558. "application/json"
  14559. ],
  14560. produces: [
  14561. "application/json"
  14562. ],
  14563. parameters: [
  14564. {
  14565. name: "parent-uuid",
  14566. in: "path",
  14567. description: "parent resource uuid",
  14568. required: true,
  14569. type: "string"
  14570. },
  14571. {
  14572. name: "uuid",
  14573. in: "path",
  14574. description: "uuid to delete",
  14575. required: true,
  14576. type: "string"
  14577. },
  14578. {
  14579. name: "purge",
  14580. in: "query",
  14581. required: false,
  14582. type: "boolean"
  14583. }
  14584. ],
  14585. responses: {
  14586. 204: {
  14587. description: "Delete successful"
  14588. },
  14589. 401: {
  14590. description: "User not logged in"
  14591. },
  14592. 404: {
  14593. description: "Resource with given uuid doesn't exist"
  14594. }
  14595. }
  14596. }
  14597. },
  14598. /programenrollment/{parent-uuid}/attribute: {
  14599. get: {
  14600. tags: [
  14601. "programenrollment"
  14602. ],
  14603. summary: "Fetch all non-retired attribute subresources",
  14604. operationId: "getAllPatientProgramAttributes",
  14605. consumes: [
  14606. "application/json"
  14607. ],
  14608. produces: [
  14609. "application/json"
  14610. ],
  14611. parameters: [
  14612. {
  14613. name: "limit",
  14614. in: "query",
  14615. description: "The number of results to return",
  14616. required: false,
  14617. type: "integer"
  14618. },
  14619. {
  14620. name: "startIndex",
  14621. in: "query",
  14622. description: "The offset at which to start",
  14623. required: false,
  14624. type: "integer"
  14625. },
  14626. {
  14627. name: "parent-uuid",
  14628. in: "path",
  14629. description: "parent resource uuid",
  14630. required: true,
  14631. type: "string"
  14632. },
  14633. {
  14634. name: "v",
  14635. in: "query",
  14636. description: "The representation to return (ref, default, full or custom)",
  14637. required: false,
  14638. type: "string",
  14639. enum: [
  14640. "ref",
  14641. "default",
  14642. "full",
  14643. "custom"
  14644. ]
  14645. }
  14646. ],
  14647. responses: {
  14648. 200: {
  14649. description: "attribute response",
  14650. schema: {
  14651. type: "object",
  14652. properties: {
  14653. results: {
  14654. type: "array",
  14655. items: {
  14656. $ref: "#/definitions/ProgramenrollmentAttributeGet"
  14657. }
  14658. }
  14659. }
  14660. }
  14661. },
  14662. 401: {
  14663. description: "User not logged in"
  14664. }
  14665. }
  14666. },
  14667. post: {
  14668. tags: [
  14669. "programenrollment"
  14670. ],
  14671. summary: "Create attribute subresource with properties in request",
  14672. operationId: "createPatientProgramAttribute",
  14673. consumes: [
  14674. "application/json"
  14675. ],
  14676. produces: [
  14677. "application/json"
  14678. ],
  14679. parameters: [
  14680. {
  14681. name: "parent-uuid",
  14682. in: "path",
  14683. description: "parent resource uuid",
  14684. required: true,
  14685. type: "string"
  14686. },
  14687. {
  14688. in: "body",
  14689. name: "resource",
  14690. description: "Resource to create",
  14691. required: true,
  14692. schema: {
  14693. $ref: "#/definitions/ProgramenrollmentAttributeCreate"
  14694. }
  14695. }
  14696. ],
  14697. responses: {
  14698. 201: {
  14699. description: "attribute response"
  14700. },
  14701. 401: {
  14702. description: "User not logged in"
  14703. }
  14704. }
  14705. }
  14706. },
  14707. /programenrollment/{parent-uuid}/attribute/{uuid}: {
  14708. get: {
  14709. tags: [
  14710. "programenrollment"
  14711. ],
  14712. summary: "Fetch attribute subresources by uuid",
  14713. operationId: "getPatientProgramAttribute",
  14714. consumes: [
  14715. "application/json"
  14716. ],
  14717. produces: [
  14718. "application/json"
  14719. ],
  14720. parameters: [
  14721. {
  14722. name: "parent-uuid",
  14723. in: "path",
  14724. description: "parent resource uuid",
  14725. required: true,
  14726. type: "string"
  14727. },
  14728. {
  14729. name: "uuid",
  14730. in: "path",
  14731. description: "uuid to filter by",
  14732. required: true,
  14733. type: "string"
  14734. },
  14735. {
  14736. name: "v",
  14737. in: "query",
  14738. description: "The representation to return (ref, default, full or custom)",
  14739. required: false,
  14740. type: "string",
  14741. enum: [
  14742. "ref",
  14743. "default",
  14744. "full",
  14745. "custom"
  14746. ]
  14747. }
  14748. ],
  14749. responses: {
  14750. 200: {
  14751. description: "attribute response",
  14752. schema: {
  14753. $ref: "#/definitions/ProgramenrollmentAttributeGet"
  14754. }
  14755. },
  14756. 401: {
  14757. description: "User not logged in"
  14758. },
  14759. 404: {
  14760. description: "Resource with given uuid doesn't exist"
  14761. }
  14762. }
  14763. },
  14764. post: {
  14765. tags: [
  14766. "programenrollment"
  14767. ],
  14768. summary: "edit attribute subresource with given uuid, only modifying properties in request",
  14769. operationId: "updatePatientProgramAttribute",
  14770. consumes: [
  14771. "application/json"
  14772. ],
  14773. produces: [
  14774. "application/json"
  14775. ],
  14776. parameters: [
  14777. {
  14778. name: "parent-uuid",
  14779. in: "path",
  14780. description: "parent resource uuid",
  14781. required: true,
  14782. type: "string"
  14783. },
  14784. {
  14785. name: "uuid",
  14786. in: "path",
  14787. description: "uuid of resource to update",
  14788. required: true,
  14789. type: "string"
  14790. },
  14791. {
  14792. in: "body",
  14793. name: "resource",
  14794. description: "Resource properties to update",
  14795. required: true,
  14796. schema: {
  14797. $ref: "#/definitions/ProgramenrollmentAttributeUpdate"
  14798. }
  14799. }
  14800. ],
  14801. responses: {
  14802. 201: {
  14803. description: "attribute response"
  14804. },
  14805. 401: {
  14806. description: "User not logged in"
  14807. }
  14808. }
  14809. },
  14810. delete: {
  14811. tags: [
  14812. "programenrollment"
  14813. ],
  14814. summary: "Delete or purge resource by uuid",
  14815. description: "The resource will be voided/retired unless purge = 'true'",
  14816. operationId: "deletePatientProgramAttribute",
  14817. consumes: [
  14818. "application/json"
  14819. ],
  14820. produces: [
  14821. "application/json"
  14822. ],
  14823. parameters: [
  14824. {
  14825. name: "parent-uuid",
  14826. in: "path",
  14827. description: "parent resource uuid",
  14828. required: true,
  14829. type: "string"
  14830. },
  14831. {
  14832. name: "uuid",
  14833. in: "path",
  14834. description: "uuid to delete",
  14835. required: true,
  14836. type: "string"
  14837. },
  14838. {
  14839. name: "purge",
  14840. in: "query",
  14841. required: false,
  14842. type: "boolean"
  14843. }
  14844. ],
  14845. responses: {
  14846. 204: {
  14847. description: "Delete successful"
  14848. },
  14849. 401: {
  14850. description: "User not logged in"
  14851. },
  14852. 404: {
  14853. description: "Resource with given uuid doesn't exist"
  14854. }
  14855. }
  14856. }
  14857. },
  14858. /concept/{parent-uuid}/description: {
  14859. get: {
  14860. tags: [
  14861. "concept"
  14862. ],
  14863. summary: "Fetch all non-retired description subresources",
  14864. operationId: "getAllConceptDescriptions",
  14865. consumes: [
  14866. "application/json"
  14867. ],
  14868. produces: [
  14869. "application/json"
  14870. ],
  14871. parameters: [
  14872. {
  14873. name: "limit",
  14874. in: "query",
  14875. description: "The number of results to return",
  14876. required: false,
  14877. type: "integer"
  14878. },
  14879. {
  14880. name: "startIndex",
  14881. in: "query",
  14882. description: "The offset at which to start",
  14883. required: false,
  14884. type: "integer"
  14885. },
  14886. {
  14887. name: "parent-uuid",
  14888. in: "path",
  14889. description: "parent resource uuid",
  14890. required: true,
  14891. type: "string"
  14892. },
  14893. {
  14894. name: "v",
  14895. in: "query",
  14896. description: "The representation to return (ref, default, full or custom)",
  14897. required: false,
  14898. type: "string",
  14899. enum: [
  14900. "ref",
  14901. "default",
  14902. "full",
  14903. "custom"
  14904. ]
  14905. }
  14906. ],
  14907. responses: {
  14908. 200: {
  14909. description: "description response",
  14910. schema: {
  14911. type: "object",
  14912. properties: {
  14913. results: {
  14914. type: "array",
  14915. items: {
  14916. $ref: "#/definitions/ConceptDescriptionGet"
  14917. }
  14918. }
  14919. }
  14920. }
  14921. },
  14922. 401: {
  14923. description: "User not logged in"
  14924. }
  14925. }
  14926. },
  14927. post: {
  14928. tags: [
  14929. "concept"
  14930. ],
  14931. summary: "Create description subresource with properties in request",
  14932. operationId: "createConceptDescription",
  14933. consumes: [
  14934. "application/json"
  14935. ],
  14936. produces: [
  14937. "application/json"
  14938. ],
  14939. parameters: [
  14940. {
  14941. name: "parent-uuid",
  14942. in: "path",
  14943. description: "parent resource uuid",
  14944. required: true,
  14945. type: "string"
  14946. },
  14947. {
  14948. in: "body",
  14949. name: "resource",
  14950. description: "Resource to create",
  14951. required: true,
  14952. schema: {
  14953. $ref: "#/definitions/ConceptDescriptionCreate"
  14954. }
  14955. }
  14956. ],
  14957. responses: {
  14958. 201: {
  14959. description: "description response"
  14960. },
  14961. 401: {
  14962. description: "User not logged in"
  14963. }
  14964. }
  14965. }
  14966. },
  14967. /concept/{parent-uuid}/description/{uuid}: {
  14968. get: {
  14969. tags: [
  14970. "concept"
  14971. ],
  14972. summary: "Fetch description subresources by uuid",
  14973. operationId: "getConceptDescription",
  14974. consumes: [
  14975. "application/json"
  14976. ],
  14977. produces: [
  14978. "application/json"
  14979. ],
  14980. parameters: [
  14981. {
  14982. name: "parent-uuid",
  14983. in: "path",
  14984. description: "parent resource uuid",
  14985. required: true,
  14986. type: "string"
  14987. },
  14988. {
  14989. name: "uuid",
  14990. in: "path",
  14991. description: "uuid to filter by",
  14992. required: true,
  14993. type: "string"
  14994. },
  14995. {
  14996. name: "v",
  14997. in: "query",
  14998. description: "The representation to return (ref, default, full or custom)",
  14999. required: false,
  15000. type: "string",
  15001. enum: [
  15002. "ref",
  15003. "default",
  15004. "full",
  15005. "custom"
  15006. ]
  15007. }
  15008. ],
  15009. responses: {
  15010. 200: {
  15011. description: "description response",
  15012. schema: {
  15013. $ref: "#/definitions/ConceptDescriptionGet"
  15014. }
  15015. },
  15016. 401: {
  15017. description: "User not logged in"
  15018. },
  15019. 404: {
  15020. description: "Resource with given uuid doesn't exist"
  15021. }
  15022. }
  15023. },
  15024. post: {
  15025. tags: [
  15026. "concept"
  15027. ],
  15028. summary: "edit description subresource with given uuid, only modifying properties in request",
  15029. operationId: "updateConceptDescription",
  15030. consumes: [
  15031. "application/json"
  15032. ],
  15033. produces: [
  15034. "application/json"
  15035. ],
  15036. parameters: [
  15037. {
  15038. name: "parent-uuid",
  15039. in: "path",
  15040. description: "parent resource uuid",
  15041. required: true,
  15042. type: "string"
  15043. },
  15044. {
  15045. name: "uuid",
  15046. in: "path",
  15047. description: "uuid of resource to update",
  15048. required: true,
  15049. type: "string"
  15050. },
  15051. {
  15052. in: "body",
  15053. name: "resource",
  15054. description: "Resource properties to update",
  15055. required: true,
  15056. schema: {
  15057. $ref: "#/definitions/ConceptDescriptionUpdate"
  15058. }
  15059. }
  15060. ],
  15061. responses: {
  15062. 201: {
  15063. description: "description response"
  15064. },
  15065. 401: {
  15066. description: "User not logged in"
  15067. }
  15068. }
  15069. },
  15070. delete: {
  15071. tags: [
  15072. "concept"
  15073. ],
  15074. summary: "Delete or purge resource by uuid",
  15075. description: "The resource will be voided/retired unless purge = 'true'",
  15076. operationId: "deleteConceptDescription",
  15077. consumes: [
  15078. "application/json"
  15079. ],
  15080. produces: [
  15081. "application/json"
  15082. ],
  15083. parameters: [
  15084. {
  15085. name: "parent-uuid",
  15086. in: "path",
  15087. description: "parent resource uuid",
  15088. required: true,
  15089. type: "string"
  15090. },
  15091. {
  15092. name: "uuid",
  15093. in: "path",
  15094. description: "uuid to delete",
  15095. required: true,
  15096. type: "string"
  15097. },
  15098. {
  15099. name: "purge",
  15100. in: "query",
  15101. required: false,
  15102. type: "boolean"
  15103. }
  15104. ],
  15105. responses: {
  15106. 204: {
  15107. description: "Delete successful"
  15108. },
  15109. 401: {
  15110. description: "User not logged in"
  15111. },
  15112. 404: {
  15113. description: "Resource with given uuid doesn't exist"
  15114. }
  15115. }
  15116. }
  15117. },
  15118. /encounter/{parent-uuid}/encounterprovider: {
  15119. get: {
  15120. tags: [
  15121. "encounter"
  15122. ],
  15123. summary: "Fetch all non-retired encounterprovider subresources",
  15124. operationId: "getAllEncounterProviders",
  15125. consumes: [
  15126. "application/json"
  15127. ],
  15128. produces: [
  15129. "application/json"
  15130. ],
  15131. parameters: [
  15132. {
  15133. name: "limit",
  15134. in: "query",
  15135. description: "The number of results to return",
  15136. required: false,
  15137. type: "integer"
  15138. },
  15139. {
  15140. name: "startIndex",
  15141. in: "query",
  15142. description: "The offset at which to start",
  15143. required: false,
  15144. type: "integer"
  15145. },
  15146. {
  15147. name: "parent-uuid",
  15148. in: "path",
  15149. description: "parent resource uuid",
  15150. required: true,
  15151. type: "string"
  15152. },
  15153. {
  15154. name: "v",
  15155. in: "query",
  15156. description: "The representation to return (ref, default, full or custom)",
  15157. required: false,
  15158. type: "string",
  15159. enum: [
  15160. "ref",
  15161. "default",
  15162. "full",
  15163. "custom"
  15164. ]
  15165. }
  15166. ],
  15167. responses: {
  15168. 200: {
  15169. description: "encounterprovider response",
  15170. schema: {
  15171. type: "object",
  15172. properties: {
  15173. results: {
  15174. type: "array",
  15175. items: {
  15176. $ref: "#/definitions/EncounterEncounterproviderGet"
  15177. }
  15178. }
  15179. }
  15180. }
  15181. },
  15182. 401: {
  15183. description: "User not logged in"
  15184. }
  15185. }
  15186. },
  15187. post: {
  15188. tags: [
  15189. "encounter"
  15190. ],
  15191. summary: "Create encounterprovider subresource with properties in request",
  15192. operationId: "createEncounterProvider",
  15193. consumes: [
  15194. "application/json"
  15195. ],
  15196. produces: [
  15197. "application/json"
  15198. ],
  15199. parameters: [
  15200. {
  15201. name: "parent-uuid",
  15202. in: "path",
  15203. description: "parent resource uuid",
  15204. required: true,
  15205. type: "string"
  15206. },
  15207. {
  15208. in: "body",
  15209. name: "resource",
  15210. description: "Resource to create",
  15211. required: true,
  15212. schema: {
  15213. $ref: "#/definitions/EncounterEncounterproviderCreate"
  15214. }
  15215. }
  15216. ],
  15217. responses: {
  15218. 201: {
  15219. description: "encounterprovider response"
  15220. },
  15221. 401: {
  15222. description: "User not logged in"
  15223. }
  15224. }
  15225. }
  15226. },
  15227. /encounter/{parent-uuid}/encounterprovider/{uuid}: {
  15228. get: {
  15229. tags: [
  15230. "encounter"
  15231. ],
  15232. summary: "Fetch encounterprovider subresources by uuid",
  15233. operationId: "getEncounterProvider",
  15234. consumes: [
  15235. "application/json"
  15236. ],
  15237. produces: [
  15238. "application/json"
  15239. ],
  15240. parameters: [
  15241. {
  15242. name: "parent-uuid",
  15243. in: "path",
  15244. description: "parent resource uuid",
  15245. required: true,
  15246. type: "string"
  15247. },
  15248. {
  15249. name: "uuid",
  15250. in: "path",
  15251. description: "uuid to filter by",
  15252. required: true,
  15253. type: "string"
  15254. },
  15255. {
  15256. name: "v",
  15257. in: "query",
  15258. description: "The representation to return (ref, default, full or custom)",
  15259. required: false,
  15260. type: "string",
  15261. enum: [
  15262. "ref",
  15263. "default",
  15264. "full",
  15265. "custom"
  15266. ]
  15267. }
  15268. ],
  15269. responses: {
  15270. 200: {
  15271. description: "encounterprovider response",
  15272. schema: {
  15273. $ref: "#/definitions/EncounterEncounterproviderGet"
  15274. }
  15275. },
  15276. 401: {
  15277. description: "User not logged in"
  15278. },
  15279. 404: {
  15280. description: "Resource with given uuid doesn't exist"
  15281. }
  15282. }
  15283. },
  15284. post: {
  15285. tags: [
  15286. "encounter"
  15287. ],
  15288. summary: "edit encounterprovider subresource with given uuid, only modifying properties in request",
  15289. operationId: "updateEncounterProvider",
  15290. consumes: [
  15291. "application/json"
  15292. ],
  15293. produces: [
  15294. "application/json"
  15295. ],
  15296. parameters: [
  15297. {
  15298. name: "parent-uuid",
  15299. in: "path",
  15300. description: "parent resource uuid",
  15301. required: true,
  15302. type: "string"
  15303. },
  15304. {
  15305. name: "uuid",
  15306. in: "path",
  15307. description: "uuid of resource to update",
  15308. required: true,
  15309. type: "string"
  15310. },
  15311. {
  15312. in: "body",
  15313. name: "resource",
  15314. description: "Resource properties to update",
  15315. required: true,
  15316. schema: {
  15317. $ref: "#/definitions/EncounterEncounterproviderUpdate"
  15318. }
  15319. }
  15320. ],
  15321. responses: {
  15322. 201: {
  15323. description: "encounterprovider response"
  15324. },
  15325. 401: {
  15326. description: "User not logged in"
  15327. }
  15328. }
  15329. },
  15330. delete: {
  15331. tags: [
  15332. "encounter"
  15333. ],
  15334. summary: "Delete or purge resource by uuid",
  15335. description: "The resource will be voided/retired unless purge = 'true'",
  15336. operationId: "deleteEncounterProvider",
  15337. consumes: [
  15338. "application/json"
  15339. ],
  15340. produces: [
  15341. "application/json"
  15342. ],
  15343. parameters: [
  15344. {
  15345. name: "parent-uuid",
  15346. in: "path",
  15347. description: "parent resource uuid",
  15348. required: true,
  15349. type: "string"
  15350. },
  15351. {
  15352. name: "uuid",
  15353. in: "path",
  15354. description: "uuid to delete",
  15355. required: true,
  15356. type: "string"
  15357. },
  15358. {
  15359. name: "purge",
  15360. in: "query",
  15361. required: false,
  15362. type: "boolean"
  15363. }
  15364. ],
  15365. responses: {
  15366. 204: {
  15367. description: "Delete successful"
  15368. },
  15369. 401: {
  15370. description: "User not logged in"
  15371. },
  15372. 404: {
  15373. description: "Resource with given uuid doesn't exist"
  15374. }
  15375. }
  15376. }
  15377. },
  15378. /concept/{parent-uuid}/name: {
  15379. get: {
  15380. tags: [
  15381. "concept"
  15382. ],
  15383. summary: "Fetch all non-retired name subresources",
  15384. operationId: "getAllConceptNames",
  15385. consumes: [
  15386. "application/json"
  15387. ],
  15388. produces: [
  15389. "application/json"
  15390. ],
  15391. parameters: [
  15392. {
  15393. name: "limit",
  15394. in: "query",
  15395. description: "The number of results to return",
  15396. required: false,
  15397. type: "integer"
  15398. },
  15399. {
  15400. name: "startIndex",
  15401. in: "query",
  15402. description: "The offset at which to start",
  15403. required: false,
  15404. type: "integer"
  15405. },
  15406. {
  15407. name: "parent-uuid",
  15408. in: "path",
  15409. description: "parent resource uuid",
  15410. required: true,
  15411. type: "string"
  15412. },
  15413. {
  15414. name: "v",
  15415. in: "query",
  15416. description: "The representation to return (ref, default, full or custom)",
  15417. required: false,
  15418. type: "string",
  15419. enum: [
  15420. "ref",
  15421. "default",
  15422. "full",
  15423. "custom"
  15424. ]
  15425. }
  15426. ],
  15427. responses: {
  15428. 200: {
  15429. description: "name response",
  15430. schema: {
  15431. type: "object",
  15432. properties: {
  15433. results: {
  15434. type: "array",
  15435. items: {
  15436. $ref: "#/definitions/ConceptNameGet"
  15437. }
  15438. }
  15439. }
  15440. }
  15441. },
  15442. 401: {
  15443. description: "User not logged in"
  15444. }
  15445. }
  15446. },
  15447. post: {
  15448. tags: [
  15449. "concept"
  15450. ],
  15451. summary: "Create name subresource with properties in request",
  15452. operationId: "createConceptName",
  15453. consumes: [
  15454. "application/json"
  15455. ],
  15456. produces: [
  15457. "application/json"
  15458. ],
  15459. parameters: [
  15460. {
  15461. name: "parent-uuid",
  15462. in: "path",
  15463. description: "parent resource uuid",
  15464. required: true,
  15465. type: "string"
  15466. },
  15467. {
  15468. in: "body",
  15469. name: "resource",
  15470. description: "Resource to create",
  15471. required: true,
  15472. schema: {
  15473. $ref: "#/definitions/ConceptNameCreate"
  15474. }
  15475. }
  15476. ],
  15477. responses: {
  15478. 201: {
  15479. description: "name response"
  15480. },
  15481. 401: {
  15482. description: "User not logged in"
  15483. }
  15484. }
  15485. }
  15486. },
  15487. /concept/{parent-uuid}/name/{uuid}: {
  15488. get: {
  15489. tags: [
  15490. "concept"
  15491. ],
  15492. summary: "Fetch name subresources by uuid",
  15493. operationId: "getConceptName",
  15494. consumes: [
  15495. "application/json"
  15496. ],
  15497. produces: [
  15498. "application/json"
  15499. ],
  15500. parameters: [
  15501. {
  15502. name: "parent-uuid",
  15503. in: "path",
  15504. description: "parent resource uuid",
  15505. required: true,
  15506. type: "string"
  15507. },
  15508. {
  15509. name: "uuid",
  15510. in: "path",
  15511. description: "uuid to filter by",
  15512. required: true,
  15513. type: "string"
  15514. },
  15515. {
  15516. name: "v",
  15517. in: "query",
  15518. description: "The representation to return (ref, default, full or custom)",
  15519. required: false,
  15520. type: "string",
  15521. enum: [
  15522. "ref",
  15523. "default",
  15524. "full",
  15525. "custom"
  15526. ]
  15527. }
  15528. ],
  15529. responses: {
  15530. 200: {
  15531. description: "name response",
  15532. schema: {
  15533. $ref: "#/definitions/ConceptNameGet"
  15534. }
  15535. },
  15536. 401: {
  15537. description: "User not logged in"
  15538. },
  15539. 404: {
  15540. description: "Resource with given uuid doesn't exist"
  15541. }
  15542. }
  15543. },
  15544. post: {
  15545. tags: [
  15546. "concept"
  15547. ],
  15548. summary: "edit name subresource with given uuid, only modifying properties in request",
  15549. operationId: "updateConceptName",
  15550. consumes: [
  15551. "application/json"
  15552. ],
  15553. produces: [
  15554. "application/json"
  15555. ],
  15556. parameters: [
  15557. {
  15558. name: "parent-uuid",
  15559. in: "path",
  15560. description: "parent resource uuid",
  15561. required: true,
  15562. type: "string"
  15563. },
  15564. {
  15565. name: "uuid",
  15566. in: "path",
  15567. description: "uuid of resource to update",
  15568. required: true,
  15569. type: "string"
  15570. },
  15571. {
  15572. in: "body",
  15573. name: "resource",
  15574. description: "Resource properties to update",
  15575. required: true,
  15576. schema: {
  15577. $ref: "#/definitions/ConceptNameUpdate"
  15578. }
  15579. }
  15580. ],
  15581. responses: {
  15582. 201: {
  15583. description: "name response"
  15584. },
  15585. 401: {
  15586. description: "User not logged in"
  15587. }
  15588. }
  15589. },
  15590. delete: {
  15591. tags: [
  15592. "concept"
  15593. ],
  15594. summary: "Delete or purge resource by uuid",
  15595. description: "The resource will be voided/retired unless purge = 'true'",
  15596. operationId: "deleteConceptName",
  15597. consumes: [
  15598. "application/json"
  15599. ],
  15600. produces: [
  15601. "application/json"
  15602. ],
  15603. parameters: [
  15604. {
  15605. name: "parent-uuid",
  15606. in: "path",
  15607. description: "parent resource uuid",
  15608. required: true,
  15609. type: "string"
  15610. },
  15611. {
  15612. name: "uuid",
  15613. in: "path",
  15614. description: "uuid to delete",
  15615. required: true,
  15616. type: "string"
  15617. },
  15618. {
  15619. name: "purge",
  15620. in: "query",
  15621. required: false,
  15622. type: "boolean"
  15623. }
  15624. ],
  15625. responses: {
  15626. 204: {
  15627. description: "Delete successful"
  15628. },
  15629. 401: {
  15630. description: "User not logged in"
  15631. },
  15632. 404: {
  15633. description: "Resource with given uuid doesn't exist"
  15634. }
  15635. }
  15636. }
  15637. },
  15638. /orderset/{parent-uuid}/ordersetmember: {
  15639. get: {
  15640. tags: [
  15641. "orderset"
  15642. ],
  15643. summary: "Fetch all non-retired ordersetmember subresources",
  15644. operationId: "getAllOrderSetMembers",
  15645. consumes: [
  15646. "application/json"
  15647. ],
  15648. produces: [
  15649. "application/json"
  15650. ],
  15651. parameters: [
  15652. {
  15653. name: "limit",
  15654. in: "query",
  15655. description: "The number of results to return",
  15656. required: false,
  15657. type: "integer"
  15658. },
  15659. {
  15660. name: "startIndex",
  15661. in: "query",
  15662. description: "The offset at which to start",
  15663. required: false,
  15664. type: "integer"
  15665. },
  15666. {
  15667. name: "parent-uuid",
  15668. in: "path",
  15669. description: "parent resource uuid",
  15670. required: true,
  15671. type: "string"
  15672. },
  15673. {
  15674. name: "v",
  15675. in: "query",
  15676. description: "The representation to return (ref, default, full or custom)",
  15677. required: false,
  15678. type: "string",
  15679. enum: [
  15680. "ref",
  15681. "default",
  15682. "full",
  15683. "custom"
  15684. ]
  15685. }
  15686. ],
  15687. responses: {
  15688. 200: {
  15689. description: "ordersetmember response",
  15690. schema: {
  15691. type: "object",
  15692. properties: {
  15693. results: {
  15694. type: "array",
  15695. items: {
  15696. $ref: "#/definitions/OrdersetOrdersetmemberGet"
  15697. }
  15698. }
  15699. }
  15700. }
  15701. },
  15702. 401: {
  15703. description: "User not logged in"
  15704. }
  15705. }
  15706. },
  15707. post: {
  15708. tags: [
  15709. "orderset"
  15710. ],
  15711. summary: "Create ordersetmember subresource with properties in request",
  15712. operationId: "createOrderSetMember",
  15713. consumes: [
  15714. "application/json"
  15715. ],
  15716. produces: [
  15717. "application/json"
  15718. ],
  15719. parameters: [
  15720. {
  15721. name: "parent-uuid",
  15722. in: "path",
  15723. description: "parent resource uuid",
  15724. required: true,
  15725. type: "string"
  15726. },
  15727. {
  15728. in: "body",
  15729. name: "resource",
  15730. description: "Resource to create",
  15731. required: true,
  15732. schema: {
  15733. $ref: "#/definitions/OrdersetOrdersetmemberCreate"
  15734. }
  15735. }
  15736. ],
  15737. responses: {
  15738. 201: {
  15739. description: "ordersetmember response"
  15740. },
  15741. 401: {
  15742. description: "User not logged in"
  15743. }
  15744. }
  15745. }
  15746. },
  15747. /orderset/{parent-uuid}/ordersetmember/{uuid}: {
  15748. get: {
  15749. tags: [
  15750. "orderset"
  15751. ],
  15752. summary: "Fetch ordersetmember subresources by uuid",
  15753. operationId: "getOrderSetMember",
  15754. consumes: [
  15755. "application/json"
  15756. ],
  15757. produces: [
  15758. "application/json"
  15759. ],
  15760. parameters: [
  15761. {
  15762. name: "parent-uuid",
  15763. in: "path",
  15764. description: "parent resource uuid",
  15765. required: true,
  15766. type: "string"
  15767. },
  15768. {
  15769. name: "uuid",
  15770. in: "path",
  15771. description: "uuid to filter by",
  15772. required: true,
  15773. type: "string"
  15774. },
  15775. {
  15776. name: "v",
  15777. in: "query",
  15778. description: "The representation to return (ref, default, full or custom)",
  15779. required: false,
  15780. type: "string",
  15781. enum: [
  15782. "ref",
  15783. "default",
  15784. "full",
  15785. "custom"
  15786. ]
  15787. }
  15788. ],
  15789. responses: {
  15790. 200: {
  15791. description: "ordersetmember response",
  15792. schema: {
  15793. $ref: "#/definitions/OrdersetOrdersetmemberGet"
  15794. }
  15795. },
  15796. 401: {
  15797. description: "User not logged in"
  15798. },
  15799. 404: {
  15800. description: "Resource with given uuid doesn't exist"
  15801. }
  15802. }
  15803. },
  15804. post: {
  15805. tags: [
  15806. "orderset"
  15807. ],
  15808. summary: "edit ordersetmember subresource with given uuid, only modifying properties in request",
  15809. operationId: "updateOrderSetMember",
  15810. consumes: [
  15811. "application/json"
  15812. ],
  15813. produces: [
  15814. "application/json"
  15815. ],
  15816. parameters: [
  15817. {
  15818. name: "parent-uuid",
  15819. in: "path",
  15820. description: "parent resource uuid",
  15821. required: true,
  15822. type: "string"
  15823. },
  15824. {
  15825. name: "uuid",
  15826. in: "path",
  15827. description: "uuid of resource to update",
  15828. required: true,
  15829. type: "string"
  15830. },
  15831. {
  15832. in: "body",
  15833. name: "resource",
  15834. description: "Resource properties to update",
  15835. required: true,
  15836. schema: {
  15837. $ref: "#/definitions/OrdersetOrdersetmemberUpdate"
  15838. }
  15839. }
  15840. ],
  15841. responses: {
  15842. 201: {
  15843. description: "ordersetmember response"
  15844. },
  15845. 401: {
  15846. description: "User not logged in"
  15847. }
  15848. }
  15849. },
  15850. delete: {
  15851. tags: [
  15852. "orderset"
  15853. ],
  15854. summary: "Delete or purge resource by uuid",
  15855. description: "The resource will be voided/retired unless purge = 'true'",
  15856. operationId: "deleteOrderSetMember",
  15857. consumes: [
  15858. "application/json"
  15859. ],
  15860. produces: [
  15861. "application/json"
  15862. ],
  15863. parameters: [
  15864. {
  15865. name: "parent-uuid",
  15866. in: "path",
  15867. description: "parent resource uuid",
  15868. required: true,
  15869. type: "string"
  15870. },
  15871. {
  15872. name: "uuid",
  15873. in: "path",
  15874. description: "uuid to delete",
  15875. required: true,
  15876. type: "string"
  15877. },
  15878. {
  15879. name: "purge",
  15880. in: "query",
  15881. required: false,
  15882. type: "boolean"
  15883. }
  15884. ],
  15885. responses: {
  15886. 204: {
  15887. description: "Delete successful"
  15888. },
  15889. 401: {
  15890. description: "User not logged in"
  15891. },
  15892. 404: {
  15893. description: "Resource with given uuid doesn't exist"
  15894. }
  15895. }
  15896. }
  15897. },
  15898. /concept/{parent-uuid}/attribute: {
  15899. get: {
  15900. tags: [
  15901. "concept"
  15902. ],
  15903. summary: "Fetch all non-retired attribute subresources",
  15904. operationId: "getAllConceptAttributes",
  15905. consumes: [
  15906. "application/json"
  15907. ],
  15908. produces: [
  15909. "application/json"
  15910. ],
  15911. parameters: [
  15912. {
  15913. name: "limit",
  15914. in: "query",
  15915. description: "The number of results to return",
  15916. required: false,
  15917. type: "integer"
  15918. },
  15919. {
  15920. name: "startIndex",
  15921. in: "query",
  15922. description: "The offset at which to start",
  15923. required: false,
  15924. type: "integer"
  15925. },
  15926. {
  15927. name: "parent-uuid",
  15928. in: "path",
  15929. description: "parent resource uuid",
  15930. required: true,
  15931. type: "string"
  15932. },
  15933. {
  15934. name: "v",
  15935. in: "query",
  15936. description: "The representation to return (ref, default, full or custom)",
  15937. required: false,
  15938. type: "string",
  15939. enum: [
  15940. "ref",
  15941. "default",
  15942. "full",
  15943. "custom"
  15944. ]
  15945. }
  15946. ],
  15947. responses: {
  15948. 200: {
  15949. description: "attribute response",
  15950. schema: {
  15951. type: "object",
  15952. properties: {
  15953. results: {
  15954. type: "array",
  15955. items: {
  15956. $ref: "#/definitions/ConceptAttributeGet"
  15957. }
  15958. }
  15959. }
  15960. }
  15961. },
  15962. 401: {
  15963. description: "User not logged in"
  15964. }
  15965. }
  15966. },
  15967. post: {
  15968. tags: [
  15969. "concept"
  15970. ],
  15971. summary: "Create attribute subresource with properties in request",
  15972. operationId: "createConceptAttribute",
  15973. consumes: [
  15974. "application/json"
  15975. ],
  15976. produces: [
  15977. "application/json"
  15978. ],
  15979. parameters: [
  15980. {
  15981. name: "parent-uuid",
  15982. in: "path",
  15983. description: "parent resource uuid",
  15984. required: true,
  15985. type: "string"
  15986. },
  15987. {
  15988. in: "body",
  15989. name: "resource",
  15990. description: "Resource to create",
  15991. required: true,
  15992. schema: {
  15993. $ref: "#/definitions/ConceptAttributeCreate"
  15994. }
  15995. }
  15996. ],
  15997. responses: {
  15998. 201: {
  15999. description: "attribute response"
  16000. },
  16001. 401: {
  16002. description: "User not logged in"
  16003. }
  16004. }
  16005. }
  16006. },
  16007. /concept/{parent-uuid}/attribute/{uuid}: {
  16008. get: {
  16009. tags: [
  16010. "concept"
  16011. ],
  16012. summary: "Fetch attribute subresources by uuid",
  16013. operationId: "getConceptAttribute",
  16014. consumes: [
  16015. "application/json"
  16016. ],
  16017. produces: [
  16018. "application/json"
  16019. ],
  16020. parameters: [
  16021. {
  16022. name: "parent-uuid",
  16023. in: "path",
  16024. description: "parent resource uuid",
  16025. required: true,
  16026. type: "string"
  16027. },
  16028. {
  16029. name: "uuid",
  16030. in: "path",
  16031. description: "uuid to filter by",
  16032. required: true,
  16033. type: "string"
  16034. },
  16035. {
  16036. name: "v",
  16037. in: "query",
  16038. description: "The representation to return (ref, default, full or custom)",
  16039. required: false,
  16040. type: "string",
  16041. enum: [
  16042. "ref",
  16043. "default",
  16044. "full",
  16045. "custom"
  16046. ]
  16047. }
  16048. ],
  16049. responses: {
  16050. 200: {
  16051. description: "attribute response",
  16052. schema: {
  16053. $ref: "#/definitions/ConceptAttributeGet"
  16054. }
  16055. },
  16056. 401: {
  16057. description: "User not logged in"
  16058. },
  16059. 404: {
  16060. description: "Resource with given uuid doesn't exist"
  16061. }
  16062. }
  16063. },
  16064. post: {
  16065. tags: [
  16066. "concept"
  16067. ],
  16068. summary: "edit attribute subresource with given uuid, only modifying properties in request",
  16069. operationId: "updateConceptAttribute",
  16070. consumes: [
  16071. "application/json"
  16072. ],
  16073. produces: [
  16074. "application/json"
  16075. ],
  16076. parameters: [
  16077. {
  16078. name: "parent-uuid",
  16079. in: "path",
  16080. description: "parent resource uuid",
  16081. required: true,
  16082. type: "string"
  16083. },
  16084. {
  16085. name: "uuid",
  16086. in: "path",
  16087. description: "uuid of resource to update",
  16088. required: true,
  16089. type: "string"
  16090. },
  16091. {
  16092. in: "body",
  16093. name: "resource",
  16094. description: "Resource properties to update",
  16095. required: true,
  16096. schema: {
  16097. $ref: "#/definitions/ConceptAttributeUpdate"
  16098. }
  16099. }
  16100. ],
  16101. responses: {
  16102. 201: {
  16103. description: "attribute response"
  16104. },
  16105. 401: {
  16106. description: "User not logged in"
  16107. }
  16108. }
  16109. },
  16110. delete: {
  16111. tags: [
  16112. "concept"
  16113. ],
  16114. summary: "Delete or purge resource by uuid",
  16115. description: "The resource will be voided/retired unless purge = 'true'",
  16116. operationId: "deleteConceptAttribute",
  16117. consumes: [
  16118. "application/json"
  16119. ],
  16120. produces: [
  16121. "application/json"
  16122. ],
  16123. parameters: [
  16124. {
  16125. name: "parent-uuid",
  16126. in: "path",
  16127. description: "parent resource uuid",
  16128. required: true,
  16129. type: "string"
  16130. },
  16131. {
  16132. name: "uuid",
  16133. in: "path",
  16134. description: "uuid to delete",
  16135. required: true,
  16136. type: "string"
  16137. },
  16138. {
  16139. name: "purge",
  16140. in: "query",
  16141. required: false,
  16142. type: "boolean"
  16143. }
  16144. ],
  16145. responses: {
  16146. 204: {
  16147. description: "Delete successful"
  16148. },
  16149. 401: {
  16150. description: "User not logged in"
  16151. },
  16152. 404: {
  16153. description: "Resource with given uuid doesn't exist"
  16154. }
  16155. }
  16156. }
  16157. },
  16158. /workflow/{parent-uuid}/state: {
  16159. get: {
  16160. tags: [
  16161. "workflow"
  16162. ],
  16163. summary: "Fetch all non-retired state subresources",
  16164. operationId: "getAllProgramWorkflowStates",
  16165. consumes: [
  16166. "application/json"
  16167. ],
  16168. produces: [
  16169. "application/json"
  16170. ],
  16171. parameters: [
  16172. {
  16173. name: "limit",
  16174. in: "query",
  16175. description: "The number of results to return",
  16176. required: false,
  16177. type: "integer"
  16178. },
  16179. {
  16180. name: "startIndex",
  16181. in: "query",
  16182. description: "The offset at which to start",
  16183. required: false,
  16184. type: "integer"
  16185. },
  16186. {
  16187. name: "parent-uuid",
  16188. in: "path",
  16189. description: "parent resource uuid",
  16190. required: true,
  16191. type: "string"
  16192. },
  16193. {
  16194. name: "v",
  16195. in: "query",
  16196. description: "The representation to return (ref, default, full or custom)",
  16197. required: false,
  16198. type: "string",
  16199. enum: [
  16200. "ref",
  16201. "default",
  16202. "full",
  16203. "custom"
  16204. ]
  16205. }
  16206. ],
  16207. responses: {
  16208. 200: {
  16209. description: "state response",
  16210. schema: {
  16211. type: "object",
  16212. properties: {
  16213. results: {
  16214. type: "array",
  16215. items: {
  16216. $ref: "#/definitions/WorkflowStateGet"
  16217. }
  16218. }
  16219. }
  16220. }
  16221. },
  16222. 401: {
  16223. description: "User not logged in"
  16224. }
  16225. }
  16226. },
  16227. post: {
  16228. tags: [
  16229. "workflow"
  16230. ],
  16231. summary: "Create state subresource with properties in request",
  16232. operationId: "createProgramWorkflowState",
  16233. consumes: [
  16234. "application/json"
  16235. ],
  16236. produces: [
  16237. "application/json"
  16238. ],
  16239. parameters: [
  16240. {
  16241. name: "parent-uuid",
  16242. in: "path",
  16243. description: "parent resource uuid",
  16244. required: true,
  16245. type: "string"
  16246. },
  16247. {
  16248. in: "body",
  16249. name: "resource",
  16250. description: "Resource to create",
  16251. required: true,
  16252. schema: {
  16253. $ref: "#/definitions/WorkflowStateCreate"
  16254. }
  16255. }
  16256. ],
  16257. responses: {
  16258. 201: {
  16259. description: "state response"
  16260. },
  16261. 401: {
  16262. description: "User not logged in"
  16263. }
  16264. }
  16265. }
  16266. },
  16267. /workflow/{parent-uuid}/state/{uuid}: {
  16268. get: {
  16269. tags: [
  16270. "workflow"
  16271. ],
  16272. summary: "Fetch state subresources by uuid",
  16273. operationId: "getProgramWorkflowState",
  16274. consumes: [
  16275. "application/json"
  16276. ],
  16277. produces: [
  16278. "application/json"
  16279. ],
  16280. parameters: [
  16281. {
  16282. name: "parent-uuid",
  16283. in: "path",
  16284. description: "parent resource uuid",
  16285. required: true,
  16286. type: "string"
  16287. },
  16288. {
  16289. name: "uuid",
  16290. in: "path",
  16291. description: "uuid to filter by",
  16292. required: true,
  16293. type: "string"
  16294. },
  16295. {
  16296. name: "v",
  16297. in: "query",
  16298. description: "The representation to return (ref, default, full or custom)",
  16299. required: false,
  16300. type: "string",
  16301. enum: [
  16302. "ref",
  16303. "default",
  16304. "full",
  16305. "custom"
  16306. ]
  16307. }
  16308. ],
  16309. responses: {
  16310. 200: {
  16311. description: "state response",
  16312. schema: {
  16313. $ref: "#/definitions/WorkflowStateGet"
  16314. }
  16315. },
  16316. 401: {
  16317. description: "User not logged in"
  16318. },
  16319. 404: {
  16320. description: "Resource with given uuid doesn't exist"
  16321. }
  16322. }
  16323. },
  16324. delete: {
  16325. tags: [
  16326. "workflow"
  16327. ],
  16328. summary: "Delete or purge resource by uuid",
  16329. description: "The resource will be voided/retired unless purge = 'true'",
  16330. operationId: "deleteProgramWorkflowState",
  16331. consumes: [
  16332. "application/json"
  16333. ],
  16334. produces: [
  16335. "application/json"
  16336. ],
  16337. parameters: [
  16338. {
  16339. name: "parent-uuid",
  16340. in: "path",
  16341. description: "parent resource uuid",
  16342. required: true,
  16343. type: "string"
  16344. },
  16345. {
  16346. name: "uuid",
  16347. in: "path",
  16348. description: "uuid to delete",
  16349. required: true,
  16350. type: "string"
  16351. },
  16352. {
  16353. name: "purge",
  16354. in: "query",
  16355. required: false,
  16356. type: "boolean"
  16357. }
  16358. ],
  16359. responses: {
  16360. 204: {
  16361. description: "Delete successful"
  16362. },
  16363. 401: {
  16364. description: "User not logged in"
  16365. },
  16366. 404: {
  16367. description: "Resource with given uuid doesn't exist"
  16368. }
  16369. }
  16370. }
  16371. },
  16372. /programenrollment/{parent-uuid}/state: {
  16373. post: {
  16374. tags: [
  16375. "programenrollment"
  16376. ],
  16377. summary: "Create state subresource with properties in request",
  16378. operationId: "createPatientState",
  16379. consumes: [
  16380. "application/json"
  16381. ],
  16382. produces: [
  16383. "application/json"
  16384. ],
  16385. parameters: [
  16386. {
  16387. name: "parent-uuid",
  16388. in: "path",
  16389. description: "parent resource uuid",
  16390. required: true,
  16391. type: "string"
  16392. },
  16393. {
  16394. in: "body",
  16395. name: "resource",
  16396. description: "Resource to create",
  16397. required: true,
  16398. schema: {
  16399. $ref: "#/definitions/ProgramenrollmentStateCreate"
  16400. }
  16401. }
  16402. ],
  16403. responses: {
  16404. 201: {
  16405. description: "state response"
  16406. },
  16407. 401: {
  16408. description: "User not logged in"
  16409. }
  16410. }
  16411. }
  16412. },
  16413. /programenrollment/{parent-uuid}/state/{uuid}: {
  16414. get: {
  16415. tags: [
  16416. "programenrollment"
  16417. ],
  16418. summary: "Fetch state subresources by uuid",
  16419. operationId: "getPatientState",
  16420. consumes: [
  16421. "application/json"
  16422. ],
  16423. produces: [
  16424. "application/json"
  16425. ],
  16426. parameters: [
  16427. {
  16428. name: "parent-uuid",
  16429. in: "path",
  16430. description: "parent resource uuid",
  16431. required: true,
  16432. type: "string"
  16433. },
  16434. {
  16435. name: "uuid",
  16436. in: "path",
  16437. description: "uuid to filter by",
  16438. required: true,
  16439. type: "string"
  16440. },
  16441. {
  16442. name: "v",
  16443. in: "query",
  16444. description: "The representation to return (ref, default, full or custom)",
  16445. required: false,
  16446. type: "string",
  16447. enum: [
  16448. "ref",
  16449. "default",
  16450. "full",
  16451. "custom"
  16452. ]
  16453. }
  16454. ],
  16455. responses: {
  16456. 200: {
  16457. description: "state response",
  16458. schema: {
  16459. $ref: "#/definitions/ProgramenrollmentStateGet"
  16460. }
  16461. },
  16462. 401: {
  16463. description: "User not logged in"
  16464. },
  16465. 404: {
  16466. description: "Resource with given uuid doesn't exist"
  16467. }
  16468. }
  16469. },
  16470. post: {
  16471. tags: [
  16472. "programenrollment"
  16473. ],
  16474. summary: "edit state subresource with given uuid, only modifying properties in request",
  16475. operationId: "updatePatientState",
  16476. consumes: [
  16477. "application/json"
  16478. ],
  16479. produces: [
  16480. "application/json"
  16481. ],
  16482. parameters: [
  16483. {
  16484. name: "parent-uuid",
  16485. in: "path",
  16486. description: "parent resource uuid",
  16487. required: true,
  16488. type: "string"
  16489. },
  16490. {
  16491. name: "uuid",
  16492. in: "path",
  16493. description: "uuid of resource to update",
  16494. required: true,
  16495. type: "string"
  16496. },
  16497. {
  16498. in: "body",
  16499. name: "resource",
  16500. description: "Resource properties to update",
  16501. required: true,
  16502. schema: {
  16503. $ref: "#/definitions/ProgramenrollmentStateUpdate"
  16504. }
  16505. }
  16506. ],
  16507. responses: {
  16508. 201: {
  16509. description: "state response"
  16510. },
  16511. 401: {
  16512. description: "User not logged in"
  16513. }
  16514. }
  16515. },
  16516. delete: {
  16517. tags: [
  16518. "programenrollment"
  16519. ],
  16520. summary: "Delete or purge resource by uuid",
  16521. description: "The resource will be voided/retired unless purge = 'true'",
  16522. operationId: "deletePatientState",
  16523. consumes: [
  16524. "application/json"
  16525. ],
  16526. produces: [
  16527. "application/json"
  16528. ],
  16529. parameters: [
  16530. {
  16531. name: "parent-uuid",
  16532. in: "path",
  16533. description: "parent resource uuid",
  16534. required: true,
  16535. type: "string"
  16536. },
  16537. {
  16538. name: "uuid",
  16539. in: "path",
  16540. description: "uuid to delete",
  16541. required: true,
  16542. type: "string"
  16543. },
  16544. {
  16545. name: "purge",
  16546. in: "query",
  16547. required: false,
  16548. type: "boolean"
  16549. }
  16550. ],
  16551. responses: {
  16552. 204: {
  16553. description: "Delete successful"
  16554. },
  16555. 401: {
  16556. description: "User not logged in"
  16557. },
  16558. 404: {
  16559. description: "Resource with given uuid doesn't exist"
  16560. }
  16561. }
  16562. }
  16563. },
  16564. /person/{parent-uuid}/attribute: {
  16565. get: {
  16566. tags: [
  16567. "person"
  16568. ],
  16569. summary: "Fetch all non-retired attribute subresources",
  16570. operationId: "getAllPersonAttributes",
  16571. consumes: [
  16572. "application/json"
  16573. ],
  16574. produces: [
  16575. "application/json"
  16576. ],
  16577. parameters: [
  16578. {
  16579. name: "limit",
  16580. in: "query",
  16581. description: "The number of results to return",
  16582. required: false,
  16583. type: "integer"
  16584. },
  16585. {
  16586. name: "startIndex",
  16587. in: "query",
  16588. description: "The offset at which to start",
  16589. required: false,
  16590. type: "integer"
  16591. },
  16592. {
  16593. name: "parent-uuid",
  16594. in: "path",
  16595. description: "parent resource uuid",
  16596. required: true,
  16597. type: "string"
  16598. },
  16599. {
  16600. name: "v",
  16601. in: "query",
  16602. description: "The representation to return (ref, default, full or custom)",
  16603. required: false,
  16604. type: "string",
  16605. enum: [
  16606. "ref",
  16607. "default",
  16608. "full",
  16609. "custom"
  16610. ]
  16611. }
  16612. ],
  16613. responses: {
  16614. 200: {
  16615. description: "attribute response",
  16616. schema: {
  16617. type: "object",
  16618. properties: {
  16619. results: {
  16620. type: "array",
  16621. items: {
  16622. $ref: "#/definitions/PersonAttributeGet"
  16623. }
  16624. }
  16625. }
  16626. }
  16627. },
  16628. 401: {
  16629. description: "User not logged in"
  16630. }
  16631. }
  16632. },
  16633. post: {
  16634. tags: [
  16635. "person"
  16636. ],
  16637. summary: "Create attribute subresource with properties in request",
  16638. operationId: "createPersonAttribute",
  16639. consumes: [
  16640. "application/json"
  16641. ],
  16642. produces: [
  16643. "application/json"
  16644. ],
  16645. parameters: [
  16646. {
  16647. name: "parent-uuid",
  16648. in: "path",
  16649. description: "parent resource uuid",
  16650. required: true,
  16651. type: "string"
  16652. },
  16653. {
  16654. in: "body",
  16655. name: "resource",
  16656. description: "Resource to create",
  16657. required: true,
  16658. schema: {
  16659. $ref: "#/definitions/PersonAttributeCreate"
  16660. }
  16661. }
  16662. ],
  16663. responses: {
  16664. 201: {
  16665. description: "attribute response"
  16666. },
  16667. 401: {
  16668. description: "User not logged in"
  16669. }
  16670. }
  16671. }
  16672. },
  16673. /person/{parent-uuid}/attribute/{uuid}: {
  16674. get: {
  16675. tags: [
  16676. "person"
  16677. ],
  16678. summary: "Fetch attribute subresources by uuid",
  16679. operationId: "getPersonAttribute",
  16680. consumes: [
  16681. "application/json"
  16682. ],
  16683. produces: [
  16684. "application/json"
  16685. ],
  16686. parameters: [
  16687. {
  16688. name: "parent-uuid",
  16689. in: "path",
  16690. description: "parent resource uuid",
  16691. required: true,
  16692. type: "string"
  16693. },
  16694. {
  16695. name: "uuid",
  16696. in: "path",
  16697. description: "uuid to filter by",
  16698. required: true,
  16699. type: "string"
  16700. },
  16701. {
  16702. name: "v",
  16703. in: "query",
  16704. description: "The representation to return (ref, default, full or custom)",
  16705. required: false,
  16706. type: "string",
  16707. enum: [
  16708. "ref",
  16709. "default",
  16710. "full",
  16711. "custom"
  16712. ]
  16713. }
  16714. ],
  16715. responses: {
  16716. 200: {
  16717. description: "attribute response",
  16718. schema: {
  16719. $ref: "#/definitions/PersonAttributeGet"
  16720. }
  16721. },
  16722. 401: {
  16723. description: "User not logged in"
  16724. },
  16725. 404: {
  16726. description: "Resource with given uuid doesn't exist"
  16727. }
  16728. }
  16729. },
  16730. post: {
  16731. tags: [
  16732. "person"
  16733. ],
  16734. summary: "edit attribute subresource with given uuid, only modifying properties in request",
  16735. operationId: "updatePersonAttribute",
  16736. consumes: [
  16737. "application/json"
  16738. ],
  16739. produces: [
  16740. "application/json"
  16741. ],
  16742. parameters: [
  16743. {
  16744. name: "parent-uuid",
  16745. in: "path",
  16746. description: "parent resource uuid",
  16747. required: true,
  16748. type: "string"
  16749. },
  16750. {
  16751. name: "uuid",
  16752. in: "path",
  16753. description: "uuid of resource to update",
  16754. required: true,
  16755. type: "string"
  16756. },
  16757. {
  16758. in: "body",
  16759. name: "resource",
  16760. description: "Resource properties to update",
  16761. required: true,
  16762. schema: {
  16763. $ref: "#/definitions/PersonAttributeUpdate"
  16764. }
  16765. }
  16766. ],
  16767. responses: {
  16768. 201: {
  16769. description: "attribute response"
  16770. },
  16771. 401: {
  16772. description: "User not logged in"
  16773. }
  16774. }
  16775. },
  16776. delete: {
  16777. tags: [
  16778. "person"
  16779. ],
  16780. summary: "Delete or purge resource by uuid",
  16781. description: "The resource will be voided/retired unless purge = 'true'",
  16782. operationId: "deletePersonAttribute",
  16783. consumes: [
  16784. "application/json"
  16785. ],
  16786. produces: [
  16787. "application/json"
  16788. ],
  16789. parameters: [
  16790. {
  16791. name: "parent-uuid",
  16792. in: "path",
  16793. description: "parent resource uuid",
  16794. required: true,
  16795. type: "string"
  16796. },
  16797. {
  16798. name: "uuid",
  16799. in: "path",
  16800. description: "uuid to delete",
  16801. required: true,
  16802. type: "string"
  16803. },
  16804. {
  16805. name: "purge",
  16806. in: "query",
  16807. required: false,
  16808. type: "boolean"
  16809. }
  16810. ],
  16811. responses: {
  16812. 204: {
  16813. description: "Delete successful"
  16814. },
  16815. 401: {
  16816. description: "User not logged in"
  16817. },
  16818. 404: {
  16819. description: "Resource with given uuid doesn't exist"
  16820. }
  16821. }
  16822. }
  16823. },
  16824. /location/{parent-uuid}/attribute: {
  16825. get: {
  16826. tags: [
  16827. "location"
  16828. ],
  16829. summary: "Fetch all non-retired attribute resources or perform search",
  16830. description: "All search parameters are optional",
  16831. operationId: "getAllLocationAttributes",
  16832. consumes: [
  16833. "application/json"
  16834. ],
  16835. produces: [
  16836. "application/json"
  16837. ],
  16838. parameters: [
  16839. {
  16840. name: "limit",
  16841. in: "query",
  16842. description: "The number of results to return",
  16843. required: false,
  16844. type: "integer"
  16845. },
  16846. {
  16847. name: "startIndex",
  16848. in: "query",
  16849. description: "The offset at which to start",
  16850. required: false,
  16851. type: "integer"
  16852. },
  16853. {
  16854. name: "parent-uuid",
  16855. in: "path",
  16856. description: "parent resource uuid",
  16857. required: true,
  16858. type: "string"
  16859. },
  16860. {
  16861. name: "v",
  16862. in: "query",
  16863. description: "The representation to return (ref, default, full or custom)",
  16864. required: false,
  16865. type: "string",
  16866. enum: [
  16867. "ref",
  16868. "default",
  16869. "full",
  16870. "custom"
  16871. ]
  16872. },
  16873. {
  16874. name: "q",
  16875. in: "query",
  16876. description: "The search query",
  16877. required: false,
  16878. type: "string"
  16879. }
  16880. ],
  16881. responses: {
  16882. 200: {
  16883. description: "attribute response",
  16884. schema: {
  16885. type: "object",
  16886. properties: {
  16887. results: {
  16888. type: "array",
  16889. items: {
  16890. $ref: "#/definitions/LocationAttributeGet"
  16891. }
  16892. }
  16893. }
  16894. }
  16895. },
  16896. 401: {
  16897. description: "User not logged in"
  16898. }
  16899. }
  16900. },
  16901. post: {
  16902. tags: [
  16903. "location"
  16904. ],
  16905. summary: "Create attribute subresource with properties in request",
  16906. operationId: "createLocationAttribute",
  16907. consumes: [
  16908. "application/json"
  16909. ],
  16910. produces: [
  16911. "application/json"
  16912. ],
  16913. parameters: [
  16914. {
  16915. name: "parent-uuid",
  16916. in: "path",
  16917. description: "parent resource uuid",
  16918. required: true,
  16919. type: "string"
  16920. },
  16921. {
  16922. in: "body",
  16923. name: "resource",
  16924. description: "Resource to create",
  16925. required: true,
  16926. schema: {
  16927. $ref: "#/definitions/LocationAttributeCreate"
  16928. }
  16929. }
  16930. ],
  16931. responses: {
  16932. 201: {
  16933. description: "attribute response"
  16934. },
  16935. 401: {
  16936. description: "User not logged in"
  16937. }
  16938. }
  16939. }
  16940. },
  16941. /location/{parent-uuid}/attribute/{uuid}: {
  16942. get: {
  16943. tags: [
  16944. "location"
  16945. ],
  16946. summary: "Fetch attribute subresources by uuid",
  16947. operationId: "getLocationAttribute",
  16948. consumes: [
  16949. "application/json"
  16950. ],
  16951. produces: [
  16952. "application/json"
  16953. ],
  16954. parameters: [
  16955. {
  16956. name: "parent-uuid",
  16957. in: "path",
  16958. description: "parent resource uuid",
  16959. required: true,
  16960. type: "string"
  16961. },
  16962. {
  16963. name: "uuid",
  16964. in: "path",
  16965. description: "uuid to filter by",
  16966. required: true,
  16967. type: "string"
  16968. },
  16969. {
  16970. name: "v",
  16971. in: "query",
  16972. description: "The representation to return (ref, default, full or custom)",
  16973. required: false,
  16974. type: "string",
  16975. enum: [
  16976. "ref",
  16977. "default",
  16978. "full",
  16979. "custom"
  16980. ]
  16981. }
  16982. ],
  16983. responses: {
  16984. 200: {
  16985. description: "attribute response",
  16986. schema: {
  16987. $ref: "#/definitions/LocationAttributeGet"
  16988. }
  16989. },
  16990. 401: {
  16991. description: "User not logged in"
  16992. },
  16993. 404: {
  16994. description: "Resource with given uuid doesn't exist"
  16995. }
  16996. }
  16997. },
  16998. post: {
  16999. tags: [
  17000. "location"
  17001. ],
  17002. summary: "edit attribute subresource with given uuid, only modifying properties in request",
  17003. operationId: "updateLocationAttribute",
  17004. consumes: [
  17005. "application/json"
  17006. ],
  17007. produces: [
  17008. "application/json"
  17009. ],
  17010. parameters: [
  17011. {
  17012. name: "parent-uuid",
  17013. in: "path",
  17014. description: "parent resource uuid",
  17015. required: true,
  17016. type: "string"
  17017. },
  17018. {
  17019. name: "uuid",
  17020. in: "path",
  17021. description: "uuid of resource to update",
  17022. required: true,
  17023. type: "string"
  17024. },
  17025. {
  17026. in: "body",
  17027. name: "resource",
  17028. description: "Resource properties to update",
  17029. required: true,
  17030. schema: {
  17031. $ref: "#/definitions/LocationAttributeUpdate"
  17032. }
  17033. }
  17034. ],
  17035. responses: {
  17036. 201: {
  17037. description: "attribute response"
  17038. },
  17039. 401: {
  17040. description: "User not logged in"
  17041. }
  17042. }
  17043. },
  17044. delete: {
  17045. tags: [
  17046. "location"
  17047. ],
  17048. summary: "Delete or purge resource by uuid",
  17049. description: "The resource will be voided/retired unless purge = 'true'",
  17050. operationId: "deleteLocationAttribute",
  17051. consumes: [
  17052. "application/json"
  17053. ],
  17054. produces: [
  17055. "application/json"
  17056. ],
  17057. parameters: [
  17058. {
  17059. name: "parent-uuid",
  17060. in: "path",
  17061. description: "parent resource uuid",
  17062. required: true,
  17063. type: "string"
  17064. },
  17065. {
  17066. name: "uuid",
  17067. in: "path",
  17068. description: "uuid to delete",
  17069. required: true,
  17070. type: "string"
  17071. },
  17072. {
  17073. name: "purge",
  17074. in: "query",
  17075. required: false,
  17076. type: "boolean"
  17077. }
  17078. ],
  17079. responses: {
  17080. 204: {
  17081. description: "Delete successful"
  17082. },
  17083. 401: {
  17084. description: "User not logged in"
  17085. },
  17086. 404: {
  17087. description: "Resource with given uuid doesn't exist"
  17088. }
  17089. }
  17090. }
  17091. },
  17092. /order/{parent-uuid}/fulfillerdetails: {
  17093. post: {
  17094. tags: [
  17095. "order"
  17096. ],
  17097. summary: "Create fulfillerdetails subresource with properties in request",
  17098. operationId: "createFulfillerDetails",
  17099. consumes: [
  17100. "application/json"
  17101. ],
  17102. produces: [
  17103. "application/json"
  17104. ],
  17105. parameters: [
  17106. {
  17107. name: "parent-uuid",
  17108. in: "path",
  17109. description: "parent resource uuid",
  17110. required: true,
  17111. type: "string"
  17112. },
  17113. {
  17114. in: "body",
  17115. name: "resource",
  17116. description: "Resource to create",
  17117. required: true,
  17118. schema: {
  17119. $ref: "#/definitions/OrderFulfillerdetailsCreate"
  17120. }
  17121. }
  17122. ],
  17123. responses: {
  17124. 201: {
  17125. description: "fulfillerdetails response"
  17126. },
  17127. 401: {
  17128. description: "User not logged in"
  17129. }
  17130. }
  17131. }
  17132. },
  17133. /patient/{parent-uuid}/identifier: {
  17134. get: {
  17135. tags: [
  17136. "patient"
  17137. ],
  17138. summary: "Fetch all non-retired identifier subresources",
  17139. operationId: "getAllPatientIdentifiers",
  17140. consumes: [
  17141. "application/json"
  17142. ],
  17143. produces: [
  17144. "application/json"
  17145. ],
  17146. parameters: [
  17147. {
  17148. name: "limit",
  17149. in: "query",
  17150. description: "The number of results to return",
  17151. required: false,
  17152. type: "integer"
  17153. },
  17154. {
  17155. name: "startIndex",
  17156. in: "query",
  17157. description: "The offset at which to start",
  17158. required: false,
  17159. type: "integer"
  17160. },
  17161. {
  17162. name: "parent-uuid",
  17163. in: "path",
  17164. description: "parent resource uuid",
  17165. required: true,
  17166. type: "string"
  17167. },
  17168. {
  17169. name: "v",
  17170. in: "query",
  17171. description: "The representation to return (ref, default, full or custom)",
  17172. required: false,
  17173. type: "string",
  17174. enum: [
  17175. "ref",
  17176. "default",
  17177. "full",
  17178. "custom"
  17179. ]
  17180. }
  17181. ],
  17182. responses: {
  17183. 200: {
  17184. description: "identifier response",
  17185. schema: {
  17186. type: "object",
  17187. properties: {
  17188. results: {
  17189. type: "array",
  17190. items: {
  17191. $ref: "#/definitions/PatientIdentifierGet"
  17192. }
  17193. }
  17194. }
  17195. }
  17196. },
  17197. 401: {
  17198. description: "User not logged in"
  17199. }
  17200. }
  17201. },
  17202. post: {
  17203. tags: [
  17204. "patient"
  17205. ],
  17206. summary: "Create identifier subresource with properties in request",
  17207. operationId: "createPatientIdentifier",
  17208. consumes: [
  17209. "application/json"
  17210. ],
  17211. produces: [
  17212. "application/json"
  17213. ],
  17214. parameters: [
  17215. {
  17216. name: "parent-uuid",
  17217. in: "path",
  17218. description: "parent resource uuid",
  17219. required: true,
  17220. type: "string"
  17221. },
  17222. {
  17223. in: "body",
  17224. name: "resource",
  17225. description: "Resource to create",
  17226. required: true,
  17227. schema: {
  17228. $ref: "#/definitions/PatientIdentifierCreate"
  17229. }
  17230. }
  17231. ],
  17232. responses: {
  17233. 201: {
  17234. description: "identifier response"
  17235. },
  17236. 401: {
  17237. description: "User not logged in"
  17238. }
  17239. }
  17240. }
  17241. },
  17242. /patient/{parent-uuid}/identifier/{uuid}: {
  17243. get: {
  17244. tags: [
  17245. "patient"
  17246. ],
  17247. summary: "Fetch identifier subresources by uuid",
  17248. operationId: "getPatientIdentifier",
  17249. consumes: [
  17250. "application/json"
  17251. ],
  17252. produces: [
  17253. "application/json"
  17254. ],
  17255. parameters: [
  17256. {
  17257. name: "parent-uuid",
  17258. in: "path",
  17259. description: "parent resource uuid",
  17260. required: true,
  17261. type: "string"
  17262. },
  17263. {
  17264. name: "uuid",
  17265. in: "path",
  17266. description: "uuid to filter by",
  17267. required: true,
  17268. type: "string"
  17269. },
  17270. {
  17271. name: "v",
  17272. in: "query",
  17273. description: "The representation to return (ref, default, full or custom)",
  17274. required: false,
  17275. type: "string",
  17276. enum: [
  17277. "ref",
  17278. "default",
  17279. "full",
  17280. "custom"
  17281. ]
  17282. }
  17283. ],
  17284. responses: {
  17285. 200: {
  17286. description: "identifier response",
  17287. schema: {
  17288. $ref: "#/definitions/PatientIdentifierGet"
  17289. }
  17290. },
  17291. 401: {
  17292. description: "User not logged in"
  17293. },
  17294. 404: {
  17295. description: "Resource with given uuid doesn't exist"
  17296. }
  17297. }
  17298. },
  17299. post: {
  17300. tags: [
  17301. "patient"
  17302. ],
  17303. summary: "edit identifier subresource with given uuid, only modifying properties in request",
  17304. operationId: "updatePatientIdentifier",
  17305. consumes: [
  17306. "application/json"
  17307. ],
  17308. produces: [
  17309. "application/json"
  17310. ],
  17311. parameters: [
  17312. {
  17313. name: "parent-uuid",
  17314. in: "path",
  17315. description: "parent resource uuid",
  17316. required: true,
  17317. type: "string"
  17318. },
  17319. {
  17320. name: "uuid",
  17321. in: "path",
  17322. description: "uuid of resource to update",
  17323. required: true,
  17324. type: "string"
  17325. },
  17326. {
  17327. in: "body",
  17328. name: "resource",
  17329. description: "Resource properties to update",
  17330. required: true,
  17331. schema: {
  17332. $ref: "#/definitions/PatientIdentifierUpdate"
  17333. }
  17334. }
  17335. ],
  17336. responses: {
  17337. 201: {
  17338. description: "identifier response"
  17339. },
  17340. 401: {
  17341. description: "User not logged in"
  17342. }
  17343. }
  17344. },
  17345. delete: {
  17346. tags: [
  17347. "patient"
  17348. ],
  17349. summary: "Delete or purge resource by uuid",
  17350. description: "The resource will be voided/retired unless purge = 'true'",
  17351. operationId: "deletePatientIdentifier",
  17352. consumes: [
  17353. "application/json"
  17354. ],
  17355. produces: [
  17356. "application/json"
  17357. ],
  17358. parameters: [
  17359. {
  17360. name: "parent-uuid",
  17361. in: "path",
  17362. description: "parent resource uuid",
  17363. required: true,
  17364. type: "string"
  17365. },
  17366. {
  17367. name: "uuid",
  17368. in: "path",
  17369. description: "uuid to delete",
  17370. required: true,
  17371. type: "string"
  17372. },
  17373. {
  17374. name: "purge",
  17375. in: "query",
  17376. required: false,
  17377. type: "boolean"
  17378. }
  17379. ],
  17380. responses: {
  17381. 204: {
  17382. description: "Delete successful"
  17383. },
  17384. 401: {
  17385. description: "User not logged in"
  17386. },
  17387. 404: {
  17388. description: "Resource with given uuid doesn't exist"
  17389. }
  17390. }
  17391. }
  17392. },
  17393. /customdatatype/{parent-uuid}/handlers: {
  17394. get: {
  17395. tags: [
  17396. "customdatatype"
  17397. ],
  17398. summary: "Fetch all non-retired handlers subresources",
  17399. operationId: "getAllCustomDatatypeHandlers",
  17400. consumes: [
  17401. "application/json"
  17402. ],
  17403. produces: [
  17404. "application/json"
  17405. ],
  17406. parameters: [
  17407. {
  17408. name: "limit",
  17409. in: "query",
  17410. description: "The number of results to return",
  17411. required: false,
  17412. type: "integer"
  17413. },
  17414. {
  17415. name: "startIndex",
  17416. in: "query",
  17417. description: "The offset at which to start",
  17418. required: false,
  17419. type: "integer"
  17420. },
  17421. {
  17422. name: "parent-uuid",
  17423. in: "path",
  17424. description: "parent resource uuid",
  17425. required: true,
  17426. type: "string"
  17427. },
  17428. {
  17429. name: "v",
  17430. in: "query",
  17431. description: "The representation to return (ref, default, full or custom)",
  17432. required: false,
  17433. type: "string",
  17434. enum: [
  17435. "ref",
  17436. "default",
  17437. "full",
  17438. "custom"
  17439. ]
  17440. }
  17441. ],
  17442. responses: {
  17443. 200: {
  17444. description: "handlers response",
  17445. schema: {
  17446. type: "object",
  17447. properties: {
  17448. results: {
  17449. type: "array",
  17450. items: {
  17451. $ref: "#/definitions/CustomdatatypeHandlersGet"
  17452. }
  17453. }
  17454. }
  17455. }
  17456. },
  17457. 401: {
  17458. description: "User not logged in"
  17459. }
  17460. }
  17461. }
  17462. },
  17463. /form/{parent-uuid}/resource: {
  17464. get: {
  17465. tags: [
  17466. "form"
  17467. ],
  17468. summary: "Fetch all non-retired resource subresources",
  17469. operationId: "getAllFormResources",
  17470. consumes: [
  17471. "application/json"
  17472. ],
  17473. produces: [
  17474. "application/json"
  17475. ],
  17476. parameters: [
  17477. {
  17478. name: "limit",
  17479. in: "query",
  17480. description: "The number of results to return",
  17481. required: false,
  17482. type: "integer"
  17483. },
  17484. {
  17485. name: "startIndex",
  17486. in: "query",
  17487. description: "The offset at which to start",
  17488. required: false,
  17489. type: "integer"
  17490. },
  17491. {
  17492. name: "parent-uuid",
  17493. in: "path",
  17494. description: "parent resource uuid",
  17495. required: true,
  17496. type: "string"
  17497. },
  17498. {
  17499. name: "v",
  17500. in: "query",
  17501. description: "The representation to return (ref, default, full or custom)",
  17502. required: false,
  17503. type: "string",
  17504. enum: [
  17505. "ref",
  17506. "default",
  17507. "full",
  17508. "custom"
  17509. ]
  17510. }
  17511. ],
  17512. responses: {
  17513. 200: {
  17514. description: "resource response",
  17515. schema: {
  17516. type: "object",
  17517. properties: {
  17518. results: {
  17519. type: "array",
  17520. items: {
  17521. $ref: "#/definitions/FormResourceGet"
  17522. }
  17523. }
  17524. }
  17525. }
  17526. },
  17527. 401: {
  17528. description: "User not logged in"
  17529. }
  17530. }
  17531. },
  17532. post: {
  17533. tags: [
  17534. "form"
  17535. ],
  17536. summary: "Create resource subresource with properties in request",
  17537. operationId: "createFormResource",
  17538. consumes: [
  17539. "application/json"
  17540. ],
  17541. produces: [
  17542. "application/json"
  17543. ],
  17544. parameters: [
  17545. {
  17546. name: "parent-uuid",
  17547. in: "path",
  17548. description: "parent resource uuid",
  17549. required: true,
  17550. type: "string"
  17551. },
  17552. {
  17553. in: "body",
  17554. name: "resource",
  17555. description: "Resource to create",
  17556. required: true,
  17557. schema: {
  17558. $ref: "#/definitions/FormResourceCreate"
  17559. }
  17560. }
  17561. ],
  17562. responses: {
  17563. 201: {
  17564. description: "resource response"
  17565. },
  17566. 401: {
  17567. description: "User not logged in"
  17568. }
  17569. }
  17570. }
  17571. },
  17572. /form/{parent-uuid}/resource/{uuid}: {
  17573. get: {
  17574. tags: [
  17575. "form"
  17576. ],
  17577. summary: "Fetch resource subresources by uuid",
  17578. operationId: "getFormResource",
  17579. consumes: [
  17580. "application/json"
  17581. ],
  17582. produces: [
  17583. "application/json"
  17584. ],
  17585. parameters: [
  17586. {
  17587. name: "parent-uuid",
  17588. in: "path",
  17589. description: "parent resource uuid",
  17590. required: true,
  17591. type: "string"
  17592. },
  17593. {
  17594. name: "uuid",
  17595. in: "path",
  17596. description: "uuid to filter by",
  17597. required: true,
  17598. type: "string"
  17599. },
  17600. {
  17601. name: "v",
  17602. in: "query",
  17603. description: "The representation to return (ref, default, full or custom)",
  17604. required: false,
  17605. type: "string",
  17606. enum: [
  17607. "ref",
  17608. "default",
  17609. "full",
  17610. "custom"
  17611. ]
  17612. }
  17613. ],
  17614. responses: {
  17615. 200: {
  17616. description: "resource response",
  17617. schema: {
  17618. $ref: "#/definitions/FormResourceGet"
  17619. }
  17620. },
  17621. 401: {
  17622. description: "User not logged in"
  17623. },
  17624. 404: {
  17625. description: "Resource with given uuid doesn't exist"
  17626. }
  17627. }
  17628. },
  17629. post: {
  17630. tags: [
  17631. "form"
  17632. ],
  17633. summary: "edit resource subresource with given uuid, only modifying properties in request",
  17634. operationId: "updateFormResource",
  17635. consumes: [
  17636. "application/json"
  17637. ],
  17638. produces: [
  17639. "application/json"
  17640. ],
  17641. parameters: [
  17642. {
  17643. name: "parent-uuid",
  17644. in: "path",
  17645. description: "parent resource uuid",
  17646. required: true,
  17647. type: "string"
  17648. },
  17649. {
  17650. name: "uuid",
  17651. in: "path",
  17652. description: "uuid of resource to update",
  17653. required: true,
  17654. type: "string"
  17655. },
  17656. {
  17657. in: "body",
  17658. name: "resource",
  17659. description: "Resource properties to update",
  17660. required: true,
  17661. schema: {
  17662. $ref: "#/definitions/FormResourceUpdate"
  17663. }
  17664. }
  17665. ],
  17666. responses: {
  17667. 201: {
  17668. description: "resource response"
  17669. },
  17670. 401: {
  17671. description: "User not logged in"
  17672. }
  17673. }
  17674. },
  17675. delete: {
  17676. tags: [
  17677. "form"
  17678. ],
  17679. summary: "Delete or purge resource by uuid",
  17680. description: "The resource will be voided/retired unless purge = 'true'",
  17681. operationId: "deleteFormResource",
  17682. consumes: [
  17683. "application/json"
  17684. ],
  17685. produces: [
  17686. "application/json"
  17687. ],
  17688. parameters: [
  17689. {
  17690. name: "parent-uuid",
  17691. in: "path",
  17692. description: "parent resource uuid",
  17693. required: true,
  17694. type: "string"
  17695. },
  17696. {
  17697. name: "uuid",
  17698. in: "path",
  17699. description: "uuid to delete",
  17700. required: true,
  17701. type: "string"
  17702. },
  17703. {
  17704. name: "purge",
  17705. in: "query",
  17706. required: false,
  17707. type: "boolean"
  17708. }
  17709. ],
  17710. responses: {
  17711. 204: {
  17712. description: "Delete successful"
  17713. },
  17714. 401: {
  17715. description: "User not logged in"
  17716. },
  17717. 404: {
  17718. description: "Resource with given uuid doesn't exist"
  17719. }
  17720. }
  17721. }
  17722. },
  17723. /form/{parent-uuid}/formfield: {
  17724. get: {
  17725. tags: [
  17726. "form"
  17727. ],
  17728. summary: "Fetch all non-retired formfield subresources",
  17729. operationId: "getAllFormFields",
  17730. consumes: [
  17731. "application/json"
  17732. ],
  17733. produces: [
  17734. "application/json"
  17735. ],
  17736. parameters: [
  17737. {
  17738. name: "limit",
  17739. in: "query",
  17740. description: "The number of results to return",
  17741. required: false,
  17742. type: "integer"
  17743. },
  17744. {
  17745. name: "startIndex",
  17746. in: "query",
  17747. description: "The offset at which to start",
  17748. required: false,
  17749. type: "integer"
  17750. },
  17751. {
  17752. name: "parent-uuid",
  17753. in: "path",
  17754. description: "parent resource uuid",
  17755. required: true,
  17756. type: "string"
  17757. },
  17758. {
  17759. name: "v",
  17760. in: "query",
  17761. description: "The representation to return (ref, default, full or custom)",
  17762. required: false,
  17763. type: "string",
  17764. enum: [
  17765. "ref",
  17766. "default",
  17767. "full",
  17768. "custom"
  17769. ]
  17770. }
  17771. ],
  17772. responses: {
  17773. 200: {
  17774. description: "formfield response",
  17775. schema: {
  17776. type: "object",
  17777. properties: {
  17778. results: {
  17779. type: "array",
  17780. items: {
  17781. $ref: "#/definitions/FormFormfieldGet"
  17782. }
  17783. }
  17784. }
  17785. }
  17786. },
  17787. 401: {
  17788. description: "User not logged in"
  17789. }
  17790. }
  17791. },
  17792. post: {
  17793. tags: [
  17794. "form"
  17795. ],
  17796. summary: "Create formfield subresource with properties in request",
  17797. operationId: "createFormField",
  17798. consumes: [
  17799. "application/json"
  17800. ],
  17801. produces: [
  17802. "application/json"
  17803. ],
  17804. parameters: [
  17805. {
  17806. name: "parent-uuid",
  17807. in: "path",
  17808. description: "parent resource uuid",
  17809. required: true,
  17810. type: "string"
  17811. },
  17812. {
  17813. in: "body",
  17814. name: "resource",
  17815. description: "Resource to create",
  17816. required: true,
  17817. schema: {
  17818. $ref: "#/definitions/FormFormfieldCreate"
  17819. }
  17820. }
  17821. ],
  17822. responses: {
  17823. 201: {
  17824. description: "formfield response"
  17825. },
  17826. 401: {
  17827. description: "User not logged in"
  17828. }
  17829. }
  17830. }
  17831. },
  17832. /form/{parent-uuid}/formfield/{uuid}: {
  17833. get: {
  17834. tags: [
  17835. "form"
  17836. ],
  17837. summary: "Fetch formfield subresources by uuid",
  17838. operationId: "getFormField",
  17839. consumes: [
  17840. "application/json"
  17841. ],
  17842. produces: [
  17843. "application/json"
  17844. ],
  17845. parameters: [
  17846. {
  17847. name: "parent-uuid",
  17848. in: "path",
  17849. description: "parent resource uuid",
  17850. required: true,
  17851. type: "string"
  17852. },
  17853. {
  17854. name: "uuid",
  17855. in: "path",
  17856. description: "uuid to filter by",
  17857. required: true,
  17858. type: "string"
  17859. },
  17860. {
  17861. name: "v",
  17862. in: "query",
  17863. description: "The representation to return (ref, default, full or custom)",
  17864. required: false,
  17865. type: "string",
  17866. enum: [
  17867. "ref",
  17868. "default",
  17869. "full",
  17870. "custom"
  17871. ]
  17872. }
  17873. ],
  17874. responses: {
  17875. 200: {
  17876. description: "formfield response",
  17877. schema: {
  17878. $ref: "#/definitions/FormFormfieldGet"
  17879. }
  17880. },
  17881. 401: {
  17882. description: "User not logged in"
  17883. },
  17884. 404: {
  17885. description: "Resource with given uuid doesn't exist"
  17886. }
  17887. }
  17888. },
  17889. post: {
  17890. tags: [
  17891. "form"
  17892. ],
  17893. summary: "edit formfield subresource with given uuid, only modifying properties in request",
  17894. operationId: "updateFormField",
  17895. consumes: [
  17896. "application/json"
  17897. ],
  17898. produces: [
  17899. "application/json"
  17900. ],
  17901. parameters: [
  17902. {
  17903. name: "parent-uuid",
  17904. in: "path",
  17905. description: "parent resource uuid",
  17906. required: true,
  17907. type: "string"
  17908. },
  17909. {
  17910. name: "uuid",
  17911. in: "path",
  17912. description: "uuid of resource to update",
  17913. required: true,
  17914. type: "string"
  17915. },
  17916. {
  17917. in: "body",
  17918. name: "resource",
  17919. description: "Resource properties to update",
  17920. required: true,
  17921. schema: {
  17922. $ref: "#/definitions/FormFormfieldUpdate"
  17923. }
  17924. }
  17925. ],
  17926. responses: {
  17927. 201: {
  17928. description: "formfield response"
  17929. },
  17930. 401: {
  17931. description: "User not logged in"
  17932. }
  17933. }
  17934. },
  17935. delete: {
  17936. tags: [
  17937. "form"
  17938. ],
  17939. summary: "Delete or purge resource by uuid",
  17940. description: "The resource will be voided/retired unless purge = 'true'",
  17941. operationId: "deleteFormField",
  17942. consumes: [
  17943. "application/json"
  17944. ],
  17945. produces: [
  17946. "application/json"
  17947. ],
  17948. parameters: [
  17949. {
  17950. name: "parent-uuid",
  17951. in: "path",
  17952. description: "parent resource uuid",
  17953. required: true,
  17954. type: "string"
  17955. },
  17956. {
  17957. name: "uuid",
  17958. in: "path",
  17959. description: "uuid to delete",
  17960. required: true,
  17961. type: "string"
  17962. },
  17963. {
  17964. name: "purge",
  17965. in: "query",
  17966. required: false,
  17967. type: "boolean"
  17968. }
  17969. ],
  17970. responses: {
  17971. 204: {
  17972. description: "Delete successful"
  17973. },
  17974. 401: {
  17975. description: "User not logged in"
  17976. },
  17977. 404: {
  17978. description: "Resource with given uuid doesn't exist"
  17979. }
  17980. }
  17981. }
  17982. }
  17983. },
  17984. securityDefinitions: {
  17985. basic_auth: {
  17986. type: "basic"
  17987. }
  17988. },
  17989. definitions: {
  17990. FormGet: {
  17991. properties: {
  17992. links: {
  17993. type: "array",
  17994. items: {
  17995. type: "object",
  17996. properties: {
  17997. rel: {
  17998. type: "string",
  17999. example: "self|full"
  18000. },
  18001. uri: {
  18002. type: "string",
  18003. format: "uri"
  18004. }
  18005. }
  18006. }
  18007. },
  18008. uuid: {
  18009. type: "string"
  18010. },
  18011. display: {
  18012. type: "string"
  18013. },
  18014. name: {
  18015. type: "string"
  18016. },
  18017. description: {
  18018. type: "string"
  18019. },
  18020. version: {
  18021. type: "string"
  18022. },
  18023. build: {
  18024. type: "integer",
  18025. format: "int32"
  18026. },
  18027. published: {
  18028. type: "boolean",
  18029. default: false
  18030. },
  18031. retired: {
  18032. type: "boolean"
  18033. },
  18034. encounterType: {
  18035. $ref: "#/definitions/EncountertypeGetRef"
  18036. },
  18037. formFields: {
  18038. type: "array",
  18039. items: {
  18040. $ref: "#/definitions/FormFormfieldGetRef"
  18041. }
  18042. }
  18043. }
  18044. },
  18045. FormGetRef: {
  18046. properties: {
  18047. links: {
  18048. type: "array",
  18049. items: {
  18050. type: "object",
  18051. properties: {
  18052. rel: {
  18053. type: "string",
  18054. example: "self"
  18055. },
  18056. uri: {
  18057. type: "string",
  18058. format: "uri"
  18059. }
  18060. }
  18061. }
  18062. },
  18063. uuid: {
  18064. type: "string"
  18065. },
  18066. display: {
  18067. type: "string"
  18068. }
  18069. }
  18070. },
  18071. FormGetFull: {
  18072. properties: {
  18073. auditInfo: {
  18074. type: "string"
  18075. },
  18076. links: {
  18077. type: "array",
  18078. items: {
  18079. type: "object",
  18080. example: "self",
  18081. properties: {
  18082. rel: {
  18083. type: "string"
  18084. },
  18085. uri: {
  18086. type: "string",
  18087. format: "uri"
  18088. }
  18089. }
  18090. }
  18091. },
  18092. uuid: {
  18093. type: "string"
  18094. },
  18095. display: {
  18096. type: "string"
  18097. },
  18098. name: {
  18099. type: "string"
  18100. },
  18101. description: {
  18102. type: "string"
  18103. },
  18104. retired: {
  18105. type: "boolean"
  18106. },
  18107. version: {
  18108. type: "string"
  18109. },
  18110. build: {
  18111. type: "integer",
  18112. format: "int32"
  18113. },
  18114. published: {
  18115. type: "boolean",
  18116. default: false
  18117. },
  18118. encounterType: {
  18119. $ref: "#/definitions/EncountertypeGet"
  18120. },
  18121. formFields: {
  18122. type: "array",
  18123. items: {
  18124. $ref: "#/definitions/FormFormfieldGet"
  18125. }
  18126. }
  18127. }
  18128. },
  18129. FormCreate: {
  18130. required: [
  18131. "name",
  18132. "version"
  18133. ],
  18134. properties: {
  18135. name: {
  18136. type: "string"
  18137. },
  18138. description: {
  18139. type: "string"
  18140. },
  18141. version: {
  18142. type: "string"
  18143. },
  18144. encounterType: {
  18145. type: "string"
  18146. },
  18147. build: {
  18148. type: "integer",
  18149. format: "int32"
  18150. },
  18151. published: {
  18152. type: "boolean",
  18153. default: false
  18154. },
  18155. formFields: {
  18156. type: "array",
  18157. items: {
  18158. type: "string"
  18159. }
  18160. },
  18161. xslt: {
  18162. type: "string"
  18163. },
  18164. template: {
  18165. type: "string"
  18166. }
  18167. }
  18168. },
  18169. FormCreateFull: {
  18170. required: [
  18171. "name",
  18172. "version"
  18173. ],
  18174. properties: {
  18175. name: {
  18176. type: "string"
  18177. },
  18178. description: {
  18179. type: "string"
  18180. },
  18181. version: {
  18182. type: "string"
  18183. },
  18184. encounterType: {
  18185. $ref: "#/definitions/EncountertypeCreate"
  18186. },
  18187. build: {
  18188. type: "integer",
  18189. format: "int32"
  18190. },
  18191. published: {
  18192. type: "boolean",
  18193. default: false
  18194. },
  18195. formFields: {
  18196. type: "array",
  18197. items: {
  18198. $ref: "#/definitions/FormFormfieldCreate"
  18199. }
  18200. },
  18201. xslt: {
  18202. type: "string"
  18203. },
  18204. template: {
  18205. type: "string"
  18206. }
  18207. }
  18208. },
  18209. FormUpdate: {
  18210. required: [
  18211. "name",
  18212. "version"
  18213. ],
  18214. properties: {
  18215. name: {
  18216. type: "string"
  18217. },
  18218. description: {
  18219. type: "string"
  18220. },
  18221. version: {
  18222. type: "string"
  18223. },
  18224. encounterType: {
  18225. type: "string"
  18226. },
  18227. build: {
  18228. type: "integer",
  18229. format: "int32"
  18230. },
  18231. published: {
  18232. type: "boolean",
  18233. default: false
  18234. },
  18235. formFields: {
  18236. type: "array",
  18237. items: {
  18238. type: "string"
  18239. }
  18240. },
  18241. xslt: {
  18242. type: "string"
  18243. },
  18244. template: {
  18245. type: "string"
  18246. }
  18247. }
  18248. },
  18249. ConditionCreate: {
  18250. properties: {
  18251. condition: {
  18252. type: "string"
  18253. },
  18254. patient: {
  18255. type: "string",
  18256. example: "uuid"
  18257. },
  18258. clinicalStatus: {
  18259. type: "string"
  18260. },
  18261. verificationStatus: {
  18262. type: "string"
  18263. },
  18264. previousVersion: {
  18265. type: "string"
  18266. },
  18267. onsetDate: {
  18268. type: "string"
  18269. },
  18270. endDate: {
  18271. type: "string"
  18272. },
  18273. additionalDetail: {
  18274. type: "string"
  18275. }
  18276. }
  18277. },
  18278. ConditionCreateFull: {
  18279. properties: {
  18280. condition: {
  18281. type: "string"
  18282. },
  18283. patient: {
  18284. type: "string",
  18285. example: "uuid"
  18286. },
  18287. clinicalStatus: {
  18288. type: "string"
  18289. },
  18290. verificationStatus: {
  18291. type: "string"
  18292. },
  18293. previousVersion: {
  18294. type: "string"
  18295. },
  18296. onsetDate: {
  18297. type: "string"
  18298. },
  18299. endDate: {
  18300. type: "string"
  18301. },
  18302. additionalDetail: {
  18303. type: "string"
  18304. }
  18305. }
  18306. },
  18307. ConditionGet: {
  18308. properties: {
  18309. links: {
  18310. type: "array",
  18311. items: {
  18312. type: "object",
  18313. properties: {
  18314. rel: {
  18315. type: "string",
  18316. example: "self|full"
  18317. },
  18318. uri: {
  18319. type: "string",
  18320. format: "uri"
  18321. }
  18322. }
  18323. }
  18324. },
  18325. uuid: {
  18326. type: "string"
  18327. },
  18328. display: {
  18329. type: "string"
  18330. },
  18331. condition: {
  18332. type: "string"
  18333. },
  18334. patient: {
  18335. $ref: "#/definitions/PatientGetRef"
  18336. },
  18337. clinicalStatus: {
  18338. type: "string"
  18339. },
  18340. verificationStatus: {
  18341. type: "string"
  18342. },
  18343. previousVersion: {
  18344. type: "string"
  18345. },
  18346. onsetDate: {
  18347. type: "string"
  18348. },
  18349. endDate: {
  18350. type: "string"
  18351. },
  18352. additionalDetail: {
  18353. type: "string"
  18354. },
  18355. voided: {
  18356. type: "string"
  18357. }
  18358. }
  18359. },
  18360. ConditionGetRef: {
  18361. properties: {
  18362. links: {
  18363. type: "array",
  18364. items: {
  18365. type: "object",
  18366. properties: {
  18367. rel: {
  18368. type: "string",
  18369. example: "self"
  18370. },
  18371. uri: {
  18372. type: "string",
  18373. format: "uri"
  18374. }
  18375. }
  18376. }
  18377. }
  18378. }
  18379. },
  18380. ConditionGetFull: {
  18381. properties: {
  18382. auditInfo: {
  18383. type: "string"
  18384. },
  18385. links: {
  18386. type: "array",
  18387. items: {
  18388. type: "object",
  18389. example: "self",
  18390. properties: {
  18391. rel: {
  18392. type: "string"
  18393. },
  18394. uri: {
  18395. type: "string",
  18396. format: "uri"
  18397. }
  18398. }
  18399. }
  18400. },
  18401. uuid: {
  18402. type: "string"
  18403. },
  18404. display: {
  18405. type: "string"
  18406. },
  18407. condition: {
  18408. type: "string"
  18409. },
  18410. patient: {
  18411. $ref: "#/definitions/PatientGetRef"
  18412. },
  18413. clinicalStatus: {
  18414. type: "string"
  18415. },
  18416. verificationStatus: {
  18417. type: "string"
  18418. },
  18419. previousVersion: {
  18420. type: "string"
  18421. },
  18422. onsetDate: {
  18423. type: "string"
  18424. },
  18425. endDate: {
  18426. type: "string"
  18427. },
  18428. additionalDetail: {
  18429. type: "string"
  18430. },
  18431. voided: {
  18432. type: "string"
  18433. }
  18434. }
  18435. },
  18436. ConditionUpdate: {
  18437. properties: {
  18438. condition: {
  18439. type: "string"
  18440. },
  18441. clinicalStatus: {
  18442. type: "string"
  18443. },
  18444. verificationStatus: {
  18445. type: "string"
  18446. },
  18447. previousVersion: {
  18448. type: "string"
  18449. },
  18450. onsetDate: {
  18451. type: "string"
  18452. },
  18453. endDate: {
  18454. type: "string"
  18455. },
  18456. additionalDetail: {
  18457. type: "string"
  18458. },
  18459. voided: {
  18460. type: "string"
  18461. }
  18462. }
  18463. },
  18464. PrivilegeGet: {
  18465. properties: {
  18466. links: {
  18467. type: "array",
  18468. items: {
  18469. type: "object",
  18470. properties: {
  18471. rel: {
  18472. type: "string",
  18473. example: "self|full"
  18474. },
  18475. uri: {
  18476. type: "string",
  18477. format: "uri"
  18478. }
  18479. }
  18480. }
  18481. },
  18482. uuid: {
  18483. type: "string"
  18484. },
  18485. display: {
  18486. type: "string"
  18487. }
  18488. }
  18489. },
  18490. PrivilegeGetRef: {
  18491. properties: {
  18492. links: {
  18493. type: "array",
  18494. items: {
  18495. type: "object",
  18496. properties: {
  18497. rel: {
  18498. type: "string",
  18499. example: "self"
  18500. },
  18501. uri: {
  18502. type: "string",
  18503. format: "uri"
  18504. }
  18505. }
  18506. }
  18507. },
  18508. uuid: {
  18509. type: "string"
  18510. },
  18511. display: {
  18512. type: "string"
  18513. }
  18514. }
  18515. },
  18516. PrivilegeGetFull: {
  18517. properties: {
  18518. auditInfo: {
  18519. type: "string"
  18520. },
  18521. links: {
  18522. type: "array",
  18523. items: {
  18524. type: "object",
  18525. example: "self",
  18526. properties: {
  18527. rel: {
  18528. type: "string"
  18529. },
  18530. uri: {
  18531. type: "string",
  18532. format: "uri"
  18533. }
  18534. }
  18535. }
  18536. },
  18537. uuid: {
  18538. type: "string"
  18539. },
  18540. display: {
  18541. type: "string"
  18542. },
  18543. name: {
  18544. type: "string"
  18545. },
  18546. description: {
  18547. type: "string"
  18548. },
  18549. retired: {
  18550. type: "boolean"
  18551. }
  18552. }
  18553. },
  18554. PrivilegeCreate: {
  18555. required: [
  18556. "name"
  18557. ],
  18558. properties: {
  18559. name: {
  18560. type: "string"
  18561. },
  18562. description: {
  18563. type: "string"
  18564. }
  18565. }
  18566. },
  18567. PrivilegeCreateFull: {
  18568. required: [
  18569. "name"
  18570. ],
  18571. properties: {
  18572. name: {
  18573. type: "string"
  18574. },
  18575. description: {
  18576. type: "string"
  18577. }
  18578. }
  18579. },
  18580. PrivilegeUpdate: {
  18581. properties: {
  18582. description: {
  18583. type: "string"
  18584. }
  18585. }
  18586. },
  18587. TaskactionCreate: {
  18588. required: [
  18589. "action"
  18590. ],
  18591. properties: {
  18592. tasks: {
  18593. type: "array",
  18594. items: {
  18595. type: "string"
  18596. }
  18597. },
  18598. allTasks: {
  18599. type: "boolean"
  18600. },
  18601. action: {
  18602. type: "string",
  18603. enum: [
  18604. "SCHEDULETASK",
  18605. "SHUTDOWNTASK",
  18606. "RESCHEDULETASK",
  18607. "RESCHEDULEALLTASKS",
  18608. "DELETE",
  18609. "RUNTASK"
  18610. ]
  18611. }
  18612. }
  18613. },
  18614. TaskactionCreateFull: {
  18615. required: [
  18616. "action"
  18617. ],
  18618. properties: {
  18619. tasks: {
  18620. type: "array",
  18621. items: {
  18622. type: "string"
  18623. }
  18624. },
  18625. allTasks: {
  18626. type: "boolean"
  18627. },
  18628. action: {
  18629. type: "string",
  18630. enum: [
  18631. "SCHEDULETASK",
  18632. "SHUTDOWNTASK",
  18633. "RESCHEDULETASK",
  18634. "RESCHEDULEALLTASKS",
  18635. "DELETE",
  18636. "RUNTASK"
  18637. ]
  18638. }
  18639. }
  18640. },
  18641. TaskactionGet: {
  18642. properties: {
  18643. links: {
  18644. type: "array",
  18645. items: {
  18646. type: "object",
  18647. properties: {
  18648. rel: {
  18649. type: "string",
  18650. example: "self|full"
  18651. },
  18652. uri: {
  18653. type: "string",
  18654. format: "uri"
  18655. }
  18656. }
  18657. }
  18658. }
  18659. }
  18660. },
  18661. TaskactionGetRef: {
  18662. properties: {
  18663. links: {
  18664. type: "array",
  18665. items: {
  18666. type: "object",
  18667. properties: {
  18668. rel: {
  18669. type: "string",
  18670. example: "self"
  18671. },
  18672. uri: {
  18673. type: "string",
  18674. format: "uri"
  18675. }
  18676. }
  18677. }
  18678. }
  18679. }
  18680. },
  18681. TaskactionGetFull: {
  18682. properties: {
  18683. auditInfo: {
  18684. type: "string"
  18685. },
  18686. links: {
  18687. type: "array",
  18688. items: {
  18689. type: "object",
  18690. example: "self",
  18691. properties: {
  18692. rel: {
  18693. type: "string"
  18694. },
  18695. uri: {
  18696. type: "string",
  18697. format: "uri"
  18698. }
  18699. }
  18700. }
  18701. }
  18702. }
  18703. },
  18704. OrderfrequencyGet: {
  18705. properties: {
  18706. links: {
  18707. type: "array",
  18708. items: {
  18709. type: "object",
  18710. properties: {
  18711. rel: {
  18712. type: "string",
  18713. example: "self|full"
  18714. },
  18715. uri: {
  18716. type: "string",
  18717. format: "uri"
  18718. }
  18719. }
  18720. }
  18721. },
  18722. uuid: {
  18723. type: "string"
  18724. },
  18725. display: {
  18726. type: "string"
  18727. }
  18728. }
  18729. },
  18730. OrderfrequencyGetRef: {
  18731. properties: {
  18732. links: {
  18733. type: "array",
  18734. items: {
  18735. type: "object",
  18736. properties: {
  18737. rel: {
  18738. type: "string",
  18739. example: "self"
  18740. },
  18741. uri: {
  18742. type: "string",
  18743. format: "uri"
  18744. }
  18745. }
  18746. }
  18747. },
  18748. uuid: {
  18749. type: "string"
  18750. },
  18751. display: {
  18752. type: "string"
  18753. }
  18754. }
  18755. },
  18756. OrderfrequencyGetFull: {
  18757. properties: {
  18758. auditInfo: {
  18759. type: "string"
  18760. },
  18761. links: {
  18762. type: "array",
  18763. items: {
  18764. type: "object",
  18765. example: "self",
  18766. properties: {
  18767. rel: {
  18768. type: "string"
  18769. },
  18770. uri: {
  18771. type: "string",
  18772. format: "uri"
  18773. }
  18774. }
  18775. }
  18776. },
  18777. uuid: {
  18778. type: "string"
  18779. },
  18780. display: {
  18781. type: "string"
  18782. },
  18783. name: {
  18784. type: "string"
  18785. },
  18786. description: {
  18787. type: "string"
  18788. },
  18789. retired: {
  18790. type: "boolean"
  18791. }
  18792. }
  18793. },
  18794. OrderfrequencyCreate: {
  18795. required: [
  18796. "name"
  18797. ],
  18798. properties: {
  18799. name: {
  18800. type: "string"
  18801. },
  18802. description: {
  18803. type: "string"
  18804. }
  18805. }
  18806. },
  18807. OrderfrequencyCreateFull: {
  18808. required: [
  18809. "name"
  18810. ],
  18811. properties: {
  18812. name: {
  18813. type: "string"
  18814. },
  18815. description: {
  18816. type: "string"
  18817. }
  18818. }
  18819. },
  18820. OrderfrequencyUpdate: {
  18821. required: [
  18822. "name"
  18823. ],
  18824. properties: {
  18825. name: {
  18826. type: "string"
  18827. },
  18828. description: {
  18829. type: "string"
  18830. }
  18831. }
  18832. },
  18833. ModuleGet: {
  18834. properties: {
  18835. links: {
  18836. type: "array",
  18837. items: {
  18838. type: "object",
  18839. properties: {
  18840. rel: {
  18841. type: "string",
  18842. example: "self|full"
  18843. },
  18844. uri: {
  18845. type: "string",
  18846. format: "uri"
  18847. }
  18848. }
  18849. }
  18850. },
  18851. uuid: {
  18852. type: "string"
  18853. },
  18854. display: {
  18855. type: "string"
  18856. },
  18857. name: {
  18858. type: "string"
  18859. },
  18860. description: {
  18861. type: "string"
  18862. },
  18863. started: {
  18864. type: "boolean"
  18865. },
  18866. startupErrorMessage: {
  18867. type: "string"
  18868. }
  18869. }
  18870. },
  18871. ModuleGetRef: {
  18872. properties: {
  18873. links: {
  18874. type: "array",
  18875. items: {
  18876. type: "object",
  18877. properties: {
  18878. rel: {
  18879. type: "string",
  18880. example: "self"
  18881. },
  18882. uri: {
  18883. type: "string",
  18884. format: "uri"
  18885. }
  18886. }
  18887. }
  18888. },
  18889. uuid: {
  18890. type: "string"
  18891. },
  18892. display: {
  18893. type: "string"
  18894. }
  18895. }
  18896. },
  18897. ModuleGetFull: {
  18898. properties: {
  18899. auditInfo: {
  18900. type: "string"
  18901. },
  18902. links: {
  18903. type: "array",
  18904. items: {
  18905. type: "object",
  18906. example: "self",
  18907. properties: {
  18908. rel: {
  18909. type: "string"
  18910. },
  18911. uri: {
  18912. type: "string",
  18913. format: "uri"
  18914. }
  18915. }
  18916. }
  18917. },
  18918. uuid: {
  18919. type: "string"
  18920. },
  18921. display: {
  18922. type: "string"
  18923. },
  18924. name: {
  18925. type: "string"
  18926. },
  18927. description: {
  18928. type: "string"
  18929. },
  18930. started: {
  18931. type: "boolean"
  18932. },
  18933. startupErrorMessage: {
  18934. type: "string"
  18935. },
  18936. packageName: {
  18937. type: "string"
  18938. },
  18939. author: {
  18940. type: "string"
  18941. },
  18942. version: {
  18943. type: "string"
  18944. },
  18945. requireOpenmrsVersion: {
  18946. type: "string"
  18947. },
  18948. awareOfModules: {
  18949. type: "array",
  18950. items: {
  18951. type: "string"
  18952. }
  18953. },
  18954. requiredModules: {
  18955. type: "array",
  18956. items: {
  18957. type: "string"
  18958. }
  18959. }
  18960. }
  18961. },
  18962. VisitattributetypeGet: {
  18963. properties: {
  18964. links: {
  18965. type: "array",
  18966. items: {
  18967. type: "object",
  18968. properties: {
  18969. rel: {
  18970. type: "string",
  18971. example: "self|full"
  18972. },
  18973. uri: {
  18974. type: "string",
  18975. format: "uri"
  18976. }
  18977. }
  18978. }
  18979. },
  18980. uuid: {
  18981. type: "string"
  18982. },
  18983. display: {
  18984. type: "string"
  18985. },
  18986. minOccurs: {
  18987. type: "integer",
  18988. format: "int32"
  18989. },
  18990. maxOccurs: {
  18991. type: "integer",
  18992. format: "int32"
  18993. },
  18994. datatypeClassname: {
  18995. type: "string"
  18996. },
  18997. preferredHandlerClassname: {
  18998. type: "string"
  18999. }
  19000. }
  19001. },
  19002. VisitattributetypeGetRef: {
  19003. properties: {
  19004. links: {
  19005. type: "array",
  19006. items: {
  19007. type: "object",
  19008. properties: {
  19009. rel: {
  19010. type: "string",
  19011. example: "self"
  19012. },
  19013. uri: {
  19014. type: "string",
  19015. format: "uri"
  19016. }
  19017. }
  19018. }
  19019. },
  19020. uuid: {
  19021. type: "string"
  19022. },
  19023. display: {
  19024. type: "string"
  19025. }
  19026. }
  19027. },
  19028. VisitattributetypeGetFull: {
  19029. properties: {
  19030. auditInfo: {
  19031. type: "string"
  19032. },
  19033. links: {
  19034. type: "array",
  19035. items: {
  19036. type: "object",
  19037. example: "self",
  19038. properties: {
  19039. rel: {
  19040. type: "string"
  19041. },
  19042. uri: {
  19043. type: "string",
  19044. format: "uri"
  19045. }
  19046. }
  19047. }
  19048. },
  19049. uuid: {
  19050. type: "string"
  19051. },
  19052. display: {
  19053. type: "string"
  19054. },
  19055. name: {
  19056. type: "string"
  19057. },
  19058. description: {
  19059. type: "string"
  19060. },
  19061. retired: {
  19062. type: "boolean"
  19063. },
  19064. minOccurs: {
  19065. type: "integer",
  19066. format: "int32"
  19067. },
  19068. maxOccurs: {
  19069. type: "integer",
  19070. format: "int32"
  19071. },
  19072. datatypeClassname: {
  19073. type: "string"
  19074. },
  19075. preferredHandlerClassname: {
  19076. type: "string"
  19077. },
  19078. datatypeConfig: {
  19079. type: "string"
  19080. },
  19081. handlerConfig: {
  19082. type: "string"
  19083. }
  19084. }
  19085. },
  19086. VisitattributetypeCreate: {
  19087. required: [
  19088. "datatypeClassname",
  19089. "name"
  19090. ],
  19091. properties: {
  19092. name: {
  19093. type: "string"
  19094. },
  19095. description: {
  19096. type: "string"
  19097. },
  19098. datatypeClassname: {
  19099. type: "string"
  19100. },
  19101. minOccurs: {
  19102. type: "integer",
  19103. format: "int32"
  19104. },
  19105. maxOccurs: {
  19106. type: "integer",
  19107. format: "int32"
  19108. },
  19109. datatypeConfig: {
  19110. type: "string"
  19111. },
  19112. preferredHandlerClassname: {
  19113. type: "string"
  19114. },
  19115. handlerConfig: {
  19116. type: "string"
  19117. }
  19118. }
  19119. },
  19120. VisitattributetypeCreateFull: {
  19121. required: [
  19122. "datatypeClassname",
  19123. "name"
  19124. ],
  19125. properties: {
  19126. name: {
  19127. type: "string"
  19128. },
  19129. description: {
  19130. type: "string"
  19131. },
  19132. datatypeClassname: {
  19133. type: "string"
  19134. },
  19135. minOccurs: {
  19136. type: "integer",
  19137. format: "int32"
  19138. },
  19139. maxOccurs: {
  19140. type: "integer",
  19141. format: "int32"
  19142. },
  19143. datatypeConfig: {
  19144. type: "string"
  19145. },
  19146. preferredHandlerClassname: {
  19147. type: "string"
  19148. },
  19149. handlerConfig: {
  19150. type: "string"
  19151. }
  19152. }
  19153. },
  19154. VisitattributetypeUpdate: {
  19155. required: [
  19156. "datatypeClassname",
  19157. "name"
  19158. ],
  19159. properties: {
  19160. name: {
  19161. type: "string"
  19162. },
  19163. description: {
  19164. type: "string"
  19165. },
  19166. datatypeClassname: {
  19167. type: "string"
  19168. },
  19169. minOccurs: {
  19170. type: "integer",
  19171. format: "int32"
  19172. },
  19173. maxOccurs: {
  19174. type: "integer",
  19175. format: "int32"
  19176. },
  19177. datatypeConfig: {
  19178. type: "string"
  19179. },
  19180. preferredHandlerClassname: {
  19181. type: "string"
  19182. },
  19183. handlerConfig: {
  19184. type: "string"
  19185. }
  19186. }
  19187. },
  19188. OrdergroupCreate: {
  19189. properties: {
  19190. patient: {
  19191. type: "string",
  19192. example: "uuid"
  19193. },
  19194. encounter: {
  19195. type: "string",
  19196. example: "uuid"
  19197. },
  19198. orders: {
  19199. type: "array",
  19200. items: {
  19201. $ref: "#/definitions/OrderCreate"
  19202. }
  19203. },
  19204. orderSet: {
  19205. type: "string",
  19206. example: "uuid"
  19207. }
  19208. }
  19209. },
  19210. OrdergroupCreateFull: {
  19211. properties: {
  19212. patient: {
  19213. type: "string",
  19214. example: "uuid"
  19215. },
  19216. encounter: {
  19217. type: "string",
  19218. example: "uuid"
  19219. },
  19220. orders: {
  19221. type: "array",
  19222. items: {
  19223. $ref: "#/definitions/OrderCreate"
  19224. }
  19225. },
  19226. orderSet: {
  19227. type: "string",
  19228. example: "uuid"
  19229. }
  19230. }
  19231. },
  19232. OrdergroupGet: {
  19233. properties: {
  19234. links: {
  19235. type: "array",
  19236. items: {
  19237. type: "object",
  19238. properties: {
  19239. rel: {
  19240. type: "string",
  19241. example: "self|full"
  19242. },
  19243. uri: {
  19244. type: "string",
  19245. format: "uri"
  19246. }
  19247. }
  19248. }
  19249. },
  19250. uuid: {
  19251. type: "string"
  19252. },
  19253. display: {
  19254. type: "string"
  19255. },
  19256. voided: {
  19257. type: "boolean"
  19258. },
  19259. patient: {
  19260. $ref: "#/definitions/PatientGetRef"
  19261. },
  19262. encounter: {
  19263. $ref: "#/definitions/EncounterGetRef"
  19264. },
  19265. orders: {
  19266. $ref: "#/definitions/OrderGetRef"
  19267. },
  19268. orderSet: {
  19269. $ref: "#/definitions/OrdersetGetRef"
  19270. }
  19271. }
  19272. },
  19273. OrdergroupGetRef: {
  19274. properties: {
  19275. links: {
  19276. type: "array",
  19277. items: {
  19278. type: "object",
  19279. properties: {
  19280. rel: {
  19281. type: "string",
  19282. example: "self"
  19283. },
  19284. uri: {
  19285. type: "string",
  19286. format: "uri"
  19287. }
  19288. }
  19289. }
  19290. },
  19291. display: {
  19292. type: "string"
  19293. },
  19294. uuid: {
  19295. type: "string"
  19296. }
  19297. }
  19298. },
  19299. OrdergroupGetFull: {
  19300. properties: {
  19301. auditInfo: {
  19302. type: "boolean"
  19303. },
  19304. links: {
  19305. type: "array",
  19306. items: {
  19307. type: "object",
  19308. example: "self",
  19309. properties: {
  19310. rel: {
  19311. type: "string"
  19312. },
  19313. uri: {
  19314. type: "string",
  19315. format: "uri"
  19316. }
  19317. }
  19318. }
  19319. },
  19320. uuid: {
  19321. type: "string"
  19322. },
  19323. display: {
  19324. type: "string"
  19325. },
  19326. voided: {
  19327. type: "boolean"
  19328. },
  19329. patient: {
  19330. $ref: "#/definitions/PatientGetRef"
  19331. },
  19332. encounter: {
  19333. $ref: "#/definitions/EncounterGetRef"
  19334. },
  19335. orders: {
  19336. type: "array",
  19337. items: {
  19338. $ref: "#/definitions/OrderGetRef"
  19339. }
  19340. },
  19341. orderSet: {
  19342. $ref: "#/definitions/OrdersetGetRef"
  19343. }
  19344. }
  19345. },
  19346. OrdergroupUpdate: {
  19347. properties: {
  19348. orders: {
  19349. type: "array",
  19350. items: {
  19351. $ref: "#/definitions/OrderCreate"
  19352. }
  19353. }
  19354. }
  19355. },
  19356. PersonattributetypeGet: {
  19357. properties: {
  19358. links: {
  19359. type: "array",
  19360. items: {
  19361. type: "object",
  19362. properties: {
  19363. rel: {
  19364. type: "string",
  19365. example: "self|full"
  19366. },
  19367. uri: {
  19368. type: "string",
  19369. format: "uri"
  19370. }
  19371. }
  19372. }
  19373. },
  19374. uuid: {
  19375. type: "string"
  19376. },
  19377. display: {
  19378. type: "string"
  19379. },
  19380. format: {
  19381. type: "string"
  19382. },
  19383. foreignKey: {
  19384. type: "integer",
  19385. format: "int32"
  19386. },
  19387. sortWeight: {
  19388. type: "number",
  19389. format: "double"
  19390. },
  19391. searchable: {
  19392. type: "boolean",
  19393. default: false
  19394. },
  19395. editPrivilege: {
  19396. $ref: "#/definitions/PrivilegeGetRef"
  19397. }
  19398. }
  19399. },
  19400. PersonattributetypeGetRef: {
  19401. properties: {
  19402. links: {
  19403. type: "array",
  19404. items: {
  19405. type: "object",
  19406. properties: {
  19407. rel: {
  19408. type: "string",
  19409. example: "self"
  19410. },
  19411. uri: {
  19412. type: "string",
  19413. format: "uri"
  19414. }
  19415. }
  19416. }
  19417. },
  19418. uuid: {
  19419. type: "string"
  19420. },
  19421. display: {
  19422. type: "string"
  19423. }
  19424. }
  19425. },
  19426. PersonattributetypeGetFull: {
  19427. properties: {
  19428. auditInfo: {
  19429. type: "string"
  19430. },
  19431. links: {
  19432. type: "array",
  19433. items: {
  19434. type: "object",
  19435. example: "self",
  19436. properties: {
  19437. rel: {
  19438. type: "string"
  19439. },
  19440. uri: {
  19441. type: "string",
  19442. format: "uri"
  19443. }
  19444. }
  19445. }
  19446. },
  19447. uuid: {
  19448. type: "string"
  19449. },
  19450. display: {
  19451. type: "string"
  19452. },
  19453. name: {
  19454. type: "string"
  19455. },
  19456. description: {
  19457. type: "string"
  19458. },
  19459. retired: {
  19460. type: "boolean"
  19461. },
  19462. format: {
  19463. type: "string"
  19464. },
  19465. foreignKey: {
  19466. type: "integer",
  19467. format: "int32"
  19468. },
  19469. sortWeight: {
  19470. type: "number",
  19471. format: "double"
  19472. },
  19473. searchable: {
  19474. type: "boolean",
  19475. default: false
  19476. },
  19477. editPrivilege: {
  19478. $ref: "#/definitions/PrivilegeGet"
  19479. },
  19480. concept: {
  19481. type: "string"
  19482. }
  19483. }
  19484. },
  19485. PersonattributetypeCreate: {
  19486. required: [
  19487. "description",
  19488. "name"
  19489. ],
  19490. properties: {
  19491. name: {
  19492. type: "string"
  19493. },
  19494. description: {
  19495. type: "string"
  19496. },
  19497. format: {
  19498. type: "string",
  19499. example: "java.lang.String"
  19500. },
  19501. foreignKey: {
  19502. type: "integer",
  19503. format: "int32"
  19504. },
  19505. sortWeight: {
  19506. type: "number",
  19507. format: "double"
  19508. },
  19509. searchable: {
  19510. type: "boolean",
  19511. default: false
  19512. },
  19513. editPrivilege: {
  19514. $ref: "#/definitions/PrivilegeCreate"
  19515. }
  19516. }
  19517. },
  19518. PersonattributetypeCreateFull: {
  19519. required: [
  19520. "description",
  19521. "name"
  19522. ],
  19523. properties: {
  19524. name: {
  19525. type: "string"
  19526. },
  19527. description: {
  19528. type: "string"
  19529. },
  19530. format: {
  19531. type: "string",
  19532. example: "java.lang.String"
  19533. },
  19534. foreignKey: {
  19535. type: "integer",
  19536. format: "int32"
  19537. },
  19538. sortWeight: {
  19539. type: "number",
  19540. format: "double"
  19541. },
  19542. searchable: {
  19543. type: "boolean",
  19544. default: false
  19545. },
  19546. editPrivilege: {
  19547. $ref: "#/definitions/PrivilegeCreate"
  19548. }
  19549. }
  19550. },
  19551. PersonattributetypeUpdate: {
  19552. required: [
  19553. "description",
  19554. "name"
  19555. ],
  19556. properties: {
  19557. name: {
  19558. type: "string"
  19559. },
  19560. description: {
  19561. type: "string"
  19562. },
  19563. format: {
  19564. type: "string",
  19565. example: "java.lang.String"
  19566. },
  19567. foreignKey: {
  19568. type: "integer",
  19569. format: "int32"
  19570. },
  19571. sortWeight: {
  19572. type: "number",
  19573. format: "double"
  19574. },
  19575. searchable: {
  19576. type: "boolean",
  19577. default: false
  19578. },
  19579. editPrivilege: {
  19580. $ref: "#/definitions/PrivilegeCreate"
  19581. }
  19582. }
  19583. },
  19584. ConceptmaptypeGet: {
  19585. properties: {
  19586. links: {
  19587. type: "array",
  19588. items: {
  19589. type: "object",
  19590. properties: {
  19591. rel: {
  19592. type: "string",
  19593. example: "self|full"
  19594. },
  19595. uri: {
  19596. type: "string",
  19597. format: "uri"
  19598. }
  19599. }
  19600. }
  19601. },
  19602. uuid: {
  19603. type: "string"
  19604. },
  19605. display: {
  19606. type: "string"
  19607. },
  19608. isHidden: {
  19609. type: "boolean"
  19610. }
  19611. }
  19612. },
  19613. ConceptmaptypeGetRef: {
  19614. properties: {
  19615. links: {
  19616. type: "array",
  19617. items: {
  19618. type: "object",
  19619. properties: {
  19620. rel: {
  19621. type: "string",
  19622. example: "self"
  19623. },
  19624. uri: {
  19625. type: "string",
  19626. format: "uri"
  19627. }
  19628. }
  19629. }
  19630. },
  19631. uuid: {
  19632. type: "string"
  19633. },
  19634. display: {
  19635. type: "string"
  19636. }
  19637. }
  19638. },
  19639. ConceptmaptypeGetFull: {
  19640. properties: {
  19641. auditInfo: {
  19642. type: "string"
  19643. },
  19644. links: {
  19645. type: "array",
  19646. items: {
  19647. type: "object",
  19648. example: "self",
  19649. properties: {
  19650. rel: {
  19651. type: "string"
  19652. },
  19653. uri: {
  19654. type: "string",
  19655. format: "uri"
  19656. }
  19657. }
  19658. }
  19659. },
  19660. uuid: {
  19661. type: "string"
  19662. },
  19663. display: {
  19664. type: "string"
  19665. },
  19666. name: {
  19667. type: "string"
  19668. },
  19669. description: {
  19670. type: "string"
  19671. },
  19672. retired: {
  19673. type: "boolean"
  19674. },
  19675. isHidden: {
  19676. type: "boolean"
  19677. }
  19678. }
  19679. },
  19680. ConceptmaptypeCreate: {
  19681. required: [
  19682. "name"
  19683. ],
  19684. properties: {
  19685. name: {
  19686. type: "string"
  19687. },
  19688. description: {
  19689. type: "string"
  19690. },
  19691. isHidden: {
  19692. type: "boolean"
  19693. }
  19694. }
  19695. },
  19696. ConceptmaptypeCreateFull: {
  19697. required: [
  19698. "name"
  19699. ],
  19700. properties: {
  19701. name: {
  19702. type: "string"
  19703. },
  19704. description: {
  19705. type: "string"
  19706. },
  19707. isHidden: {
  19708. type: "boolean"
  19709. }
  19710. }
  19711. },
  19712. ConceptmaptypeUpdate: {
  19713. required: [
  19714. "name"
  19715. ],
  19716. properties: {
  19717. name: {
  19718. type: "string"
  19719. },
  19720. description: {
  19721. type: "string"
  19722. },
  19723. isHidden: {
  19724. type: "boolean"
  19725. }
  19726. }
  19727. },
  19728. CohortGet: {
  19729. properties: {
  19730. links: {
  19731. type: "array",
  19732. items: {
  19733. type: "object",
  19734. properties: {
  19735. rel: {
  19736. type: "string",
  19737. example: "self|full"
  19738. },
  19739. uri: {
  19740. type: "string",
  19741. format: "uri"
  19742. }
  19743. }
  19744. }
  19745. },
  19746. uuid: {
  19747. type: "string"
  19748. },
  19749. display: {
  19750. type: "string"
  19751. },
  19752. name: {
  19753. type: "string"
  19754. },
  19755. description: {
  19756. type: "string"
  19757. },
  19758. voided: {
  19759. type: "string"
  19760. }
  19761. }
  19762. },
  19763. CohortGetRef: {
  19764. properties: {
  19765. links: {
  19766. type: "array",
  19767. items: {
  19768. type: "object",
  19769. properties: {
  19770. rel: {
  19771. type: "string",
  19772. example: "self"
  19773. },
  19774. uri: {
  19775. type: "string",
  19776. format: "uri"
  19777. }
  19778. }
  19779. }
  19780. }
  19781. }
  19782. },
  19783. CohortGetFull: {
  19784. properties: {
  19785. auditInfo: {
  19786. type: "string"
  19787. },
  19788. links: {
  19789. type: "array",
  19790. items: {
  19791. type: "object",
  19792. example: "self",
  19793. properties: {
  19794. rel: {
  19795. type: "string"
  19796. },
  19797. uri: {
  19798. type: "string",
  19799. format: "uri"
  19800. }
  19801. }
  19802. }
  19803. },
  19804. uuid: {
  19805. type: "string"
  19806. },
  19807. display: {
  19808. type: "string"
  19809. },
  19810. name: {
  19811. type: "string"
  19812. },
  19813. description: {
  19814. type: "string"
  19815. },
  19816. voided: {
  19817. type: "string"
  19818. }
  19819. }
  19820. },
  19821. CohortCreate: {
  19822. required: [
  19823. "description",
  19824. "memberIds",
  19825. "name"
  19826. ],
  19827. properties: {
  19828. name: {
  19829. type: "string"
  19830. },
  19831. description: {
  19832. type: "string"
  19833. },
  19834. memberIds: {
  19835. type: "array",
  19836. items: {
  19837. type: "integer",
  19838. format: "int32"
  19839. }
  19840. }
  19841. }
  19842. },
  19843. CohortCreateFull: {
  19844. required: [
  19845. "description",
  19846. "memberIds",
  19847. "name"
  19848. ],
  19849. properties: {
  19850. name: {
  19851. type: "string"
  19852. },
  19853. description: {
  19854. type: "string"
  19855. },
  19856. memberIds: {
  19857. type: "array",
  19858. items: {
  19859. type: "integer",
  19860. format: "int32"
  19861. }
  19862. }
  19863. }
  19864. },
  19865. CohortUpdate: {
  19866. required: [
  19867. "description",
  19868. "name"
  19869. ],
  19870. properties: {
  19871. name: {
  19872. type: "string"
  19873. },
  19874. description: {
  19875. type: "string"
  19876. }
  19877. }
  19878. },
  19879. ConceptclassGet: {
  19880. properties: {
  19881. links: {
  19882. type: "array",
  19883. items: {
  19884. type: "object",
  19885. properties: {
  19886. rel: {
  19887. type: "string",
  19888. example: "self|full"
  19889. },
  19890. uri: {
  19891. type: "string",
  19892. format: "uri"
  19893. }
  19894. }
  19895. }
  19896. },
  19897. uuid: {
  19898. type: "string"
  19899. },
  19900. display: {
  19901. type: "string"
  19902. }
  19903. }
  19904. },
  19905. ConceptclassGetRef: {
  19906. properties: {
  19907. links: {
  19908. type: "array",
  19909. items: {
  19910. type: "object",
  19911. properties: {
  19912. rel: {
  19913. type: "string",
  19914. example: "self"
  19915. },
  19916. uri: {
  19917. type: "string",
  19918. format: "uri"
  19919. }
  19920. }
  19921. }
  19922. },
  19923. uuid: {
  19924. type: "string"
  19925. },
  19926. display: {
  19927. type: "string"
  19928. }
  19929. }
  19930. },
  19931. ConceptclassGetFull: {
  19932. properties: {
  19933. auditInfo: {
  19934. type: "string"
  19935. },
  19936. links: {
  19937. type: "array",
  19938. items: {
  19939. type: "object",
  19940. example: "self",
  19941. properties: {
  19942. rel: {
  19943. type: "string"
  19944. },
  19945. uri: {
  19946. type: "string",
  19947. format: "uri"
  19948. }
  19949. }
  19950. }
  19951. },
  19952. uuid: {
  19953. type: "string"
  19954. },
  19955. display: {
  19956. type: "string"
  19957. },
  19958. name: {
  19959. type: "string"
  19960. },
  19961. description: {
  19962. type: "string"
  19963. },
  19964. retired: {
  19965. type: "boolean"
  19966. }
  19967. }
  19968. },
  19969. ConceptclassCreate: {
  19970. required: [
  19971. "name"
  19972. ],
  19973. properties: {
  19974. name: {
  19975. type: "string"
  19976. },
  19977. description: {
  19978. type: "string"
  19979. }
  19980. }
  19981. },
  19982. ConceptclassCreateFull: {
  19983. required: [
  19984. "name"
  19985. ],
  19986. properties: {
  19987. name: {
  19988. type: "string"
  19989. },
  19990. description: {
  19991. type: "string"
  19992. }
  19993. }
  19994. },
  19995. ConceptclassUpdate: {
  19996. required: [
  19997. "name"
  19998. ],
  19999. properties: {
  20000. name: {
  20001. type: "string"
  20002. },
  20003. description: {
  20004. type: "string"
  20005. }
  20006. }
  20007. },
  20008. ConceptattributetypeGet: {
  20009. properties: {
  20010. links: {
  20011. type: "array",
  20012. items: {
  20013. type: "object",
  20014. properties: {
  20015. rel: {
  20016. type: "string",
  20017. example: "self|full"
  20018. },
  20019. uri: {
  20020. type: "string",
  20021. format: "uri"
  20022. }
  20023. }
  20024. }
  20025. },
  20026. uuid: {
  20027. type: "string"
  20028. },
  20029. display: {
  20030. type: "string"
  20031. },
  20032. minOccurs: {
  20033. type: "integer",
  20034. format: "int32"
  20035. },
  20036. maxOccurs: {
  20037. type: "integer",
  20038. format: "int32"
  20039. },
  20040. datatypeClassname: {
  20041. type: "string"
  20042. },
  20043. preferredHandlerClassname: {
  20044. type: "string"
  20045. }
  20046. }
  20047. },
  20048. ConceptattributetypeGetRef: {
  20049. properties: {
  20050. links: {
  20051. type: "array",
  20052. items: {
  20053. type: "object",
  20054. properties: {
  20055. rel: {
  20056. type: "string",
  20057. example: "self"
  20058. },
  20059. uri: {
  20060. type: "string",
  20061. format: "uri"
  20062. }
  20063. }
  20064. }
  20065. },
  20066. uuid: {
  20067. type: "string"
  20068. },
  20069. display: {
  20070. type: "string"
  20071. }
  20072. }
  20073. },
  20074. ConceptattributetypeGetFull: {
  20075. properties: {
  20076. auditInfo: {
  20077. type: "string"
  20078. },
  20079. links: {
  20080. type: "array",
  20081. items: {
  20082. type: "object",
  20083. example: "self",
  20084. properties: {
  20085. rel: {
  20086. type: "string"
  20087. },
  20088. uri: {
  20089. type: "string",
  20090. format: "uri"
  20091. }
  20092. }
  20093. }
  20094. },
  20095. uuid: {
  20096. type: "string"
  20097. },
  20098. display: {
  20099. type: "string"
  20100. },
  20101. name: {
  20102. type: "string"
  20103. },
  20104. description: {
  20105. type: "string"
  20106. },
  20107. retired: {
  20108. type: "boolean"
  20109. },
  20110. minOccurs: {
  20111. type: "integer",
  20112. format: "int32"
  20113. },
  20114. maxOccurs: {
  20115. type: "integer",
  20116. format: "int32"
  20117. },
  20118. datatypeClassname: {
  20119. type: "string"
  20120. },
  20121. preferredHandlerClassname: {
  20122. type: "string"
  20123. },
  20124. datatypeConfig: {
  20125. type: "string"
  20126. },
  20127. handlerConfig: {
  20128. type: "string"
  20129. }
  20130. }
  20131. },
  20132. ConceptattributetypeCreate: {
  20133. required: [
  20134. "datatypeClassname",
  20135. "name"
  20136. ],
  20137. properties: {
  20138. name: {
  20139. type: "string"
  20140. },
  20141. description: {
  20142. type: "string"
  20143. },
  20144. datatypeClassname: {
  20145. type: "string"
  20146. },
  20147. minOccurs: {
  20148. type: "integer",
  20149. format: "int32"
  20150. },
  20151. maxOccurs: {
  20152. type: "integer",
  20153. format: "int32"
  20154. },
  20155. datatypeConfig: {
  20156. type: "string"
  20157. },
  20158. preferredHandlerClassname: {
  20159. type: "string"
  20160. },
  20161. handlerConfig: {
  20162. type: "string"
  20163. }
  20164. }
  20165. },
  20166. ConceptattributetypeCreateFull: {
  20167. required: [
  20168. "datatypeClassname",
  20169. "name"
  20170. ],
  20171. properties: {
  20172. name: {
  20173. type: "string"
  20174. },
  20175. description: {
  20176. type: "string"
  20177. },
  20178. datatypeClassname: {
  20179. type: "string"
  20180. },
  20181. minOccurs: {
  20182. type: "integer",
  20183. format: "int32"
  20184. },
  20185. maxOccurs: {
  20186. type: "integer",
  20187. format: "int32"
  20188. },
  20189. datatypeConfig: {
  20190. type: "string"
  20191. },
  20192. preferredHandlerClassname: {
  20193. type: "string"
  20194. },
  20195. handlerConfig: {
  20196. type: "string"
  20197. }
  20198. }
  20199. },
  20200. ConceptattributetypeUpdate: {
  20201. required: [
  20202. "datatypeClassname",
  20203. "name"
  20204. ],
  20205. properties: {
  20206. name: {
  20207. type: "string"
  20208. },
  20209. description: {
  20210. type: "string"
  20211. },
  20212. datatypeClassname: {
  20213. type: "string"
  20214. },
  20215. minOccurs: {
  20216. type: "integer",
  20217. format: "int32"
  20218. },
  20219. maxOccurs: {
  20220. type: "integer",
  20221. format: "int32"
  20222. },
  20223. datatypeConfig: {
  20224. type: "string"
  20225. },
  20226. preferredHandlerClassname: {
  20227. type: "string"
  20228. },
  20229. handlerConfig: {
  20230. type: "string"
  20231. }
  20232. }
  20233. },
  20234. PersonCreate: {
  20235. required: [
  20236. "gender",
  20237. "names"
  20238. ],
  20239. properties: {
  20240. names: {
  20241. type: "array",
  20242. items: {
  20243. $ref: "#/definitions/PersonNameCreate"
  20244. }
  20245. },
  20246. gender: {
  20247. type: "string",
  20248. enum: [
  20249. "M",
  20250. "F"
  20251. ]
  20252. },
  20253. age: {
  20254. type: "integer",
  20255. format: "int32"
  20256. },
  20257. birthdate: {
  20258. type: "string",
  20259. format: "date"
  20260. },
  20261. birthdateEstimated: {
  20262. type: "boolean",
  20263. default: false
  20264. },
  20265. dead: {
  20266. type: "boolean",
  20267. default: false
  20268. },
  20269. deathDate: {
  20270. type: "string",
  20271. format: "date"
  20272. },
  20273. causeOfDeath: {
  20274. type: "string"
  20275. },
  20276. addresses: {
  20277. type: "array",
  20278. items: {
  20279. $ref: "#/definitions/PersonAddressCreate"
  20280. }
  20281. },
  20282. attributes: {
  20283. type: "array",
  20284. items: {
  20285. $ref: "#/definitions/PersonAttributeCreate"
  20286. }
  20287. },
  20288. deathdateEstimated: {
  20289. type: "boolean",
  20290. default: false
  20291. }
  20292. }
  20293. },
  20294. PersonCreateFull: {
  20295. required: [
  20296. "gender",
  20297. "names"
  20298. ],
  20299. properties: {
  20300. names: {
  20301. type: "array",
  20302. items: {
  20303. $ref: "#/definitions/PersonNameCreate"
  20304. }
  20305. },
  20306. gender: {
  20307. type: "string",
  20308. enum: [
  20309. "M",
  20310. "F"
  20311. ]
  20312. },
  20313. age: {
  20314. type: "integer",
  20315. format: "int32"
  20316. },
  20317. birthdate: {
  20318. type: "string",
  20319. format: "date"
  20320. },
  20321. birthdateEstimated: {
  20322. type: "boolean",
  20323. default: false
  20324. },
  20325. dead: {
  20326. type: "boolean",
  20327. default: false
  20328. },
  20329. deathDate: {
  20330. type: "string",
  20331. format: "date"
  20332. },
  20333. causeOfDeath: {
  20334. type: "string"
  20335. },
  20336. addresses: {
  20337. type: "array",
  20338. items: {
  20339. $ref: "#/definitions/PersonAddressCreate"
  20340. }
  20341. },
  20342. attributes: {
  20343. type: "array",
  20344. items: {
  20345. $ref: "#/definitions/PersonAttributeCreate"
  20346. }
  20347. },
  20348. deathdateEstimated: {
  20349. type: "boolean",
  20350. default: false
  20351. }
  20352. }
  20353. },
  20354. PersonGet: {
  20355. properties: {
  20356. links: {
  20357. type: "array",
  20358. items: {
  20359. type: "object",
  20360. properties: {
  20361. rel: {
  20362. type: "string",
  20363. example: "self|full"
  20364. },
  20365. uri: {
  20366. type: "string",
  20367. format: "uri"
  20368. }
  20369. }
  20370. }
  20371. },
  20372. uuid: {
  20373. type: "string"
  20374. },
  20375. display: {
  20376. type: "string"
  20377. },
  20378. gender: {
  20379. type: "string",
  20380. enum: [
  20381. "M",
  20382. "F"
  20383. ]
  20384. },
  20385. age: {
  20386. type: "integer",
  20387. format: "int32"
  20388. },
  20389. birthdate: {
  20390. type: "string",
  20391. format: "date-time"
  20392. },
  20393. birthdateEstimated: {
  20394. type: "boolean"
  20395. },
  20396. dead: {
  20397. type: "boolean"
  20398. },
  20399. deathDate: {
  20400. type: "string",
  20401. format: "date"
  20402. },
  20403. causeOfDeath: {
  20404. type: "string"
  20405. },
  20406. attributes: {
  20407. type: "array",
  20408. items: {
  20409. $ref: "#/definitions/PersonAttributeGetRef"
  20410. }
  20411. },
  20412. voided: {
  20413. type: "boolean"
  20414. },
  20415. preferredName: {
  20416. $ref: "#/definitions/PersonNameGetRef"
  20417. },
  20418. preferredAddress: {
  20419. $ref: "#/definitions/PersonAddressGetRef"
  20420. },
  20421. deathdateEstimated: {
  20422. type: "boolean",
  20423. default: false
  20424. }
  20425. }
  20426. },
  20427. PersonGetRef: {
  20428. properties: {
  20429. links: {
  20430. type: "array",
  20431. items: {
  20432. type: "object",
  20433. properties: {
  20434. rel: {
  20435. type: "string",
  20436. example: "self"
  20437. },
  20438. uri: {
  20439. type: "string",
  20440. format: "uri"
  20441. }
  20442. }
  20443. }
  20444. }
  20445. }
  20446. },
  20447. PersonGetFull: {
  20448. properties: {
  20449. auditInfo: {
  20450. type: "string"
  20451. },
  20452. links: {
  20453. type: "array",
  20454. items: {
  20455. type: "object",
  20456. example: "self",
  20457. properties: {
  20458. rel: {
  20459. type: "string"
  20460. },
  20461. uri: {
  20462. type: "string",
  20463. format: "uri"
  20464. }
  20465. }
  20466. }
  20467. },
  20468. uuid: {
  20469. type: "string"
  20470. },
  20471. display: {
  20472. type: "string"
  20473. },
  20474. gender: {
  20475. type: "string",
  20476. enum: [
  20477. "M",
  20478. "F"
  20479. ]
  20480. },
  20481. age: {
  20482. type: "integer",
  20483. format: "int32"
  20484. },
  20485. birthdate: {
  20486. type: "string",
  20487. format: "date-time"
  20488. },
  20489. birthdateEstimated: {
  20490. type: "boolean"
  20491. },
  20492. dead: {
  20493. type: "boolean"
  20494. },
  20495. deathDate: {
  20496. type: "string",
  20497. format: "date"
  20498. },
  20499. causeOfDeath: {
  20500. type: "string"
  20501. },
  20502. attributes: {
  20503. type: "array",
  20504. items: {
  20505. $ref: "#/definitions/PersonAttributeGetRef"
  20506. }
  20507. },
  20508. voided: {
  20509. type: "boolean"
  20510. },
  20511. preferredName: {
  20512. $ref: "#/definitions/PersonNameGet"
  20513. },
  20514. preferredAddress: {
  20515. $ref: "#/definitions/PersonAddressGet"
  20516. },
  20517. names: {
  20518. type: "array",
  20519. items: {
  20520. $ref: "#/definitions/PersonNameGet"
  20521. }
  20522. },
  20523. addresses: {
  20524. type: "array",
  20525. items: {
  20526. $ref: "#/definitions/PersonAddressGet"
  20527. }
  20528. },
  20529. deathdateEstimated: {
  20530. type: "boolean",
  20531. default: false
  20532. }
  20533. }
  20534. },
  20535. PersonUpdate: {
  20536. required: [
  20537. "causeOfDeath",
  20538. "dead"
  20539. ],
  20540. properties: {
  20541. dead: {
  20542. type: "boolean"
  20543. },
  20544. causeOfDeath: {
  20545. type: "string"
  20546. },
  20547. deathDate: {
  20548. type: "string",
  20549. format: "date"
  20550. },
  20551. age: {
  20552. type: "integer",
  20553. format: "int32"
  20554. },
  20555. gender: {
  20556. type: "string",
  20557. enum: [
  20558. "M",
  20559. "F"
  20560. ]
  20561. },
  20562. birthdate: {
  20563. type: "string",
  20564. format: "date"
  20565. },
  20566. birthdateEstimated: {
  20567. type: "boolean",
  20568. default: false
  20569. },
  20570. preferredName: {
  20571. type: "string",
  20572. example: "uuid"
  20573. },
  20574. preferredAddress: {
  20575. type: "string",
  20576. example: "uuid"
  20577. },
  20578. attributes: {
  20579. type: "array",
  20580. items: {
  20581. $ref: "#/definitions/PersonAttributeCreate"
  20582. }
  20583. },
  20584. deathdateEstimated: {
  20585. type: "boolean",
  20586. default: false
  20587. }
  20588. }
  20589. },
  20590. TaskdefinitionGet: {
  20591. properties: {
  20592. links: {
  20593. type: "array",
  20594. items: {
  20595. type: "object",
  20596. properties: {
  20597. rel: {
  20598. type: "string",
  20599. example: "self|full"
  20600. },
  20601. uri: {
  20602. type: "string",
  20603. format: "uri"
  20604. }
  20605. }
  20606. }
  20607. },
  20608. uuid: {
  20609. type: "string"
  20610. },
  20611. display: {
  20612. type: "string"
  20613. }
  20614. }
  20615. },
  20616. TaskdefinitionGetRef: {
  20617. properties: {
  20618. links: {
  20619. type: "array",
  20620. items: {
  20621. type: "object",
  20622. properties: {
  20623. rel: {
  20624. type: "string",
  20625. example: "self"
  20626. },
  20627. uri: {
  20628. type: "string",
  20629. format: "uri"
  20630. }
  20631. }
  20632. }
  20633. },
  20634. uuid: {
  20635. type: "string"
  20636. },
  20637. display: {
  20638. type: "string"
  20639. }
  20640. }
  20641. },
  20642. TaskdefinitionGetFull: {
  20643. properties: {
  20644. auditInfo: {
  20645. type: "string"
  20646. },
  20647. links: {
  20648. type: "array",
  20649. items: {
  20650. type: "object",
  20651. example: "self",
  20652. properties: {
  20653. rel: {
  20654. type: "string"
  20655. },
  20656. uri: {
  20657. type: "string",
  20658. format: "uri"
  20659. }
  20660. }
  20661. }
  20662. },
  20663. uuid: {
  20664. type: "string"
  20665. },
  20666. display: {
  20667. type: "string"
  20668. },
  20669. name: {
  20670. type: "string"
  20671. },
  20672. description: {
  20673. type: "string"
  20674. },
  20675. retired: {
  20676. type: "boolean"
  20677. }
  20678. }
  20679. },
  20680. TaskdefinitionCreate: {
  20681. required: [
  20682. "name"
  20683. ],
  20684. properties: {
  20685. name: {
  20686. type: "string"
  20687. },
  20688. description: {
  20689. type: "string"
  20690. }
  20691. }
  20692. },
  20693. TaskdefinitionCreateFull: {
  20694. required: [
  20695. "name"
  20696. ],
  20697. properties: {
  20698. name: {
  20699. type: "string"
  20700. },
  20701. description: {
  20702. type: "string"
  20703. }
  20704. }
  20705. },
  20706. TaskdefinitionUpdate: {
  20707. required: [
  20708. "name"
  20709. ],
  20710. properties: {
  20711. name: {
  20712. type: "string"
  20713. },
  20714. description: {
  20715. type: "string"
  20716. }
  20717. }
  20718. },
  20719. RoleGet: {
  20720. properties: {
  20721. links: {
  20722. type: "array",
  20723. items: {
  20724. type: "object",
  20725. properties: {
  20726. rel: {
  20727. type: "string",
  20728. example: "self|full"
  20729. },
  20730. uri: {
  20731. type: "string",
  20732. format: "uri"
  20733. }
  20734. }
  20735. }
  20736. },
  20737. uuid: {
  20738. type: "string"
  20739. },
  20740. display: {
  20741. type: "string"
  20742. },
  20743. privileges: {
  20744. type: "array",
  20745. items: {
  20746. $ref: "#/definitions/PrivilegeGetRef"
  20747. }
  20748. },
  20749. inheritedRoles: {
  20750. type: "array",
  20751. items: {
  20752. $ref: "#/definitions/RoleGetRef"
  20753. }
  20754. }
  20755. }
  20756. },
  20757. RoleGetRef: {
  20758. properties: {
  20759. links: {
  20760. type: "array",
  20761. items: {
  20762. type: "object",
  20763. properties: {
  20764. rel: {
  20765. type: "string",
  20766. example: "self"
  20767. },
  20768. uri: {
  20769. type: "string",
  20770. format: "uri"
  20771. }
  20772. }
  20773. }
  20774. },
  20775. uuid: {
  20776. type: "string"
  20777. },
  20778. display: {
  20779. type: "string"
  20780. }
  20781. }
  20782. },
  20783. RoleGetFull: {
  20784. properties: {
  20785. auditInfo: {
  20786. type: "string"
  20787. },
  20788. links: {
  20789. type: "array",
  20790. items: {
  20791. type: "object",
  20792. example: "self",
  20793. properties: {
  20794. rel: {
  20795. type: "string"
  20796. },
  20797. uri: {
  20798. type: "string",
  20799. format: "uri"
  20800. }
  20801. }
  20802. }
  20803. },
  20804. uuid: {
  20805. type: "string"
  20806. },
  20807. display: {
  20808. type: "string"
  20809. },
  20810. name: {
  20811. type: "string"
  20812. },
  20813. description: {
  20814. type: "string"
  20815. },
  20816. retired: {
  20817. type: "boolean"
  20818. },
  20819. privileges: {
  20820. type: "array",
  20821. items: {
  20822. $ref: "#/definitions/PrivilegeGet"
  20823. }
  20824. },
  20825. inheritedRoles: {
  20826. type: "array",
  20827. items: {
  20828. $ref: "#/definitions/RoleGet"
  20829. }
  20830. },
  20831. allInheritedRoles: {
  20832. type: "array",
  20833. items: {
  20834. $ref: "#/definitions/RoleGet"
  20835. }
  20836. }
  20837. }
  20838. },
  20839. RoleCreate: {
  20840. required: [
  20841. "name"
  20842. ],
  20843. properties: {
  20844. name: {
  20845. type: "string"
  20846. },
  20847. description: {
  20848. type: "string"
  20849. },
  20850. privileges: {
  20851. type: "array",
  20852. items: {
  20853. $ref: "#/definitions/PrivilegeCreate"
  20854. }
  20855. },
  20856. inheritedRoles: {
  20857. type: "array",
  20858. items: {
  20859. $ref: "#/definitions/RoleCreate"
  20860. }
  20861. }
  20862. }
  20863. },
  20864. RoleCreateFull: {
  20865. required: [
  20866. "name"
  20867. ],
  20868. properties: {
  20869. name: {
  20870. type: "string"
  20871. },
  20872. description: {
  20873. type: "string"
  20874. },
  20875. privileges: {
  20876. type: "array",
  20877. items: {
  20878. $ref: "#/definitions/PrivilegeCreate"
  20879. }
  20880. },
  20881. inheritedRoles: {
  20882. type: "array",
  20883. items: {
  20884. $ref: "#/definitions/RoleCreate"
  20885. }
  20886. }
  20887. }
  20888. },
  20889. RoleUpdate: {
  20890. properties: {
  20891. description: {
  20892. type: "string"
  20893. },
  20894. privileges: {
  20895. type: "array",
  20896. items: {
  20897. $ref: "#/definitions/PrivilegeCreate"
  20898. }
  20899. },
  20900. inheritedRoles: {
  20901. type: "array",
  20902. items: {
  20903. $ref: "#/definitions/RoleCreate"
  20904. }
  20905. }
  20906. }
  20907. },
  20908. ObsCreate: {
  20909. required: [
  20910. "concept",
  20911. "obsDatetime",
  20912. "person"
  20913. ],
  20914. properties: {
  20915. person: {
  20916. type: "string",
  20917. example: "uuid"
  20918. },
  20919. obsDatetime: {
  20920. type: "string",
  20921. format: "date-time"
  20922. },
  20923. concept: {
  20924. type: "string",
  20925. example: "uuid"
  20926. },
  20927. location: {
  20928. type: "string"
  20929. },
  20930. order: {
  20931. type: "string"
  20932. },
  20933. encounter: {
  20934. type: "string"
  20935. },
  20936. accessionNumber: {
  20937. type: "string"
  20938. },
  20939. groupMembers: {
  20940. type: "array",
  20941. items: {
  20942. type: "string"
  20943. }
  20944. },
  20945. valueCodedName: {
  20946. type: "string"
  20947. },
  20948. comment: {
  20949. type: "string"
  20950. },
  20951. voided: {
  20952. type: "boolean"
  20953. },
  20954. value: {
  20955. type: "string"
  20956. },
  20957. valueModifier: {
  20958. type: "string"
  20959. },
  20960. formFieldPath: {
  20961. type: "string"
  20962. },
  20963. formFieldNamespace: {
  20964. type: "string"
  20965. },
  20966. status: {
  20967. type: "string",
  20968. enum: [
  20969. "PRELIMINARY",
  20970. "FINAL",
  20971. "AMENDED"
  20972. ]
  20973. },
  20974. interpretation: {
  20975. type: "string",
  20976. enum: [
  20977. "NORMAL",
  20978. "ABNORMAL",
  20979. "CRITICALLY_ABNORMAL",
  20980. "NEGATIVE",
  20981. "POSITIVE",
  20982. "CRITICALLY_LOW",
  20983. "LOW",
  20984. "HIGH",
  20985. "CRITICALLY_HIGH",
  20986. "VERY_SUSCEPTIBLE",
  20987. "SUSCEPTIBLE",
  20988. "INTERMEDIATE",
  20989. "RESISTANT",
  20990. "SIGNIFICANT_CHANGE_DOWN",
  20991. "SIGNIFICANT_CHANGE_UP",
  20992. "OFF_SCALE_LOW",
  20993. "OFF_SCALE_HIGH"
  20994. ]
  20995. }
  20996. }
  20997. },
  20998. ObsCreateFull: {
  20999. required: [
  21000. "concept",
  21001. "obsDatetime",
  21002. "person"
  21003. ],
  21004. properties: {
  21005. person: {
  21006. type: "string",
  21007. example: "uuid"
  21008. },
  21009. obsDatetime: {
  21010. type: "string",
  21011. format: "date-time"
  21012. },
  21013. concept: {
  21014. type: "string",
  21015. example: "uuid"
  21016. },
  21017. location: {
  21018. type: "string"
  21019. },
  21020. order: {
  21021. type: "string"
  21022. },
  21023. encounter: {
  21024. type: "string"
  21025. },
  21026. accessionNumber: {
  21027. type: "string"
  21028. },
  21029. groupMembers: {
  21030. type: "array",
  21031. items: {
  21032. type: "string"
  21033. }
  21034. },
  21035. valueCodedName: {
  21036. type: "string"
  21037. },
  21038. comment: {
  21039. type: "string"
  21040. },
  21041. voided: {
  21042. type: "boolean"
  21043. },
  21044. value: {
  21045. type: "string"
  21046. },
  21047. valueModifier: {
  21048. type: "string"
  21049. },
  21050. formFieldPath: {
  21051. type: "string"
  21052. },
  21053. formFieldNamespace: {
  21054. type: "string"
  21055. },
  21056. status: {
  21057. type: "string",
  21058. enum: [
  21059. "PRELIMINARY",
  21060. "FINAL",
  21061. "AMENDED"
  21062. ]
  21063. },
  21064. interpretation: {
  21065. type: "string",
  21066. enum: [
  21067. "NORMAL",
  21068. "ABNORMAL",
  21069. "CRITICALLY_ABNORMAL",
  21070. "NEGATIVE",
  21071. "POSITIVE",
  21072. "CRITICALLY_LOW",
  21073. "LOW",
  21074. "HIGH",
  21075. "CRITICALLY_HIGH",
  21076. "VERY_SUSCEPTIBLE",
  21077. "SUSCEPTIBLE",
  21078. "INTERMEDIATE",
  21079. "RESISTANT",
  21080. "SIGNIFICANT_CHANGE_DOWN",
  21081. "SIGNIFICANT_CHANGE_UP",
  21082. "OFF_SCALE_LOW",
  21083. "OFF_SCALE_HIGH"
  21084. ]
  21085. }
  21086. }
  21087. },
  21088. ObsGet: {
  21089. properties: {
  21090. links: {
  21091. type: "array",
  21092. items: {
  21093. type: "object",
  21094. properties: {
  21095. rel: {
  21096. type: "string",
  21097. example: "self|full"
  21098. },
  21099. uri: {
  21100. type: "string",
  21101. format: "uri"
  21102. }
  21103. }
  21104. }
  21105. },
  21106. uuid: {
  21107. type: "string"
  21108. },
  21109. display: {
  21110. type: "string"
  21111. },
  21112. obsDatetime: {
  21113. type: "string",
  21114. format: "date"
  21115. },
  21116. accessionNumber: {
  21117. type: "string"
  21118. },
  21119. comment: {
  21120. type: "string"
  21121. },
  21122. voided: {
  21123. type: "boolean"
  21124. },
  21125. value: {
  21126. type: "string"
  21127. },
  21128. valueModifier: {
  21129. type: "string"
  21130. },
  21131. concept: {
  21132. $ref: "#/definitions/ConceptGetRef"
  21133. },
  21134. person: {
  21135. $ref: "#/definitions/PersonGetRef"
  21136. },
  21137. obsGroup: {
  21138. $ref: "#/definitions/ObsGetRef"
  21139. },
  21140. groupMembers: {
  21141. type: "array",
  21142. items: {
  21143. $ref: "#/definitions/ObsGetRef"
  21144. }
  21145. },
  21146. valueCodedName: {
  21147. $ref: "#/definitions/ConceptNameGetRef"
  21148. },
  21149. location: {
  21150. $ref: "#/definitions/LocationGetRef"
  21151. },
  21152. order: {
  21153. $ref: "#/definitions/OrderGetRef"
  21154. },
  21155. encounter: {
  21156. $ref: "#/definitions/EncounterGetRef"
  21157. },
  21158. formFieldPath: {
  21159. type: "string"
  21160. },
  21161. formFieldNamespace: {
  21162. type: "string"
  21163. },
  21164. status: {
  21165. type: "string",
  21166. enum: [
  21167. "PRELIMINARY",
  21168. "FINAL",
  21169. "AMENDED"
  21170. ]
  21171. },
  21172. interpretation: {
  21173. type: "string",
  21174. enum: [
  21175. "NORMAL",
  21176. "ABNORMAL",
  21177. "CRITICALLY_ABNORMAL",
  21178. "NEGATIVE",
  21179. "POSITIVE",
  21180. "CRITICALLY_LOW",
  21181. "LOW",
  21182. "HIGH",
  21183. "CRITICALLY_HIGH",
  21184. "VERY_SUSCEPTIBLE",
  21185. "SUSCEPTIBLE",
  21186. "INTERMEDIATE",
  21187. "RESISTANT",
  21188. "SIGNIFICANT_CHANGE_DOWN",
  21189. "SIGNIFICANT_CHANGE_UP",
  21190. "OFF_SCALE_LOW",
  21191. "OFF_SCALE_HIGH"
  21192. ]
  21193. }
  21194. }
  21195. },
  21196. ObsGetRef: {
  21197. properties: {
  21198. links: {
  21199. type: "array",
  21200. items: {
  21201. type: "object",
  21202. properties: {
  21203. rel: {
  21204. type: "string",
  21205. example: "self"
  21206. },
  21207. uri: {
  21208. type: "string",
  21209. format: "uri"
  21210. }
  21211. }
  21212. }
  21213. },
  21214. formFieldPath: {
  21215. type: "string"
  21216. },
  21217. formFieldNamespace: {
  21218. type: "string"
  21219. },
  21220. status: {
  21221. type: "string",
  21222. enum: [
  21223. "PRELIMINARY",
  21224. "FINAL",
  21225. "AMENDED"
  21226. ]
  21227. },
  21228. interpretation: {
  21229. type: "string",
  21230. enum: [
  21231. "NORMAL",
  21232. "ABNORMAL",
  21233. "CRITICALLY_ABNORMAL",
  21234. "NEGATIVE",
  21235. "POSITIVE",
  21236. "CRITICALLY_LOW",
  21237. "LOW",
  21238. "HIGH",
  21239. "CRITICALLY_HIGH",
  21240. "VERY_SUSCEPTIBLE",
  21241. "SUSCEPTIBLE",
  21242. "INTERMEDIATE",
  21243. "RESISTANT",
  21244. "SIGNIFICANT_CHANGE_DOWN",
  21245. "SIGNIFICANT_CHANGE_UP",
  21246. "OFF_SCALE_LOW",
  21247. "OFF_SCALE_HIGH"
  21248. ]
  21249. }
  21250. }
  21251. },
  21252. ObsGetFull: {
  21253. properties: {
  21254. auditInfo: {
  21255. type: "string"
  21256. },
  21257. links: {
  21258. type: "array",
  21259. items: {
  21260. type: "object",
  21261. example: "self",
  21262. properties: {
  21263. rel: {
  21264. type: "string"
  21265. },
  21266. uri: {
  21267. type: "string",
  21268. format: "uri"
  21269. }
  21270. }
  21271. }
  21272. },
  21273. uuid: {
  21274. type: "string"
  21275. },
  21276. display: {
  21277. type: "string"
  21278. },
  21279. obsDatetime: {
  21280. type: "string",
  21281. format: "date"
  21282. },
  21283. accessionNumber: {
  21284. type: "string"
  21285. },
  21286. comment: {
  21287. type: "string"
  21288. },
  21289. voided: {
  21290. type: "boolean"
  21291. },
  21292. value: {
  21293. type: "string"
  21294. },
  21295. valueModifier: {
  21296. type: "string"
  21297. },
  21298. concept: {
  21299. $ref: "#/definitions/ConceptGet"
  21300. },
  21301. person: {
  21302. $ref: "#/definitions/PersonGet"
  21303. },
  21304. obsGroup: {
  21305. $ref: "#/definitions/ObsGet"
  21306. },
  21307. groupMembers: {
  21308. type: "array",
  21309. items: {
  21310. $ref: "#/definitions/ObsGet"
  21311. }
  21312. },
  21313. valueCodedName: {
  21314. $ref: "#/definitions/ConceptNameGet"
  21315. },
  21316. location: {
  21317. $ref: "#/definitions/LocationGet"
  21318. },
  21319. order: {
  21320. $ref: "#/definitions/OrderGet"
  21321. },
  21322. encounter: {
  21323. $ref: "#/definitions/EncounterGet"
  21324. },
  21325. formFieldPath: {
  21326. type: "string"
  21327. },
  21328. formFieldNamespace: {
  21329. type: "string"
  21330. },
  21331. status: {
  21332. type: "string",
  21333. enum: [
  21334. "PRELIMINARY",
  21335. "FINAL",
  21336. "AMENDED"
  21337. ]
  21338. },
  21339. interpretation: {
  21340. type: "string",
  21341. enum: [
  21342. "NORMAL",
  21343. "ABNORMAL",
  21344. "CRITICALLY_ABNORMAL",
  21345. "NEGATIVE",
  21346. "POSITIVE",
  21347. "CRITICALLY_LOW",
  21348. "LOW",
  21349. "HIGH",
  21350. "CRITICALLY_HIGH",
  21351. "VERY_SUSCEPTIBLE",
  21352. "SUSCEPTIBLE",
  21353. "INTERMEDIATE",
  21354. "RESISTANT",
  21355. "SIGNIFICANT_CHANGE_DOWN",
  21356. "SIGNIFICANT_CHANGE_UP",
  21357. "OFF_SCALE_LOW",
  21358. "OFF_SCALE_HIGH"
  21359. ]
  21360. }
  21361. }
  21362. },
  21363. ObsUpdate: { },
  21364. ProgramattributetypeGet: {
  21365. properties: {
  21366. links: {
  21367. type: "array",
  21368. items: {
  21369. type: "object",
  21370. properties: {
  21371. rel: {
  21372. type: "string",
  21373. example: "self|full"
  21374. },
  21375. uri: {
  21376. type: "string",
  21377. format: "uri"
  21378. }
  21379. }
  21380. }
  21381. },
  21382. uuid: {
  21383. type: "string"
  21384. },
  21385. display: {
  21386. type: "string"
  21387. },
  21388. minOccurs: {
  21389. type: "integer",
  21390. format: "int32"
  21391. },
  21392. maxOccurs: {
  21393. type: "integer",
  21394. format: "int32"
  21395. },
  21396. datatypeClassname: {
  21397. type: "string"
  21398. },
  21399. preferredHandlerClassname: {
  21400. type: "string"
  21401. }
  21402. }
  21403. },
  21404. ProgramattributetypeGetRef: {
  21405. properties: {
  21406. links: {
  21407. type: "array",
  21408. items: {
  21409. type: "object",
  21410. properties: {
  21411. rel: {
  21412. type: "string",
  21413. example: "self"
  21414. },
  21415. uri: {
  21416. type: "string",
  21417. format: "uri"
  21418. }
  21419. }
  21420. }
  21421. },
  21422. uuid: {
  21423. type: "string"
  21424. },
  21425. display: {
  21426. type: "string"
  21427. }
  21428. }
  21429. },
  21430. ProgramattributetypeGetFull: {
  21431. properties: {
  21432. auditInfo: {
  21433. type: "string"
  21434. },
  21435. links: {
  21436. type: "array",
  21437. items: {
  21438. type: "object",
  21439. example: "self",
  21440. properties: {
  21441. rel: {
  21442. type: "string"
  21443. },
  21444. uri: {
  21445. type: "string",
  21446. format: "uri"
  21447. }
  21448. }
  21449. }
  21450. },
  21451. uuid: {
  21452. type: "string"
  21453. },
  21454. display: {
  21455. type: "string"
  21456. },
  21457. name: {
  21458. type: "string"
  21459. },
  21460. description: {
  21461. type: "string"
  21462. },
  21463. retired: {
  21464. type: "boolean"
  21465. },
  21466. minOccurs: {
  21467. type: "integer",
  21468. format: "int32"
  21469. },
  21470. maxOccurs: {
  21471. type: "integer",
  21472. format: "int32"
  21473. },
  21474. datatypeClassname: {
  21475. type: "string"
  21476. },
  21477. preferredHandlerClassname: {
  21478. type: "string"
  21479. },
  21480. datatypeConfig: {
  21481. type: "string"
  21482. },
  21483. handlerConfig: {
  21484. type: "string"
  21485. }
  21486. }
  21487. },
  21488. ProgramattributetypeCreate: {
  21489. required: [
  21490. "datatypeClassname",
  21491. "name"
  21492. ],
  21493. properties: {
  21494. name: {
  21495. type: "string"
  21496. },
  21497. description: {
  21498. type: "string"
  21499. },
  21500. datatypeClassname: {
  21501. type: "string"
  21502. },
  21503. minOccurs: {
  21504. type: "integer",
  21505. format: "int32"
  21506. },
  21507. maxOccurs: {
  21508. type: "integer",
  21509. format: "int32"
  21510. },
  21511. datatypeConfig: {
  21512. type: "string"
  21513. },
  21514. preferredHandlerClassname: {
  21515. type: "string"
  21516. },
  21517. handlerConfig: {
  21518. type: "string"
  21519. }
  21520. }
  21521. },
  21522. ProgramattributetypeCreateFull: {
  21523. required: [
  21524. "datatypeClassname",
  21525. "name"
  21526. ],
  21527. properties: {
  21528. name: {
  21529. type: "string"
  21530. },
  21531. description: {
  21532. type: "string"
  21533. },
  21534. datatypeClassname: {
  21535. type: "string"
  21536. },
  21537. minOccurs: {
  21538. type: "integer",
  21539. format: "int32"
  21540. },
  21541. maxOccurs: {
  21542. type: "integer",
  21543. format: "int32"
  21544. },
  21545. datatypeConfig: {
  21546. type: "string"
  21547. },
  21548. preferredHandlerClassname: {
  21549. type: "string"
  21550. },
  21551. handlerConfig: {
  21552. type: "string"
  21553. }
  21554. }
  21555. },
  21556. ProgramattributetypeUpdate: {
  21557. required: [
  21558. "datatypeClassname",
  21559. "name"
  21560. ],
  21561. properties: {
  21562. name: {
  21563. type: "string"
  21564. },
  21565. description: {
  21566. type: "string"
  21567. },
  21568. datatypeClassname: {
  21569. type: "string"
  21570. },
  21571. minOccurs: {
  21572. type: "integer",
  21573. format: "int32"
  21574. },
  21575. maxOccurs: {
  21576. type: "integer",
  21577. format: "int32"
  21578. },
  21579. datatypeConfig: {
  21580. type: "string"
  21581. },
  21582. preferredHandlerClassname: {
  21583. type: "string"
  21584. },
  21585. handlerConfig: {
  21586. type: "string"
  21587. }
  21588. }
  21589. },
  21590. PatientdiagnosesCreate: {
  21591. properties: {
  21592. diagnosis: {
  21593. type: "string"
  21594. },
  21595. encounter: {
  21596. type: "string"
  21597. },
  21598. condition: {
  21599. type: "string"
  21600. },
  21601. certainty: {
  21602. type: "string"
  21603. },
  21604. patient: {
  21605. type: "string",
  21606. example: "uuid"
  21607. },
  21608. rank: {
  21609. type: "integer",
  21610. format: "int32"
  21611. }
  21612. }
  21613. },
  21614. PatientdiagnosesCreateFull: {
  21615. properties: {
  21616. diagnosis: {
  21617. type: "string"
  21618. },
  21619. encounter: {
  21620. type: "string"
  21621. },
  21622. condition: {
  21623. type: "string"
  21624. },
  21625. certainty: {
  21626. type: "string"
  21627. },
  21628. patient: {
  21629. type: "string",
  21630. example: "uuid"
  21631. },
  21632. rank: {
  21633. type: "integer",
  21634. format: "int32"
  21635. }
  21636. }
  21637. },
  21638. PatientdiagnosesGet: {
  21639. properties: {
  21640. links: {
  21641. type: "array",
  21642. items: {
  21643. type: "object",
  21644. properties: {
  21645. rel: {
  21646. type: "string",
  21647. example: "self|full"
  21648. },
  21649. uri: {
  21650. type: "string",
  21651. format: "uri"
  21652. }
  21653. }
  21654. }
  21655. },
  21656. uuid: {
  21657. type: "string"
  21658. },
  21659. diagnosis: {
  21660. type: "string"
  21661. },
  21662. condition: {
  21663. type: "string"
  21664. },
  21665. certainty: {
  21666. type: "string",
  21667. enum: [
  21668. "PROVISIONAL",
  21669. "CONFIRMED"
  21670. ]
  21671. },
  21672. rank: {
  21673. type: "integer",
  21674. format: "int32"
  21675. },
  21676. patient: {
  21677. $ref: "#/definitions/PatientGetRef"
  21678. },
  21679. voided: {
  21680. type: "boolean"
  21681. }
  21682. }
  21683. },
  21684. PatientdiagnosesGetRef: {
  21685. properties: {
  21686. links: {
  21687. type: "array",
  21688. items: {
  21689. type: "object",
  21690. properties: {
  21691. rel: {
  21692. type: "string",
  21693. example: "self"
  21694. },
  21695. uri: {
  21696. type: "string",
  21697. format: "uri"
  21698. }
  21699. }
  21700. }
  21701. }
  21702. }
  21703. },
  21704. PatientdiagnosesGetFull: {
  21705. properties: {
  21706. auditInfo: {
  21707. type: "string"
  21708. },
  21709. links: {
  21710. type: "array",
  21711. items: {
  21712. type: "object",
  21713. example: "self",
  21714. properties: {
  21715. rel: {
  21716. type: "string"
  21717. },
  21718. uri: {
  21719. type: "string",
  21720. format: "uri"
  21721. }
  21722. }
  21723. }
  21724. },
  21725. uuid: {
  21726. type: "string"
  21727. },
  21728. diagnosis: {
  21729. type: "string"
  21730. },
  21731. condition: {
  21732. type: "string"
  21733. },
  21734. certainty: {
  21735. type: "string",
  21736. enum: [
  21737. "PROVISIONAL",
  21738. "CONFIRMED"
  21739. ]
  21740. },
  21741. rank: {
  21742. type: "integer",
  21743. format: "int32"
  21744. },
  21745. patient: {
  21746. $ref: "#/definitions/PatientGetRef"
  21747. },
  21748. voided: {
  21749. type: "boolean"
  21750. }
  21751. }
  21752. },
  21753. PatientdiagnosesUpdate: {
  21754. properties: {
  21755. diagnosis: {
  21756. type: "string"
  21757. },
  21758. condition: {
  21759. type: "string"
  21760. },
  21761. encounter: {
  21762. type: "string"
  21763. },
  21764. certainty: {
  21765. type: "string",
  21766. enum: [
  21767. "PROVISIONAL",
  21768. "CONFIRMED"
  21769. ]
  21770. },
  21771. rank: {
  21772. type: "integer",
  21773. format: "int32"
  21774. },
  21775. voided: {
  21776. type: "boolean"
  21777. }
  21778. }
  21779. },
  21780. PatientCreate: {
  21781. required: [
  21782. "identifiers",
  21783. "person"
  21784. ],
  21785. properties: {
  21786. person: {
  21787. type: "string",
  21788. example: "uuid"
  21789. },
  21790. identifiers: {
  21791. type: "array",
  21792. items: {
  21793. $ref: "#/definitions/PatientIdentifierCreate"
  21794. }
  21795. }
  21796. }
  21797. },
  21798. PatientCreateFull: {
  21799. required: [
  21800. "identifiers",
  21801. "person"
  21802. ],
  21803. properties: {
  21804. person: {
  21805. $ref: "#/definitions/PersonCreate"
  21806. },
  21807. identifiers: {
  21808. type: "array",
  21809. items: {
  21810. $ref: "#/definitions/PatientIdentifierCreate"
  21811. }
  21812. }
  21813. }
  21814. },
  21815. PatientGet: {
  21816. properties: {
  21817. links: {
  21818. type: "array",
  21819. items: {
  21820. type: "object",
  21821. properties: {
  21822. rel: {
  21823. type: "string",
  21824. example: "self|full"
  21825. },
  21826. uri: {
  21827. type: "string",
  21828. format: "uri"
  21829. }
  21830. }
  21831. }
  21832. },
  21833. uuid: {
  21834. type: "string"
  21835. },
  21836. display: {
  21837. type: "string"
  21838. },
  21839. identifiers: {
  21840. type: "array",
  21841. items: {
  21842. $ref: "#/definitions/PatientIdentifierGetRef"
  21843. }
  21844. },
  21845. preferred: {
  21846. type: "boolean",
  21847. default: false
  21848. },
  21849. voided: {
  21850. type: "boolean"
  21851. },
  21852. person: {
  21853. $ref: "#/definitions/PersonGetRef"
  21854. }
  21855. }
  21856. },
  21857. PatientGetRef: {
  21858. properties: {
  21859. links: {
  21860. type: "array",
  21861. items: {
  21862. type: "object",
  21863. properties: {
  21864. rel: {
  21865. type: "string",
  21866. example: "self"
  21867. },
  21868. uri: {
  21869. type: "string",
  21870. format: "uri"
  21871. }
  21872. }
  21873. }
  21874. }
  21875. }
  21876. },
  21877. PatientGetFull: {
  21878. properties: {
  21879. auditInfo: {
  21880. type: "string"
  21881. },
  21882. links: {
  21883. type: "array",
  21884. items: {
  21885. type: "object",
  21886. example: "self",
  21887. properties: {
  21888. rel: {
  21889. type: "string"
  21890. },
  21891. uri: {
  21892. type: "string",
  21893. format: "uri"
  21894. }
  21895. }
  21896. }
  21897. },
  21898. uuid: {
  21899. type: "string"
  21900. },
  21901. display: {
  21902. type: "string"
  21903. },
  21904. identifiers: {
  21905. type: "array",
  21906. items: {
  21907. $ref: "#/definitions/PatientIdentifierGetRef"
  21908. }
  21909. },
  21910. preferred: {
  21911. type: "boolean",
  21912. default: false
  21913. },
  21914. voided: {
  21915. type: "boolean"
  21916. },
  21917. person: {
  21918. $ref: "#/definitions/PersonGet"
  21919. }
  21920. }
  21921. },
  21922. PatientUpdate: {
  21923. required: [
  21924. "person"
  21925. ],
  21926. properties: {
  21927. person: {
  21928. $ref: "#/definitions/PersonGet"
  21929. }
  21930. }
  21931. },
  21932. CustomdatatypeGet: {
  21933. properties: {
  21934. links: {
  21935. type: "array",
  21936. items: {
  21937. type: "object",
  21938. properties: {
  21939. rel: {
  21940. type: "string",
  21941. example: "self|full"
  21942. },
  21943. uri: {
  21944. type: "string",
  21945. format: "uri"
  21946. }
  21947. }
  21948. }
  21949. },
  21950. uuid: {
  21951. type: "string"
  21952. },
  21953. display: {
  21954. type: "string"
  21955. },
  21956. datatypeClassname: {
  21957. type: "string"
  21958. },
  21959. handlers: {
  21960. type: "array",
  21961. items: {
  21962. $ref: "#/definitions/CustomdatatypeHandlersGetRef"
  21963. }
  21964. }
  21965. }
  21966. },
  21967. CustomdatatypeGetRef: {
  21968. properties: {
  21969. links: {
  21970. type: "array",
  21971. items: {
  21972. type: "object",
  21973. properties: {
  21974. rel: {
  21975. type: "string",
  21976. example: "self"
  21977. },
  21978. uri: {
  21979. type: "string",
  21980. format: "uri"
  21981. }
  21982. }
  21983. }
  21984. }
  21985. }
  21986. },
  21987. CustomdatatypeGetFull: {
  21988. properties: {
  21989. auditInfo: {
  21990. type: "string"
  21991. },
  21992. links: {
  21993. type: "array",
  21994. items: {
  21995. type: "object",
  21996. example: "self",
  21997. properties: {
  21998. rel: {
  21999. type: "string"
  22000. },
  22001. uri: {
  22002. type: "string",
  22003. format: "uri"
  22004. }
  22005. }
  22006. }
  22007. },
  22008. uuid: {
  22009. type: "string"
  22010. },
  22011. display: {
  22012. type: "string"
  22013. },
  22014. datatypeClassname: {
  22015. type: "string"
  22016. },
  22017. handlers: {
  22018. type: "array",
  22019. items: {
  22020. $ref: "#/definitions/CustomdatatypeHandlersGet"
  22021. }
  22022. }
  22023. }
  22024. },
  22025. ConceptGet: {
  22026. properties: {
  22027. links: {
  22028. type: "array",
  22029. items: {
  22030. type: "object",
  22031. properties: {
  22032. rel: {
  22033. type: "string",
  22034. example: "self|full"
  22035. },
  22036. uri: {
  22037. type: "string",
  22038. format: "uri"
  22039. }
  22040. }
  22041. }
  22042. },
  22043. uuid: {
  22044. type: "string"
  22045. },
  22046. display: {
  22047. type: "string"
  22048. },
  22049. name: {
  22050. $ref: "#/definitions/ConceptNameGet"
  22051. },
  22052. datatype: {
  22053. $ref: "#/definitions/ConceptdatatypeGetRef"
  22054. },
  22055. conceptClass: {
  22056. $ref: "#/definitions/ConceptclassGetRef"
  22057. },
  22058. set: {
  22059. type: "boolean"
  22060. },
  22061. version: {
  22062. type: "string"
  22063. },
  22064. retired: {
  22065. type: "boolean"
  22066. },
  22067. names: {
  22068. type: "array",
  22069. items: {
  22070. $ref: "#/definitions/ConceptNameGetRef"
  22071. }
  22072. },
  22073. descriptions: {
  22074. type: "array",
  22075. items: {
  22076. $ref: "#/definitions/ConceptDescriptionGetRef"
  22077. }
  22078. },
  22079. mappings: {
  22080. type: "array",
  22081. items: {
  22082. $ref: "#/definitions/ConceptMappingGetRef"
  22083. }
  22084. },
  22085. answers: {
  22086. type: "array",
  22087. items: {
  22088. type: "object"
  22089. }
  22090. },
  22091. setMembers: {
  22092. type: "array",
  22093. items: {
  22094. type: "object"
  22095. }
  22096. }
  22097. }
  22098. },
  22099. ConceptGetRef: {
  22100. properties: {
  22101. links: {
  22102. type: "array",
  22103. items: {
  22104. type: "object",
  22105. properties: {
  22106. rel: {
  22107. type: "string",
  22108. example: "self"
  22109. },
  22110. uri: {
  22111. type: "string",
  22112. format: "uri"
  22113. }
  22114. }
  22115. }
  22116. },
  22117. uuid: {
  22118. type: "string"
  22119. },
  22120. display: {
  22121. type: "string"
  22122. }
  22123. }
  22124. },
  22125. ConceptGetFull: {
  22126. properties: {
  22127. auditInfo: {
  22128. type: "string"
  22129. },
  22130. links: {
  22131. type: "array",
  22132. items: {
  22133. type: "object",
  22134. example: "self",
  22135. properties: {
  22136. rel: {
  22137. type: "string"
  22138. },
  22139. uri: {
  22140. type: "string",
  22141. format: "uri"
  22142. }
  22143. }
  22144. }
  22145. },
  22146. uuid: {
  22147. type: "string"
  22148. },
  22149. display: {
  22150. type: "string"
  22151. }
  22152. }
  22153. },
  22154. ConceptCreate: {
  22155. required: [
  22156. "conceptClass",
  22157. "datatype",
  22158. "names"
  22159. ],
  22160. properties: {
  22161. names: {
  22162. type: "array",
  22163. items: {
  22164. $ref: "#/definitions/ConceptNameCreate"
  22165. }
  22166. },
  22167. datatype: {
  22168. type: "string",
  22169. example: "uuid"
  22170. },
  22171. set: {
  22172. type: "boolean"
  22173. },
  22174. version: {
  22175. type: "string"
  22176. },
  22177. answers: {
  22178. type: "array",
  22179. items: {
  22180. type: "string",
  22181. example: "uuid"
  22182. }
  22183. },
  22184. setMembers: {
  22185. type: "array",
  22186. items: {
  22187. type: "string",
  22188. example: "uuid"
  22189. }
  22190. },
  22191. hiNormal: {
  22192. type: "string"
  22193. },
  22194. hiAbsolute: {
  22195. type: "string"
  22196. },
  22197. hiCritical: {
  22198. type: "string"
  22199. },
  22200. lowNormal: {
  22201. type: "string"
  22202. },
  22203. lowAbsolute: {
  22204. type: "string"
  22205. },
  22206. lowCritical: {
  22207. type: "string"
  22208. },
  22209. units: {
  22210. type: "string"
  22211. },
  22212. allowDecimal: {
  22213. type: "string"
  22214. },
  22215. displayPrecision: {
  22216. type: "string"
  22217. },
  22218. conceptClass: {
  22219. type: "string"
  22220. },
  22221. descriptions: {
  22222. type: "array",
  22223. items: {
  22224. type: "string"
  22225. }
  22226. },
  22227. mappings: {
  22228. type: "array",
  22229. items: {
  22230. type: "string"
  22231. }
  22232. }
  22233. }
  22234. },
  22235. ConceptCreateFull: {
  22236. required: [
  22237. "conceptClass",
  22238. "datatype",
  22239. "names"
  22240. ],
  22241. properties: {
  22242. names: {
  22243. type: "array",
  22244. items: {
  22245. $ref: "#/definitions/ConceptNameCreate"
  22246. }
  22247. },
  22248. datatype: {
  22249. type: "string",
  22250. example: "uuid"
  22251. },
  22252. set: {
  22253. type: "boolean"
  22254. },
  22255. version: {
  22256. type: "string"
  22257. },
  22258. answers: {
  22259. type: "array",
  22260. items: {
  22261. type: "string",
  22262. example: "uuid"
  22263. }
  22264. },
  22265. setMembers: {
  22266. type: "array",
  22267. items: {
  22268. type: "string",
  22269. example: "uuid"
  22270. }
  22271. },
  22272. hiNormal: {
  22273. type: "string"
  22274. },
  22275. hiAbsolute: {
  22276. type: "string"
  22277. },
  22278. hiCritical: {
  22279. type: "string"
  22280. },
  22281. lowNormal: {
  22282. type: "string"
  22283. },
  22284. lowAbsolute: {
  22285. type: "string"
  22286. },
  22287. lowCritical: {
  22288. type: "string"
  22289. },
  22290. units: {
  22291. type: "string"
  22292. },
  22293. allowDecimal: {
  22294. type: "string"
  22295. },
  22296. displayPrecision: {
  22297. type: "string"
  22298. },
  22299. conceptClass: {
  22300. $ref: "#/definitions/ConceptclassCreate"
  22301. },
  22302. descriptions: {
  22303. type: "array",
  22304. items: {
  22305. $ref: "#/definitions/ConceptDescriptionCreate"
  22306. }
  22307. },
  22308. mappings: {
  22309. type: "array",
  22310. items: {
  22311. $ref: "#/definitions/ConceptMappingCreate"
  22312. }
  22313. }
  22314. }
  22315. },
  22316. ConceptUpdate: {
  22317. properties: {
  22318. name: {
  22319. $ref: "#/definitions/ConceptNameCreate"
  22320. },
  22321. names: {
  22322. type: "array",
  22323. items: {
  22324. $ref: "#/definitions/ConceptNameCreate"
  22325. }
  22326. },
  22327. descriptions: {
  22328. type: "array",
  22329. items: {
  22330. $ref: "#/definitions/ConceptDescriptionCreate"
  22331. }
  22332. }
  22333. }
  22334. },
  22335. SystemsettingGet: {
  22336. properties: {
  22337. links: {
  22338. type: "array",
  22339. items: {
  22340. type: "object",
  22341. properties: {
  22342. rel: {
  22343. type: "string",
  22344. example: "self|full"
  22345. },
  22346. uri: {
  22347. type: "string",
  22348. format: "uri"
  22349. }
  22350. }
  22351. }
  22352. },
  22353. uuid: {
  22354. type: "string"
  22355. },
  22356. property: {
  22357. type: "string"
  22358. },
  22359. value: {
  22360. type: "string"
  22361. },
  22362. description: {
  22363. type: "string"
  22364. },
  22365. display: {
  22366. type: "string"
  22367. }
  22368. }
  22369. },
  22370. SystemsettingGetRef: {
  22371. properties: {
  22372. links: {
  22373. type: "array",
  22374. items: {
  22375. type: "object",
  22376. properties: {
  22377. rel: {
  22378. type: "string",
  22379. example: "self"
  22380. },
  22381. uri: {
  22382. type: "string",
  22383. format: "uri"
  22384. }
  22385. }
  22386. }
  22387. }
  22388. }
  22389. },
  22390. SystemsettingGetFull: {
  22391. properties: {
  22392. auditInfo: {
  22393. type: "string"
  22394. },
  22395. links: {
  22396. type: "array",
  22397. items: {
  22398. type: "object",
  22399. example: "self",
  22400. properties: {
  22401. rel: {
  22402. type: "string"
  22403. },
  22404. uri: {
  22405. type: "string",
  22406. format: "uri"
  22407. }
  22408. }
  22409. }
  22410. },
  22411. uuid: {
  22412. type: "string"
  22413. },
  22414. property: {
  22415. type: "string"
  22416. },
  22417. value: {
  22418. type: "string"
  22419. },
  22420. description: {
  22421. type: "string"
  22422. },
  22423. display: {
  22424. type: "string"
  22425. },
  22426. datatypeClassname: {
  22427. type: "string"
  22428. },
  22429. datatypeConfig: {
  22430. type: "string"
  22431. },
  22432. preferredHandlerClassname: {
  22433. type: "string"
  22434. },
  22435. handlerConfig: {
  22436. type: "string"
  22437. }
  22438. }
  22439. },
  22440. SystemsettingCreate: {
  22441. required: [
  22442. "property"
  22443. ],
  22444. properties: {
  22445. property: {
  22446. type: "string"
  22447. },
  22448. description: {
  22449. type: "string"
  22450. },
  22451. datatypeClassname: {
  22452. type: "string"
  22453. },
  22454. datatypeConfig: {
  22455. type: "string"
  22456. },
  22457. preferredHandlerClassname: {
  22458. type: "string"
  22459. },
  22460. handlerConfig: {
  22461. type: "string"
  22462. },
  22463. value: {
  22464. type: "string"
  22465. }
  22466. }
  22467. },
  22468. SystemsettingCreateFull: {
  22469. required: [
  22470. "property"
  22471. ],
  22472. properties: {
  22473. property: {
  22474. type: "string"
  22475. },
  22476. description: {
  22477. type: "string"
  22478. },
  22479. datatypeClassname: {
  22480. type: "string"
  22481. },
  22482. datatypeConfig: {
  22483. type: "string"
  22484. },
  22485. preferredHandlerClassname: {
  22486. type: "string"
  22487. },
  22488. handlerConfig: {
  22489. type: "string"
  22490. },
  22491. value: {
  22492. type: "string"
  22493. }
  22494. }
  22495. },
  22496. SystemsettingUpdate: {
  22497. properties: {
  22498. description: {
  22499. type: "string"
  22500. },
  22501. datatypeClassname: {
  22502. type: "string"
  22503. },
  22504. datatypeConfig: {
  22505. type: "string"
  22506. },
  22507. preferredHandlerClassname: {
  22508. type: "string"
  22509. },
  22510. handlerConfig: {
  22511. type: "string"
  22512. },
  22513. value: {
  22514. type: "string"
  22515. }
  22516. }
  22517. },
  22518. ConceptdatatypeGet: {
  22519. properties: {
  22520. links: {
  22521. type: "array",
  22522. items: {
  22523. type: "object",
  22524. properties: {
  22525. rel: {
  22526. type: "string",
  22527. example: "self|full"
  22528. },
  22529. uri: {
  22530. type: "string",
  22531. format: "uri"
  22532. }
  22533. }
  22534. }
  22535. },
  22536. uuid: {
  22537. type: "string"
  22538. },
  22539. display: {
  22540. type: "string"
  22541. },
  22542. name: {
  22543. type: "string"
  22544. },
  22545. description: {
  22546. type: "string"
  22547. },
  22548. hl7Abbreviation: {
  22549. type: "string"
  22550. },
  22551. retired: {
  22552. type: "boolean"
  22553. }
  22554. }
  22555. },
  22556. ConceptdatatypeGetRef: {
  22557. properties: {
  22558. links: {
  22559. type: "array",
  22560. items: {
  22561. type: "object",
  22562. properties: {
  22563. rel: {
  22564. type: "string",
  22565. example: "self"
  22566. },
  22567. uri: {
  22568. type: "string",
  22569. format: "uri"
  22570. }
  22571. }
  22572. }
  22573. },
  22574. uuid: {
  22575. type: "string"
  22576. },
  22577. display: {
  22578. type: "string"
  22579. }
  22580. }
  22581. },
  22582. ConceptdatatypeGetFull: {
  22583. properties: {
  22584. auditInfo: {
  22585. type: "string"
  22586. },
  22587. links: {
  22588. type: "array",
  22589. items: {
  22590. type: "object",
  22591. example: "self",
  22592. properties: {
  22593. rel: {
  22594. type: "string"
  22595. },
  22596. uri: {
  22597. type: "string",
  22598. format: "uri"
  22599. }
  22600. }
  22601. }
  22602. },
  22603. uuid: {
  22604. type: "string"
  22605. },
  22606. display: {
  22607. type: "string"
  22608. },
  22609. name: {
  22610. type: "string"
  22611. },
  22612. description: {
  22613. type: "string"
  22614. },
  22615. retired: {
  22616. type: "boolean"
  22617. },
  22618. hl7Abbreviation: {
  22619. type: "string"
  22620. }
  22621. }
  22622. },
  22623. Hl7sourceCreate: {
  22624. required: [
  22625. "description",
  22626. "name"
  22627. ],
  22628. properties: {
  22629. name: {
  22630. type: "string"
  22631. },
  22632. description: {
  22633. type: "string"
  22634. }
  22635. }
  22636. },
  22637. Hl7sourceCreateFull: {
  22638. required: [
  22639. "description",
  22640. "name"
  22641. ],
  22642. properties: {
  22643. name: {
  22644. type: "string"
  22645. },
  22646. description: {
  22647. type: "string"
  22648. }
  22649. }
  22650. },
  22651. Hl7sourceGet: {
  22652. properties: {
  22653. links: {
  22654. type: "array",
  22655. items: {
  22656. type: "object",
  22657. properties: {
  22658. rel: {
  22659. type: "string",
  22660. example: "self|full"
  22661. },
  22662. uri: {
  22663. type: "string",
  22664. format: "uri"
  22665. }
  22666. }
  22667. }
  22668. },
  22669. uuid: {
  22670. type: "string"
  22671. },
  22672. display: {
  22673. type: "string"
  22674. }
  22675. }
  22676. },
  22677. Hl7sourceGetRef: {
  22678. properties: {
  22679. links: {
  22680. type: "array",
  22681. items: {
  22682. type: "object",
  22683. properties: {
  22684. rel: {
  22685. type: "string",
  22686. example: "self"
  22687. },
  22688. uri: {
  22689. type: "string",
  22690. format: "uri"
  22691. }
  22692. }
  22693. }
  22694. },
  22695. uuid: {
  22696. type: "string"
  22697. },
  22698. display: {
  22699. type: "string"
  22700. }
  22701. }
  22702. },
  22703. Hl7sourceGetFull: {
  22704. properties: {
  22705. auditInfo: {
  22706. type: "string"
  22707. },
  22708. links: {
  22709. type: "array",
  22710. items: {
  22711. type: "object",
  22712. example: "self",
  22713. properties: {
  22714. rel: {
  22715. type: "string"
  22716. },
  22717. uri: {
  22718. type: "string",
  22719. format: "uri"
  22720. }
  22721. }
  22722. }
  22723. },
  22724. uuid: {
  22725. type: "string"
  22726. },
  22727. display: {
  22728. type: "string"
  22729. },
  22730. name: {
  22731. type: "string"
  22732. },
  22733. description: {
  22734. type: "string"
  22735. },
  22736. retired: {
  22737. type: "boolean"
  22738. }
  22739. }
  22740. },
  22741. Hl7sourceUpdate: {
  22742. required: [
  22743. "description",
  22744. "name"
  22745. ],
  22746. properties: {
  22747. name: {
  22748. type: "string"
  22749. },
  22750. description: {
  22751. type: "string"
  22752. }
  22753. }
  22754. },
  22755. WorkflowCreate: {
  22756. required: [
  22757. "name"
  22758. ],
  22759. properties: {
  22760. name: {
  22761. type: "string"
  22762. },
  22763. description: {
  22764. type: "string"
  22765. }
  22766. }
  22767. },
  22768. WorkflowCreateFull: {
  22769. required: [
  22770. "name"
  22771. ],
  22772. properties: {
  22773. name: {
  22774. type: "string"
  22775. },
  22776. description: {
  22777. type: "string"
  22778. }
  22779. }
  22780. },
  22781. WorkflowGet: {
  22782. properties: {
  22783. links: {
  22784. type: "array",
  22785. items: {
  22786. type: "object",
  22787. properties: {
  22788. rel: {
  22789. type: "string",
  22790. example: "self|full"
  22791. },
  22792. uri: {
  22793. type: "string",
  22794. format: "uri"
  22795. }
  22796. }
  22797. }
  22798. },
  22799. uuid: {
  22800. type: "string"
  22801. },
  22802. display: {
  22803. type: "string"
  22804. },
  22805. concept: {
  22806. $ref: "#/definitions/ConceptGetRef"
  22807. },
  22808. states: {
  22809. type: "array",
  22810. items: {
  22811. $ref: "#/definitions/WorkflowStateGetRef"
  22812. }
  22813. }
  22814. }
  22815. },
  22816. WorkflowGetRef: {
  22817. properties: {
  22818. links: {
  22819. type: "array",
  22820. items: {
  22821. type: "object",
  22822. properties: {
  22823. rel: {
  22824. type: "string",
  22825. example: "self"
  22826. },
  22827. uri: {
  22828. type: "string",
  22829. format: "uri"
  22830. }
  22831. }
  22832. }
  22833. },
  22834. uuid: {
  22835. type: "string"
  22836. },
  22837. display: {
  22838. type: "string"
  22839. },
  22840. concept: {
  22841. $ref: "#/definitions/ConceptGet"
  22842. },
  22843. states: {
  22844. type: "array",
  22845. items: {
  22846. $ref: "#/definitions/WorkflowStateGet"
  22847. }
  22848. }
  22849. }
  22850. },
  22851. WorkflowGetFull: {
  22852. properties: {
  22853. auditInfo: {
  22854. type: "string"
  22855. },
  22856. links: {
  22857. type: "array",
  22858. items: {
  22859. type: "object",
  22860. example: "self",
  22861. properties: {
  22862. rel: {
  22863. type: "string"
  22864. },
  22865. uri: {
  22866. type: "string",
  22867. format: "uri"
  22868. }
  22869. }
  22870. }
  22871. },
  22872. uuid: {
  22873. type: "string"
  22874. },
  22875. display: {
  22876. type: "string"
  22877. },
  22878. name: {
  22879. type: "string"
  22880. },
  22881. description: {
  22882. type: "string"
  22883. },
  22884. retired: {
  22885. type: "boolean"
  22886. },
  22887. concept: {
  22888. $ref: "#/definitions/ConceptGet"
  22889. },
  22890. states: {
  22891. type: "array",
  22892. items: {
  22893. $ref: "#/definitions/WorkflowStateGet"
  22894. }
  22895. }
  22896. }
  22897. },
  22898. WorkflowUpdate: {
  22899. required: [
  22900. "name"
  22901. ],
  22902. properties: {
  22903. name: {
  22904. type: "string"
  22905. },
  22906. description: {
  22907. type: "string"
  22908. }
  22909. }
  22910. },
  22911. OrdersetGet: {
  22912. properties: {
  22913. links: {
  22914. type: "array",
  22915. items: {
  22916. type: "object",
  22917. properties: {
  22918. rel: {
  22919. type: "string",
  22920. example: "self|full"
  22921. },
  22922. uri: {
  22923. type: "string",
  22924. format: "uri"
  22925. }
  22926. }
  22927. }
  22928. },
  22929. uuid: {
  22930. type: "string"
  22931. },
  22932. display: {
  22933. type: "string"
  22934. },
  22935. operator: {
  22936. type: "string",
  22937. enum: [
  22938. "ALL",
  22939. "ONE",
  22940. "ANY"
  22941. ]
  22942. },
  22943. orderSetMembers: {
  22944. type: "array",
  22945. items: {
  22946. $ref: "#/definitions/OrdersetOrdersetmemberGetRef"
  22947. }
  22948. }
  22949. }
  22950. },
  22951. OrdersetGetRef: {
  22952. properties: {
  22953. links: {
  22954. type: "array",
  22955. items: {
  22956. type: "object",
  22957. properties: {
  22958. rel: {
  22959. type: "string",
  22960. example: "self"
  22961. },
  22962. uri: {
  22963. type: "string",
  22964. format: "uri"
  22965. }
  22966. }
  22967. }
  22968. },
  22969. uuid: {
  22970. type: "string"
  22971. },
  22972. display: {
  22973. type: "string"
  22974. }
  22975. }
  22976. },
  22977. OrdersetGetFull: {
  22978. properties: {
  22979. auditInfo: {
  22980. type: "string"
  22981. },
  22982. links: {
  22983. type: "array",
  22984. items: {
  22985. type: "object",
  22986. example: "self",
  22987. properties: {
  22988. rel: {
  22989. type: "string"
  22990. },
  22991. uri: {
  22992. type: "string",
  22993. format: "uri"
  22994. }
  22995. }
  22996. }
  22997. },
  22998. uuid: {
  22999. type: "string"
  23000. },
  23001. display: {
  23002. type: "string"
  23003. },
  23004. name: {
  23005. type: "string"
  23006. },
  23007. description: {
  23008. type: "string"
  23009. },
  23010. retired: {
  23011. type: "boolean"
  23012. },
  23013. operator: {
  23014. type: "string",
  23015. enum: [
  23016. "ALL",
  23017. "ONE",
  23018. "ANY"
  23019. ]
  23020. },
  23021. orderSetMembers: {
  23022. type: "array",
  23023. items: {
  23024. $ref: "#/definitions/OrdersetOrdersetmemberGet"
  23025. }
  23026. }
  23027. }
  23028. },
  23029. OrdersetCreate: {
  23030. properties: {
  23031. operator: {
  23032. type: "string",
  23033. enum: [
  23034. "ALL",
  23035. "ONE",
  23036. "ANY"
  23037. ]
  23038. },
  23039. orderSetMembers: {
  23040. type: "array",
  23041. items: {
  23042. $ref: "#/definitions/OrdersetOrdersetmemberCreate"
  23043. }
  23044. }
  23045. }
  23046. },
  23047. OrdersetCreateFull: {
  23048. properties: {
  23049. operator: {
  23050. type: "string",
  23051. enum: [
  23052. "ALL",
  23053. "ONE",
  23054. "ANY"
  23055. ]
  23056. },
  23057. orderSetMembers: {
  23058. type: "array",
  23059. items: {
  23060. $ref: "#/definitions/OrdersetOrdersetmemberCreate"
  23061. }
  23062. }
  23063. }
  23064. },
  23065. OrdersetUpdate: {
  23066. properties: {
  23067. operator: {
  23068. type: "string",
  23069. enum: [
  23070. "ALL",
  23071. "ONE",
  23072. "ANY"
  23073. ]
  23074. },
  23075. orderSetMembers: {
  23076. type: "array",
  23077. items: {
  23078. $ref: "#/definitions/OrdersetOrdersetmemberCreate"
  23079. }
  23080. }
  23081. }
  23082. },
  23083. LocationGet: {
  23084. properties: {
  23085. links: {
  23086. type: "array",
  23087. items: {
  23088. type: "object",
  23089. properties: {
  23090. rel: {
  23091. type: "string",
  23092. example: "self|full"
  23093. },
  23094. uri: {
  23095. type: "string",
  23096. format: "uri"
  23097. }
  23098. }
  23099. }
  23100. },
  23101. uuid: {
  23102. type: "string"
  23103. },
  23104. display: {
  23105. type: "string"
  23106. },
  23107. address1: {
  23108. type: "string"
  23109. },
  23110. address2: {
  23111. type: "string"
  23112. },
  23113. cityVillage: {
  23114. type: "string"
  23115. },
  23116. stateProvince: {
  23117. type: "string"
  23118. },
  23119. country: {
  23120. type: "string"
  23121. },
  23122. postalCode: {
  23123. type: "string"
  23124. },
  23125. latitude: {
  23126. type: "string"
  23127. },
  23128. longitude: {
  23129. type: "string"
  23130. },
  23131. countyDistrict: {
  23132. type: "string"
  23133. },
  23134. address3: {
  23135. type: "string"
  23136. },
  23137. address4: {
  23138. type: "string"
  23139. },
  23140. address5: {
  23141. type: "string"
  23142. },
  23143. address6: {
  23144. type: "string"
  23145. },
  23146. tags: {
  23147. type: "array",
  23148. items: {
  23149. $ref: "#/definitions/LocationtagGetRef"
  23150. }
  23151. },
  23152. parentLocation: {
  23153. $ref: "#/definitions/LocationGetRef"
  23154. },
  23155. childLocations: {
  23156. type: "array",
  23157. items: {
  23158. $ref: "#/definitions/LocationGetRef"
  23159. }
  23160. }
  23161. }
  23162. },
  23163. LocationGetRef: {
  23164. properties: {
  23165. links: {
  23166. type: "array",
  23167. items: {
  23168. type: "object",
  23169. properties: {
  23170. rel: {
  23171. type: "string",
  23172. example: "self"
  23173. },
  23174. uri: {
  23175. type: "string",
  23176. format: "uri"
  23177. }
  23178. }
  23179. }
  23180. },
  23181. uuid: {
  23182. type: "string"
  23183. },
  23184. display: {
  23185. type: "string"
  23186. }
  23187. }
  23188. },
  23189. LocationGetFull: {
  23190. properties: {
  23191. auditInfo: {
  23192. type: "string"
  23193. },
  23194. links: {
  23195. type: "array",
  23196. items: {
  23197. type: "object",
  23198. example: "self",
  23199. properties: {
  23200. rel: {
  23201. type: "string"
  23202. },
  23203. uri: {
  23204. type: "string",
  23205. format: "uri"
  23206. }
  23207. }
  23208. }
  23209. },
  23210. uuid: {
  23211. type: "string"
  23212. },
  23213. display: {
  23214. type: "string"
  23215. },
  23216. name: {
  23217. type: "string"
  23218. },
  23219. description: {
  23220. type: "string"
  23221. },
  23222. retired: {
  23223. type: "boolean"
  23224. },
  23225. address1: {
  23226. type: "string"
  23227. },
  23228. address2: {
  23229. type: "string"
  23230. },
  23231. cityVillage: {
  23232. type: "string"
  23233. },
  23234. stateProvince: {
  23235. type: "string"
  23236. },
  23237. country: {
  23238. type: "string"
  23239. },
  23240. postalCode: {
  23241. type: "string"
  23242. },
  23243. latitude: {
  23244. type: "string"
  23245. },
  23246. longitude: {
  23247. type: "string"
  23248. },
  23249. countyDistrict: {
  23250. type: "string"
  23251. },
  23252. address3: {
  23253. type: "string"
  23254. },
  23255. address4: {
  23256. type: "string"
  23257. },
  23258. address5: {
  23259. type: "string"
  23260. },
  23261. address6: {
  23262. type: "string"
  23263. },
  23264. tags: {
  23265. type: "array",
  23266. items: {
  23267. $ref: "#/definitions/LocationtagGet"
  23268. }
  23269. },
  23270. parentLocation: {
  23271. $ref: "#/definitions/LocationGet"
  23272. },
  23273. childLocations: {
  23274. type: "array",
  23275. items: {
  23276. $ref: "#/definitions/LocationGet"
  23277. }
  23278. }
  23279. }
  23280. },
  23281. LocationCreate: {
  23282. required: [
  23283. "name"
  23284. ],
  23285. properties: {
  23286. name: {
  23287. type: "string"
  23288. },
  23289. description: {
  23290. type: "string"
  23291. },
  23292. address1: {
  23293. type: "string"
  23294. },
  23295. address2: {
  23296. type: "string"
  23297. },
  23298. cityVillage: {
  23299. type: "string"
  23300. },
  23301. stateProvince: {
  23302. type: "string"
  23303. },
  23304. country: {
  23305. type: "string"
  23306. },
  23307. postalCode: {
  23308. type: "string"
  23309. },
  23310. latitude: {
  23311. type: "string"
  23312. },
  23313. longitude: {
  23314. type: "string"
  23315. },
  23316. countyDistrict: {
  23317. type: "string"
  23318. },
  23319. address3: {
  23320. type: "string"
  23321. },
  23322. address4: {
  23323. type: "string"
  23324. },
  23325. address5: {
  23326. type: "string"
  23327. },
  23328. address6: {
  23329. type: "string"
  23330. },
  23331. tags: {
  23332. type: "array",
  23333. items: {
  23334. type: "string"
  23335. }
  23336. },
  23337. parentLocation: {
  23338. type: "string"
  23339. },
  23340. childLocations: {
  23341. type: "array",
  23342. items: {
  23343. type: "string"
  23344. }
  23345. }
  23346. }
  23347. },
  23348. LocationCreateFull: {
  23349. required: [
  23350. "name"
  23351. ],
  23352. properties: {
  23353. name: {
  23354. type: "string"
  23355. },
  23356. description: {
  23357. type: "string"
  23358. },
  23359. address1: {
  23360. type: "string"
  23361. },
  23362. address2: {
  23363. type: "string"
  23364. },
  23365. cityVillage: {
  23366. type: "string"
  23367. },
  23368. stateProvince: {
  23369. type: "string"
  23370. },
  23371. country: {
  23372. type: "string"
  23373. },
  23374. postalCode: {
  23375. type: "string"
  23376. },
  23377. latitude: {
  23378. type: "string"
  23379. },
  23380. longitude: {
  23381. type: "string"
  23382. },
  23383. countyDistrict: {
  23384. type: "string"
  23385. },
  23386. address3: {
  23387. type: "string"
  23388. },
  23389. address4: {
  23390. type: "string"
  23391. },
  23392. address5: {
  23393. type: "string"
  23394. },
  23395. address6: {
  23396. type: "string"
  23397. },
  23398. tags: {
  23399. type: "array",
  23400. items: {
  23401. type: "string"
  23402. }
  23403. },
  23404. parentLocation: {
  23405. type: "string"
  23406. },
  23407. childLocations: {
  23408. type: "array",
  23409. items: {
  23410. type: "string"
  23411. }
  23412. }
  23413. }
  23414. },
  23415. LocationUpdate: {
  23416. required: [
  23417. "name"
  23418. ],
  23419. properties: {
  23420. name: {
  23421. type: "string"
  23422. },
  23423. description: {
  23424. type: "string"
  23425. },
  23426. address1: {
  23427. type: "string"
  23428. },
  23429. address2: {
  23430. type: "string"
  23431. },
  23432. cityVillage: {
  23433. type: "string"
  23434. },
  23435. stateProvince: {
  23436. type: "string"
  23437. },
  23438. country: {
  23439. type: "string"
  23440. },
  23441. postalCode: {
  23442. type: "string"
  23443. },
  23444. latitude: {
  23445. type: "string"
  23446. },
  23447. longitude: {
  23448. type: "string"
  23449. },
  23450. countyDistrict: {
  23451. type: "string"
  23452. },
  23453. address3: {
  23454. type: "string"
  23455. },
  23456. address4: {
  23457. type: "string"
  23458. },
  23459. address5: {
  23460. type: "string"
  23461. },
  23462. address6: {
  23463. type: "string"
  23464. },
  23465. tags: {
  23466. type: "array",
  23467. items: {
  23468. type: "string"
  23469. }
  23470. },
  23471. parentLocation: {
  23472. type: "string"
  23473. },
  23474. childLocations: {
  23475. type: "array",
  23476. items: {
  23477. type: "string"
  23478. }
  23479. }
  23480. }
  23481. },
  23482. ProviderattributetypeGet: {
  23483. properties: {
  23484. links: {
  23485. type: "array",
  23486. items: {
  23487. type: "object",
  23488. properties: {
  23489. rel: {
  23490. type: "string",
  23491. example: "self|full"
  23492. },
  23493. uri: {
  23494. type: "string",
  23495. format: "uri"
  23496. }
  23497. }
  23498. }
  23499. },
  23500. uuid: {
  23501. type: "string"
  23502. },
  23503. display: {
  23504. type: "string"
  23505. },
  23506. minOccurs: {
  23507. type: "integer",
  23508. format: "int32"
  23509. },
  23510. maxOccurs: {
  23511. type: "integer",
  23512. format: "int32"
  23513. },
  23514. datatypeClassname: {
  23515. type: "string"
  23516. },
  23517. preferredHandlerClassname: {
  23518. type: "string"
  23519. }
  23520. }
  23521. },
  23522. ProviderattributetypeGetRef: {
  23523. properties: {
  23524. links: {
  23525. type: "array",
  23526. items: {
  23527. type: "object",
  23528. properties: {
  23529. rel: {
  23530. type: "string",
  23531. example: "self"
  23532. },
  23533. uri: {
  23534. type: "string",
  23535. format: "uri"
  23536. }
  23537. }
  23538. }
  23539. },
  23540. uuid: {
  23541. type: "string"
  23542. },
  23543. display: {
  23544. type: "string"
  23545. }
  23546. }
  23547. },
  23548. ProviderattributetypeGetFull: {
  23549. properties: {
  23550. auditInfo: {
  23551. type: "string"
  23552. },
  23553. links: {
  23554. type: "array",
  23555. items: {
  23556. type: "object",
  23557. example: "self",
  23558. properties: {
  23559. rel: {
  23560. type: "string"
  23561. },
  23562. uri: {
  23563. type: "string",
  23564. format: "uri"
  23565. }
  23566. }
  23567. }
  23568. },
  23569. uuid: {
  23570. type: "string"
  23571. },
  23572. display: {
  23573. type: "string"
  23574. },
  23575. name: {
  23576. type: "string"
  23577. },
  23578. description: {
  23579. type: "string"
  23580. },
  23581. retired: {
  23582. type: "boolean"
  23583. },
  23584. minOccurs: {
  23585. type: "integer",
  23586. format: "int32"
  23587. },
  23588. maxOccurs: {
  23589. type: "integer",
  23590. format: "int32"
  23591. },
  23592. datatypeClassname: {
  23593. type: "string"
  23594. },
  23595. preferredHandlerClassname: {
  23596. type: "string"
  23597. },
  23598. datatypeConfig: {
  23599. type: "string"
  23600. },
  23601. handlerConfig: {
  23602. type: "string"
  23603. }
  23604. }
  23605. },
  23606. ProviderattributetypeCreate: {
  23607. required: [
  23608. "datatypeClassname",
  23609. "name"
  23610. ],
  23611. properties: {
  23612. name: {
  23613. type: "string"
  23614. },
  23615. description: {
  23616. type: "string"
  23617. },
  23618. datatypeClassname: {
  23619. type: "string"
  23620. },
  23621. minOccurs: {
  23622. type: "integer",
  23623. format: "int32"
  23624. },
  23625. maxOccurs: {
  23626. type: "integer",
  23627. format: "int32"
  23628. },
  23629. datatypeConfig: {
  23630. type: "string"
  23631. },
  23632. preferredHandlerClassname: {
  23633. type: "string"
  23634. },
  23635. handlerConfig: {
  23636. type: "string"
  23637. }
  23638. }
  23639. },
  23640. ProviderattributetypeCreateFull: {
  23641. required: [
  23642. "datatypeClassname",
  23643. "name"
  23644. ],
  23645. properties: {
  23646. name: {
  23647. type: "string"
  23648. },
  23649. description: {
  23650. type: "string"
  23651. },
  23652. datatypeClassname: {
  23653. type: "string"
  23654. },
  23655. minOccurs: {
  23656. type: "integer",
  23657. format: "int32"
  23658. },
  23659. maxOccurs: {
  23660. type: "integer",
  23661. format: "int32"
  23662. },
  23663. datatypeConfig: {
  23664. type: "string"
  23665. },
  23666. preferredHandlerClassname: {
  23667. type: "string"
  23668. },
  23669. handlerConfig: {
  23670. type: "string"
  23671. }
  23672. }
  23673. },
  23674. ProviderattributetypeUpdate: {
  23675. required: [
  23676. "datatypeClassname",
  23677. "name"
  23678. ],
  23679. properties: {
  23680. name: {
  23681. type: "string"
  23682. },
  23683. description: {
  23684. type: "string"
  23685. },
  23686. datatypeClassname: {
  23687. type: "string"
  23688. },
  23689. minOccurs: {
  23690. type: "integer",
  23691. format: "int32"
  23692. },
  23693. maxOccurs: {
  23694. type: "integer",
  23695. format: "int32"
  23696. },
  23697. datatypeConfig: {
  23698. type: "string"
  23699. },
  23700. preferredHandlerClassname: {
  23701. type: "string"
  23702. },
  23703. handlerConfig: {
  23704. type: "string"
  23705. }
  23706. }
  23707. },
  23708. ProgramenrollmentCreate: {
  23709. required: [
  23710. "dateEnrolled",
  23711. "patient",
  23712. "program"
  23713. ],
  23714. properties: {
  23715. patient: {
  23716. type: "string",
  23717. example: "uuid"
  23718. },
  23719. program: {
  23720. type: "string",
  23721. example: "uuid"
  23722. },
  23723. dateEnrolled: {
  23724. type: "string",
  23725. format: "date"
  23726. },
  23727. dateCompleted: {
  23728. type: "string",
  23729. format: "date"
  23730. },
  23731. location: {
  23732. type: "string",
  23733. example: "uuid"
  23734. },
  23735. voided: {
  23736. type: "boolean"
  23737. },
  23738. states: {
  23739. type: "array",
  23740. items: {
  23741. $ref: "#/definitions/ProgramenrollmentStateCreate"
  23742. }
  23743. },
  23744. outcome: {
  23745. $ref: "#/definitions/ConceptCreate"
  23746. }
  23747. }
  23748. },
  23749. ProgramenrollmentCreateFull: {
  23750. required: [
  23751. "dateEnrolled",
  23752. "patient",
  23753. "program"
  23754. ],
  23755. properties: {
  23756. patient: {
  23757. $ref: "#/definitions/PatientCreate"
  23758. },
  23759. program: {
  23760. $ref: "#/definitions/ProgramCreate"
  23761. },
  23762. dateEnrolled: {
  23763. type: "string",
  23764. format: "date"
  23765. },
  23766. dateCompleted: {
  23767. type: "string",
  23768. format: "date"
  23769. },
  23770. location: {
  23771. $ref: "#/definitions/LocationCreate"
  23772. },
  23773. voided: {
  23774. type: "boolean"
  23775. },
  23776. states: {
  23777. type: "array",
  23778. items: {
  23779. $ref: "#/definitions/ProgramenrollmentStateCreate"
  23780. }
  23781. },
  23782. outcome: {
  23783. $ref: "#/definitions/ConceptCreate"
  23784. }
  23785. }
  23786. },
  23787. ProgramenrollmentGet: {
  23788. properties: {
  23789. links: {
  23790. type: "array",
  23791. items: {
  23792. type: "object",
  23793. properties: {
  23794. rel: {
  23795. type: "string",
  23796. example: "self|full"
  23797. },
  23798. uri: {
  23799. type: "string",
  23800. format: "uri"
  23801. }
  23802. }
  23803. }
  23804. },
  23805. uuid: {
  23806. type: "string"
  23807. },
  23808. display: {
  23809. type: "string"
  23810. },
  23811. dateEnrolled: {
  23812. type: "string",
  23813. format: "date"
  23814. },
  23815. dateCompleted: {
  23816. type: "string",
  23817. format: "date"
  23818. },
  23819. voided: {
  23820. type: "boolean"
  23821. },
  23822. patient: {
  23823. $ref: "#/definitions/PatientGetRef"
  23824. },
  23825. program: {
  23826. $ref: "#/definitions/ProgramGetRef"
  23827. },
  23828. location: {
  23829. $ref: "#/definitions/LocationGetRef"
  23830. }
  23831. }
  23832. },
  23833. ProgramenrollmentGetRef: {
  23834. properties: {
  23835. links: {
  23836. type: "array",
  23837. items: {
  23838. type: "object",
  23839. properties: {
  23840. rel: {
  23841. type: "string",
  23842. example: "self"
  23843. },
  23844. uri: {
  23845. type: "string",
  23846. format: "uri"
  23847. }
  23848. }
  23849. }
  23850. }
  23851. }
  23852. },
  23853. ProgramenrollmentGetFull: {
  23854. properties: {
  23855. auditInfo: {
  23856. type: "string"
  23857. },
  23858. links: {
  23859. type: "array",
  23860. items: {
  23861. type: "object",
  23862. example: "self",
  23863. properties: {
  23864. rel: {
  23865. type: "string"
  23866. },
  23867. uri: {
  23868. type: "string",
  23869. format: "uri"
  23870. }
  23871. }
  23872. }
  23873. },
  23874. uuid: {
  23875. type: "string"
  23876. },
  23877. display: {
  23878. type: "string"
  23879. },
  23880. dateEnrolled: {
  23881. type: "string",
  23882. format: "date"
  23883. },
  23884. dateCompleted: {
  23885. type: "string",
  23886. format: "date"
  23887. },
  23888. voided: {
  23889. type: "boolean"
  23890. },
  23891. patient: {
  23892. $ref: "#/definitions/PatientGet"
  23893. },
  23894. program: {
  23895. $ref: "#/definitions/ProgramGet"
  23896. },
  23897. location: {
  23898. $ref: "#/definitions/LocationGet"
  23899. }
  23900. }
  23901. },
  23902. ProgramenrollmentUpdate: {
  23903. required: [
  23904. "dateEnrolled"
  23905. ],
  23906. properties: {
  23907. dateEnrolled: {
  23908. type: "string",
  23909. format: "date"
  23910. },
  23911. states: {
  23912. type: "array",
  23913. items: {
  23914. $ref: "#/definitions/ProgramenrollmentStateCreate"
  23915. }
  23916. },
  23917. outcome: {
  23918. $ref: "#/definitions/ConceptCreate"
  23919. },
  23920. location: {
  23921. $ref: "#/definitions/LocationCreate"
  23922. },
  23923. voided: {
  23924. type: "boolean"
  23925. },
  23926. dateCompleted: {
  23927. type: "string",
  23928. format: "date"
  23929. }
  23930. }
  23931. },
  23932. EncounterroleGet: {
  23933. properties: {
  23934. links: {
  23935. type: "array",
  23936. items: {
  23937. type: "object",
  23938. properties: {
  23939. rel: {
  23940. type: "string",
  23941. example: "self|full"
  23942. },
  23943. uri: {
  23944. type: "string",
  23945. format: "uri"
  23946. }
  23947. }
  23948. }
  23949. },
  23950. uuid: {
  23951. type: "string"
  23952. },
  23953. display: {
  23954. type: "string"
  23955. }
  23956. }
  23957. },
  23958. EncounterroleGetRef: {
  23959. properties: {
  23960. links: {
  23961. type: "array",
  23962. items: {
  23963. type: "object",
  23964. properties: {
  23965. rel: {
  23966. type: "string",
  23967. example: "self"
  23968. },
  23969. uri: {
  23970. type: "string",
  23971. format: "uri"
  23972. }
  23973. }
  23974. }
  23975. },
  23976. uuid: {
  23977. type: "string"
  23978. },
  23979. display: {
  23980. type: "string"
  23981. }
  23982. }
  23983. },
  23984. EncounterroleGetFull: {
  23985. properties: {
  23986. auditInfo: {
  23987. type: "string"
  23988. },
  23989. links: {
  23990. type: "array",
  23991. items: {
  23992. type: "object",
  23993. example: "self",
  23994. properties: {
  23995. rel: {
  23996. type: "string"
  23997. },
  23998. uri: {
  23999. type: "string",
  24000. format: "uri"
  24001. }
  24002. }
  24003. }
  24004. },
  24005. uuid: {
  24006. type: "string"
  24007. },
  24008. display: {
  24009. type: "string"
  24010. },
  24011. name: {
  24012. type: "string"
  24013. },
  24014. description: {
  24015. type: "string"
  24016. },
  24017. retired: {
  24018. type: "boolean"
  24019. }
  24020. }
  24021. },
  24022. EncounterroleCreate: {
  24023. required: [
  24024. "name"
  24025. ],
  24026. properties: {
  24027. name: {
  24028. type: "string"
  24029. },
  24030. description: {
  24031. type: "string"
  24032. }
  24033. }
  24034. },
  24035. EncounterroleCreateFull: {
  24036. required: [
  24037. "name"
  24038. ],
  24039. properties: {
  24040. name: {
  24041. type: "string"
  24042. },
  24043. description: {
  24044. type: "string"
  24045. }
  24046. }
  24047. },
  24048. EncounterroleUpdate: {
  24049. required: [
  24050. "name"
  24051. ],
  24052. properties: {
  24053. name: {
  24054. type: "string"
  24055. },
  24056. description: {
  24057. type: "string"
  24058. }
  24059. }
  24060. },
  24061. VisitGet: {
  24062. properties: {
  24063. links: {
  24064. type: "array",
  24065. items: {
  24066. type: "object",
  24067. properties: {
  24068. rel: {
  24069. type: "string",
  24070. example: "self|full"
  24071. },
  24072. uri: {
  24073. type: "string",
  24074. format: "uri"
  24075. }
  24076. }
  24077. }
  24078. },
  24079. uuid: {
  24080. type: "string"
  24081. },
  24082. display: {
  24083. type: "string"
  24084. },
  24085. startDatetime: {
  24086. type: "string",
  24087. format: "date"
  24088. },
  24089. stopDatetime: {
  24090. type: "string",
  24091. format: "date"
  24092. },
  24093. attributes: {
  24094. type: "array",
  24095. items: {
  24096. type: "string"
  24097. }
  24098. },
  24099. voided: {
  24100. type: "boolean"
  24101. },
  24102. patient: {
  24103. $ref: "#/definitions/PatientGetRef"
  24104. },
  24105. visitType: {
  24106. $ref: "#/definitions/VisittypeGetRef"
  24107. },
  24108. indication: {
  24109. $ref: "#/definitions/ConceptGetRef"
  24110. },
  24111. location: {
  24112. $ref: "#/definitions/LocationGetRef"
  24113. },
  24114. encounters: {
  24115. type: "array",
  24116. items: {
  24117. $ref: "#/definitions/EncounterGetRef"
  24118. }
  24119. }
  24120. }
  24121. },
  24122. VisitGetRef: {
  24123. properties: {
  24124. links: {
  24125. type: "array",
  24126. items: {
  24127. type: "object",
  24128. properties: {
  24129. rel: {
  24130. type: "string",
  24131. example: "self"
  24132. },
  24133. uri: {
  24134. type: "string",
  24135. format: "uri"
  24136. }
  24137. }
  24138. }
  24139. }
  24140. }
  24141. },
  24142. VisitGetFull: {
  24143. properties: {
  24144. auditInfo: {
  24145. type: "string"
  24146. },
  24147. links: {
  24148. type: "array",
  24149. items: {
  24150. type: "object",
  24151. example: "self",
  24152. properties: {
  24153. rel: {
  24154. type: "string"
  24155. },
  24156. uri: {
  24157. type: "string",
  24158. format: "uri"
  24159. }
  24160. }
  24161. }
  24162. },
  24163. uuid: {
  24164. type: "string"
  24165. },
  24166. display: {
  24167. type: "string"
  24168. },
  24169. startDatetime: {
  24170. type: "string",
  24171. format: "date"
  24172. },
  24173. stopDatetime: {
  24174. type: "string",
  24175. format: "date"
  24176. },
  24177. attributes: {
  24178. type: "array",
  24179. items: {
  24180. type: "string"
  24181. }
  24182. },
  24183. voided: {
  24184. type: "boolean"
  24185. },
  24186. patient: {
  24187. $ref: "#/definitions/PatientGet"
  24188. },
  24189. visitType: {
  24190. $ref: "#/definitions/VisittypeGet"
  24191. },
  24192. indication: {
  24193. $ref: "#/definitions/ConceptGet"
  24194. },
  24195. location: {
  24196. $ref: "#/definitions/LocationGet"
  24197. },
  24198. encounters: {
  24199. type: "array",
  24200. items: {
  24201. $ref: "#/definitions/EncounterGet"
  24202. }
  24203. }
  24204. }
  24205. },
  24206. VisitCreate: {
  24207. required: [
  24208. "patient",
  24209. "visitType"
  24210. ],
  24211. properties: {
  24212. patient: {
  24213. type: "string",
  24214. example: "uuid"
  24215. },
  24216. visitType: {
  24217. type: "string",
  24218. example: "uuid"
  24219. },
  24220. startDatetime: {
  24221. type: "string",
  24222. format: "date"
  24223. },
  24224. location: {
  24225. type: "string",
  24226. example: "uuid"
  24227. },
  24228. indication: {
  24229. type: "string"
  24230. },
  24231. stopDatetime: {
  24232. type: "string",
  24233. format: "date"
  24234. },
  24235. encounters: {
  24236. type: "array",
  24237. items: {
  24238. type: "string",
  24239. example: "uuid"
  24240. }
  24241. },
  24242. attributes: {
  24243. type: "array",
  24244. items: {
  24245. $ref: "#/definitions/VisitAttributeCreate"
  24246. }
  24247. }
  24248. }
  24249. },
  24250. VisitCreateFull: {
  24251. required: [
  24252. "patient",
  24253. "visitType"
  24254. ],
  24255. properties: {
  24256. patient: {
  24257. $ref: "#/definitions/PatientCreate"
  24258. },
  24259. visitType: {
  24260. $ref: "#/definitions/VisittypeCreate"
  24261. },
  24262. startDatetime: {
  24263. type: "string",
  24264. format: "date"
  24265. },
  24266. location: {
  24267. $ref: "#/definitions/LocationCreate"
  24268. },
  24269. indication: {
  24270. $ref: "#/definitions/ConceptCreate"
  24271. },
  24272. stopDatetime: {
  24273. type: "string",
  24274. format: "date"
  24275. },
  24276. encounters: {
  24277. type: "array",
  24278. items: {
  24279. $ref: "#/definitions/EncounterCreate"
  24280. }
  24281. },
  24282. attributes: {
  24283. type: "array",
  24284. items: {
  24285. $ref: "#/definitions/VisitAttributeCreate"
  24286. }
  24287. }
  24288. }
  24289. },
  24290. VisitUpdate: {
  24291. properties: {
  24292. visitType: {
  24293. $ref: "#/definitions/VisittypeCreate"
  24294. },
  24295. startDatetime: {
  24296. type: "string",
  24297. format: "date"
  24298. },
  24299. location: {
  24300. $ref: "#/definitions/LocationCreate"
  24301. },
  24302. indication: {
  24303. $ref: "#/definitions/ConceptCreate"
  24304. },
  24305. stopDatetime: {
  24306. type: "string",
  24307. format: "date"
  24308. },
  24309. encounters: {
  24310. type: "array",
  24311. items: {
  24312. $ref: "#/definitions/EncounterCreate"
  24313. }
  24314. },
  24315. attributes: {
  24316. type: "array",
  24317. items: {
  24318. type: "string"
  24319. }
  24320. }
  24321. }
  24322. },
  24323. UserGet: {
  24324. properties: {
  24325. links: {
  24326. type: "array",
  24327. items: {
  24328. type: "object",
  24329. properties: {
  24330. rel: {
  24331. type: "string",
  24332. example: "self|full"
  24333. },
  24334. uri: {
  24335. type: "string",
  24336. format: "uri"
  24337. }
  24338. }
  24339. }
  24340. },
  24341. uuid: {
  24342. type: "string"
  24343. },
  24344. display: {
  24345. type: "string"
  24346. },
  24347. username: {
  24348. type: "string"
  24349. },
  24350. systemId: {
  24351. type: "string"
  24352. },
  24353. userProperties: {
  24354. type: "object"
  24355. },
  24356. person: {
  24357. $ref: "#/definitions/PersonGetRef"
  24358. },
  24359. privileges: {
  24360. type: "array",
  24361. items: {
  24362. $ref: "#/definitions/PrivilegeGetRef"
  24363. }
  24364. },
  24365. roles: {
  24366. type: "array",
  24367. items: {
  24368. $ref: "#/definitions/RoleGetRef"
  24369. }
  24370. }
  24371. }
  24372. },
  24373. UserGetRef: {
  24374. properties: {
  24375. links: {
  24376. type: "array",
  24377. items: {
  24378. type: "object",
  24379. properties: {
  24380. rel: {
  24381. type: "string",
  24382. example: "self"
  24383. },
  24384. uri: {
  24385. type: "string",
  24386. format: "uri"
  24387. }
  24388. }
  24389. }
  24390. },
  24391. uuid: {
  24392. type: "string"
  24393. },
  24394. display: {
  24395. type: "string"
  24396. }
  24397. }
  24398. },
  24399. UserGetFull: {
  24400. properties: {
  24401. auditInfo: {
  24402. type: "string"
  24403. },
  24404. links: {
  24405. type: "array",
  24406. items: {
  24407. type: "object",
  24408. example: "self",
  24409. properties: {
  24410. rel: {
  24411. type: "string"
  24412. },
  24413. uri: {
  24414. type: "string",
  24415. format: "uri"
  24416. }
  24417. }
  24418. }
  24419. },
  24420. uuid: {
  24421. type: "string"
  24422. },
  24423. display: {
  24424. type: "string"
  24425. },
  24426. name: {
  24427. type: "string"
  24428. },
  24429. description: {
  24430. type: "string"
  24431. },
  24432. retired: {
  24433. type: "boolean"
  24434. },
  24435. username: {
  24436. type: "string"
  24437. },
  24438. systemId: {
  24439. type: "string"
  24440. },
  24441. userProperties: {
  24442. type: "object"
  24443. },
  24444. person: {
  24445. $ref: "#/definitions/PersonGet"
  24446. },
  24447. privileges: {
  24448. type: "array",
  24449. items: {
  24450. $ref: "#/definitions/PrivilegeGet"
  24451. }
  24452. },
  24453. roles: {
  24454. type: "array",
  24455. items: {
  24456. $ref: "#/definitions/RoleGet"
  24457. }
  24458. },
  24459. allRoles: {
  24460. type: "array",
  24461. items: {
  24462. $ref: "#/definitions/RoleGet"
  24463. }
  24464. },
  24465. proficientLocales: {
  24466. type: "array",
  24467. items: {
  24468. type: "object"
  24469. }
  24470. },
  24471. secretQuestion: {
  24472. type: "string"
  24473. }
  24474. }
  24475. },
  24476. UserCreate: {
  24477. required: [
  24478. "name",
  24479. "password",
  24480. "person",
  24481. "username"
  24482. ],
  24483. properties: {
  24484. name: {
  24485. type: "string"
  24486. },
  24487. description: {
  24488. type: "string"
  24489. },
  24490. username: {
  24491. type: "string"
  24492. },
  24493. password: {
  24494. type: "string"
  24495. },
  24496. person: {
  24497. $ref: "#/definitions/PersonCreate"
  24498. },
  24499. systemId: {
  24500. type: "string"
  24501. },
  24502. userProperties: {
  24503. type: "object"
  24504. },
  24505. roles: {
  24506. type: "array",
  24507. items: {
  24508. $ref: "#/definitions/RoleCreate"
  24509. }
  24510. },
  24511. proficientLocales: {
  24512. type: "array",
  24513. items: {
  24514. type: "object"
  24515. }
  24516. },
  24517. secretQuestion: {
  24518. type: "string"
  24519. }
  24520. }
  24521. },
  24522. UserCreateFull: {
  24523. required: [
  24524. "name",
  24525. "password",
  24526. "person",
  24527. "username"
  24528. ],
  24529. properties: {
  24530. name: {
  24531. type: "string"
  24532. },
  24533. description: {
  24534. type: "string"
  24535. },
  24536. username: {
  24537. type: "string"
  24538. },
  24539. password: {
  24540. type: "string"
  24541. },
  24542. person: {
  24543. $ref: "#/definitions/PersonCreate"
  24544. },
  24545. systemId: {
  24546. type: "string"
  24547. },
  24548. userProperties: {
  24549. type: "object"
  24550. },
  24551. roles: {
  24552. type: "array",
  24553. items: {
  24554. $ref: "#/definitions/RoleCreate"
  24555. }
  24556. },
  24557. proficientLocales: {
  24558. type: "array",
  24559. items: {
  24560. type: "object"
  24561. }
  24562. },
  24563. secretQuestion: {
  24564. type: "string"
  24565. }
  24566. }
  24567. },
  24568. UserUpdate: {
  24569. required: [
  24570. "name",
  24571. "password",
  24572. "person",
  24573. "username"
  24574. ],
  24575. properties: {
  24576. name: {
  24577. type: "string"
  24578. },
  24579. description: {
  24580. type: "string"
  24581. },
  24582. username: {
  24583. type: "string"
  24584. },
  24585. password: {
  24586. type: "string"
  24587. },
  24588. person: {
  24589. $ref: "#/definitions/PersonCreate"
  24590. },
  24591. systemId: {
  24592. type: "string"
  24593. },
  24594. userProperties: {
  24595. type: "object"
  24596. },
  24597. roles: {
  24598. type: "array",
  24599. items: {
  24600. $ref: "#/definitions/RoleCreate"
  24601. }
  24602. },
  24603. proficientLocales: {
  24604. type: "array",
  24605. items: {
  24606. type: "object"
  24607. }
  24608. },
  24609. secretQuestion: {
  24610. type: "string"
  24611. }
  24612. }
  24613. },
  24614. CaresettingGet: {
  24615. properties: {
  24616. links: {
  24617. type: "array",
  24618. items: {
  24619. type: "object",
  24620. properties: {
  24621. rel: {
  24622. type: "string",
  24623. example: "self|full"
  24624. },
  24625. uri: {
  24626. type: "string",
  24627. format: "uri"
  24628. }
  24629. }
  24630. }
  24631. },
  24632. uuid: {
  24633. type: "string"
  24634. },
  24635. display: {
  24636. type: "string"
  24637. },
  24638. careSettingType: {
  24639. type: "string",
  24640. enum: [
  24641. "OUTPATIENT",
  24642. "INPATIENT"
  24643. ]
  24644. }
  24645. }
  24646. },
  24647. CaresettingGetRef: {
  24648. properties: {
  24649. links: {
  24650. type: "array",
  24651. items: {
  24652. type: "object",
  24653. properties: {
  24654. rel: {
  24655. type: "string",
  24656. example: "self"
  24657. },
  24658. uri: {
  24659. type: "string",
  24660. format: "uri"
  24661. }
  24662. }
  24663. }
  24664. },
  24665. uuid: {
  24666. type: "string"
  24667. },
  24668. display: {
  24669. type: "string"
  24670. }
  24671. }
  24672. },
  24673. CaresettingGetFull: {
  24674. properties: {
  24675. auditInfo: {
  24676. type: "string"
  24677. },
  24678. links: {
  24679. type: "array",
  24680. items: {
  24681. type: "object",
  24682. example: "self",
  24683. properties: {
  24684. rel: {
  24685. type: "string"
  24686. },
  24687. uri: {
  24688. type: "string",
  24689. format: "uri"
  24690. }
  24691. }
  24692. }
  24693. },
  24694. uuid: {
  24695. type: "string"
  24696. },
  24697. display: {
  24698. type: "string"
  24699. },
  24700. name: {
  24701. type: "string"
  24702. },
  24703. description: {
  24704. type: "string"
  24705. },
  24706. retired: {
  24707. type: "boolean"
  24708. },
  24709. careSettingType: {
  24710. type: "string",
  24711. enum: [
  24712. "OUTPATIENT",
  24713. "INPATIENT"
  24714. ]
  24715. }
  24716. }
  24717. },
  24718. ModuleactionCreate: {
  24719. required: [
  24720. "action"
  24721. ],
  24722. properties: {
  24723. modules: {
  24724. type: "array",
  24725. items: {
  24726. type: "string",
  24727. example: "moduleId"
  24728. }
  24729. },
  24730. allModules: {
  24731. type: "boolean"
  24732. },
  24733. action: {
  24734. type: "string",
  24735. enum: [
  24736. "START",
  24737. "STOP",
  24738. "RESTART",
  24739. "UNLOAD",
  24740. "INSTALL"
  24741. ]
  24742. },
  24743. installUri: {
  24744. type: "string"
  24745. }
  24746. }
  24747. },
  24748. ModuleactionCreateFull: {
  24749. required: [
  24750. "action"
  24751. ],
  24752. properties: {
  24753. modules: {
  24754. type: "array",
  24755. items: {
  24756. type: "string",
  24757. example: "moduleId"
  24758. }
  24759. },
  24760. allModules: {
  24761. type: "boolean"
  24762. },
  24763. action: {
  24764. type: "string",
  24765. enum: [
  24766. "START",
  24767. "STOP",
  24768. "RESTART",
  24769. "UNLOAD",
  24770. "INSTALL"
  24771. ]
  24772. },
  24773. installUri: {
  24774. type: "string"
  24775. }
  24776. }
  24777. },
  24778. RelationshiptypeGet: {
  24779. properties: {
  24780. links: {
  24781. type: "array",
  24782. items: {
  24783. type: "object",
  24784. properties: {
  24785. rel: {
  24786. type: "string",
  24787. example: "self|full"
  24788. },
  24789. uri: {
  24790. type: "string",
  24791. format: "uri"
  24792. }
  24793. }
  24794. }
  24795. },
  24796. uuid: {
  24797. type: "string"
  24798. },
  24799. display: {
  24800. type: "string"
  24801. },
  24802. aIsToB: {
  24803. type: "string"
  24804. },
  24805. bIsToA: {
  24806. type: "string"
  24807. }
  24808. }
  24809. },
  24810. RelationshiptypeGetRef: {
  24811. properties: {
  24812. links: {
  24813. type: "array",
  24814. items: {
  24815. type: "object",
  24816. properties: {
  24817. rel: {
  24818. type: "string",
  24819. example: "self"
  24820. },
  24821. uri: {
  24822. type: "string",
  24823. format: "uri"
  24824. }
  24825. }
  24826. }
  24827. },
  24828. uuid: {
  24829. type: "string"
  24830. },
  24831. display: {
  24832. type: "string"
  24833. }
  24834. }
  24835. },
  24836. RelationshiptypeGetFull: {
  24837. properties: {
  24838. auditInfo: {
  24839. type: "string"
  24840. },
  24841. links: {
  24842. type: "array",
  24843. items: {
  24844. type: "object",
  24845. example: "self",
  24846. properties: {
  24847. rel: {
  24848. type: "string"
  24849. },
  24850. uri: {
  24851. type: "string",
  24852. format: "uri"
  24853. }
  24854. }
  24855. }
  24856. },
  24857. uuid: {
  24858. type: "string"
  24859. },
  24860. display: {
  24861. type: "string"
  24862. },
  24863. name: {
  24864. type: "string"
  24865. },
  24866. description: {
  24867. type: "string"
  24868. },
  24869. retired: {
  24870. type: "boolean"
  24871. },
  24872. aIsToB: {
  24873. type: "string"
  24874. },
  24875. bIsToA: {
  24876. type: "string"
  24877. },
  24878. weight: {
  24879. type: "integer",
  24880. format: "int32"
  24881. }
  24882. }
  24883. },
  24884. RelationshiptypeCreate: {
  24885. required: [
  24886. "aIsToB",
  24887. "bIsToA",
  24888. "name"
  24889. ],
  24890. properties: {
  24891. name: {
  24892. type: "string"
  24893. },
  24894. description: {
  24895. type: "string"
  24896. },
  24897. aIsToB: {
  24898. type: "string"
  24899. },
  24900. bIsToA: {
  24901. type: "string"
  24902. },
  24903. weight: {
  24904. type: "integer",
  24905. format: "int32"
  24906. }
  24907. }
  24908. },
  24909. RelationshiptypeCreateFull: {
  24910. required: [
  24911. "aIsToB",
  24912. "bIsToA",
  24913. "name"
  24914. ],
  24915. properties: {
  24916. name: {
  24917. type: "string"
  24918. },
  24919. description: {
  24920. type: "string"
  24921. },
  24922. aIsToB: {
  24923. type: "string"
  24924. },
  24925. bIsToA: {
  24926. type: "string"
  24927. },
  24928. weight: {
  24929. type: "integer",
  24930. format: "int32"
  24931. }
  24932. }
  24933. },
  24934. RelationshiptypeUpdate: { },
  24935. OrdertypeGet: {
  24936. properties: {
  24937. links: {
  24938. type: "array",
  24939. items: {
  24940. type: "object",
  24941. properties: {
  24942. rel: {
  24943. type: "string",
  24944. example: "self|full"
  24945. },
  24946. uri: {
  24947. type: "string",
  24948. format: "uri"
  24949. }
  24950. }
  24951. }
  24952. },
  24953. uuid: {
  24954. type: "string"
  24955. },
  24956. display: {
  24957. type: "string"
  24958. },
  24959. javaClassName: {
  24960. type: "string"
  24961. },
  24962. conceptClasses: {
  24963. type: "array",
  24964. items: {
  24965. $ref: "#/definitions/ConceptclassGetRef"
  24966. }
  24967. },
  24968. parent: {
  24969. $ref: "#/definitions/OrdertypeGetRef"
  24970. }
  24971. }
  24972. },
  24973. OrdertypeGetRef: {
  24974. properties: {
  24975. links: {
  24976. type: "array",
  24977. items: {
  24978. type: "object",
  24979. properties: {
  24980. rel: {
  24981. type: "string",
  24982. example: "self"
  24983. },
  24984. uri: {
  24985. type: "string",
  24986. format: "uri"
  24987. }
  24988. }
  24989. }
  24990. },
  24991. uuid: {
  24992. type: "string"
  24993. },
  24994. display: {
  24995. type: "string"
  24996. }
  24997. }
  24998. },
  24999. OrdertypeGetFull: {
  25000. properties: {
  25001. auditInfo: {
  25002. type: "string"
  25003. },
  25004. links: {
  25005. type: "array",
  25006. items: {
  25007. type: "object",
  25008. example: "self",
  25009. properties: {
  25010. rel: {
  25011. type: "string"
  25012. },
  25013. uri: {
  25014. type: "string",
  25015. format: "uri"
  25016. }
  25017. }
  25018. }
  25019. },
  25020. uuid: {
  25021. type: "string"
  25022. },
  25023. display: {
  25024. type: "string"
  25025. },
  25026. name: {
  25027. type: "string"
  25028. },
  25029. description: {
  25030. type: "string"
  25031. },
  25032. retired: {
  25033. type: "boolean"
  25034. },
  25035. javaClassName: {
  25036. type: "string"
  25037. },
  25038. conceptClasses: {
  25039. type: "array",
  25040. items: {
  25041. $ref: "#/definitions/ConceptclassGet"
  25042. }
  25043. },
  25044. parent: {
  25045. $ref: "#/definitions/OrdertypeGet"
  25046. }
  25047. }
  25048. },
  25049. OrdertypeCreate: {
  25050. required: [
  25051. "javaClassName",
  25052. "name"
  25053. ],
  25054. properties: {
  25055. name: {
  25056. type: "string"
  25057. },
  25058. description: {
  25059. type: "string"
  25060. },
  25061. javaClassName: {
  25062. type: "string"
  25063. },
  25064. parent: {
  25065. type: "string",
  25066. example: "uuid"
  25067. },
  25068. conceptClasses: {
  25069. type: "array",
  25070. items: {
  25071. type: "string",
  25072. example: "uuid"
  25073. }
  25074. }
  25075. }
  25076. },
  25077. OrdertypeCreateFull: {
  25078. required: [
  25079. "javaClassName",
  25080. "name"
  25081. ],
  25082. properties: {
  25083. name: {
  25084. type: "string"
  25085. },
  25086. description: {
  25087. type: "string"
  25088. },
  25089. javaClassName: {
  25090. type: "string"
  25091. },
  25092. parent: {
  25093. type: "string",
  25094. example: "uuid"
  25095. },
  25096. conceptClasses: {
  25097. type: "array",
  25098. items: {
  25099. type: "string",
  25100. example: "uuid"
  25101. }
  25102. }
  25103. }
  25104. },
  25105. OrdertypeUpdate: {
  25106. required: [
  25107. "javaClassName",
  25108. "name"
  25109. ],
  25110. properties: {
  25111. name: {
  25112. type: "string"
  25113. },
  25114. description: {
  25115. type: "string"
  25116. },
  25117. javaClassName: {
  25118. type: "string"
  25119. },
  25120. parent: {
  25121. type: "string",
  25122. example: "uuid"
  25123. },
  25124. conceptClasses: {
  25125. type: "array",
  25126. items: {
  25127. type: "string",
  25128. example: "uuid"
  25129. }
  25130. }
  25131. }
  25132. },
  25133. ConceptstopwordGet: {
  25134. properties: {
  25135. links: {
  25136. type: "array",
  25137. items: {
  25138. type: "object",
  25139. properties: {
  25140. rel: {
  25141. type: "string",
  25142. example: "self|full"
  25143. },
  25144. uri: {
  25145. type: "string",
  25146. format: "uri"
  25147. }
  25148. }
  25149. }
  25150. },
  25151. uuid: {
  25152. type: "string"
  25153. },
  25154. display: {
  25155. type: "string"
  25156. },
  25157. value: {
  25158. type: "string"
  25159. },
  25160. locale: {
  25161. type: "string",
  25162. example: "en"
  25163. }
  25164. }
  25165. },
  25166. ConceptstopwordGetRef: {
  25167. properties: {
  25168. links: {
  25169. type: "array",
  25170. items: {
  25171. type: "object",
  25172. properties: {
  25173. rel: {
  25174. type: "string",
  25175. example: "self"
  25176. },
  25177. uri: {
  25178. type: "string",
  25179. format: "uri"
  25180. }
  25181. }
  25182. }
  25183. },
  25184. uuid: {
  25185. type: "string"
  25186. },
  25187. display: {
  25188. type: "string"
  25189. }
  25190. }
  25191. },
  25192. ConceptstopwordGetFull: {
  25193. properties: {
  25194. auditInfo: {
  25195. type: "string"
  25196. },
  25197. links: {
  25198. type: "array",
  25199. items: {
  25200. type: "object",
  25201. example: "self",
  25202. properties: {
  25203. rel: {
  25204. type: "string"
  25205. },
  25206. uri: {
  25207. type: "string",
  25208. format: "uri"
  25209. }
  25210. }
  25211. }
  25212. },
  25213. uuid: {
  25214. type: "string"
  25215. },
  25216. display: {
  25217. type: "string"
  25218. },
  25219. value: {
  25220. type: "string"
  25221. },
  25222. locale: {
  25223. type: "string",
  25224. example: "en"
  25225. }
  25226. }
  25227. },
  25228. ConceptstopwordCreate: {
  25229. required: [
  25230. "value"
  25231. ],
  25232. properties: {
  25233. value: {
  25234. type: "string"
  25235. },
  25236. locale: {
  25237. type: "string",
  25238. example: "en"
  25239. }
  25240. }
  25241. },
  25242. ConceptstopwordCreateFull: {
  25243. required: [
  25244. "value"
  25245. ],
  25246. properties: {
  25247. value: {
  25248. type: "string"
  25249. },
  25250. locale: {
  25251. type: "string",
  25252. example: "en"
  25253. }
  25254. }
  25255. },
  25256. ConceptstopwordUpdate: {
  25257. required: [
  25258. "value"
  25259. ],
  25260. properties: {
  25261. value: {
  25262. type: "string"
  25263. },
  25264. locale: {
  25265. type: "string",
  25266. example: "en"
  25267. }
  25268. }
  25269. },
  25270. FieldtypeGet: {
  25271. properties: {
  25272. links: {
  25273. type: "array",
  25274. items: {
  25275. type: "object",
  25276. properties: {
  25277. rel: {
  25278. type: "string",
  25279. example: "self|full"
  25280. },
  25281. uri: {
  25282. type: "string",
  25283. format: "uri"
  25284. }
  25285. }
  25286. }
  25287. },
  25288. uuid: {
  25289. type: "string"
  25290. },
  25291. display: {
  25292. type: "string"
  25293. },
  25294. isSet: {
  25295. type: "boolean",
  25296. default: false
  25297. }
  25298. }
  25299. },
  25300. FieldtypeGetRef: {
  25301. properties: {
  25302. links: {
  25303. type: "array",
  25304. items: {
  25305. type: "object",
  25306. properties: {
  25307. rel: {
  25308. type: "string",
  25309. example: "self"
  25310. },
  25311. uri: {
  25312. type: "string",
  25313. format: "uri"
  25314. }
  25315. }
  25316. }
  25317. },
  25318. uuid: {
  25319. type: "string"
  25320. },
  25321. display: {
  25322. type: "string"
  25323. }
  25324. }
  25325. },
  25326. FieldtypeGetFull: {
  25327. properties: {
  25328. auditInfo: {
  25329. type: "string"
  25330. },
  25331. links: {
  25332. type: "array",
  25333. items: {
  25334. type: "object",
  25335. example: "self",
  25336. properties: {
  25337. rel: {
  25338. type: "string"
  25339. },
  25340. uri: {
  25341. type: "string",
  25342. format: "uri"
  25343. }
  25344. }
  25345. }
  25346. },
  25347. uuid: {
  25348. type: "string"
  25349. },
  25350. display: {
  25351. type: "string"
  25352. },
  25353. name: {
  25354. type: "string"
  25355. },
  25356. description: {
  25357. type: "string"
  25358. },
  25359. retired: {
  25360. type: "boolean"
  25361. },
  25362. isSet: {
  25363. type: "boolean",
  25364. default: false
  25365. }
  25366. }
  25367. },
  25368. FieldtypeCreate: {
  25369. required: [
  25370. "name"
  25371. ],
  25372. properties: {
  25373. name: {
  25374. type: "string"
  25375. },
  25376. description: {
  25377. type: "string"
  25378. }
  25379. }
  25380. },
  25381. FieldtypeCreateFull: {
  25382. required: [
  25383. "name"
  25384. ],
  25385. properties: {
  25386. name: {
  25387. type: "string"
  25388. },
  25389. description: {
  25390. type: "string"
  25391. }
  25392. }
  25393. },
  25394. FieldtypeUpdate: { },
  25395. LocationattributetypeGet: {
  25396. properties: {
  25397. links: {
  25398. type: "array",
  25399. items: {
  25400. type: "object",
  25401. properties: {
  25402. rel: {
  25403. type: "string",
  25404. example: "self|full"
  25405. },
  25406. uri: {
  25407. type: "string",
  25408. format: "uri"
  25409. }
  25410. }
  25411. }
  25412. },
  25413. uuid: {
  25414. type: "string"
  25415. },
  25416. display: {
  25417. type: "string"
  25418. },
  25419. minOccurs: {
  25420. type: "integer",
  25421. format: "int32"
  25422. },
  25423. maxOccurs: {
  25424. type: "integer",
  25425. format: "int32"
  25426. },
  25427. datatypeClassname: {
  25428. type: "string"
  25429. },
  25430. preferredHandlerClassname: {
  25431. type: "string"
  25432. }
  25433. }
  25434. },
  25435. LocationattributetypeGetRef: {
  25436. properties: {
  25437. links: {
  25438. type: "array",
  25439. items: {
  25440. type: "object",
  25441. properties: {
  25442. rel: {
  25443. type: "string",
  25444. example: "self"
  25445. },
  25446. uri: {
  25447. type: "string",
  25448. format: "uri"
  25449. }
  25450. }
  25451. }
  25452. },
  25453. uuid: {
  25454. type: "string"
  25455. },
  25456. display: {
  25457. type: "string"
  25458. }
  25459. }
  25460. },
  25461. LocationattributetypeGetFull: {
  25462. properties: {
  25463. auditInfo: {
  25464. type: "string"
  25465. },
  25466. links: {
  25467. type: "array",
  25468. items: {
  25469. type: "object",
  25470. example: "self",
  25471. properties: {
  25472. rel: {
  25473. type: "string"
  25474. },
  25475. uri: {
  25476. type: "string",
  25477. format: "uri"
  25478. }
  25479. }
  25480. }
  25481. },
  25482. uuid: {
  25483. type: "string"
  25484. },
  25485. display: {
  25486. type: "string"
  25487. },
  25488. name: {
  25489. type: "string"
  25490. },
  25491. description: {
  25492. type: "string"
  25493. },
  25494. retired: {
  25495. type: "boolean"
  25496. },
  25497. minOccurs: {
  25498. type: "integer",
  25499. format: "int32"
  25500. },
  25501. maxOccurs: {
  25502. type: "integer",
  25503. format: "int32"
  25504. },
  25505. datatypeClassname: {
  25506. type: "string"
  25507. },
  25508. preferredHandlerClassname: {
  25509. type: "string"
  25510. },
  25511. datatypeConfig: {
  25512. type: "string"
  25513. },
  25514. handlerConfig: {
  25515. type: "string"
  25516. }
  25517. }
  25518. },
  25519. LocationattributetypeCreate: {
  25520. required: [
  25521. "datatypeClassname",
  25522. "name"
  25523. ],
  25524. properties: {
  25525. name: {
  25526. type: "string"
  25527. },
  25528. description: {
  25529. type: "string"
  25530. },
  25531. datatypeClassname: {
  25532. type: "string"
  25533. },
  25534. minOccurs: {
  25535. type: "integer",
  25536. format: "int32"
  25537. },
  25538. maxOccurs: {
  25539. type: "integer",
  25540. format: "int32"
  25541. },
  25542. datatypeConfig: {
  25543. type: "string"
  25544. },
  25545. preferredHandlerClassname: {
  25546. type: "string"
  25547. },
  25548. handlerConfig: {
  25549. type: "string"
  25550. }
  25551. }
  25552. },
  25553. LocationattributetypeCreateFull: {
  25554. required: [
  25555. "datatypeClassname",
  25556. "name"
  25557. ],
  25558. properties: {
  25559. name: {
  25560. type: "string"
  25561. },
  25562. description: {
  25563. type: "string"
  25564. },
  25565. datatypeClassname: {
  25566. type: "string"
  25567. },
  25568. minOccurs: {
  25569. type: "integer",
  25570. format: "int32"
  25571. },
  25572. maxOccurs: {
  25573. type: "integer",
  25574. format: "int32"
  25575. },
  25576. datatypeConfig: {
  25577. type: "string"
  25578. },
  25579. preferredHandlerClassname: {
  25580. type: "string"
  25581. },
  25582. handlerConfig: {
  25583. type: "string"
  25584. }
  25585. }
  25586. },
  25587. LocationattributetypeUpdate: {
  25588. required: [
  25589. "datatypeClassname",
  25590. "name"
  25591. ],
  25592. properties: {
  25593. name: {
  25594. type: "string"
  25595. },
  25596. description: {
  25597. type: "string"
  25598. },
  25599. datatypeClassname: {
  25600. type: "string"
  25601. },
  25602. minOccurs: {
  25603. type: "integer",
  25604. format: "int32"
  25605. },
  25606. maxOccurs: {
  25607. type: "integer",
  25608. format: "int32"
  25609. },
  25610. datatypeConfig: {
  25611. type: "string"
  25612. },
  25613. preferredHandlerClassname: {
  25614. type: "string"
  25615. },
  25616. handlerConfig: {
  25617. type: "string"
  25618. }
  25619. }
  25620. },
  25621. RelationshipGet: {
  25622. properties: {
  25623. links: {
  25624. type: "array",
  25625. items: {
  25626. type: "object",
  25627. properties: {
  25628. rel: {
  25629. type: "string",
  25630. example: "self|full"
  25631. },
  25632. uri: {
  25633. type: "string",
  25634. format: "uri"
  25635. }
  25636. }
  25637. }
  25638. },
  25639. uuid: {
  25640. type: "string"
  25641. },
  25642. display: {
  25643. type: "string"
  25644. },
  25645. voided: {
  25646. type: "boolean"
  25647. },
  25648. personA: {
  25649. $ref: "#/definitions/PersonGetRef"
  25650. },
  25651. relationshipType: {
  25652. $ref: "#/definitions/RelationshiptypeGetRef"
  25653. },
  25654. personB: {
  25655. $ref: "#/definitions/PersonGetRef"
  25656. }
  25657. }
  25658. },
  25659. RelationshipGetRef: {
  25660. properties: {
  25661. links: {
  25662. type: "array",
  25663. items: {
  25664. type: "object",
  25665. properties: {
  25666. rel: {
  25667. type: "string",
  25668. example: "self"
  25669. },
  25670. uri: {
  25671. type: "string",
  25672. format: "uri"
  25673. }
  25674. }
  25675. }
  25676. }
  25677. }
  25678. },
  25679. RelationshipGetFull: {
  25680. properties: {
  25681. auditInfo: {
  25682. type: "string"
  25683. },
  25684. links: {
  25685. type: "array",
  25686. items: {
  25687. type: "object",
  25688. example: "self",
  25689. properties: {
  25690. rel: {
  25691. type: "string"
  25692. },
  25693. uri: {
  25694. type: "string",
  25695. format: "uri"
  25696. }
  25697. }
  25698. }
  25699. },
  25700. uuid: {
  25701. type: "string"
  25702. },
  25703. display: {
  25704. type: "string"
  25705. },
  25706. voided: {
  25707. type: "boolean"
  25708. },
  25709. personA: {
  25710. $ref: "#/definitions/PersonGet"
  25711. },
  25712. relationshipType: {
  25713. $ref: "#/definitions/RelationshiptypeGet"
  25714. },
  25715. personB: {
  25716. $ref: "#/definitions/PersonGet"
  25717. }
  25718. }
  25719. },
  25720. RelationshipCreate: {
  25721. required: [
  25722. "personA",
  25723. "personB",
  25724. "relationshipType"
  25725. ],
  25726. properties: {
  25727. personA: {
  25728. type: "string",
  25729. example: "uuid"
  25730. },
  25731. relationshipType: {
  25732. type: "string",
  25733. example: "uuid"
  25734. },
  25735. personB: {
  25736. type: "string",
  25737. example: "uuid"
  25738. },
  25739. startDate: {
  25740. type: "string",
  25741. format: "date"
  25742. },
  25743. endDate: {
  25744. type: "string",
  25745. format: "date"
  25746. }
  25747. }
  25748. },
  25749. RelationshipCreateFull: {
  25750. required: [
  25751. "personA",
  25752. "personB",
  25753. "relationshipType"
  25754. ],
  25755. properties: {
  25756. personA: {
  25757. $ref: "#/definitions/PersonCreate"
  25758. },
  25759. relationshipType: {
  25760. $ref: "#/definitions/RelationshiptypeCreate"
  25761. },
  25762. personB: {
  25763. $ref: "#/definitions/PersonCreate"
  25764. },
  25765. startDate: {
  25766. type: "string",
  25767. format: "date"
  25768. },
  25769. endDate: {
  25770. type: "string",
  25771. format: "date"
  25772. }
  25773. }
  25774. },
  25775. RelationshipUpdate: {
  25776. properties: {
  25777. voided: {
  25778. type: "boolean"
  25779. }
  25780. }
  25781. },
  25782. VisittypeGet: {
  25783. properties: {
  25784. links: {
  25785. type: "array",
  25786. items: {
  25787. type: "object",
  25788. properties: {
  25789. rel: {
  25790. type: "string",
  25791. example: "self|full"
  25792. },
  25793. uri: {
  25794. type: "string",
  25795. format: "uri"
  25796. }
  25797. }
  25798. }
  25799. },
  25800. uuid: {
  25801. type: "string"
  25802. },
  25803. display: {
  25804. type: "string"
  25805. }
  25806. }
  25807. },
  25808. VisittypeGetRef: {
  25809. properties: {
  25810. links: {
  25811. type: "array",
  25812. items: {
  25813. type: "object",
  25814. properties: {
  25815. rel: {
  25816. type: "string",
  25817. example: "self"
  25818. },
  25819. uri: {
  25820. type: "string",
  25821. format: "uri"
  25822. }
  25823. }
  25824. }
  25825. },
  25826. uuid: {
  25827. type: "string"
  25828. },
  25829. display: {
  25830. type: "string"
  25831. }
  25832. }
  25833. },
  25834. VisittypeGetFull: {
  25835. properties: {
  25836. auditInfo: {
  25837. type: "string"
  25838. },
  25839. links: {
  25840. type: "array",
  25841. items: {
  25842. type: "object",
  25843. example: "self",
  25844. properties: {
  25845. rel: {
  25846. type: "string"
  25847. },
  25848. uri: {
  25849. type: "string",
  25850. format: "uri"
  25851. }
  25852. }
  25853. }
  25854. },
  25855. uuid: {
  25856. type: "string"
  25857. },
  25858. display: {
  25859. type: "string"
  25860. },
  25861. name: {
  25862. type: "string"
  25863. },
  25864. description: {
  25865. type: "string"
  25866. },
  25867. retired: {
  25868. type: "boolean"
  25869. }
  25870. }
  25871. },
  25872. VisittypeCreate: {
  25873. required: [
  25874. "name"
  25875. ],
  25876. properties: {
  25877. name: {
  25878. type: "string"
  25879. },
  25880. description: {
  25881. type: "string"
  25882. }
  25883. }
  25884. },
  25885. VisittypeCreateFull: {
  25886. required: [
  25887. "name"
  25888. ],
  25889. properties: {
  25890. name: {
  25891. type: "string"
  25892. },
  25893. description: {
  25894. type: "string"
  25895. }
  25896. }
  25897. },
  25898. VisittypeUpdate: {
  25899. required: [
  25900. "name"
  25901. ],
  25902. properties: {
  25903. name: {
  25904. type: "string"
  25905. },
  25906. description: {
  25907. type: "string"
  25908. }
  25909. }
  25910. },
  25911. OrderCreate: {
  25912. required: [
  25913. "concept",
  25914. "orderType",
  25915. "patient"
  25916. ],
  25917. properties: {
  25918. encounter: {
  25919. type: "string",
  25920. example: "uuid"
  25921. },
  25922. orderType: {
  25923. type: "string",
  25924. example: "uuid"
  25925. },
  25926. action: {
  25927. type: "string",
  25928. enum: [
  25929. "NEW",
  25930. "REVISE",
  25931. "DISCONTINUE",
  25932. "RENEW"
  25933. ]
  25934. },
  25935. accessionNumber: {
  25936. type: "string"
  25937. },
  25938. dateActivated: {
  25939. type: "string",
  25940. format: "date"
  25941. },
  25942. scheduledDate: {
  25943. type: "string",
  25944. format: "date"
  25945. },
  25946. patient: {
  25947. type: "string",
  25948. example: "uuid"
  25949. },
  25950. concept: {
  25951. type: "string",
  25952. example: "uuid"
  25953. },
  25954. careSetting: {
  25955. type: "string",
  25956. example: "uuid"
  25957. },
  25958. dateStopped: {
  25959. type: "string",
  25960. format: "date"
  25961. },
  25962. autoExpireDate: {
  25963. type: "string",
  25964. format: "date"
  25965. },
  25966. orderer: {
  25967. type: "string",
  25968. example: "uuid"
  25969. },
  25970. previousOrder: {
  25971. type: "string",
  25972. example: "uuid"
  25973. },
  25974. urgency: {
  25975. type: "string",
  25976. enum: [
  25977. "ROUTINE",
  25978. "STAT",
  25979. "ON_SCHEDULED_DATE"
  25980. ]
  25981. },
  25982. orderReason: {
  25983. type: "string",
  25984. example: "uuid"
  25985. },
  25986. orderReasonNonCoded: {
  25987. type: "string"
  25988. },
  25989. instructions: {
  25990. type: "string"
  25991. },
  25992. commentToFulfiller: {
  25993. type: "string"
  25994. }
  25995. }
  25996. },
  25997. OrderCreateFull: {
  25998. required: [
  25999. "concept",
  26000. "orderType",
  26001. "patient"
  26002. ],
  26003. properties: {
  26004. encounter: {
  26005. $ref: "#/definitions/EncounterCreate"
  26006. },
  26007. orderType: {
  26008. type: "string",
  26009. example: "uuid"
  26010. },
  26011. action: {
  26012. type: "string",
  26013. enum: [
  26014. "NEW",
  26015. "REVISE",
  26016. "DISCONTINUE",
  26017. "RENEW"
  26018. ]
  26019. },
  26020. accessionNumber: {
  26021. type: "string"
  26022. },
  26023. dateActivated: {
  26024. type: "string",
  26025. format: "date"
  26026. },
  26027. scheduledDate: {
  26028. type: "string",
  26029. format: "date"
  26030. },
  26031. patient: {
  26032. $ref: "#/definitions/PatientCreate"
  26033. },
  26034. concept: {
  26035. $ref: "#/definitions/ConceptCreate"
  26036. },
  26037. careSetting: {
  26038. type: "string",
  26039. example: "uuid"
  26040. },
  26041. dateStopped: {
  26042. type: "string",
  26043. format: "date"
  26044. },
  26045. autoExpireDate: {
  26046. type: "string",
  26047. format: "date"
  26048. },
  26049. orderer: {
  26050. $ref: "#/definitions/UserCreate"
  26051. },
  26052. previousOrder: {
  26053. $ref: "#/definitions/OrderCreate"
  26054. },
  26055. urgency: {
  26056. type: "string",
  26057. enum: [
  26058. "ROUTINE",
  26059. "STAT",
  26060. "ON_SCHEDULED_DATE"
  26061. ]
  26062. },
  26063. orderReason: {
  26064. $ref: "#/definitions/ConceptCreate"
  26065. },
  26066. orderReasonNonCoded: {
  26067. type: "string"
  26068. },
  26069. instructions: {
  26070. type: "string"
  26071. },
  26072. commentToFulfiller: {
  26073. type: "string"
  26074. }
  26075. }
  26076. },
  26077. OrderGet: {
  26078. properties: {
  26079. links: {
  26080. type: "array",
  26081. items: {
  26082. type: "object",
  26083. properties: {
  26084. rel: {
  26085. type: "string",
  26086. example: "self|full"
  26087. },
  26088. uri: {
  26089. type: "string",
  26090. format: "uri"
  26091. }
  26092. }
  26093. }
  26094. },
  26095. uuid: {
  26096. type: "string"
  26097. },
  26098. display: {
  26099. type: "string"
  26100. },
  26101. instructions: {
  26102. type: "string"
  26103. },
  26104. startDate: {
  26105. type: "string",
  26106. format: "date"
  26107. },
  26108. autoExpireDate: {
  26109. type: "string",
  26110. format: "date"
  26111. },
  26112. accessionNumber: {
  26113. type: "string"
  26114. },
  26115. discontinuedDate: {
  26116. type: "string",
  26117. format: "date"
  26118. },
  26119. discontinuedReasonNonCoded: {
  26120. type: "string"
  26121. },
  26122. voided: {
  26123. type: "boolean"
  26124. },
  26125. orderType: {
  26126. $ref: "#/definitions/OrdertypeGetRef"
  26127. },
  26128. patient: {
  26129. $ref: "#/definitions/PatientGetRef"
  26130. },
  26131. concept: {
  26132. $ref: "#/definitions/ConceptGetRef"
  26133. },
  26134. encounter: {
  26135. $ref: "#/definitions/EncounterGetRef"
  26136. },
  26137. orderer: {
  26138. $ref: "#/definitions/UserGetRef"
  26139. },
  26140. discontinuedBy: {
  26141. $ref: "#/definitions/UserGetRef"
  26142. },
  26143. discontinuedReason: {
  26144. $ref: "#/definitions/ConceptGetRef"
  26145. }
  26146. }
  26147. },
  26148. OrderGetRef: {
  26149. properties: {
  26150. links: {
  26151. type: "array",
  26152. items: {
  26153. type: "object",
  26154. properties: {
  26155. rel: {
  26156. type: "string",
  26157. example: "self"
  26158. },
  26159. uri: {
  26160. type: "string",
  26161. format: "uri"
  26162. }
  26163. }
  26164. }
  26165. }
  26166. }
  26167. },
  26168. OrderGetFull: {
  26169. properties: {
  26170. auditInfo: {
  26171. type: "string"
  26172. },
  26173. links: {
  26174. type: "array",
  26175. items: {
  26176. type: "object",
  26177. example: "self",
  26178. properties: {
  26179. rel: {
  26180. type: "string"
  26181. },
  26182. uri: {
  26183. type: "string",
  26184. format: "uri"
  26185. }
  26186. }
  26187. }
  26188. },
  26189. uuid: {
  26190. type: "string"
  26191. },
  26192. display: {
  26193. type: "string"
  26194. },
  26195. instructions: {
  26196. type: "string"
  26197. },
  26198. startDate: {
  26199. type: "string",
  26200. format: "date"
  26201. },
  26202. autoExpireDate: {
  26203. type: "string",
  26204. format: "date"
  26205. },
  26206. accessionNumber: {
  26207. type: "string"
  26208. },
  26209. discontinuedDate: {
  26210. type: "string",
  26211. format: "date"
  26212. },
  26213. discontinuedReasonNonCoded: {
  26214. type: "string"
  26215. },
  26216. voided: {
  26217. type: "boolean"
  26218. },
  26219. orderType: {
  26220. $ref: "#/definitions/OrdertypeGet"
  26221. },
  26222. patient: {
  26223. $ref: "#/definitions/PatientGet"
  26224. },
  26225. concept: {
  26226. $ref: "#/definitions/ConceptGet"
  26227. },
  26228. encounter: {
  26229. $ref: "#/definitions/EncounterGet"
  26230. },
  26231. orderer: {
  26232. $ref: "#/definitions/UserGet"
  26233. },
  26234. discontinuedBy: {
  26235. $ref: "#/definitions/UserGet"
  26236. },
  26237. discontinuedReason: {
  26238. $ref: "#/definitions/ConceptGet"
  26239. }
  26240. }
  26241. },
  26242. DrugGet: {
  26243. properties: {
  26244. links: {
  26245. type: "array",
  26246. items: {
  26247. type: "object",
  26248. properties: {
  26249. rel: {
  26250. type: "string",
  26251. example: "self|full"
  26252. },
  26253. uri: {
  26254. type: "string",
  26255. format: "uri"
  26256. }
  26257. }
  26258. }
  26259. },
  26260. uuid: {
  26261. type: "string"
  26262. },
  26263. display: {
  26264. type: "string"
  26265. },
  26266. doseStrength: {
  26267. type: "number",
  26268. format: "double"
  26269. },
  26270. maximumDailyDose: {
  26271. type: "number",
  26272. format: "double"
  26273. },
  26274. minimumDailyDose: {
  26275. type: "number",
  26276. format: "double"
  26277. },
  26278. units: {
  26279. type: "string"
  26280. },
  26281. combination: {
  26282. type: "boolean",
  26283. default: false
  26284. },
  26285. dosageForm: {
  26286. $ref: "#/definitions/ConceptGetRef"
  26287. },
  26288. concept: {
  26289. $ref: "#/definitions/ConceptGetRef"
  26290. },
  26291. route: {
  26292. $ref: "#/definitions/ConceptGetRef"
  26293. },
  26294. drugReferenceMaps: {
  26295. $ref: "#/definitions/DrugreferencemapGetRef"
  26296. }
  26297. }
  26298. },
  26299. DrugGetRef: {
  26300. properties: {
  26301. links: {
  26302. type: "array",
  26303. items: {
  26304. type: "object",
  26305. properties: {
  26306. rel: {
  26307. type: "string",
  26308. example: "self"
  26309. },
  26310. uri: {
  26311. type: "string",
  26312. format: "uri"
  26313. }
  26314. }
  26315. }
  26316. },
  26317. uuid: {
  26318. type: "string"
  26319. },
  26320. display: {
  26321. type: "string"
  26322. }
  26323. }
  26324. },
  26325. DrugGetFull: {
  26326. properties: {
  26327. auditInfo: {
  26328. type: "string"
  26329. },
  26330. links: {
  26331. type: "array",
  26332. items: {
  26333. type: "object",
  26334. example: "self",
  26335. properties: {
  26336. rel: {
  26337. type: "string"
  26338. },
  26339. uri: {
  26340. type: "string",
  26341. format: "uri"
  26342. }
  26343. }
  26344. }
  26345. },
  26346. uuid: {
  26347. type: "string"
  26348. },
  26349. display: {
  26350. type: "string"
  26351. },
  26352. name: {
  26353. type: "string"
  26354. },
  26355. description: {
  26356. type: "string"
  26357. },
  26358. retired: {
  26359. type: "boolean"
  26360. },
  26361. doseStrength: {
  26362. type: "number",
  26363. format: "double"
  26364. },
  26365. maximumDailyDose: {
  26366. type: "number",
  26367. format: "double"
  26368. },
  26369. minimumDailyDose: {
  26370. type: "number",
  26371. format: "double"
  26372. },
  26373. units: {
  26374. type: "string"
  26375. },
  26376. combination: {
  26377. type: "boolean",
  26378. default: false
  26379. },
  26380. dosageForm: {
  26381. $ref: "#/definitions/ConceptGet"
  26382. },
  26383. concept: {
  26384. $ref: "#/definitions/ConceptGet"
  26385. },
  26386. route: {
  26387. $ref: "#/definitions/ConceptGet"
  26388. },
  26389. drugReferenceMaps: {
  26390. $ref: "#/definitions/DrugreferencemapGet"
  26391. }
  26392. }
  26393. },
  26394. DrugCreate: {
  26395. properties: {
  26396. drugReferenceMaps: {
  26397. $ref: "#/definitions/DrugreferencemapCreate"
  26398. }
  26399. }
  26400. },
  26401. DrugCreateFull: {
  26402. properties: {
  26403. drugReferenceMaps: {
  26404. $ref: "#/definitions/DrugreferencemapCreate"
  26405. }
  26406. }
  26407. },
  26408. DrugUpdate: {
  26409. properties: {
  26410. drugReferenceMaps: {
  26411. $ref: "#/definitions/DrugreferencemapCreate"
  26412. }
  26413. }
  26414. },
  26415. FieldGet: {
  26416. properties: {
  26417. links: {
  26418. type: "array",
  26419. items: {
  26420. type: "object",
  26421. properties: {
  26422. rel: {
  26423. type: "string",
  26424. example: "self|full"
  26425. },
  26426. uri: {
  26427. type: "string",
  26428. format: "uri"
  26429. }
  26430. }
  26431. }
  26432. },
  26433. uuid: {
  26434. type: "string"
  26435. },
  26436. display: {
  26437. type: "string"
  26438. },
  26439. tableName: {
  26440. type: "string"
  26441. },
  26442. attributeName: {
  26443. type: "string"
  26444. },
  26445. defaultValue: {
  26446. type: "string"
  26447. },
  26448. selectMultiple: {
  26449. type: "boolean",
  26450. default: false
  26451. },
  26452. fieldType: {
  26453. $ref: "#/definitions/FieldtypeGetRef"
  26454. },
  26455. concept: {
  26456. $ref: "#/definitions/ConceptGetRef"
  26457. }
  26458. }
  26459. },
  26460. FieldGetRef: {
  26461. properties: {
  26462. links: {
  26463. type: "array",
  26464. items: {
  26465. type: "object",
  26466. properties: {
  26467. rel: {
  26468. type: "string",
  26469. example: "self"
  26470. },
  26471. uri: {
  26472. type: "string",
  26473. format: "uri"
  26474. }
  26475. }
  26476. }
  26477. },
  26478. uuid: {
  26479. type: "string"
  26480. },
  26481. display: {
  26482. type: "string"
  26483. }
  26484. }
  26485. },
  26486. FieldGetFull: {
  26487. properties: {
  26488. auditInfo: {
  26489. type: "string"
  26490. },
  26491. links: {
  26492. type: "array",
  26493. items: {
  26494. type: "object",
  26495. example: "self",
  26496. properties: {
  26497. rel: {
  26498. type: "string"
  26499. },
  26500. uri: {
  26501. type: "string",
  26502. format: "uri"
  26503. }
  26504. }
  26505. }
  26506. },
  26507. uuid: {
  26508. type: "string"
  26509. },
  26510. display: {
  26511. type: "string"
  26512. },
  26513. name: {
  26514. type: "string"
  26515. },
  26516. description: {
  26517. type: "string"
  26518. },
  26519. retired: {
  26520. type: "boolean"
  26521. },
  26522. tableName: {
  26523. type: "string"
  26524. },
  26525. attributeName: {
  26526. type: "string"
  26527. },
  26528. defaultValue: {
  26529. type: "string"
  26530. },
  26531. selectMultiple: {
  26532. type: "boolean",
  26533. default: false
  26534. },
  26535. fieldType: {
  26536. $ref: "#/definitions/FieldtypeGet"
  26537. },
  26538. concept: {
  26539. $ref: "#/definitions/ConceptGet"
  26540. }
  26541. }
  26542. },
  26543. FieldCreate: {
  26544. required: [
  26545. "fieldType",
  26546. "name",
  26547. "selectMultiple"
  26548. ],
  26549. properties: {
  26550. name: {
  26551. type: "string"
  26552. },
  26553. description: {
  26554. type: "string"
  26555. },
  26556. fieldType: {
  26557. $ref: "#/definitions/FieldtypeCreate"
  26558. },
  26559. selectMultiple: {
  26560. type: "boolean",
  26561. default: false
  26562. },
  26563. concept: {
  26564. $ref: "#/definitions/ConceptCreate"
  26565. },
  26566. tableName: {
  26567. type: "string"
  26568. },
  26569. attributeName: {
  26570. type: "string"
  26571. },
  26572. defaultValue: {
  26573. type: "string"
  26574. }
  26575. }
  26576. },
  26577. FieldCreateFull: {
  26578. required: [
  26579. "fieldType",
  26580. "name",
  26581. "selectMultiple"
  26582. ],
  26583. properties: {
  26584. name: {
  26585. type: "string"
  26586. },
  26587. description: {
  26588. type: "string"
  26589. },
  26590. fieldType: {
  26591. $ref: "#/definitions/FieldtypeCreate"
  26592. },
  26593. selectMultiple: {
  26594. type: "boolean",
  26595. default: false
  26596. },
  26597. concept: {
  26598. $ref: "#/definitions/ConceptCreate"
  26599. },
  26600. tableName: {
  26601. type: "string"
  26602. },
  26603. attributeName: {
  26604. type: "string"
  26605. },
  26606. defaultValue: {
  26607. type: "string"
  26608. }
  26609. }
  26610. },
  26611. FieldUpdate: { },
  26612. EncountertypeGet: {
  26613. properties: {
  26614. links: {
  26615. type: "array",
  26616. items: {
  26617. type: "object",
  26618. properties: {
  26619. rel: {
  26620. type: "string",
  26621. example: "self|full"
  26622. },
  26623. uri: {
  26624. type: "string",
  26625. format: "uri"
  26626. }
  26627. }
  26628. }
  26629. },
  26630. uuid: {
  26631. type: "string"
  26632. },
  26633. display: {
  26634. type: "string"
  26635. }
  26636. }
  26637. },
  26638. EncountertypeGetRef: {
  26639. properties: {
  26640. links: {
  26641. type: "array",
  26642. items: {
  26643. type: "object",
  26644. properties: {
  26645. rel: {
  26646. type: "string",
  26647. example: "self"
  26648. },
  26649. uri: {
  26650. type: "string",
  26651. format: "uri"
  26652. }
  26653. }
  26654. }
  26655. },
  26656. uuid: {
  26657. type: "string"
  26658. },
  26659. display: {
  26660. type: "string"
  26661. }
  26662. }
  26663. },
  26664. EncountertypeGetFull: {
  26665. properties: {
  26666. auditInfo: {
  26667. type: "string"
  26668. },
  26669. links: {
  26670. type: "array",
  26671. items: {
  26672. type: "object",
  26673. example: "self",
  26674. properties: {
  26675. rel: {
  26676. type: "string"
  26677. },
  26678. uri: {
  26679. type: "string",
  26680. format: "uri"
  26681. }
  26682. }
  26683. }
  26684. },
  26685. uuid: {
  26686. type: "string"
  26687. },
  26688. display: {
  26689. type: "string"
  26690. },
  26691. name: {
  26692. type: "string"
  26693. },
  26694. description: {
  26695. type: "string"
  26696. },
  26697. retired: {
  26698. type: "boolean"
  26699. }
  26700. }
  26701. },
  26702. EncountertypeCreate: {
  26703. required: [
  26704. "description",
  26705. "name"
  26706. ],
  26707. properties: {
  26708. name: {
  26709. type: "string"
  26710. },
  26711. description: {
  26712. type: "string"
  26713. }
  26714. }
  26715. },
  26716. EncountertypeCreateFull: {
  26717. required: [
  26718. "description",
  26719. "name"
  26720. ],
  26721. properties: {
  26722. name: {
  26723. type: "string"
  26724. },
  26725. description: {
  26726. type: "string"
  26727. }
  26728. }
  26729. },
  26730. EncountertypeUpdate: {
  26731. required: [
  26732. "description",
  26733. "name"
  26734. ],
  26735. properties: {
  26736. name: {
  26737. type: "string"
  26738. },
  26739. description: {
  26740. type: "string"
  26741. }
  26742. }
  26743. },
  26744. ConceptreferencetermmapCreate: {
  26745. required: [
  26746. "conceptMapType",
  26747. "termA",
  26748. "termB"
  26749. ],
  26750. properties: {
  26751. termA: {
  26752. $ref: "#/definitions/ConceptreferencetermCreate"
  26753. },
  26754. termB: {
  26755. $ref: "#/definitions/ConceptreferencetermCreate"
  26756. },
  26757. conceptMapType: {
  26758. $ref: "#/definitions/ConceptmaptypeCreate"
  26759. }
  26760. }
  26761. },
  26762. ConceptreferencetermmapCreateFull: {
  26763. required: [
  26764. "conceptMapType",
  26765. "termA",
  26766. "termB"
  26767. ],
  26768. properties: {
  26769. termA: {
  26770. $ref: "#/definitions/ConceptreferencetermCreate"
  26771. },
  26772. termB: {
  26773. $ref: "#/definitions/ConceptreferencetermCreate"
  26774. },
  26775. conceptMapType: {
  26776. $ref: "#/definitions/ConceptmaptypeCreate"
  26777. }
  26778. }
  26779. },
  26780. ConceptreferencetermmapGet: {
  26781. properties: {
  26782. links: {
  26783. type: "array",
  26784. items: {
  26785. type: "object",
  26786. properties: {
  26787. rel: {
  26788. type: "string",
  26789. example: "self|full"
  26790. },
  26791. uri: {
  26792. type: "string",
  26793. format: "uri"
  26794. }
  26795. }
  26796. }
  26797. },
  26798. termA: {
  26799. $ref: "#/definitions/ConceptreferencetermGetRef"
  26800. },
  26801. termB: {
  26802. $ref: "#/definitions/ConceptreferencetermGetRef"
  26803. },
  26804. conceptMapType: {
  26805. $ref: "#/definitions/ConceptmaptypeGetRef"
  26806. }
  26807. }
  26808. },
  26809. ConceptreferencetermmapGetRef: {
  26810. properties: {
  26811. links: {
  26812. type: "array",
  26813. items: {
  26814. type: "object",
  26815. properties: {
  26816. rel: {
  26817. type: "string",
  26818. example: "self"
  26819. },
  26820. uri: {
  26821. type: "string",
  26822. format: "uri"
  26823. }
  26824. }
  26825. }
  26826. }
  26827. }
  26828. },
  26829. ConceptreferencetermmapGetFull: {
  26830. properties: {
  26831. auditInfo: {
  26832. type: "string"
  26833. },
  26834. links: {
  26835. type: "array",
  26836. items: {
  26837. type: "object",
  26838. example: "self",
  26839. properties: {
  26840. rel: {
  26841. type: "string"
  26842. },
  26843. uri: {
  26844. type: "string",
  26845. format: "uri"
  26846. }
  26847. }
  26848. }
  26849. },
  26850. termA: {
  26851. $ref: "#/definitions/ConceptreferencetermGet"
  26852. },
  26853. termB: {
  26854. $ref: "#/definitions/ConceptreferencetermGet"
  26855. },
  26856. conceptMapType: {
  26857. $ref: "#/definitions/ConceptmaptypeGet"
  26858. }
  26859. }
  26860. },
  26861. ConceptreferencetermmapUpdate: { },
  26862. EncounterCreate: {
  26863. required: [
  26864. "encounterType",
  26865. "patient"
  26866. ],
  26867. properties: {
  26868. patient: {
  26869. $ref: "#/definitions/PatientCreate"
  26870. },
  26871. encounterType: {
  26872. $ref: "#/definitions/EncountertypeCreate"
  26873. },
  26874. encounterDatetime: {
  26875. type: "string",
  26876. format: "date"
  26877. },
  26878. location: {
  26879. $ref: "#/definitions/LocationCreate"
  26880. },
  26881. form: {
  26882. $ref: "#/definitions/FormCreate"
  26883. },
  26884. provider: {
  26885. type: "string"
  26886. },
  26887. orders: {
  26888. type: "array",
  26889. items: {
  26890. $ref: "#/definitions/OrderCreate"
  26891. }
  26892. },
  26893. obs: {
  26894. type: "array",
  26895. items: {
  26896. $ref: "#/definitions/ObsCreate"
  26897. }
  26898. }
  26899. }
  26900. },
  26901. EncounterCreateFull: {
  26902. required: [
  26903. "encounterType",
  26904. "patient"
  26905. ],
  26906. properties: {
  26907. patient: {
  26908. $ref: "#/definitions/PatientCreate"
  26909. },
  26910. encounterType: {
  26911. $ref: "#/definitions/EncountertypeCreate"
  26912. },
  26913. encounterDatetime: {
  26914. type: "string",
  26915. format: "date"
  26916. },
  26917. location: {
  26918. $ref: "#/definitions/LocationCreate"
  26919. },
  26920. form: {
  26921. $ref: "#/definitions/FormCreate"
  26922. },
  26923. provider: {
  26924. type: "string"
  26925. },
  26926. orders: {
  26927. type: "array",
  26928. items: {
  26929. $ref: "#/definitions/OrderCreate"
  26930. }
  26931. },
  26932. obs: {
  26933. type: "array",
  26934. items: {
  26935. $ref: "#/definitions/ObsCreate"
  26936. }
  26937. }
  26938. }
  26939. },
  26940. EncounterGet: {
  26941. properties: {
  26942. links: {
  26943. type: "array",
  26944. items: {
  26945. type: "object",
  26946. properties: {
  26947. rel: {
  26948. type: "string",
  26949. example: "self|full"
  26950. },
  26951. uri: {
  26952. type: "string",
  26953. format: "uri"
  26954. }
  26955. }
  26956. }
  26957. },
  26958. uuid: {
  26959. type: "string"
  26960. },
  26961. display: {
  26962. type: "string"
  26963. },
  26964. encounterDatetime: {
  26965. type: "string",
  26966. format: "date"
  26967. },
  26968. provider: {
  26969. type: "string"
  26970. },
  26971. voided: {
  26972. type: "boolean"
  26973. },
  26974. patient: {
  26975. $ref: "#/definitions/PatientGetRef"
  26976. },
  26977. location: {
  26978. $ref: "#/definitions/LocationGetRef"
  26979. },
  26980. form: {
  26981. $ref: "#/definitions/FormGetRef"
  26982. },
  26983. encounterType: {
  26984. $ref: "#/definitions/EncountertypeGetRef"
  26985. },
  26986. obs: {
  26987. type: "array",
  26988. items: {
  26989. $ref: "#/definitions/ObsGetRef"
  26990. }
  26991. },
  26992. orders: {
  26993. type: "array",
  26994. items: {
  26995. $ref: "#/definitions/OrderGetRef"
  26996. }
  26997. }
  26998. }
  26999. },
  27000. EncounterGetRef: {
  27001. properties: {
  27002. links: {
  27003. type: "array",
  27004. items: {
  27005. type: "object",
  27006. properties: {
  27007. rel: {
  27008. type: "string",
  27009. example: "self"
  27010. },
  27011. uri: {
  27012. type: "string",
  27013. format: "uri"
  27014. }
  27015. }
  27016. }
  27017. }
  27018. }
  27019. },
  27020. EncounterGetFull: {
  27021. properties: {
  27022. auditInfo: {
  27023. type: "string"
  27024. },
  27025. links: {
  27026. type: "array",
  27027. items: {
  27028. type: "object",
  27029. example: "self",
  27030. properties: {
  27031. rel: {
  27032. type: "string"
  27033. },
  27034. uri: {
  27035. type: "string",
  27036. format: "uri"
  27037. }
  27038. }
  27039. }
  27040. },
  27041. uuid: {
  27042. type: "string"
  27043. },
  27044. display: {
  27045. type: "string"
  27046. },
  27047. encounterDatetime: {
  27048. type: "string",
  27049. format: "date"
  27050. },
  27051. provider: {
  27052. type: "string"
  27053. },
  27054. voided: {
  27055. type: "boolean"
  27056. },
  27057. patient: {
  27058. $ref: "#/definitions/PatientGet"
  27059. },
  27060. location: {
  27061. $ref: "#/definitions/LocationGet"
  27062. },
  27063. form: {
  27064. $ref: "#/definitions/FormGet"
  27065. },
  27066. encounterType: {
  27067. $ref: "#/definitions/EncountertypeGet"
  27068. },
  27069. obs: {
  27070. type: "array",
  27071. items: {
  27072. $ref: "#/definitions/ObsGet"
  27073. }
  27074. },
  27075. orders: {
  27076. type: "array",
  27077. items: {
  27078. $ref: "#/definitions/OrderGet"
  27079. }
  27080. }
  27081. }
  27082. },
  27083. EncounterUpdate: {
  27084. required: [
  27085. "encounterType",
  27086. "patient"
  27087. ],
  27088. properties: {
  27089. patient: {
  27090. $ref: "#/definitions/PatientCreate"
  27091. },
  27092. encounterType: {
  27093. $ref: "#/definitions/EncountertypeCreate"
  27094. },
  27095. encounterDatetime: {
  27096. type: "string",
  27097. format: "date"
  27098. },
  27099. location: {
  27100. $ref: "#/definitions/LocationCreate"
  27101. },
  27102. form: {
  27103. $ref: "#/definitions/FormCreate"
  27104. },
  27105. provider: {
  27106. type: "string"
  27107. },
  27108. orders: {
  27109. type: "array",
  27110. items: {
  27111. $ref: "#/definitions/OrderCreate"
  27112. }
  27113. },
  27114. obs: {
  27115. type: "array",
  27116. items: {
  27117. $ref: "#/definitions/ObsCreate"
  27118. }
  27119. }
  27120. }
  27121. },
  27122. ServerlogGet: {
  27123. properties: {
  27124. links: {
  27125. type: "array",
  27126. items: {
  27127. type: "object",
  27128. properties: {
  27129. rel: {
  27130. type: "string",
  27131. example: "self|full"
  27132. },
  27133. uri: {
  27134. type: "string",
  27135. format: "uri"
  27136. }
  27137. }
  27138. }
  27139. },
  27140. serverLog: {
  27141. type: "object"
  27142. }
  27143. }
  27144. },
  27145. ServerlogGetRef: {
  27146. properties: {
  27147. links: {
  27148. type: "array",
  27149. items: {
  27150. type: "object",
  27151. properties: {
  27152. rel: {
  27153. type: "string",
  27154. example: "self"
  27155. },
  27156. uri: {
  27157. type: "string",
  27158. format: "uri"
  27159. }
  27160. }
  27161. }
  27162. },
  27163. serverLog: {
  27164. type: "object"
  27165. }
  27166. }
  27167. },
  27168. ServerlogGetFull: {
  27169. properties: {
  27170. auditInfo: {
  27171. type: "string"
  27172. },
  27173. links: {
  27174. type: "array",
  27175. items: {
  27176. type: "object",
  27177. example: "self",
  27178. properties: {
  27179. rel: {
  27180. type: "string"
  27181. },
  27182. uri: {
  27183. type: "string",
  27184. format: "uri"
  27185. }
  27186. }
  27187. }
  27188. },
  27189. serverLog: {
  27190. type: "object"
  27191. }
  27192. }
  27193. },
  27194. Hl7Create: {
  27195. required: [
  27196. "hl7"
  27197. ],
  27198. properties: {
  27199. hl7: {
  27200. type: "string"
  27201. }
  27202. }
  27203. },
  27204. Hl7CreateFull: {
  27205. required: [
  27206. "hl7"
  27207. ],
  27208. properties: {
  27209. hl7: {
  27210. type: "string"
  27211. }
  27212. }
  27213. },
  27214. ConceptsourceGet: {
  27215. properties: {
  27216. links: {
  27217. type: "array",
  27218. items: {
  27219. type: "object",
  27220. properties: {
  27221. rel: {
  27222. type: "string",
  27223. example: "self|full"
  27224. },
  27225. uri: {
  27226. type: "string",
  27227. format: "uri"
  27228. }
  27229. }
  27230. }
  27231. },
  27232. uuid: {
  27233. type: "string"
  27234. },
  27235. display: {
  27236. type: "string"
  27237. },
  27238. name: {
  27239. type: "string"
  27240. },
  27241. description: {
  27242. type: "string"
  27243. },
  27244. hl7Code: {
  27245. type: "string"
  27246. },
  27247. retired: {
  27248. type: "boolean"
  27249. },
  27250. uniqueId: {
  27251. type: "string"
  27252. }
  27253. }
  27254. },
  27255. ConceptsourceGetRef: {
  27256. properties: {
  27257. links: {
  27258. type: "array",
  27259. items: {
  27260. type: "object",
  27261. properties: {
  27262. rel: {
  27263. type: "string",
  27264. example: "self"
  27265. },
  27266. uri: {
  27267. type: "string",
  27268. format: "uri"
  27269. }
  27270. }
  27271. }
  27272. },
  27273. uuid: {
  27274. type: "string"
  27275. },
  27276. display: {
  27277. type: "string"
  27278. },
  27279. name: {
  27280. type: "string"
  27281. },
  27282. description: {
  27283. type: "string"
  27284. },
  27285. hl7Code: {
  27286. type: "string"
  27287. },
  27288. retired: {
  27289. type: "boolean"
  27290. }
  27291. }
  27292. },
  27293. ConceptsourceGetFull: {
  27294. properties: {
  27295. auditInfo: {
  27296. type: "string"
  27297. },
  27298. links: {
  27299. type: "array",
  27300. items: {
  27301. type: "object",
  27302. example: "self",
  27303. properties: {
  27304. rel: {
  27305. type: "string"
  27306. },
  27307. uri: {
  27308. type: "string",
  27309. format: "uri"
  27310. }
  27311. }
  27312. }
  27313. },
  27314. uuid: {
  27315. type: "string"
  27316. },
  27317. display: {
  27318. type: "string"
  27319. },
  27320. name: {
  27321. type: "string"
  27322. },
  27323. description: {
  27324. type: "string"
  27325. },
  27326. retired: {
  27327. type: "boolean"
  27328. },
  27329. hl7Code: {
  27330. type: "string"
  27331. },
  27332. uniqueId: {
  27333. type: "string"
  27334. }
  27335. }
  27336. },
  27337. ConceptsourceCreate: {
  27338. required: [
  27339. "description",
  27340. "name"
  27341. ],
  27342. properties: {
  27343. name: {
  27344. type: "string"
  27345. },
  27346. description: {
  27347. type: "string"
  27348. },
  27349. hl7Code: {
  27350. type: "string"
  27351. },
  27352. uniqueId: {
  27353. type: "string"
  27354. }
  27355. }
  27356. },
  27357. ConceptsourceCreateFull: {
  27358. required: [
  27359. "description",
  27360. "name"
  27361. ],
  27362. properties: {
  27363. name: {
  27364. type: "string"
  27365. },
  27366. description: {
  27367. type: "string"
  27368. },
  27369. hl7Code: {
  27370. type: "string"
  27371. },
  27372. uniqueId: {
  27373. type: "string"
  27374. }
  27375. }
  27376. },
  27377. ConceptsourceUpdate: {
  27378. required: [
  27379. "description",
  27380. "name"
  27381. ],
  27382. properties: {
  27383. name: {
  27384. type: "string"
  27385. },
  27386. description: {
  27387. type: "string"
  27388. },
  27389. hl7Code: {
  27390. type: "string"
  27391. },
  27392. uniqueId: {
  27393. type: "string"
  27394. }
  27395. }
  27396. },
  27397. ProviderGet: {
  27398. properties: {
  27399. links: {
  27400. type: "array",
  27401. items: {
  27402. type: "object",
  27403. properties: {
  27404. rel: {
  27405. type: "string",
  27406. example: "self|full"
  27407. },
  27408. uri: {
  27409. type: "string",
  27410. format: "uri"
  27411. }
  27412. }
  27413. }
  27414. },
  27415. uuid: {
  27416. type: "string"
  27417. },
  27418. display: {
  27419. type: "string"
  27420. },
  27421. person: {
  27422. $ref: "#/definitions/PersonGetRef"
  27423. },
  27424. identifier: {
  27425. type: "string"
  27426. },
  27427. attributes: {
  27428. type: "array",
  27429. items: {
  27430. $ref: "#/definitions/ProviderAttributeGetRef"
  27431. }
  27432. },
  27433. preferredHandlerClassname: {
  27434. type: "string"
  27435. }
  27436. }
  27437. },
  27438. ProviderGetRef: {
  27439. properties: {
  27440. links: {
  27441. type: "array",
  27442. items: {
  27443. type: "object",
  27444. properties: {
  27445. rel: {
  27446. type: "string",
  27447. example: "self"
  27448. },
  27449. uri: {
  27450. type: "string",
  27451. format: "uri"
  27452. }
  27453. }
  27454. }
  27455. },
  27456. uuid: {
  27457. type: "string"
  27458. },
  27459. display: {
  27460. type: "string"
  27461. }
  27462. }
  27463. },
  27464. ProviderGetFull: {
  27465. properties: {
  27466. auditInfo: {
  27467. type: "string"
  27468. },
  27469. links: {
  27470. type: "array",
  27471. items: {
  27472. type: "object",
  27473. example: "self",
  27474. properties: {
  27475. rel: {
  27476. type: "string"
  27477. },
  27478. uri: {
  27479. type: "string",
  27480. format: "uri"
  27481. }
  27482. }
  27483. }
  27484. },
  27485. uuid: {
  27486. type: "string"
  27487. },
  27488. display: {
  27489. type: "string"
  27490. },
  27491. name: {
  27492. type: "string"
  27493. },
  27494. description: {
  27495. type: "string"
  27496. },
  27497. retired: {
  27498. type: "boolean"
  27499. },
  27500. person: {
  27501. $ref: "#/definitions/PersonGet"
  27502. },
  27503. identifier: {
  27504. type: "string"
  27505. },
  27506. attributes: {
  27507. type: "array",
  27508. items: {
  27509. $ref: "#/definitions/ProviderAttributeGet"
  27510. }
  27511. },
  27512. preferredHandlerClassname: {
  27513. type: "string"
  27514. }
  27515. }
  27516. },
  27517. ProviderCreate: {
  27518. required: [
  27519. "identifier",
  27520. "name",
  27521. "person"
  27522. ],
  27523. properties: {
  27524. name: {
  27525. type: "string"
  27526. },
  27527. description: {
  27528. type: "string"
  27529. },
  27530. person: {
  27531. type: "string",
  27532. example: "uuid"
  27533. },
  27534. identifier: {
  27535. type: "string"
  27536. },
  27537. attributes: {
  27538. type: "array",
  27539. items: {
  27540. $ref: "#/definitions/ProviderAttributeCreate"
  27541. }
  27542. },
  27543. retired: {
  27544. type: "boolean"
  27545. }
  27546. }
  27547. },
  27548. ProviderCreateFull: {
  27549. required: [
  27550. "identifier",
  27551. "name",
  27552. "person"
  27553. ],
  27554. properties: {
  27555. name: {
  27556. type: "string"
  27557. },
  27558. description: {
  27559. type: "string"
  27560. },
  27561. person: {
  27562. $ref: "#/definitions/PersonCreate"
  27563. },
  27564. identifier: {
  27565. type: "string"
  27566. },
  27567. attributes: {
  27568. type: "array",
  27569. items: {
  27570. $ref: "#/definitions/ProviderAttributeCreate"
  27571. }
  27572. },
  27573. retired: {
  27574. type: "boolean"
  27575. }
  27576. }
  27577. },
  27578. ProviderUpdate: {
  27579. required: [
  27580. "identifier",
  27581. "name",
  27582. "person"
  27583. ],
  27584. properties: {
  27585. name: {
  27586. type: "string"
  27587. },
  27588. description: {
  27589. type: "string"
  27590. },
  27591. person: {
  27592. type: "string",
  27593. example: "uuid"
  27594. },
  27595. identifier: {
  27596. type: "string"
  27597. },
  27598. attributes: {
  27599. type: "array",
  27600. items: {
  27601. $ref: "#/definitions/ProviderAttributeCreate"
  27602. }
  27603. },
  27604. retired: {
  27605. type: "boolean"
  27606. }
  27607. }
  27608. },
  27609. LocationtagGet: {
  27610. properties: {
  27611. links: {
  27612. type: "array",
  27613. items: {
  27614. type: "object",
  27615. properties: {
  27616. rel: {
  27617. type: "string",
  27618. example: "self|full"
  27619. },
  27620. uri: {
  27621. type: "string",
  27622. format: "uri"
  27623. }
  27624. }
  27625. }
  27626. },
  27627. uuid: {
  27628. type: "string"
  27629. },
  27630. display: {
  27631. type: "string"
  27632. }
  27633. }
  27634. },
  27635. LocationtagGetRef: {
  27636. properties: {
  27637. links: {
  27638. type: "array",
  27639. items: {
  27640. type: "object",
  27641. properties: {
  27642. rel: {
  27643. type: "string",
  27644. example: "self"
  27645. },
  27646. uri: {
  27647. type: "string",
  27648. format: "uri"
  27649. }
  27650. }
  27651. }
  27652. },
  27653. uuid: {
  27654. type: "string"
  27655. },
  27656. display: {
  27657. type: "string"
  27658. }
  27659. }
  27660. },
  27661. LocationtagGetFull: {
  27662. properties: {
  27663. auditInfo: {
  27664. type: "string"
  27665. },
  27666. links: {
  27667. type: "array",
  27668. items: {
  27669. type: "object",
  27670. example: "self",
  27671. properties: {
  27672. rel: {
  27673. type: "string"
  27674. },
  27675. uri: {
  27676. type: "string",
  27677. format: "uri"
  27678. }
  27679. }
  27680. }
  27681. },
  27682. uuid: {
  27683. type: "string"
  27684. },
  27685. display: {
  27686. type: "string"
  27687. },
  27688. name: {
  27689. type: "string"
  27690. },
  27691. description: {
  27692. type: "string"
  27693. },
  27694. retired: {
  27695. type: "boolean"
  27696. }
  27697. }
  27698. },
  27699. LocationtagCreate: {
  27700. required: [
  27701. "name"
  27702. ],
  27703. properties: {
  27704. name: {
  27705. type: "string"
  27706. },
  27707. description: {
  27708. type: "string"
  27709. },
  27710. retired: {
  27711. type: "boolean"
  27712. },
  27713. retiredReason: {
  27714. type: "string"
  27715. }
  27716. }
  27717. },
  27718. LocationtagCreateFull: {
  27719. required: [
  27720. "name"
  27721. ],
  27722. properties: {
  27723. name: {
  27724. type: "string"
  27725. },
  27726. description: {
  27727. type: "string"
  27728. },
  27729. retired: {
  27730. type: "boolean"
  27731. },
  27732. retiredReason: {
  27733. type: "string"
  27734. }
  27735. }
  27736. },
  27737. LocationtagUpdate: {
  27738. required: [
  27739. "name"
  27740. ],
  27741. properties: {
  27742. name: {
  27743. type: "string"
  27744. },
  27745. description: {
  27746. type: "string"
  27747. },
  27748. retired: {
  27749. type: "boolean"
  27750. },
  27751. retiredReason: {
  27752. type: "string"
  27753. }
  27754. }
  27755. },
  27756. PatientidentifiertypeGet: {
  27757. properties: {
  27758. links: {
  27759. type: "array",
  27760. items: {
  27761. type: "object",
  27762. properties: {
  27763. rel: {
  27764. type: "string",
  27765. example: "self|full"
  27766. },
  27767. uri: {
  27768. type: "string",
  27769. format: "uri"
  27770. }
  27771. }
  27772. }
  27773. },
  27774. uuid: {
  27775. type: "string"
  27776. },
  27777. display: {
  27778. type: "string"
  27779. },
  27780. format: {
  27781. type: "string"
  27782. },
  27783. formatDescription: {
  27784. type: "string"
  27785. },
  27786. required: {
  27787. type: "boolean"
  27788. },
  27789. checkDigit: {
  27790. type: "boolean"
  27791. },
  27792. validator: {
  27793. type: "string"
  27794. },
  27795. locationBehavior: {
  27796. type: "string",
  27797. enum: [
  27798. "REQUIRED",
  27799. "NOT_USED"
  27800. ]
  27801. },
  27802. uniquenessBehavior: {
  27803. type: "string"
  27804. }
  27805. }
  27806. },
  27807. PatientidentifiertypeGetRef: {
  27808. properties: {
  27809. links: {
  27810. type: "array",
  27811. items: {
  27812. type: "object",
  27813. properties: {
  27814. rel: {
  27815. type: "string",
  27816. example: "self"
  27817. },
  27818. uri: {
  27819. type: "string",
  27820. format: "uri"
  27821. }
  27822. }
  27823. }
  27824. },
  27825. uuid: {
  27826. type: "string"
  27827. },
  27828. display: {
  27829. type: "string"
  27830. }
  27831. }
  27832. },
  27833. PatientidentifiertypeGetFull: {
  27834. properties: {
  27835. auditInfo: {
  27836. type: "string"
  27837. },
  27838. links: {
  27839. type: "array",
  27840. items: {
  27841. type: "object",
  27842. example: "self",
  27843. properties: {
  27844. rel: {
  27845. type: "string"
  27846. },
  27847. uri: {
  27848. type: "string",
  27849. format: "uri"
  27850. }
  27851. }
  27852. }
  27853. },
  27854. uuid: {
  27855. type: "string"
  27856. },
  27857. display: {
  27858. type: "string"
  27859. },
  27860. name: {
  27861. type: "string"
  27862. },
  27863. description: {
  27864. type: "string"
  27865. },
  27866. retired: {
  27867. type: "boolean"
  27868. },
  27869. format: {
  27870. type: "string"
  27871. },
  27872. formatDescription: {
  27873. type: "string"
  27874. },
  27875. required: {
  27876. type: "boolean"
  27877. },
  27878. checkDigit: {
  27879. type: "boolean"
  27880. },
  27881. validator: {
  27882. type: "string"
  27883. },
  27884. locationBehavior: {
  27885. type: "string",
  27886. enum: [
  27887. "REQUIRED",
  27888. "NOT_USED"
  27889. ]
  27890. },
  27891. uniquenessBehavior: {
  27892. type: "string"
  27893. }
  27894. }
  27895. },
  27896. PatientidentifiertypeCreate: {
  27897. required: [
  27898. "name"
  27899. ],
  27900. properties: {
  27901. name: {
  27902. type: "string"
  27903. },
  27904. description: {
  27905. type: "string"
  27906. },
  27907. format: {
  27908. type: "string"
  27909. },
  27910. formatDescription: {
  27911. type: "string"
  27912. },
  27913. required: {
  27914. type: "boolean"
  27915. },
  27916. checkDigit: {
  27917. type: "boolean"
  27918. },
  27919. validator: {
  27920. type: "string"
  27921. },
  27922. locationBehavior: {
  27923. type: "string",
  27924. enum: [
  27925. "REQUIRED",
  27926. "NOT_USED"
  27927. ]
  27928. },
  27929. uniquenessBehavior: {
  27930. type: "string"
  27931. }
  27932. }
  27933. },
  27934. PatientidentifiertypeCreateFull: {
  27935. required: [
  27936. "name"
  27937. ],
  27938. properties: {
  27939. name: {
  27940. type: "string"
  27941. },
  27942. description: {
  27943. type: "string"
  27944. },
  27945. format: {
  27946. type: "string"
  27947. },
  27948. formatDescription: {
  27949. type: "string"
  27950. },
  27951. required: {
  27952. type: "boolean"
  27953. },
  27954. checkDigit: {
  27955. type: "boolean"
  27956. },
  27957. validator: {
  27958. type: "string"
  27959. },
  27960. locationBehavior: {
  27961. type: "string",
  27962. enum: [
  27963. "REQUIRED",
  27964. "NOT_USED"
  27965. ]
  27966. },
  27967. uniquenessBehavior: {
  27968. type: "string"
  27969. }
  27970. }
  27971. },
  27972. PatientidentifiertypeUpdate: {
  27973. required: [
  27974. "name"
  27975. ],
  27976. properties: {
  27977. name: {
  27978. type: "string"
  27979. },
  27980. description: {
  27981. type: "string"
  27982. },
  27983. format: {
  27984. type: "string"
  27985. },
  27986. formatDescription: {
  27987. type: "string"
  27988. },
  27989. required: {
  27990. type: "boolean"
  27991. },
  27992. checkDigit: {
  27993. type: "boolean"
  27994. },
  27995. validator: {
  27996. type: "string"
  27997. },
  27998. locationBehavior: {
  27999. type: "string",
  28000. enum: [
  28001. "REQUIRED",
  28002. "NOT_USED"
  28003. ]
  28004. },
  28005. uniquenessBehavior: {
  28006. type: "string"
  28007. }
  28008. }
  28009. },
  28010. ConceptreferencetermGet: {
  28011. properties: {
  28012. links: {
  28013. type: "array",
  28014. items: {
  28015. type: "object",
  28016. properties: {
  28017. rel: {
  28018. type: "string",
  28019. example: "self|full"
  28020. },
  28021. uri: {
  28022. type: "string",
  28023. format: "uri"
  28024. }
  28025. }
  28026. }
  28027. },
  28028. uuid: {
  28029. type: "string"
  28030. },
  28031. display: {
  28032. type: "string"
  28033. },
  28034. code: {
  28035. type: "string"
  28036. },
  28037. version: {
  28038. type: "string"
  28039. },
  28040. conceptSource: {
  28041. $ref: "#/definitions/ConceptsourceGetRef"
  28042. }
  28043. }
  28044. },
  28045. ConceptreferencetermGetRef: {
  28046. properties: {
  28047. links: {
  28048. type: "array",
  28049. items: {
  28050. type: "object",
  28051. properties: {
  28052. rel: {
  28053. type: "string",
  28054. example: "self"
  28055. },
  28056. uri: {
  28057. type: "string",
  28058. format: "uri"
  28059. }
  28060. }
  28061. }
  28062. },
  28063. uuid: {
  28064. type: "string"
  28065. },
  28066. display: {
  28067. type: "string"
  28068. }
  28069. }
  28070. },
  28071. ConceptreferencetermGetFull: {
  28072. properties: {
  28073. auditInfo: {
  28074. type: "string"
  28075. },
  28076. links: {
  28077. type: "array",
  28078. items: {
  28079. type: "object",
  28080. example: "self",
  28081. properties: {
  28082. rel: {
  28083. type: "string"
  28084. },
  28085. uri: {
  28086. type: "string",
  28087. format: "uri"
  28088. }
  28089. }
  28090. }
  28091. },
  28092. uuid: {
  28093. type: "string"
  28094. },
  28095. display: {
  28096. type: "string"
  28097. },
  28098. name: {
  28099. type: "string"
  28100. },
  28101. description: {
  28102. type: "string"
  28103. },
  28104. retired: {
  28105. type: "boolean"
  28106. },
  28107. code: {
  28108. type: "string"
  28109. },
  28110. version: {
  28111. type: "string"
  28112. },
  28113. conceptSource: {
  28114. $ref: "#/definitions/ConceptsourceGet"
  28115. }
  28116. }
  28117. },
  28118. ConceptreferencetermCreate: {
  28119. required: [
  28120. "code",
  28121. "conceptSource",
  28122. "name"
  28123. ],
  28124. properties: {
  28125. name: {
  28126. type: "string"
  28127. },
  28128. description: {
  28129. type: "string"
  28130. },
  28131. code: {
  28132. type: "string"
  28133. },
  28134. conceptSource: {
  28135. type: "string"
  28136. },
  28137. version: {
  28138. type: "string"
  28139. }
  28140. }
  28141. },
  28142. ConceptreferencetermCreateFull: {
  28143. required: [
  28144. "code",
  28145. "conceptSource",
  28146. "name"
  28147. ],
  28148. properties: {
  28149. name: {
  28150. type: "string"
  28151. },
  28152. description: {
  28153. type: "string"
  28154. },
  28155. code: {
  28156. type: "string"
  28157. },
  28158. conceptSource: {
  28159. type: "string"
  28160. },
  28161. version: {
  28162. type: "string"
  28163. }
  28164. }
  28165. },
  28166. ConceptreferencetermUpdate: { },
  28167. ProgramGet: {
  28168. properties: {
  28169. links: {
  28170. type: "array",
  28171. items: {
  28172. type: "object",
  28173. properties: {
  28174. rel: {
  28175. type: "string",
  28176. example: "self|full"
  28177. },
  28178. uri: {
  28179. type: "string",
  28180. format: "uri"
  28181. }
  28182. }
  28183. }
  28184. },
  28185. uuid: {
  28186. type: "string"
  28187. },
  28188. display: {
  28189. type: "string"
  28190. },
  28191. concept: {
  28192. $ref: "#/definitions/ConceptGetRef"
  28193. },
  28194. allWorkflows: {
  28195. type: "array",
  28196. items: {
  28197. $ref: "#/definitions/WorkflowGetRef"
  28198. }
  28199. }
  28200. }
  28201. },
  28202. ProgramGetRef: {
  28203. properties: {
  28204. links: {
  28205. type: "array",
  28206. items: {
  28207. type: "object",
  28208. properties: {
  28209. rel: {
  28210. type: "string",
  28211. example: "self"
  28212. },
  28213. uri: {
  28214. type: "string",
  28215. format: "uri"
  28216. }
  28217. }
  28218. }
  28219. },
  28220. uuid: {
  28221. type: "string"
  28222. },
  28223. display: {
  28224. type: "string"
  28225. },
  28226. allWorkflows: {
  28227. type: "array",
  28228. items: {
  28229. $ref: "#/definitions/WorkflowGetRef"
  28230. }
  28231. }
  28232. }
  28233. },
  28234. ProgramGetFull: {
  28235. properties: {
  28236. auditInfo: {
  28237. type: "string"
  28238. },
  28239. links: {
  28240. type: "array",
  28241. items: {
  28242. type: "object",
  28243. example: "self",
  28244. properties: {
  28245. rel: {
  28246. type: "string"
  28247. },
  28248. uri: {
  28249. type: "string",
  28250. format: "uri"
  28251. }
  28252. }
  28253. }
  28254. },
  28255. uuid: {
  28256. type: "string"
  28257. },
  28258. display: {
  28259. type: "string"
  28260. },
  28261. name: {
  28262. type: "string"
  28263. },
  28264. description: {
  28265. type: "string"
  28266. },
  28267. retired: {
  28268. type: "boolean"
  28269. },
  28270. concept: {
  28271. $ref: "#/definitions/ConceptGet"
  28272. },
  28273. allWorkflows: {
  28274. type: "array",
  28275. items: {
  28276. $ref: "#/definitions/WorkflowGet"
  28277. }
  28278. }
  28279. }
  28280. },
  28281. ProgramCreate: {
  28282. required: [
  28283. "concept",
  28284. "description",
  28285. "name"
  28286. ],
  28287. properties: {
  28288. name: {
  28289. type: "string"
  28290. },
  28291. description: {
  28292. type: "string"
  28293. },
  28294. concept: {
  28295. type: "string",
  28296. example: "uuid"
  28297. },
  28298. retired: {
  28299. type: "boolean"
  28300. },
  28301. outcomesConcept: {
  28302. type: "string",
  28303. example: "uuid"
  28304. }
  28305. }
  28306. },
  28307. ProgramCreateFull: {
  28308. required: [
  28309. "concept",
  28310. "description",
  28311. "name"
  28312. ],
  28313. properties: {
  28314. name: {
  28315. type: "string"
  28316. },
  28317. description: {
  28318. type: "string"
  28319. },
  28320. concept: {
  28321. $ref: "#/definitions/ConceptCreate"
  28322. },
  28323. retired: {
  28324. type: "boolean"
  28325. },
  28326. outcomesConcept: {
  28327. $ref: "#/definitions/ConceptCreate"
  28328. }
  28329. }
  28330. },
  28331. ProgramUpdate: { },
  28332. DrugreferencemapCreate: {
  28333. properties: {
  28334. conceptReferenceTerm: {
  28335. type: "string",
  28336. example: "uuid"
  28337. },
  28338. conceptMapType: {
  28339. type: "string",
  28340. example: "uuid"
  28341. },
  28342. drug: {
  28343. type: "string",
  28344. example: "uuid"
  28345. }
  28346. }
  28347. },
  28348. DrugreferencemapCreateFull: {
  28349. properties: {
  28350. conceptReferenceTerm: {
  28351. type: "string",
  28352. example: "uuid"
  28353. },
  28354. conceptMapType: {
  28355. type: "string",
  28356. example: "uuid"
  28357. },
  28358. drug: {
  28359. type: "string",
  28360. example: "uuid"
  28361. }
  28362. }
  28363. },
  28364. DrugreferencemapGet: {
  28365. properties: {
  28366. links: {
  28367. type: "array",
  28368. items: {
  28369. type: "object",
  28370. properties: {
  28371. rel: {
  28372. type: "string",
  28373. example: "self|full"
  28374. },
  28375. uri: {
  28376. type: "string",
  28377. format: "uri"
  28378. }
  28379. }
  28380. }
  28381. },
  28382. display: {
  28383. type: "string"
  28384. },
  28385. uuid: {
  28386. type: "string"
  28387. },
  28388. drug: {
  28389. $ref: "#/definitions/DrugGetRef"
  28390. },
  28391. conceptReferenceTerm: {
  28392. $ref: "#/definitions/ConceptreferencetermGetRef"
  28393. },
  28394. conceptMapType: {
  28395. $ref: "#/definitions/ConceptmaptypeGetRef"
  28396. }
  28397. }
  28398. },
  28399. DrugreferencemapGetRef: {
  28400. properties: {
  28401. links: {
  28402. type: "array",
  28403. items: {
  28404. type: "object",
  28405. properties: {
  28406. rel: {
  28407. type: "string",
  28408. example: "self"
  28409. },
  28410. uri: {
  28411. type: "string",
  28412. format: "uri"
  28413. }
  28414. }
  28415. }
  28416. }
  28417. }
  28418. },
  28419. DrugreferencemapGetFull: {
  28420. properties: {
  28421. auditInfo: {
  28422. type: "string"
  28423. },
  28424. links: {
  28425. type: "array",
  28426. items: {
  28427. type: "object",
  28428. example: "self",
  28429. properties: {
  28430. rel: {
  28431. type: "string"
  28432. },
  28433. uri: {
  28434. type: "string",
  28435. format: "uri"
  28436. }
  28437. }
  28438. }
  28439. },
  28440. display: {
  28441. type: "string"
  28442. },
  28443. uuid: {
  28444. type: "string"
  28445. },
  28446. drug: {
  28447. $ref: "#/definitions/DrugGet"
  28448. },
  28449. conceptReferenceTerm: {
  28450. $ref: "#/definitions/ConceptreferencetermGet"
  28451. },
  28452. conceptMapType: {
  28453. $ref: "#/definitions/ConceptmaptypeGet"
  28454. }
  28455. }
  28456. },
  28457. DrugreferencemapUpdate: {
  28458. properties: {
  28459. conceptReferenceTerm: {
  28460. type: "string",
  28461. example: "uuid"
  28462. },
  28463. conceptMapType: {
  28464. type: "string",
  28465. example: "uuid"
  28466. },
  28467. drug: {
  28468. type: "string",
  28469. example: "uuid"
  28470. }
  28471. }
  28472. },
  28473. PatientAllergyCreate: {
  28474. required: [
  28475. "allergen"
  28476. ],
  28477. properties: {
  28478. allergen: {
  28479. type: "object"
  28480. },
  28481. severity: {
  28482. type: "object",
  28483. properties: {
  28484. uuid: {
  28485. type: "string"
  28486. }
  28487. }
  28488. },
  28489. comment: {
  28490. type: "string"
  28491. },
  28492. reactions: {
  28493. type: "array",
  28494. items: {
  28495. type: "object",
  28496. properties: {
  28497. allergy: {
  28498. type: "object",
  28499. properties: {
  28500. uuid: {
  28501. type: "string"
  28502. }
  28503. }
  28504. },
  28505. reaction: {
  28506. type: "object",
  28507. properties: {
  28508. uuid: {
  28509. type: "string"
  28510. }
  28511. }
  28512. }
  28513. }
  28514. }
  28515. }
  28516. }
  28517. },
  28518. PatientAllergyCreateFull: {
  28519. required: [
  28520. "allergen"
  28521. ],
  28522. properties: {
  28523. allergen: {
  28524. type: "object"
  28525. },
  28526. severity: {
  28527. type: "object",
  28528. properties: {
  28529. uuid: {
  28530. type: "string"
  28531. }
  28532. }
  28533. },
  28534. comment: {
  28535. type: "string"
  28536. },
  28537. reactions: {
  28538. type: "array",
  28539. items: {
  28540. type: "object",
  28541. properties: {
  28542. allergy: {
  28543. type: "object",
  28544. properties: {
  28545. uuid: {
  28546. type: "string"
  28547. }
  28548. }
  28549. },
  28550. reaction: {
  28551. type: "object",
  28552. properties: {
  28553. uuid: {
  28554. type: "string"
  28555. }
  28556. }
  28557. }
  28558. }
  28559. }
  28560. }
  28561. }
  28562. },
  28563. PatientAllergyGet: {
  28564. properties: {
  28565. links: {
  28566. type: "array",
  28567. items: {
  28568. type: "object",
  28569. properties: {
  28570. rel: {
  28571. type: "string",
  28572. example: "self|full"
  28573. },
  28574. uri: {
  28575. type: "string",
  28576. format: "uri"
  28577. }
  28578. }
  28579. }
  28580. },
  28581. display: {
  28582. type: "string"
  28583. },
  28584. uuid: {
  28585. type: "string"
  28586. },
  28587. allergen: {
  28588. type: "object"
  28589. },
  28590. severity: {
  28591. $ref: "#/definitions/ConceptGetRef"
  28592. },
  28593. comment: {
  28594. type: "string"
  28595. },
  28596. reactions: {
  28597. type: "array",
  28598. items: {
  28599. $ref: "#/definitions/ConceptGetRef"
  28600. }
  28601. },
  28602. patient: {
  28603. $ref: "#/definitions/PatientGetRef"
  28604. }
  28605. }
  28606. },
  28607. PatientAllergyGetRef: {
  28608. properties: {
  28609. links: {
  28610. type: "array",
  28611. items: {
  28612. type: "object",
  28613. properties: {
  28614. rel: {
  28615. type: "string",
  28616. example: "self"
  28617. },
  28618. uri: {
  28619. type: "string",
  28620. format: "uri"
  28621. }
  28622. }
  28623. }
  28624. }
  28625. }
  28626. },
  28627. PatientAllergyGetFull: {
  28628. properties: {
  28629. auditInfo: {
  28630. type: "string"
  28631. },
  28632. links: {
  28633. type: "array",
  28634. items: {
  28635. type: "object",
  28636. example: "self",
  28637. properties: {
  28638. rel: {
  28639. type: "string"
  28640. },
  28641. uri: {
  28642. type: "string",
  28643. format: "uri"
  28644. }
  28645. }
  28646. }
  28647. },
  28648. display: {
  28649. type: "string"
  28650. },
  28651. uuid: {
  28652. type: "string"
  28653. },
  28654. allergen: {
  28655. type: "object"
  28656. },
  28657. severity: {
  28658. $ref: "#/definitions/ConceptGet"
  28659. },
  28660. comment: {
  28661. type: "string"
  28662. },
  28663. reactions: {
  28664. type: "array",
  28665. items: {
  28666. $ref: "#/definitions/ConceptGet"
  28667. }
  28668. },
  28669. patient: {
  28670. $ref: "#/definitions/PatientGet"
  28671. }
  28672. }
  28673. },
  28674. PatientAllergyUpdate: {
  28675. required: [
  28676. "allergen"
  28677. ],
  28678. properties: {
  28679. allergen: {
  28680. type: "object"
  28681. },
  28682. severity: {
  28683. type: "object",
  28684. properties: {
  28685. uuid: {
  28686. type: "string"
  28687. }
  28688. }
  28689. },
  28690. comment: {
  28691. type: "string"
  28692. },
  28693. reactions: {
  28694. type: "array",
  28695. items: {
  28696. type: "object",
  28697. properties: {
  28698. allergy: {
  28699. type: "object",
  28700. properties: {
  28701. uuid: {
  28702. type: "string"
  28703. }
  28704. }
  28705. },
  28706. reaction: {
  28707. type: "object",
  28708. properties: {
  28709. uuid: {
  28710. type: "string"
  28711. }
  28712. }
  28713. }
  28714. }
  28715. }
  28716. }
  28717. }
  28718. },
  28719. ConceptMappingGet: {
  28720. properties: {
  28721. links: {
  28722. type: "array",
  28723. items: {
  28724. type: "object",
  28725. properties: {
  28726. rel: {
  28727. type: "string",
  28728. example: "self|full"
  28729. },
  28730. uri: {
  28731. type: "string",
  28732. format: "uri"
  28733. }
  28734. }
  28735. }
  28736. },
  28737. display: {
  28738. type: "string"
  28739. },
  28740. uuid: {
  28741. type: "string"
  28742. },
  28743. conceptReferenceTerm: {
  28744. $ref: "#/definitions/ConceptreferencetermGetRef"
  28745. },
  28746. conceptMapType: {
  28747. $ref: "#/definitions/ConceptmaptypeGetRef"
  28748. }
  28749. }
  28750. },
  28751. ConceptMappingGetRef: {
  28752. properties: {
  28753. links: {
  28754. type: "array",
  28755. items: {
  28756. type: "object",
  28757. properties: {
  28758. rel: {
  28759. type: "string",
  28760. example: "self"
  28761. },
  28762. uri: {
  28763. type: "string",
  28764. format: "uri"
  28765. }
  28766. }
  28767. }
  28768. }
  28769. }
  28770. },
  28771. ConceptMappingGetFull: {
  28772. properties: {
  28773. auditInfo: {
  28774. type: "string"
  28775. },
  28776. links: {
  28777. type: "array",
  28778. items: {
  28779. type: "object",
  28780. example: "self",
  28781. properties: {
  28782. rel: {
  28783. type: "string"
  28784. },
  28785. uri: {
  28786. type: "string",
  28787. format: "uri"
  28788. }
  28789. }
  28790. }
  28791. },
  28792. display: {
  28793. type: "string"
  28794. },
  28795. uuid: {
  28796. type: "string"
  28797. },
  28798. conceptReferenceTerm: {
  28799. $ref: "#/definitions/ConceptreferencetermGet"
  28800. },
  28801. conceptMapType: {
  28802. $ref: "#/definitions/ConceptmaptypeGet"
  28803. }
  28804. }
  28805. },
  28806. ConceptMappingCreate: {
  28807. required: [
  28808. "conceptMapType",
  28809. "conceptReferenceTerm"
  28810. ],
  28811. properties: {
  28812. conceptReferenceTerm: {
  28813. $ref: "#/definitions/ConceptreferencetermCreate"
  28814. },
  28815. conceptMapType: {
  28816. $ref: "#/definitions/ConceptmaptypeCreate"
  28817. }
  28818. }
  28819. },
  28820. ConceptMappingCreateFull: {
  28821. required: [
  28822. "conceptMapType",
  28823. "conceptReferenceTerm"
  28824. ],
  28825. properties: {
  28826. conceptReferenceTerm: {
  28827. $ref: "#/definitions/ConceptreferencetermCreate"
  28828. },
  28829. conceptMapType: {
  28830. $ref: "#/definitions/ConceptmaptypeCreate"
  28831. }
  28832. }
  28833. },
  28834. ConceptMappingUpdate: {
  28835. required: [
  28836. "conceptMapType",
  28837. "conceptReferenceTerm"
  28838. ],
  28839. properties: {
  28840. conceptReferenceTerm: {
  28841. $ref: "#/definitions/ConceptreferencetermCreate"
  28842. },
  28843. conceptMapType: {
  28844. $ref: "#/definitions/ConceptmaptypeCreate"
  28845. }
  28846. }
  28847. },
  28848. DrugIngredientGet: {
  28849. properties: {
  28850. links: {
  28851. type: "array",
  28852. items: {
  28853. type: "object",
  28854. properties: {
  28855. rel: {
  28856. type: "string",
  28857. example: "self|full"
  28858. },
  28859. uri: {
  28860. type: "string",
  28861. format: "uri"
  28862. }
  28863. }
  28864. }
  28865. },
  28866. uuid: {
  28867. type: "string"
  28868. },
  28869. display: {
  28870. type: "string"
  28871. },
  28872. strength: {
  28873. type: "number",
  28874. format: "double"
  28875. },
  28876. ingredient: {
  28877. $ref: "#/definitions/ConceptGetRef"
  28878. },
  28879. units: {
  28880. $ref: "#/definitions/ConceptGetRef"
  28881. }
  28882. }
  28883. },
  28884. DrugIngredientGetRef: {
  28885. properties: {
  28886. links: {
  28887. type: "array",
  28888. items: {
  28889. type: "object",
  28890. properties: {
  28891. rel: {
  28892. type: "string",
  28893. example: "self"
  28894. },
  28895. uri: {
  28896. type: "string",
  28897. format: "uri"
  28898. }
  28899. }
  28900. }
  28901. }
  28902. }
  28903. },
  28904. DrugIngredientGetFull: {
  28905. properties: {
  28906. auditInfo: {
  28907. type: "string"
  28908. },
  28909. links: {
  28910. type: "array",
  28911. items: {
  28912. type: "object",
  28913. example: "self",
  28914. properties: {
  28915. rel: {
  28916. type: "string"
  28917. },
  28918. uri: {
  28919. type: "string",
  28920. format: "uri"
  28921. }
  28922. }
  28923. }
  28924. },
  28925. uuid: {
  28926. type: "string"
  28927. },
  28928. display: {
  28929. type: "string"
  28930. },
  28931. strength: {
  28932. type: "number",
  28933. format: "double"
  28934. },
  28935. ingredient: {
  28936. $ref: "#/definitions/ConceptGet"
  28937. },
  28938. units: {
  28939. $ref: "#/definitions/ConceptGet"
  28940. }
  28941. }
  28942. },
  28943. DrugIngredientCreate: {
  28944. required: [
  28945. "ingredient"
  28946. ],
  28947. properties: {
  28948. ingredient: {
  28949. type: "string",
  28950. example: "uuid"
  28951. },
  28952. strength: {
  28953. type: "number",
  28954. format: "double"
  28955. },
  28956. units: {
  28957. type: "string",
  28958. example: "uuid"
  28959. }
  28960. }
  28961. },
  28962. DrugIngredientCreateFull: {
  28963. required: [
  28964. "ingredient"
  28965. ],
  28966. properties: {
  28967. ingredient: {
  28968. type: "string",
  28969. example: "uuid"
  28970. },
  28971. strength: {
  28972. type: "number",
  28973. format: "double"
  28974. },
  28975. units: {
  28976. type: "string",
  28977. example: "uuid"
  28978. }
  28979. }
  28980. },
  28981. DrugIngredientUpdate: {
  28982. required: [
  28983. "ingredient"
  28984. ],
  28985. properties: {
  28986. ingredient: {
  28987. type: "string",
  28988. example: "uuid"
  28989. },
  28990. strength: {
  28991. type: "number",
  28992. format: "double"
  28993. },
  28994. units: {
  28995. type: "string",
  28996. example: "uuid"
  28997. }
  28998. }
  28999. },
  29000. VisitAttributeGet: {
  29001. properties: {
  29002. links: {
  29003. type: "array",
  29004. items: {
  29005. type: "object",
  29006. properties: {
  29007. rel: {
  29008. type: "string",
  29009. example: "self|full"
  29010. },
  29011. uri: {
  29012. type: "string",
  29013. format: "uri"
  29014. }
  29015. }
  29016. }
  29017. },
  29018. display: {
  29019. type: "string"
  29020. },
  29021. uuid: {
  29022. type: "string"
  29023. },
  29024. attributeType: {
  29025. type: "string"
  29026. },
  29027. value: {
  29028. type: "string"
  29029. },
  29030. voided: {
  29031. type: "boolean"
  29032. }
  29033. }
  29034. },
  29035. VisitAttributeGetRef: {
  29036. properties: {
  29037. links: {
  29038. type: "array",
  29039. items: {
  29040. type: "object",
  29041. properties: {
  29042. rel: {
  29043. type: "string",
  29044. example: "self"
  29045. },
  29046. uri: {
  29047. type: "string",
  29048. format: "uri"
  29049. }
  29050. }
  29051. }
  29052. }
  29053. }
  29054. },
  29055. VisitAttributeGetFull: {
  29056. properties: {
  29057. auditInfo: {
  29058. type: "string"
  29059. },
  29060. links: {
  29061. type: "array",
  29062. items: {
  29063. type: "object",
  29064. example: "self",
  29065. properties: {
  29066. rel: {
  29067. type: "string"
  29068. },
  29069. uri: {
  29070. type: "string",
  29071. format: "uri"
  29072. }
  29073. }
  29074. }
  29075. },
  29076. display: {
  29077. type: "string"
  29078. },
  29079. uuid: {
  29080. type: "string"
  29081. },
  29082. attributeType: {
  29083. type: "string"
  29084. },
  29085. value: {
  29086. type: "string"
  29087. },
  29088. voided: {
  29089. type: "boolean"
  29090. }
  29091. }
  29092. },
  29093. VisitAttributeCreate: {
  29094. required: [
  29095. "attributeType",
  29096. "value"
  29097. ],
  29098. properties: {
  29099. attributeType: {
  29100. type: "string",
  29101. example: "uuid"
  29102. },
  29103. value: {
  29104. type: "string"
  29105. }
  29106. }
  29107. },
  29108. VisitAttributeCreateFull: {
  29109. required: [
  29110. "attributeType",
  29111. "value"
  29112. ],
  29113. properties: {
  29114. attributeType: {
  29115. type: "string",
  29116. example: "uuid"
  29117. },
  29118. value: {
  29119. type: "string"
  29120. }
  29121. }
  29122. },
  29123. VisitAttributeUpdate: {
  29124. required: [
  29125. "attributeType",
  29126. "value"
  29127. ],
  29128. properties: {
  29129. attributeType: {
  29130. type: "string",
  29131. example: "uuid"
  29132. },
  29133. value: {
  29134. type: "string"
  29135. }
  29136. }
  29137. },
  29138. ProviderAttributeGet: {
  29139. properties: {
  29140. links: {
  29141. type: "array",
  29142. items: {
  29143. type: "object",
  29144. properties: {
  29145. rel: {
  29146. type: "string",
  29147. example: "self|full"
  29148. },
  29149. uri: {
  29150. type: "string",
  29151. format: "uri"
  29152. }
  29153. }
  29154. }
  29155. },
  29156. display: {
  29157. type: "string"
  29158. },
  29159. uuid: {
  29160. type: "string"
  29161. },
  29162. attributeType: {
  29163. type: "string"
  29164. },
  29165. value: {
  29166. type: "string"
  29167. },
  29168. voided: {
  29169. type: "boolean"
  29170. }
  29171. }
  29172. },
  29173. ProviderAttributeGetRef: {
  29174. properties: {
  29175. links: {
  29176. type: "array",
  29177. items: {
  29178. type: "object",
  29179. properties: {
  29180. rel: {
  29181. type: "string",
  29182. example: "self"
  29183. },
  29184. uri: {
  29185. type: "string",
  29186. format: "uri"
  29187. }
  29188. }
  29189. }
  29190. }
  29191. }
  29192. },
  29193. ProviderAttributeGetFull: {
  29194. properties: {
  29195. auditInfo: {
  29196. type: "string"
  29197. },
  29198. links: {
  29199. type: "array",
  29200. items: {
  29201. type: "object",
  29202. example: "self",
  29203. properties: {
  29204. rel: {
  29205. type: "string"
  29206. },
  29207. uri: {
  29208. type: "string",
  29209. format: "uri"
  29210. }
  29211. }
  29212. }
  29213. },
  29214. display: {
  29215. type: "string"
  29216. },
  29217. uuid: {
  29218. type: "string"
  29219. },
  29220. attributeType: {
  29221. type: "string"
  29222. },
  29223. value: {
  29224. type: "string"
  29225. },
  29226. voided: {
  29227. type: "boolean"
  29228. }
  29229. }
  29230. },
  29231. ProviderAttributeCreate: {
  29232. required: [
  29233. "attributeType",
  29234. "value"
  29235. ],
  29236. properties: {
  29237. attributeType: {
  29238. type: "string",
  29239. example: "uuid"
  29240. },
  29241. value: {
  29242. type: "string"
  29243. }
  29244. }
  29245. },
  29246. ProviderAttributeCreateFull: {
  29247. required: [
  29248. "attributeType",
  29249. "value"
  29250. ],
  29251. properties: {
  29252. attributeType: {
  29253. type: "string",
  29254. example: "uuid"
  29255. },
  29256. value: {
  29257. type: "string"
  29258. }
  29259. }
  29260. },
  29261. ProviderAttributeUpdate: {
  29262. required: [
  29263. "attributeType",
  29264. "value"
  29265. ],
  29266. properties: {
  29267. attributeType: {
  29268. type: "string",
  29269. example: "uuid"
  29270. },
  29271. value: {
  29272. type: "string"
  29273. }
  29274. }
  29275. },
  29276. FieldAnswerGet: {
  29277. properties: {
  29278. links: {
  29279. type: "array",
  29280. items: {
  29281. type: "object",
  29282. properties: {
  29283. rel: {
  29284. type: "string",
  29285. example: "self|full"
  29286. },
  29287. uri: {
  29288. type: "string",
  29289. format: "uri"
  29290. }
  29291. }
  29292. }
  29293. },
  29294. uuid: {
  29295. type: "string"
  29296. },
  29297. display: {
  29298. type: "string"
  29299. },
  29300. concept: {
  29301. $ref: "#/definitions/ConceptGetRef"
  29302. },
  29303. field: {
  29304. $ref: "#/definitions/FieldGetRef"
  29305. }
  29306. }
  29307. },
  29308. FieldAnswerGetRef: {
  29309. properties: {
  29310. links: {
  29311. type: "array",
  29312. items: {
  29313. type: "object",
  29314. properties: {
  29315. rel: {
  29316. type: "string",
  29317. example: "self"
  29318. },
  29319. uri: {
  29320. type: "string",
  29321. format: "uri"
  29322. }
  29323. }
  29324. }
  29325. }
  29326. }
  29327. },
  29328. FieldAnswerGetFull: {
  29329. properties: {
  29330. auditInfo: {
  29331. type: "string"
  29332. },
  29333. links: {
  29334. type: "array",
  29335. items: {
  29336. type: "object",
  29337. example: "self",
  29338. properties: {
  29339. rel: {
  29340. type: "string"
  29341. },
  29342. uri: {
  29343. type: "string",
  29344. format: "uri"
  29345. }
  29346. }
  29347. }
  29348. },
  29349. uuid: {
  29350. type: "string"
  29351. },
  29352. display: {
  29353. type: "string"
  29354. },
  29355. concept: {
  29356. $ref: "#/definitions/ConceptGet"
  29357. },
  29358. field: {
  29359. $ref: "#/definitions/FieldGet"
  29360. }
  29361. }
  29362. },
  29363. FieldAnswerCreate: {
  29364. required: [
  29365. "concept",
  29366. "field"
  29367. ],
  29368. properties: {
  29369. concept: {
  29370. type: "string",
  29371. example: "uuid"
  29372. },
  29373. field: {
  29374. type: "string",
  29375. example: "uuid"
  29376. }
  29377. }
  29378. },
  29379. FieldAnswerCreateFull: {
  29380. required: [
  29381. "concept",
  29382. "field"
  29383. ],
  29384. properties: {
  29385. concept: {
  29386. $ref: "#/definitions/ConceptCreate"
  29387. },
  29388. field: {
  29389. $ref: "#/definitions/FieldCreate"
  29390. }
  29391. }
  29392. },
  29393. FieldAnswerUpdate: {
  29394. required: [
  29395. "concept",
  29396. "field"
  29397. ],
  29398. properties: {
  29399. concept: {
  29400. type: "string",
  29401. example: "uuid"
  29402. },
  29403. field: {
  29404. type: "string",
  29405. example: "uuid"
  29406. }
  29407. }
  29408. },
  29409. PersonNameGet: {
  29410. properties: {
  29411. links: {
  29412. type: "array",
  29413. items: {
  29414. type: "object",
  29415. properties: {
  29416. rel: {
  29417. type: "string",
  29418. example: "self|full"
  29419. },
  29420. uri: {
  29421. type: "string",
  29422. format: "uri"
  29423. }
  29424. }
  29425. }
  29426. },
  29427. display: {
  29428. type: "string"
  29429. },
  29430. uuid: {
  29431. type: "string"
  29432. },
  29433. givenName: {
  29434. type: "string"
  29435. },
  29436. middleName: {
  29437. type: "string"
  29438. },
  29439. familyName: {
  29440. type: "string"
  29441. },
  29442. familyName2: {
  29443. type: "string"
  29444. },
  29445. voided: {
  29446. type: "boolean"
  29447. }
  29448. }
  29449. },
  29450. PersonNameGetRef: {
  29451. properties: {
  29452. links: {
  29453. type: "array",
  29454. items: {
  29455. type: "object",
  29456. properties: {
  29457. rel: {
  29458. type: "string",
  29459. example: "self"
  29460. },
  29461. uri: {
  29462. type: "string",
  29463. format: "uri"
  29464. }
  29465. }
  29466. }
  29467. }
  29468. }
  29469. },
  29470. PersonNameGetFull: {
  29471. properties: {
  29472. auditInfo: {
  29473. type: "string"
  29474. },
  29475. links: {
  29476. type: "array",
  29477. items: {
  29478. type: "object",
  29479. example: "self",
  29480. properties: {
  29481. rel: {
  29482. type: "string"
  29483. },
  29484. uri: {
  29485. type: "string",
  29486. format: "uri"
  29487. }
  29488. }
  29489. }
  29490. },
  29491. display: {
  29492. type: "string"
  29493. },
  29494. uuid: {
  29495. type: "string"
  29496. },
  29497. givenName: {
  29498. type: "string"
  29499. },
  29500. middleName: {
  29501. type: "string"
  29502. },
  29503. familyName: {
  29504. type: "string"
  29505. },
  29506. familyName2: {
  29507. type: "string"
  29508. },
  29509. voided: {
  29510. type: "boolean"
  29511. },
  29512. preferred: {
  29513. type: "boolean"
  29514. },
  29515. prefix: {
  29516. type: "string"
  29517. },
  29518. familyNamePrefix: {
  29519. type: "string"
  29520. },
  29521. familyNameSuffix: {
  29522. type: "string"
  29523. },
  29524. degree: {
  29525. type: "string"
  29526. }
  29527. }
  29528. },
  29529. PersonNameCreate: {
  29530. required: [
  29531. "givenName"
  29532. ],
  29533. properties: {
  29534. givenName: {
  29535. type: "string"
  29536. },
  29537. middleName: {
  29538. type: "string"
  29539. },
  29540. familyName: {
  29541. type: "string"
  29542. },
  29543. familyName2: {
  29544. type: "string"
  29545. },
  29546. preferred: {
  29547. type: "boolean",
  29548. default: false
  29549. },
  29550. prefix: {
  29551. type: "string"
  29552. },
  29553. familyNamePrefix: {
  29554. type: "string"
  29555. },
  29556. familyNameSuffix: {
  29557. type: "string"
  29558. },
  29559. degree: {
  29560. type: "string"
  29561. }
  29562. }
  29563. },
  29564. PersonNameCreateFull: {
  29565. required: [
  29566. "givenName"
  29567. ],
  29568. properties: {
  29569. givenName: {
  29570. type: "string"
  29571. },
  29572. middleName: {
  29573. type: "string"
  29574. },
  29575. familyName: {
  29576. type: "string"
  29577. },
  29578. familyName2: {
  29579. type: "string"
  29580. },
  29581. preferred: {
  29582. type: "boolean",
  29583. default: false
  29584. },
  29585. prefix: {
  29586. type: "string"
  29587. },
  29588. familyNamePrefix: {
  29589. type: "string"
  29590. },
  29591. familyNameSuffix: {
  29592. type: "string"
  29593. },
  29594. degree: {
  29595. type: "string"
  29596. }
  29597. }
  29598. },
  29599. PersonNameUpdate: {
  29600. required: [
  29601. "givenName"
  29602. ],
  29603. properties: {
  29604. givenName: {
  29605. type: "string"
  29606. },
  29607. middleName: {
  29608. type: "string"
  29609. },
  29610. familyName: {
  29611. type: "string"
  29612. },
  29613. familyName2: {
  29614. type: "string"
  29615. },
  29616. preferred: {
  29617. type: "boolean",
  29618. default: false
  29619. },
  29620. prefix: {
  29621. type: "string"
  29622. },
  29623. familyNamePrefix: {
  29624. type: "string"
  29625. },
  29626. familyNameSuffix: {
  29627. type: "string"
  29628. },
  29629. degree: {
  29630. type: "string"
  29631. }
  29632. }
  29633. },
  29634. CohortMembershipGet: {
  29635. properties: {
  29636. links: {
  29637. type: "array",
  29638. items: {
  29639. type: "object",
  29640. properties: {
  29641. rel: {
  29642. type: "string",
  29643. example: "self|full"
  29644. },
  29645. uri: {
  29646. type: "string",
  29647. format: "uri"
  29648. }
  29649. }
  29650. }
  29651. },
  29652. uuid: {
  29653. type: "string"
  29654. },
  29655. display: {
  29656. type: "string"
  29657. },
  29658. startDate: {
  29659. type: "string",
  29660. format: "date"
  29661. },
  29662. endDate: {
  29663. type: "string",
  29664. format: "date"
  29665. },
  29666. patientUuid: {
  29667. type: "string"
  29668. }
  29669. }
  29670. },
  29671. CohortMembershipGetRef: {
  29672. properties: {
  29673. links: {
  29674. type: "array",
  29675. items: {
  29676. type: "object",
  29677. properties: {
  29678. rel: {
  29679. type: "string",
  29680. example: "self"
  29681. },
  29682. uri: {
  29683. type: "string",
  29684. format: "uri"
  29685. }
  29686. }
  29687. }
  29688. }
  29689. }
  29690. },
  29691. CohortMembershipGetFull: {
  29692. properties: {
  29693. auditInfo: {
  29694. type: "string"
  29695. },
  29696. links: {
  29697. type: "array",
  29698. items: {
  29699. type: "object",
  29700. example: "self",
  29701. properties: {
  29702. rel: {
  29703. type: "string"
  29704. },
  29705. uri: {
  29706. type: "string",
  29707. format: "uri"
  29708. }
  29709. }
  29710. }
  29711. },
  29712. uuid: {
  29713. type: "string"
  29714. },
  29715. display: {
  29716. type: "string"
  29717. },
  29718. startDate: {
  29719. type: "string",
  29720. format: "date"
  29721. },
  29722. endDate: {
  29723. type: "string",
  29724. format: "date"
  29725. },
  29726. patientUuid: {
  29727. type: "string"
  29728. }
  29729. }
  29730. },
  29731. CohortMembershipCreate: {
  29732. properties: {
  29733. patientUuid: {
  29734. type: "string"
  29735. },
  29736. startDate: {
  29737. type: "string",
  29738. format: "date"
  29739. },
  29740. endDate: {
  29741. type: "string",
  29742. format: "date"
  29743. }
  29744. }
  29745. },
  29746. CohortMembershipCreateFull: {
  29747. properties: {
  29748. patientUuid: {
  29749. type: "string"
  29750. },
  29751. startDate: {
  29752. type: "string",
  29753. format: "date"
  29754. },
  29755. endDate: {
  29756. type: "string",
  29757. format: "date"
  29758. }
  29759. }
  29760. },
  29761. CohortMembershipUpdate: {
  29762. properties: {
  29763. startDate: {
  29764. type: "string",
  29765. format: "date"
  29766. },
  29767. endDate: {
  29768. type: "string",
  29769. format: "date"
  29770. }
  29771. }
  29772. },
  29773. PersonAddressGet: {
  29774. properties: {
  29775. links: {
  29776. type: "array",
  29777. items: {
  29778. type: "object",
  29779. properties: {
  29780. rel: {
  29781. type: "string",
  29782. example: "self|full"
  29783. },
  29784. uri: {
  29785. type: "string",
  29786. format: "uri"
  29787. }
  29788. }
  29789. }
  29790. },
  29791. uuid: {
  29792. type: "string"
  29793. },
  29794. display: {
  29795. type: "string"
  29796. },
  29797. preferred: {
  29798. type: "boolean",
  29799. default: false
  29800. },
  29801. address1: {
  29802. type: "string"
  29803. },
  29804. address2: {
  29805. type: "string"
  29806. },
  29807. cityVillage: {
  29808. type: "string"
  29809. },
  29810. stateProvince: {
  29811. type: "string"
  29812. },
  29813. country: {
  29814. type: "string"
  29815. },
  29816. postalCode: {
  29817. type: "string"
  29818. },
  29819. countyDistrict: {
  29820. type: "string"
  29821. },
  29822. address3: {
  29823. type: "string"
  29824. },
  29825. address4: {
  29826. type: "string"
  29827. },
  29828. address5: {
  29829. type: "string"
  29830. },
  29831. address6: {
  29832. type: "string"
  29833. },
  29834. startDate: {
  29835. type: "string",
  29836. format: "date"
  29837. },
  29838. endDate: {
  29839. type: "string",
  29840. format: "date"
  29841. },
  29842. latitude: {
  29843. type: "string"
  29844. },
  29845. longitude: {
  29846. type: "string"
  29847. },
  29848. voided: {
  29849. type: "boolean"
  29850. }
  29851. }
  29852. },
  29853. PersonAddressGetRef: {
  29854. properties: {
  29855. links: {
  29856. type: "array",
  29857. items: {
  29858. type: "object",
  29859. properties: {
  29860. rel: {
  29861. type: "string",
  29862. example: "self"
  29863. },
  29864. uri: {
  29865. type: "string",
  29866. format: "uri"
  29867. }
  29868. }
  29869. }
  29870. },
  29871. uuid: {
  29872. type: "string"
  29873. },
  29874. display: {
  29875. type: "string"
  29876. }
  29877. }
  29878. },
  29879. PersonAddressGetFull: {
  29880. properties: {
  29881. auditInfo: {
  29882. type: "string"
  29883. },
  29884. links: {
  29885. type: "array",
  29886. items: {
  29887. type: "object",
  29888. example: "self",
  29889. properties: {
  29890. rel: {
  29891. type: "string"
  29892. },
  29893. uri: {
  29894. type: "string",
  29895. format: "uri"
  29896. }
  29897. }
  29898. }
  29899. },
  29900. uuid: {
  29901. type: "string"
  29902. },
  29903. display: {
  29904. type: "string"
  29905. },
  29906. preferred: {
  29907. type: "boolean",
  29908. default: false
  29909. },
  29910. address1: {
  29911. type: "string"
  29912. },
  29913. address2: {
  29914. type: "string"
  29915. },
  29916. cityVillage: {
  29917. type: "string"
  29918. },
  29919. stateProvince: {
  29920. type: "string"
  29921. },
  29922. country: {
  29923. type: "string"
  29924. },
  29925. postalCode: {
  29926. type: "string"
  29927. },
  29928. countyDistrict: {
  29929. type: "string"
  29930. },
  29931. address3: {
  29932. type: "string"
  29933. },
  29934. address4: {
  29935. type: "string"
  29936. },
  29937. address5: {
  29938. type: "string"
  29939. },
  29940. address6: {
  29941. type: "string"
  29942. },
  29943. startDate: {
  29944. type: "string",
  29945. format: "date"
  29946. },
  29947. endDate: {
  29948. type: "string",
  29949. format: "date"
  29950. },
  29951. latitude: {
  29952. type: "string"
  29953. },
  29954. longitude: {
  29955. type: "string"
  29956. },
  29957. voided: {
  29958. type: "boolean"
  29959. }
  29960. }
  29961. },
  29962. PersonAddressCreate: {
  29963. properties: {
  29964. preferred: {
  29965. type: "boolean",
  29966. default: false
  29967. },
  29968. address1: {
  29969. type: "string"
  29970. },
  29971. address2: {
  29972. type: "string"
  29973. },
  29974. cityVillage: {
  29975. type: "string"
  29976. },
  29977. stateProvince: {
  29978. type: "string"
  29979. },
  29980. country: {
  29981. type: "string"
  29982. },
  29983. postalCode: {
  29984. type: "string"
  29985. },
  29986. countyDistrict: {
  29987. type: "string"
  29988. },
  29989. address3: {
  29990. type: "string"
  29991. },
  29992. address4: {
  29993. type: "string"
  29994. },
  29995. address5: {
  29996. type: "string"
  29997. },
  29998. address6: {
  29999. type: "string"
  30000. },
  30001. startDate: {
  30002. type: "string",
  30003. format: "date"
  30004. },
  30005. endDate: {
  30006. type: "string",
  30007. format: "date"
  30008. },
  30009. latitude: {
  30010. type: "string"
  30011. },
  30012. longitude: {
  30013. type: "string"
  30014. }
  30015. }
  30016. },
  30017. PersonAddressCreateFull: {
  30018. properties: {
  30019. preferred: {
  30020. type: "boolean",
  30021. default: false
  30022. },
  30023. address1: {
  30024. type: "string"
  30025. },
  30026. address2: {
  30027. type: "string"
  30028. },
  30029. cityVillage: {
  30030. type: "string"
  30031. },
  30032. stateProvince: {
  30033. type: "string"
  30034. },
  30035. country: {
  30036. type: "string"
  30037. },
  30038. postalCode: {
  30039. type: "string"
  30040. },
  30041. countyDistrict: {
  30042. type: "string"
  30043. },
  30044. address3: {
  30045. type: "string"
  30046. },
  30047. address4: {
  30048. type: "string"
  30049. },
  30050. address5: {
  30051. type: "string"
  30052. },
  30053. address6: {
  30054. type: "string"
  30055. },
  30056. startDate: {
  30057. type: "string",
  30058. format: "date"
  30059. },
  30060. endDate: {
  30061. type: "string",
  30062. format: "date"
  30063. },
  30064. latitude: {
  30065. type: "string"
  30066. },
  30067. longitude: {
  30068. type: "string"
  30069. }
  30070. }
  30071. },
  30072. PersonAddressUpdate: {
  30073. properties: {
  30074. preferred: {
  30075. type: "boolean",
  30076. default: false
  30077. },
  30078. address1: {
  30079. type: "string"
  30080. },
  30081. address2: {
  30082. type: "string"
  30083. },
  30084. cityVillage: {
  30085. type: "string"
  30086. },
  30087. stateProvince: {
  30088. type: "string"
  30089. },
  30090. country: {
  30091. type: "string"
  30092. },
  30093. postalCode: {
  30094. type: "string"
  30095. },
  30096. countyDistrict: {
  30097. type: "string"
  30098. },
  30099. address3: {
  30100. type: "string"
  30101. },
  30102. address4: {
  30103. type: "string"
  30104. },
  30105. address5: {
  30106. type: "string"
  30107. },
  30108. address6: {
  30109. type: "string"
  30110. },
  30111. startDate: {
  30112. type: "string",
  30113. format: "date"
  30114. },
  30115. endDate: {
  30116. type: "string",
  30117. format: "date"
  30118. },
  30119. latitude: {
  30120. type: "string"
  30121. },
  30122. longitude: {
  30123. type: "string"
  30124. }
  30125. }
  30126. },
  30127. ProgramenrollmentAttributeGet: {
  30128. properties: {
  30129. links: {
  30130. type: "array",
  30131. items: {
  30132. type: "object",
  30133. properties: {
  30134. rel: {
  30135. type: "string",
  30136. example: "self|full"
  30137. },
  30138. uri: {
  30139. type: "string",
  30140. format: "uri"
  30141. }
  30142. }
  30143. }
  30144. },
  30145. display: {
  30146. type: "string"
  30147. },
  30148. uuid: {
  30149. type: "string"
  30150. },
  30151. attributeType: {
  30152. type: "string"
  30153. },
  30154. value: {
  30155. type: "string"
  30156. },
  30157. voided: {
  30158. type: "boolean"
  30159. }
  30160. }
  30161. },
  30162. ProgramenrollmentAttributeGetRef: {
  30163. properties: {
  30164. links: {
  30165. type: "array",
  30166. items: {
  30167. type: "object",
  30168. properties: {
  30169. rel: {
  30170. type: "string",
  30171. example: "self"
  30172. },
  30173. uri: {
  30174. type: "string",
  30175. format: "uri"
  30176. }
  30177. }
  30178. }
  30179. }
  30180. }
  30181. },
  30182. ProgramenrollmentAttributeGetFull: {
  30183. properties: {
  30184. auditInfo: {
  30185. type: "string"
  30186. },
  30187. links: {
  30188. type: "array",
  30189. items: {
  30190. type: "object",
  30191. example: "self",
  30192. properties: {
  30193. rel: {
  30194. type: "string"
  30195. },
  30196. uri: {
  30197. type: "string",
  30198. format: "uri"
  30199. }
  30200. }
  30201. }
  30202. },
  30203. display: {
  30204. type: "string"
  30205. },
  30206. uuid: {
  30207. type: "string"
  30208. },
  30209. attributeType: {
  30210. type: "string"
  30211. },
  30212. value: {
  30213. type: "string"
  30214. },
  30215. voided: {
  30216. type: "boolean"
  30217. }
  30218. }
  30219. },
  30220. ProgramenrollmentAttributeCreate: {
  30221. required: [
  30222. "attributeType",
  30223. "value"
  30224. ],
  30225. properties: {
  30226. attributeType: {
  30227. type: "string",
  30228. example: "uuid"
  30229. },
  30230. value: {
  30231. type: "string"
  30232. }
  30233. }
  30234. },
  30235. ProgramenrollmentAttributeCreateFull: {
  30236. required: [
  30237. "attributeType",
  30238. "value"
  30239. ],
  30240. properties: {
  30241. attributeType: {
  30242. type: "string",
  30243. example: "uuid"
  30244. },
  30245. value: {
  30246. type: "string"
  30247. }
  30248. }
  30249. },
  30250. ProgramenrollmentAttributeUpdate: {
  30251. required: [
  30252. "attributeType",
  30253. "value"
  30254. ],
  30255. properties: {
  30256. attributeType: {
  30257. type: "string",
  30258. example: "uuid"
  30259. },
  30260. value: {
  30261. type: "string"
  30262. }
  30263. }
  30264. },
  30265. ConceptDescriptionGet: {
  30266. properties: {
  30267. links: {
  30268. type: "array",
  30269. items: {
  30270. type: "object",
  30271. properties: {
  30272. rel: {
  30273. type: "string",
  30274. example: "self|full"
  30275. },
  30276. uri: {
  30277. type: "string",
  30278. format: "uri"
  30279. }
  30280. }
  30281. }
  30282. },
  30283. uuid: {
  30284. type: "string"
  30285. },
  30286. display: {
  30287. type: "string"
  30288. },
  30289. description: {
  30290. type: "string"
  30291. },
  30292. locale: {
  30293. type: "string"
  30294. }
  30295. }
  30296. },
  30297. ConceptDescriptionGetRef: {
  30298. properties: {
  30299. links: {
  30300. type: "array",
  30301. items: {
  30302. type: "object",
  30303. properties: {
  30304. rel: {
  30305. type: "string",
  30306. example: "self"
  30307. },
  30308. uri: {
  30309. type: "string",
  30310. format: "uri"
  30311. }
  30312. }
  30313. }
  30314. },
  30315. uuid: {
  30316. type: "string"
  30317. },
  30318. display: {
  30319. type: "string"
  30320. }
  30321. }
  30322. },
  30323. ConceptDescriptionGetFull: {
  30324. properties: {
  30325. auditInfo: {
  30326. type: "string"
  30327. },
  30328. links: {
  30329. type: "array",
  30330. items: {
  30331. type: "object",
  30332. example: "self",
  30333. properties: {
  30334. rel: {
  30335. type: "string"
  30336. },
  30337. uri: {
  30338. type: "string",
  30339. format: "uri"
  30340. }
  30341. }
  30342. }
  30343. },
  30344. uuid: {
  30345. type: "string"
  30346. },
  30347. display: {
  30348. type: "string"
  30349. },
  30350. description: {
  30351. type: "string"
  30352. },
  30353. locale: {
  30354. type: "string"
  30355. }
  30356. }
  30357. },
  30358. ConceptDescriptionCreate: {
  30359. required: [
  30360. "description",
  30361. "locale"
  30362. ],
  30363. properties: {
  30364. description: {
  30365. type: "string"
  30366. },
  30367. locale: {
  30368. type: "string",
  30369. example: "fr"
  30370. }
  30371. }
  30372. },
  30373. ConceptDescriptionCreateFull: {
  30374. required: [
  30375. "description",
  30376. "locale"
  30377. ],
  30378. properties: {
  30379. description: {
  30380. type: "string"
  30381. },
  30382. locale: {
  30383. type: "string",
  30384. example: "fr"
  30385. }
  30386. }
  30387. },
  30388. ConceptDescriptionUpdate: {
  30389. required: [
  30390. "description",
  30391. "locale"
  30392. ],
  30393. properties: {
  30394. description: {
  30395. type: "string"
  30396. },
  30397. locale: {
  30398. type: "string",
  30399. example: "fr"
  30400. }
  30401. }
  30402. },
  30403. EncounterEncounterproviderGet: {
  30404. properties: {
  30405. links: {
  30406. type: "array",
  30407. items: {
  30408. type: "object",
  30409. properties: {
  30410. rel: {
  30411. type: "string",
  30412. example: "self|full"
  30413. },
  30414. uri: {
  30415. type: "string",
  30416. format: "uri"
  30417. }
  30418. }
  30419. }
  30420. },
  30421. uuid: {
  30422. type: "string"
  30423. },
  30424. provider: {
  30425. $ref: "#/definitions/ProviderGetRef"
  30426. },
  30427. encounterRole: {
  30428. $ref: "#/definitions/EncounterroleGetRef"
  30429. },
  30430. voided: {
  30431. type: "boolean"
  30432. }
  30433. }
  30434. },
  30435. EncounterEncounterproviderGetRef: {
  30436. properties: {
  30437. links: {
  30438. type: "array",
  30439. items: {
  30440. type: "object",
  30441. properties: {
  30442. rel: {
  30443. type: "string",
  30444. example: "self"
  30445. },
  30446. uri: {
  30447. type: "string",
  30448. format: "uri"
  30449. }
  30450. }
  30451. }
  30452. }
  30453. }
  30454. },
  30455. EncounterEncounterproviderGetFull: {
  30456. properties: {
  30457. auditInfo: {
  30458. type: "string"
  30459. },
  30460. links: {
  30461. type: "array",
  30462. items: {
  30463. type: "object",
  30464. example: "self",
  30465. properties: {
  30466. rel: {
  30467. type: "string"
  30468. },
  30469. uri: {
  30470. type: "string",
  30471. format: "uri"
  30472. }
  30473. }
  30474. }
  30475. },
  30476. uuid: {
  30477. type: "string"
  30478. },
  30479. provider: {
  30480. $ref: "#/definitions/ProviderGet"
  30481. },
  30482. encounterRole: {
  30483. $ref: "#/definitions/EncounterroleGet"
  30484. },
  30485. voided: {
  30486. type: "boolean"
  30487. }
  30488. }
  30489. },
  30490. EncounterEncounterproviderCreate: {
  30491. properties: {
  30492. provider: {
  30493. type: "string",
  30494. example: "uuid"
  30495. },
  30496. encounterRole: {
  30497. type: "string",
  30498. example: "uuid"
  30499. },
  30500. encounter: {
  30501. type: "string"
  30502. }
  30503. }
  30504. },
  30505. EncounterEncounterproviderCreateFull: {
  30506. properties: {
  30507. provider: {
  30508. $ref: "#/definitions/ProviderCreate"
  30509. },
  30510. encounterRole: {
  30511. $ref: "#/definitions/EncounterroleCreate"
  30512. },
  30513. encounter: {
  30514. $ref: "#/definitions/EncounterCreate"
  30515. }
  30516. }
  30517. },
  30518. EncounterEncounterproviderUpdate: {
  30519. properties: {
  30520. encounterRole: {
  30521. type: "string"
  30522. },
  30523. voided: {
  30524. type: "boolean"
  30525. },
  30526. voidReason: {
  30527. type: "string"
  30528. }
  30529. }
  30530. },
  30531. ConceptNameGet: {
  30532. properties: {
  30533. links: {
  30534. type: "array",
  30535. items: {
  30536. type: "object",
  30537. properties: {
  30538. rel: {
  30539. type: "string",
  30540. example: "self|full"
  30541. },
  30542. uri: {
  30543. type: "string",
  30544. format: "uri"
  30545. }
  30546. }
  30547. }
  30548. },
  30549. uuid: {
  30550. type: "string"
  30551. },
  30552. display: {
  30553. type: "string"
  30554. },
  30555. name: {
  30556. type: "string"
  30557. },
  30558. locale: {
  30559. type: "string",
  30560. example: "en"
  30561. },
  30562. localePreferred: {
  30563. type: "boolean"
  30564. },
  30565. conceptNameType: {
  30566. type: "string",
  30567. enum: [
  30568. "FULLY_SPECIFIED",
  30569. "SHORT",
  30570. "INDEX_TERM"
  30571. ]
  30572. }
  30573. }
  30574. },
  30575. ConceptNameGetRef: {
  30576. properties: {
  30577. links: {
  30578. type: "array",
  30579. items: {
  30580. type: "object",
  30581. properties: {
  30582. rel: {
  30583. type: "string",
  30584. example: "self"
  30585. },
  30586. uri: {
  30587. type: "string",
  30588. format: "uri"
  30589. }
  30590. }
  30591. }
  30592. },
  30593. uuid: {
  30594. type: "string"
  30595. },
  30596. display: {
  30597. type: "string"
  30598. }
  30599. }
  30600. },
  30601. ConceptNameGetFull: {
  30602. properties: {
  30603. auditInfo: {
  30604. type: "string"
  30605. },
  30606. links: {
  30607. type: "array",
  30608. items: {
  30609. type: "object",
  30610. example: "self",
  30611. properties: {
  30612. rel: {
  30613. type: "string"
  30614. },
  30615. uri: {
  30616. type: "string",
  30617. format: "uri"
  30618. }
  30619. }
  30620. }
  30621. },
  30622. uuid: {
  30623. type: "string"
  30624. },
  30625. display: {
  30626. type: "string"
  30627. },
  30628. name: {
  30629. type: "string"
  30630. },
  30631. locale: {
  30632. type: "string",
  30633. example: "en"
  30634. },
  30635. localePreferred: {
  30636. type: "boolean"
  30637. },
  30638. conceptNameType: {
  30639. type: "string",
  30640. enum: [
  30641. "FULLY_SPECIFIED",
  30642. "SHORT",
  30643. "INDEX_TERM"
  30644. ]
  30645. }
  30646. }
  30647. },
  30648. ConceptNameCreate: {
  30649. required: [
  30650. "locale",
  30651. "name"
  30652. ],
  30653. properties: {
  30654. name: {
  30655. type: "string"
  30656. },
  30657. locale: {
  30658. type: "string",
  30659. example: "en"
  30660. },
  30661. localePreferred: {
  30662. type: "boolean",
  30663. default: false
  30664. },
  30665. conceptNameType: {
  30666. type: "string",
  30667. enum: [
  30668. "FULLY_SPECIFIED",
  30669. "SHORT",
  30670. "INDEX_TERM"
  30671. ]
  30672. }
  30673. }
  30674. },
  30675. ConceptNameCreateFull: {
  30676. required: [
  30677. "locale",
  30678. "name"
  30679. ],
  30680. properties: {
  30681. name: {
  30682. type: "string"
  30683. },
  30684. locale: {
  30685. type: "string",
  30686. example: "en"
  30687. },
  30688. localePreferred: {
  30689. type: "boolean",
  30690. default: false
  30691. },
  30692. conceptNameType: {
  30693. type: "string",
  30694. enum: [
  30695. "FULLY_SPECIFIED",
  30696. "SHORT",
  30697. "INDEX_TERM"
  30698. ]
  30699. }
  30700. }
  30701. },
  30702. ConceptNameUpdate: {
  30703. properties: {
  30704. name: {
  30705. type: "string"
  30706. }
  30707. }
  30708. },
  30709. OrdersetOrdersetmemberGet: {
  30710. properties: {
  30711. links: {
  30712. type: "array",
  30713. items: {
  30714. type: "object",
  30715. properties: {
  30716. rel: {
  30717. type: "string",
  30718. example: "self|full"
  30719. },
  30720. uri: {
  30721. type: "string",
  30722. format: "uri"
  30723. }
  30724. }
  30725. }
  30726. },
  30727. uuid: {
  30728. type: "string"
  30729. },
  30730. display: {
  30731. type: "string"
  30732. },
  30733. retired: {
  30734. type: "boolean"
  30735. },
  30736. orderTemplate: {
  30737. type: "string"
  30738. },
  30739. orderTemplateType: {
  30740. type: "string"
  30741. },
  30742. orderType: {
  30743. $ref: "#/definitions/OrdertypeGetRef"
  30744. },
  30745. concept: {
  30746. $ref: "#/definitions/ConceptGetRef"
  30747. }
  30748. }
  30749. },
  30750. OrdersetOrdersetmemberGetRef: {
  30751. properties: {
  30752. links: {
  30753. type: "array",
  30754. items: {
  30755. type: "object",
  30756. properties: {
  30757. rel: {
  30758. type: "string",
  30759. example: "self"
  30760. },
  30761. uri: {
  30762. type: "string",
  30763. format: "uri"
  30764. }
  30765. }
  30766. }
  30767. }
  30768. }
  30769. },
  30770. OrdersetOrdersetmemberGetFull: {
  30771. properties: {
  30772. auditInfo: {
  30773. type: "string"
  30774. },
  30775. links: {
  30776. type: "array",
  30777. items: {
  30778. type: "object",
  30779. example: "self",
  30780. properties: {
  30781. rel: {
  30782. type: "string"
  30783. },
  30784. uri: {
  30785. type: "string",
  30786. format: "uri"
  30787. }
  30788. }
  30789. }
  30790. },
  30791. uuid: {
  30792. type: "string"
  30793. },
  30794. display: {
  30795. type: "string"
  30796. },
  30797. retired: {
  30798. type: "boolean"
  30799. },
  30800. orderTemplate: {
  30801. type: "string"
  30802. },
  30803. orderTemplateType: {
  30804. type: "string"
  30805. },
  30806. orderType: {
  30807. $ref: "#/definitions/OrdertypeGet"
  30808. },
  30809. concept: {
  30810. $ref: "#/definitions/ConceptGet"
  30811. }
  30812. }
  30813. },
  30814. OrdersetOrdersetmemberCreate: {
  30815. properties: {
  30816. orderType: {
  30817. type: "object",
  30818. properties: {
  30819. uuid: {
  30820. type: "string"
  30821. }
  30822. }
  30823. },
  30824. orderTemplate: {
  30825. type: "string"
  30826. },
  30827. concept: {
  30828. type: "string",
  30829. example: "uuid"
  30830. },
  30831. retired: {
  30832. type: "boolean"
  30833. }
  30834. }
  30835. },
  30836. OrdersetOrdersetmemberCreateFull: {
  30837. properties: {
  30838. orderType: {
  30839. type: "object",
  30840. properties: {
  30841. uuid: {
  30842. type: "string"
  30843. }
  30844. }
  30845. },
  30846. orderTemplate: {
  30847. type: "string"
  30848. },
  30849. concept: {
  30850. type: "string",
  30851. example: "uuid"
  30852. },
  30853. retired: {
  30854. type: "boolean"
  30855. }
  30856. }
  30857. },
  30858. OrdersetOrdersetmemberUpdate: {
  30859. properties: {
  30860. orderType: {
  30861. type: "object",
  30862. properties: {
  30863. uuid: {
  30864. type: "string"
  30865. }
  30866. }
  30867. },
  30868. orderTemplate: {
  30869. type: "string"
  30870. },
  30871. concept: {
  30872. type: "string",
  30873. example: "uuid"
  30874. },
  30875. retired: {
  30876. type: "boolean"
  30877. }
  30878. }
  30879. },
  30880. ConceptAttributeGet: {
  30881. properties: {
  30882. links: {
  30883. type: "array",
  30884. items: {
  30885. type: "object",
  30886. properties: {
  30887. rel: {
  30888. type: "string",
  30889. example: "self|full"
  30890. },
  30891. uri: {
  30892. type: "string",
  30893. format: "uri"
  30894. }
  30895. }
  30896. }
  30897. },
  30898. display: {
  30899. type: "string"
  30900. },
  30901. uuid: {
  30902. type: "string"
  30903. },
  30904. attributeType: {
  30905. type: "string"
  30906. },
  30907. value: {
  30908. type: "string"
  30909. },
  30910. voided: {
  30911. type: "boolean"
  30912. }
  30913. }
  30914. },
  30915. ConceptAttributeGetRef: {
  30916. properties: {
  30917. links: {
  30918. type: "array",
  30919. items: {
  30920. type: "object",
  30921. properties: {
  30922. rel: {
  30923. type: "string",
  30924. example: "self"
  30925. },
  30926. uri: {
  30927. type: "string",
  30928. format: "uri"
  30929. }
  30930. }
  30931. }
  30932. }
  30933. }
  30934. },
  30935. ConceptAttributeGetFull: {
  30936. properties: {
  30937. auditInfo: {
  30938. type: "string"
  30939. },
  30940. links: {
  30941. type: "array",
  30942. items: {
  30943. type: "object",
  30944. example: "self",
  30945. properties: {
  30946. rel: {
  30947. type: "string"
  30948. },
  30949. uri: {
  30950. type: "string",
  30951. format: "uri"
  30952. }
  30953. }
  30954. }
  30955. },
  30956. display: {
  30957. type: "string"
  30958. },
  30959. uuid: {
  30960. type: "string"
  30961. },
  30962. attributeType: {
  30963. type: "string"
  30964. },
  30965. value: {
  30966. type: "string"
  30967. },
  30968. voided: {
  30969. type: "boolean"
  30970. }
  30971. }
  30972. },
  30973. ConceptAttributeCreate: {
  30974. required: [
  30975. "attributeType",
  30976. "value"
  30977. ],
  30978. properties: {
  30979. attributeType: {
  30980. type: "string",
  30981. example: "uuid"
  30982. },
  30983. value: {
  30984. type: "string"
  30985. }
  30986. }
  30987. },
  30988. ConceptAttributeCreateFull: {
  30989. required: [
  30990. "attributeType",
  30991. "value"
  30992. ],
  30993. properties: {
  30994. attributeType: {
  30995. type: "string",
  30996. example: "uuid"
  30997. },
  30998. value: {
  30999. type: "string"
  31000. }
  31001. }
  31002. },
  31003. ConceptAttributeUpdate: {
  31004. required: [
  31005. "attributeType",
  31006. "value"
  31007. ],
  31008. properties: {
  31009. attributeType: {
  31010. type: "string",
  31011. example: "uuid"
  31012. },
  31013. value: {
  31014. type: "string"
  31015. }
  31016. }
  31017. },
  31018. WorkflowStateGet: {
  31019. properties: {
  31020. links: {
  31021. type: "array",
  31022. items: {
  31023. type: "object",
  31024. properties: {
  31025. rel: {
  31026. type: "string",
  31027. example: "self|full"
  31028. },
  31029. uri: {
  31030. type: "string",
  31031. format: "uri"
  31032. }
  31033. }
  31034. }
  31035. },
  31036. uuid: {
  31037. type: "string"
  31038. },
  31039. description: {
  31040. type: "string"
  31041. },
  31042. retired: {
  31043. type: "boolean"
  31044. },
  31045. concept: {
  31046. $ref: "#/definitions/ConceptGetRef"
  31047. }
  31048. }
  31049. },
  31050. WorkflowStateGetRef: {
  31051. properties: {
  31052. links: {
  31053. type: "array",
  31054. items: {
  31055. type: "object",
  31056. properties: {
  31057. rel: {
  31058. type: "string",
  31059. example: "self"
  31060. },
  31061. uri: {
  31062. type: "string",
  31063. format: "uri"
  31064. }
  31065. }
  31066. }
  31067. },
  31068. uuid: {
  31069. type: "string"
  31070. },
  31071. retired: {
  31072. type: "boolean"
  31073. },
  31074. concept: {
  31075. $ref: "#/definitions/ConceptGetRef"
  31076. }
  31077. }
  31078. },
  31079. WorkflowStateGetFull: {
  31080. properties: {
  31081. auditInfo: {
  31082. type: "string"
  31083. },
  31084. links: {
  31085. type: "array",
  31086. items: {
  31087. type: "object",
  31088. example: "self",
  31089. properties: {
  31090. rel: {
  31091. type: "string"
  31092. },
  31093. uri: {
  31094. type: "string",
  31095. format: "uri"
  31096. }
  31097. }
  31098. }
  31099. },
  31100. uuid: {
  31101. type: "string"
  31102. },
  31103. description: {
  31104. type: "string"
  31105. },
  31106. retired: {
  31107. type: "boolean"
  31108. },
  31109. concept: {
  31110. $ref: "#/definitions/ConceptGet"
  31111. }
  31112. }
  31113. },
  31114. WorkflowStateCreate: { },
  31115. WorkflowStateCreateFull: { },
  31116. ProgramenrollmentStateCreate: {
  31117. required: [
  31118. "state"
  31119. ],
  31120. properties: {
  31121. state: {
  31122. $ref: "#/definitions/WorkflowStateCreate"
  31123. }
  31124. }
  31125. },
  31126. ProgramenrollmentStateCreateFull: {
  31127. required: [
  31128. "state"
  31129. ],
  31130. properties: {
  31131. state: {
  31132. $ref: "#/definitions/WorkflowStateCreate"
  31133. }
  31134. }
  31135. },
  31136. ProgramenrollmentStateGet: {
  31137. properties: {
  31138. links: {
  31139. type: "array",
  31140. items: {
  31141. type: "object",
  31142. properties: {
  31143. rel: {
  31144. type: "string",
  31145. example: "self|full"
  31146. },
  31147. uri: {
  31148. type: "string",
  31149. format: "uri"
  31150. }
  31151. }
  31152. }
  31153. },
  31154. uuid: {
  31155. type: "string"
  31156. },
  31157. startDate: {
  31158. type: "string",
  31159. format: "date"
  31160. },
  31161. endDate: {
  31162. type: "string",
  31163. format: "date"
  31164. },
  31165. voided: {
  31166. type: "boolean"
  31167. },
  31168. state: {
  31169. $ref: "#/definitions/WorkflowStateGet"
  31170. }
  31171. }
  31172. },
  31173. ProgramenrollmentStateGetRef: {
  31174. properties: {
  31175. links: {
  31176. type: "array",
  31177. items: {
  31178. type: "object",
  31179. properties: {
  31180. rel: {
  31181. type: "string",
  31182. example: "self"
  31183. },
  31184. uri: {
  31185. type: "string",
  31186. format: "uri"
  31187. }
  31188. }
  31189. }
  31190. },
  31191. uuid: {
  31192. type: "string"
  31193. },
  31194. startDate: {
  31195. type: "string",
  31196. format: "date"
  31197. },
  31198. endDate: {
  31199. type: "string",
  31200. format: "date"
  31201. },
  31202. voided: {
  31203. type: "boolean"
  31204. },
  31205. state: {
  31206. $ref: "#/definitions/WorkflowStateGetRef"
  31207. },
  31208. patientProgram: {
  31209. type: "object"
  31210. }
  31211. }
  31212. },
  31213. ProgramenrollmentStateGetFull: {
  31214. properties: {
  31215. auditInfo: {
  31216. type: "string"
  31217. },
  31218. links: {
  31219. type: "array",
  31220. items: {
  31221. type: "object",
  31222. example: "self",
  31223. properties: {
  31224. rel: {
  31225. type: "string"
  31226. },
  31227. uri: {
  31228. type: "string",
  31229. format: "uri"
  31230. }
  31231. }
  31232. }
  31233. },
  31234. uuid: {
  31235. type: "string"
  31236. },
  31237. startDate: {
  31238. type: "string",
  31239. format: "date"
  31240. },
  31241. endDate: {
  31242. type: "string",
  31243. format: "date"
  31244. },
  31245. voided: {
  31246. type: "boolean"
  31247. },
  31248. state: {
  31249. $ref: "#/definitions/WorkflowStateGetRef"
  31250. },
  31251. patientProgram: {
  31252. type: "object"
  31253. }
  31254. }
  31255. },
  31256. ProgramenrollmentStateUpdate: {
  31257. properties: {
  31258. startDate: {
  31259. type: "string",
  31260. format: "date"
  31261. },
  31262. endDate: {
  31263. type: "string",
  31264. format: "date"
  31265. },
  31266. voided: {
  31267. type: "boolean"
  31268. }
  31269. }
  31270. },
  31271. PersonAttributeGet: {
  31272. properties: {
  31273. links: {
  31274. type: "array",
  31275. items: {
  31276. type: "object",
  31277. properties: {
  31278. rel: {
  31279. type: "string",
  31280. example: "self|full"
  31281. },
  31282. uri: {
  31283. type: "string",
  31284. format: "uri"
  31285. }
  31286. }
  31287. }
  31288. },
  31289. display: {
  31290. type: "string"
  31291. },
  31292. uuid: {
  31293. type: "string"
  31294. },
  31295. value: {
  31296. type: "string"
  31297. },
  31298. attributeType: {
  31299. $ref: "#/definitions/PersonattributetypeGetRef"
  31300. },
  31301. voided: {
  31302. type: "boolean"
  31303. }
  31304. }
  31305. },
  31306. PersonAttributeGetRef: {
  31307. properties: {
  31308. links: {
  31309. type: "array",
  31310. items: {
  31311. type: "object",
  31312. properties: {
  31313. rel: {
  31314. type: "string",
  31315. example: "self"
  31316. },
  31317. uri: {
  31318. type: "string",
  31319. format: "uri"
  31320. }
  31321. }
  31322. }
  31323. }
  31324. }
  31325. },
  31326. PersonAttributeGetFull: {
  31327. properties: {
  31328. auditInfo: {
  31329. type: "string"
  31330. },
  31331. links: {
  31332. type: "array",
  31333. items: {
  31334. type: "object",
  31335. example: "self",
  31336. properties: {
  31337. rel: {
  31338. type: "string"
  31339. },
  31340. uri: {
  31341. type: "string",
  31342. format: "uri"
  31343. }
  31344. }
  31345. }
  31346. },
  31347. display: {
  31348. type: "string"
  31349. },
  31350. uuid: {
  31351. type: "string"
  31352. },
  31353. value: {
  31354. type: "string"
  31355. },
  31356. attributeType: {
  31357. $ref: "#/definitions/PersonattributetypeGetRef"
  31358. },
  31359. voided: {
  31360. type: "boolean"
  31361. },
  31362. hydratedObject: {
  31363. type: "string"
  31364. }
  31365. }
  31366. },
  31367. PersonAttributeCreate: {
  31368. required: [
  31369. "attributeType"
  31370. ],
  31371. properties: {
  31372. attributeType: {
  31373. type: "string",
  31374. example: "uuid"
  31375. },
  31376. value: {
  31377. type: "string"
  31378. },
  31379. hydratedObject: {
  31380. type: "string",
  31381. example: "uuid"
  31382. }
  31383. }
  31384. },
  31385. PersonAttributeCreateFull: {
  31386. required: [
  31387. "attributeType"
  31388. ],
  31389. properties: {
  31390. attributeType: {
  31391. $ref: "#/definitions/PersonattributetypeCreate"
  31392. },
  31393. value: {
  31394. type: "string"
  31395. },
  31396. hydratedObject: {
  31397. type: "string",
  31398. example: "uuid"
  31399. }
  31400. }
  31401. },
  31402. PersonAttributeUpdate: {
  31403. required: [
  31404. "attributeType"
  31405. ],
  31406. properties: {
  31407. attributeType: {
  31408. type: "string",
  31409. example: "uuid"
  31410. },
  31411. value: {
  31412. type: "string"
  31413. },
  31414. hydratedObject: {
  31415. type: "string",
  31416. example: "uuid"
  31417. }
  31418. }
  31419. },
  31420. LocationAttributeGet: {
  31421. properties: {
  31422. links: {
  31423. type: "array",
  31424. items: {
  31425. type: "object",
  31426. properties: {
  31427. rel: {
  31428. type: "string",
  31429. example: "self|full"
  31430. },
  31431. uri: {
  31432. type: "string",
  31433. format: "uri"
  31434. }
  31435. }
  31436. }
  31437. },
  31438. display: {
  31439. type: "string"
  31440. },
  31441. uuid: {
  31442. type: "string"
  31443. },
  31444. attributeType: {
  31445. type: "string"
  31446. },
  31447. value: {
  31448. type: "string"
  31449. },
  31450. voided: {
  31451. type: "boolean"
  31452. }
  31453. }
  31454. },
  31455. LocationAttributeGetRef: {
  31456. properties: {
  31457. links: {
  31458. type: "array",
  31459. items: {
  31460. type: "object",
  31461. properties: {
  31462. rel: {
  31463. type: "string",
  31464. example: "self"
  31465. },
  31466. uri: {
  31467. type: "string",
  31468. format: "uri"
  31469. }
  31470. }
  31471. }
  31472. }
  31473. }
  31474. },
  31475. LocationAttributeGetFull: {
  31476. properties: {
  31477. auditInfo: {
  31478. type: "string"
  31479. },
  31480. links: {
  31481. type: "array",
  31482. items: {
  31483. type: "object",
  31484. example: "self",
  31485. properties: {
  31486. rel: {
  31487. type: "string"
  31488. },
  31489. uri: {
  31490. type: "string",
  31491. format: "uri"
  31492. }
  31493. }
  31494. }
  31495. },
  31496. display: {
  31497. type: "string"
  31498. },
  31499. uuid: {
  31500. type: "string"
  31501. },
  31502. attributeType: {
  31503. type: "string"
  31504. },
  31505. value: {
  31506. type: "string"
  31507. },
  31508. voided: {
  31509. type: "boolean"
  31510. }
  31511. }
  31512. },
  31513. LocationAttributeCreate: {
  31514. required: [
  31515. "attributeType",
  31516. "value"
  31517. ],
  31518. properties: {
  31519. attributeType: {
  31520. type: "string",
  31521. example: "uuid"
  31522. },
  31523. value: {
  31524. type: "string"
  31525. }
  31526. }
  31527. },
  31528. LocationAttributeCreateFull: {
  31529. required: [
  31530. "attributeType",
  31531. "value"
  31532. ],
  31533. properties: {
  31534. attributeType: {
  31535. type: "string",
  31536. example: "uuid"
  31537. },
  31538. value: {
  31539. type: "string"
  31540. }
  31541. }
  31542. },
  31543. LocationAttributeUpdate: {
  31544. required: [
  31545. "attributeType",
  31546. "value"
  31547. ],
  31548. properties: {
  31549. attributeType: {
  31550. type: "string",
  31551. example: "uuid"
  31552. },
  31553. value: {
  31554. type: "string"
  31555. }
  31556. }
  31557. },
  31558. OrderFulfillerdetailsCreate: {
  31559. properties: {
  31560. fulfillerComment: {
  31561. type: "string"
  31562. },
  31563. fulfillerStatus: {
  31564. type: "string",
  31565. enum: [
  31566. "RECEIVED",
  31567. "IN_PROGRESS",
  31568. "EXCEPTION",
  31569. "COMPLETED"
  31570. ]
  31571. }
  31572. }
  31573. },
  31574. OrderFulfillerdetailsCreateFull: {
  31575. properties: {
  31576. fulfillerComment: {
  31577. type: "string"
  31578. },
  31579. fulfillerStatus: {
  31580. type: "string",
  31581. enum: [
  31582. "RECEIVED",
  31583. "IN_PROGRESS",
  31584. "EXCEPTION",
  31585. "COMPLETED"
  31586. ]
  31587. }
  31588. }
  31589. },
  31590. PatientIdentifierGet: {
  31591. properties: {
  31592. links: {
  31593. type: "array",
  31594. items: {
  31595. type: "object",
  31596. properties: {
  31597. rel: {
  31598. type: "string",
  31599. example: "self|full"
  31600. },
  31601. uri: {
  31602. type: "string",
  31603. format: "uri"
  31604. }
  31605. }
  31606. }
  31607. },
  31608. uuid: {
  31609. type: "string"
  31610. },
  31611. display: {
  31612. type: "string"
  31613. },
  31614. identifier: {
  31615. type: "string"
  31616. },
  31617. preferred: {
  31618. type: "boolean",
  31619. default: false
  31620. },
  31621. voided: {
  31622. type: "boolean"
  31623. },
  31624. identifierType: {
  31625. $ref: "#/definitions/PatientidentifiertypeGetRef"
  31626. },
  31627. location: {
  31628. $ref: "#/definitions/LocationGetRef"
  31629. }
  31630. }
  31631. },
  31632. PatientIdentifierGetRef: {
  31633. properties: {
  31634. links: {
  31635. type: "array",
  31636. items: {
  31637. type: "object",
  31638. properties: {
  31639. rel: {
  31640. type: "string",
  31641. example: "self"
  31642. },
  31643. uri: {
  31644. type: "string",
  31645. format: "uri"
  31646. }
  31647. }
  31648. }
  31649. }
  31650. }
  31651. },
  31652. PatientIdentifierGetFull: {
  31653. properties: {
  31654. auditInfo: {
  31655. type: "string"
  31656. },
  31657. links: {
  31658. type: "array",
  31659. items: {
  31660. type: "object",
  31661. example: "self",
  31662. properties: {
  31663. rel: {
  31664. type: "string"
  31665. },
  31666. uri: {
  31667. type: "string",
  31668. format: "uri"
  31669. }
  31670. }
  31671. }
  31672. },
  31673. uuid: {
  31674. type: "string"
  31675. },
  31676. display: {
  31677. type: "string"
  31678. },
  31679. identifier: {
  31680. type: "string"
  31681. },
  31682. preferred: {
  31683. type: "boolean",
  31684. default: false
  31685. },
  31686. voided: {
  31687. type: "boolean"
  31688. },
  31689. identifierType: {
  31690. $ref: "#/definitions/PatientidentifiertypeGet"
  31691. },
  31692. location: {
  31693. $ref: "#/definitions/LocationGet"
  31694. }
  31695. }
  31696. },
  31697. PatientIdentifierCreate: {
  31698. required: [
  31699. "identifier",
  31700. "identifierType"
  31701. ],
  31702. properties: {
  31703. identifier: {
  31704. type: "string"
  31705. },
  31706. identifierType: {
  31707. type: "string",
  31708. example: "uuid"
  31709. },
  31710. location: {
  31711. type: "string",
  31712. example: "uuid"
  31713. },
  31714. preferred: {
  31715. type: "boolean",
  31716. default: false
  31717. }
  31718. }
  31719. },
  31720. PatientIdentifierCreateFull: {
  31721. required: [
  31722. "identifier",
  31723. "identifierType"
  31724. ],
  31725. properties: {
  31726. identifier: {
  31727. type: "string"
  31728. },
  31729. identifierType: {
  31730. $ref: "#/definitions/PatientidentifiertypeCreate"
  31731. },
  31732. location: {
  31733. $ref: "#/definitions/LocationCreate"
  31734. },
  31735. preferred: {
  31736. type: "boolean",
  31737. default: false
  31738. }
  31739. }
  31740. },
  31741. PatientIdentifierUpdate: {
  31742. required: [
  31743. "identifier",
  31744. "identifierType"
  31745. ],
  31746. properties: {
  31747. identifier: {
  31748. type: "string"
  31749. },
  31750. identifierType: {
  31751. type: "string",
  31752. example: "uuid"
  31753. },
  31754. location: {
  31755. type: "string",
  31756. example: "uuid"
  31757. },
  31758. preferred: {
  31759. type: "boolean",
  31760. default: false
  31761. }
  31762. }
  31763. },
  31764. CustomdatatypeHandlersGet: {
  31765. properties: {
  31766. links: {
  31767. type: "array",
  31768. items: {
  31769. type: "object",
  31770. properties: {
  31771. rel: {
  31772. type: "string",
  31773. example: "self|full"
  31774. },
  31775. uri: {
  31776. type: "string",
  31777. format: "uri"
  31778. }
  31779. }
  31780. }
  31781. },
  31782. uuid: {
  31783. type: "string"
  31784. },
  31785. handlerClassname: {
  31786. type: "string"
  31787. },
  31788. display: {
  31789. type: "string"
  31790. }
  31791. }
  31792. },
  31793. CustomdatatypeHandlersGetRef: {
  31794. properties: {
  31795. links: {
  31796. type: "array",
  31797. items: {
  31798. type: "object",
  31799. properties: {
  31800. rel: {
  31801. type: "string",
  31802. example: "self"
  31803. },
  31804. uri: {
  31805. type: "string",
  31806. format: "uri"
  31807. }
  31808. }
  31809. }
  31810. }
  31811. }
  31812. },
  31813. CustomdatatypeHandlersGetFull: {
  31814. properties: {
  31815. auditInfo: {
  31816. type: "string"
  31817. },
  31818. links: {
  31819. type: "array",
  31820. items: {
  31821. type: "object",
  31822. example: "self",
  31823. properties: {
  31824. rel: {
  31825. type: "string"
  31826. },
  31827. uri: {
  31828. type: "string",
  31829. format: "uri"
  31830. }
  31831. }
  31832. }
  31833. },
  31834. uuid: {
  31835. type: "string"
  31836. },
  31837. handlerClassname: {
  31838. type: "string"
  31839. },
  31840. display: {
  31841. type: "string"
  31842. }
  31843. }
  31844. },
  31845. FormResourceGet: {
  31846. properties: {
  31847. links: {
  31848. type: "array",
  31849. items: {
  31850. type: "object",
  31851. properties: {
  31852. rel: {
  31853. type: "string",
  31854. example: "self|full"
  31855. },
  31856. uri: {
  31857. type: "string",
  31858. format: "uri"
  31859. }
  31860. }
  31861. }
  31862. },
  31863. uuid: {
  31864. type: "string"
  31865. },
  31866. display: {
  31867. type: "string"
  31868. },
  31869. name: {
  31870. type: "string"
  31871. },
  31872. valueReference: {
  31873. type: "string"
  31874. }
  31875. }
  31876. },
  31877. FormResourceGetRef: {
  31878. properties: {
  31879. links: {
  31880. type: "array",
  31881. items: {
  31882. type: "object",
  31883. properties: {
  31884. rel: {
  31885. type: "string",
  31886. example: "self"
  31887. },
  31888. uri: {
  31889. type: "string",
  31890. format: "uri"
  31891. }
  31892. }
  31893. }
  31894. },
  31895. uuid: {
  31896. type: "string"
  31897. },
  31898. display: {
  31899. type: "string"
  31900. }
  31901. }
  31902. },
  31903. FormResourceGetFull: {
  31904. properties: {
  31905. auditInfo: {
  31906. type: "string"
  31907. },
  31908. links: {
  31909. type: "array",
  31910. items: {
  31911. type: "object",
  31912. example: "self",
  31913. properties: {
  31914. rel: {
  31915. type: "string"
  31916. },
  31917. uri: {
  31918. type: "string",
  31919. format: "uri"
  31920. }
  31921. }
  31922. }
  31923. },
  31924. uuid: {
  31925. type: "string"
  31926. },
  31927. display: {
  31928. type: "string"
  31929. },
  31930. name: {
  31931. type: "string"
  31932. },
  31933. valueReference: {
  31934. type: "string"
  31935. },
  31936. dataType: {
  31937. type: "string"
  31938. },
  31939. handler: {
  31940. type: "string"
  31941. },
  31942. handlerConfig: {
  31943. type: "string"
  31944. }
  31945. }
  31946. },
  31947. FormResourceCreate: {
  31948. properties: {
  31949. form: {
  31950. type: "string"
  31951. },
  31952. name: {
  31953. type: "string"
  31954. },
  31955. dataType: {
  31956. type: "string"
  31957. },
  31958. handler: {
  31959. type: "string"
  31960. },
  31961. handlerConfig: {
  31962. type: "string"
  31963. },
  31964. value: {
  31965. type: "string"
  31966. },
  31967. valueReference: {
  31968. type: "string"
  31969. }
  31970. }
  31971. },
  31972. FormResourceCreateFull: {
  31973. properties: {
  31974. form: {
  31975. $ref: "#/definitions/FormCreate"
  31976. },
  31977. name: {
  31978. type: "string"
  31979. },
  31980. dataType: {
  31981. type: "string"
  31982. },
  31983. handler: {
  31984. type: "string"
  31985. },
  31986. handlerConfig: {
  31987. type: "string"
  31988. },
  31989. value: {
  31990. type: "string"
  31991. },
  31992. valueReference: {
  31993. type: "string"
  31994. }
  31995. }
  31996. },
  31997. FormResourceUpdate: {
  31998. properties: {
  31999. form: {
  32000. type: "string"
  32001. },
  32002. name: {
  32003. type: "string"
  32004. },
  32005. dataType: {
  32006. type: "string"
  32007. },
  32008. handler: {
  32009. type: "string"
  32010. },
  32011. handlerConfig: {
  32012. type: "string"
  32013. },
  32014. value: {
  32015. type: "string"
  32016. },
  32017. valueReference: {
  32018. type: "string"
  32019. }
  32020. }
  32021. },
  32022. FormFormfieldGet: {
  32023. properties: {
  32024. links: {
  32025. type: "array",
  32026. items: {
  32027. type: "object",
  32028. properties: {
  32029. rel: {
  32030. type: "string",
  32031. example: "self|full"
  32032. },
  32033. uri: {
  32034. type: "string",
  32035. format: "uri"
  32036. }
  32037. }
  32038. }
  32039. },
  32040. uuid: {
  32041. type: "string"
  32042. },
  32043. display: {
  32044. type: "string"
  32045. },
  32046. fieldNumber: {
  32047. type: "integer",
  32048. format: "int32"
  32049. },
  32050. fieldPart: {
  32051. type: "string"
  32052. },
  32053. pageNumber: {
  32054. type: "integer",
  32055. format: "int32"
  32056. },
  32057. minOccurs: {
  32058. type: "integer",
  32059. format: "int32"
  32060. },
  32061. maxOccurs: {
  32062. type: "integer",
  32063. format: "int32"
  32064. },
  32065. required: {
  32066. type: "boolean",
  32067. default: false
  32068. },
  32069. sortWeight: {
  32070. type: "number",
  32071. format: "float"
  32072. },
  32073. retired: {
  32074. type: "boolean"
  32075. },
  32076. parent: {
  32077. $ref: "#/definitions/FormFormfieldGetRef"
  32078. },
  32079. form: {
  32080. $ref: "#/definitions/FormGetRef"
  32081. },
  32082. field: {
  32083. $ref: "#/definitions/FieldGetRef"
  32084. }
  32085. }
  32086. },
  32087. FormFormfieldGetRef: {
  32088. properties: {
  32089. links: {
  32090. type: "array",
  32091. items: {
  32092. type: "object",
  32093. properties: {
  32094. rel: {
  32095. type: "string",
  32096. example: "self"
  32097. },
  32098. uri: {
  32099. type: "string",
  32100. format: "uri"
  32101. }
  32102. }
  32103. }
  32104. }
  32105. }
  32106. },
  32107. FormFormfieldGetFull: {
  32108. properties: {
  32109. auditInfo: {
  32110. type: "string"
  32111. },
  32112. links: {
  32113. type: "array",
  32114. items: {
  32115. type: "object",
  32116. example: "self",
  32117. properties: {
  32118. rel: {
  32119. type: "string"
  32120. },
  32121. uri: {
  32122. type: "string",
  32123. format: "uri"
  32124. }
  32125. }
  32126. }
  32127. },
  32128. uuid: {
  32129. type: "string"
  32130. },
  32131. display: {
  32132. type: "string"
  32133. },
  32134. fieldNumber: {
  32135. type: "integer",
  32136. format: "int32"
  32137. },
  32138. fieldPart: {
  32139. type: "string"
  32140. },
  32141. pageNumber: {
  32142. type: "integer",
  32143. format: "int32"
  32144. },
  32145. minOccurs: {
  32146. type: "integer",
  32147. format: "int32"
  32148. },
  32149. maxOccurs: {
  32150. type: "integer",
  32151. format: "int32"
  32152. },
  32153. required: {
  32154. type: "boolean",
  32155. default: false
  32156. },
  32157. sortWeight: {
  32158. type: "number",
  32159. format: "float"
  32160. },
  32161. retired: {
  32162. type: "boolean"
  32163. },
  32164. parent: {
  32165. $ref: "#/definitions/FormFormfieldGet"
  32166. },
  32167. form: {
  32168. $ref: "#/definitions/FormGet"
  32169. },
  32170. field: {
  32171. $ref: "#/definitions/FieldGet"
  32172. }
  32173. }
  32174. },
  32175. FormFormfieldCreate: {
  32176. required: [
  32177. "field",
  32178. "form",
  32179. "required"
  32180. ],
  32181. properties: {
  32182. form: {
  32183. type: "string",
  32184. example: "uuid"
  32185. },
  32186. field: {
  32187. type: "string",
  32188. example: "uuid"
  32189. },
  32190. required: {
  32191. type: "boolean",
  32192. default: false
  32193. },
  32194. parent: {
  32195. type: "string",
  32196. example: "uuid"
  32197. },
  32198. fieldNumber: {
  32199. type: "integer",
  32200. format: "int32"
  32201. },
  32202. fieldPart: {
  32203. type: "string"
  32204. },
  32205. pageNumber: {
  32206. type: "integer",
  32207. format: "int32"
  32208. },
  32209. minOccurs: {
  32210. type: "integer",
  32211. format: "int32"
  32212. },
  32213. maxOccurs: {
  32214. type: "integer",
  32215. format: "int32"
  32216. },
  32217. sortWeight: {
  32218. type: "boolean",
  32219. default: false
  32220. }
  32221. }
  32222. },
  32223. FormFormfieldCreateFull: {
  32224. required: [
  32225. "field",
  32226. "form",
  32227. "required"
  32228. ],
  32229. properties: {
  32230. form: {
  32231. $ref: "#/definitions/FormCreate"
  32232. },
  32233. field: {
  32234. $ref: "#/definitions/FieldCreate"
  32235. },
  32236. required: {
  32237. type: "boolean",
  32238. default: false
  32239. },
  32240. parent: {
  32241. $ref: "#/definitions/FormFormfieldCreate"
  32242. },
  32243. fieldNumber: {
  32244. type: "integer",
  32245. format: "int32"
  32246. },
  32247. fieldPart: {
  32248. type: "string"
  32249. },
  32250. pageNumber: {
  32251. type: "integer",
  32252. format: "int32"
  32253. },
  32254. minOccurs: {
  32255. type: "integer",
  32256. format: "int32"
  32257. },
  32258. maxOccurs: {
  32259. type: "integer",
  32260. format: "int32"
  32261. },
  32262. sortWeight: {
  32263. type: "boolean",
  32264. default: false
  32265. }
  32266. }
  32267. },
  32268. FormFormfieldUpdate: { },
  32269. FetchAll: {
  32270. properties: {
  32271. results: {
  32272. type: "array",
  32273. items: {
  32274. type: "object",
  32275. properties: {
  32276. display: {
  32277. type: "string"
  32278. },
  32279. links: {
  32280. type: "array",
  32281. items: {
  32282. type: "object",
  32283. properties: {
  32284. rel: {
  32285. type: "string",
  32286. example: "self"
  32287. },
  32288. uri: {
  32289. type: "string",
  32290. format: "uri"
  32291. }
  32292. }
  32293. }
  32294. },
  32295. uuid: {
  32296. type: "string"
  32297. }
  32298. }
  32299. }
  32300. }
  32301. }
  32302. }
  32303. },
  32304. externalDocs: {
  32305. description: "Find more info on REST Module Wiki",
  32306. url: "https://wiki.openmrs.org/x/xoAaAQ"
  32307. }
  32308. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement