diff --git a/LICENSE.md b/LICENSE.md new file mode 100755 index 0000000..5a0b4cf --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,4 @@ + +Copyright (c) 2016 Apigee + +This project is multi licensed. Please check LICENSE.txt file in the respective folders for the details \ No newline at end of file diff --git a/README.md b/README.md old mode 100644 new mode 100755 index 0f2f508..156ff3f --- a/README.md +++ b/README.md @@ -1 +1,23 @@ -# flame \ No newline at end of file +**Healthapix** +============== + +**Introduction** + +Apigee HealthAPIx software solution assists healthcare providers in accelerating the development and delivery of digital services based on [FHIR (Fast Healthcare Interoperability Resources)](https://www.hl7.org/fhir/) APIs. + +Apigee HealthAPIx is built on the Apigee Edge API management platform, and features FHIR APIs and a healthcare developer portal to help hospitals meet the demand for data interoperability, deliver patient-centric healthcare, and move faster to the digital world. + +The Apigee HealthAPIx solution provides App developers and digital teams with access to following components: + +**FHIR Gateway** +* Pre-configured API proxies for FHIR Resources. The API proxies are your gateway to various backend EMR systems. + Follow more information on this here. +* Pre-integrated OAuth security framework and other key security functions. + Follow more information on this [here](src/gateway). + +**FHIR Developer Portal** +* A purpose-built developer portal to explore FHIR API documentation and test your APIs. + Follow more information on how to customize your default Apigee portal [here](src/developerportal). + + + diff --git a/readme-images/devportal/Fig01.jpg b/readme-images/devportal/Fig01.jpg new file mode 100755 index 0000000..aa446fe Binary files /dev/null and b/readme-images/devportal/Fig01.jpg differ diff --git a/readme-images/devportal/Fig02.jpg b/readme-images/devportal/Fig02.jpg new file mode 100755 index 0000000..1810d4a Binary files /dev/null and b/readme-images/devportal/Fig02.jpg differ diff --git a/readme-images/devportal/Fig03.jpg b/readme-images/devportal/Fig03.jpg new file mode 100755 index 0000000..8f3d42e Binary files /dev/null and b/readme-images/devportal/Fig03.jpg differ diff --git a/readme-images/devportal/Fig04.jpg b/readme-images/devportal/Fig04.jpg new file mode 100755 index 0000000..0382e0d Binary files /dev/null and b/readme-images/devportal/Fig04.jpg differ diff --git a/readme-images/devportal/Fig05.jpg b/readme-images/devportal/Fig05.jpg new file mode 100755 index 0000000..ab03870 Binary files /dev/null and b/readme-images/devportal/Fig05.jpg differ diff --git a/readme-images/devportal/Fig07.jpg b/readme-images/devportal/Fig07.jpg new file mode 100755 index 0000000..8194862 Binary files /dev/null and b/readme-images/devportal/Fig07.jpg differ diff --git a/readme-images/devportal/Fig09.jpg b/readme-images/devportal/Fig09.jpg new file mode 100755 index 0000000..b9e084f Binary files /dev/null and b/readme-images/devportal/Fig09.jpg differ diff --git a/readme-images/devportal/Fig10.jpg b/readme-images/devportal/Fig10.jpg new file mode 100755 index 0000000..8e7c605 Binary files /dev/null and b/readme-images/devportal/Fig10.jpg differ diff --git a/readme-images/devportal/Fig11.jpg b/readme-images/devportal/Fig11.jpg new file mode 100755 index 0000000..be68794 Binary files /dev/null and b/readme-images/devportal/Fig11.jpg differ diff --git a/readme-images/devportal/Fig12.jpg b/readme-images/devportal/Fig12.jpg new file mode 100755 index 0000000..834a343 Binary files /dev/null and b/readme-images/devportal/Fig12.jpg differ diff --git a/readme-images/devportal/Fig13.jpg b/readme-images/devportal/Fig13.jpg new file mode 100755 index 0000000..3e43b8b Binary files /dev/null and b/readme-images/devportal/Fig13.jpg differ diff --git a/readme-images/devportal/Fig14.jpg b/readme-images/devportal/Fig14.jpg new file mode 100755 index 0000000..7013ac8 Binary files /dev/null and b/readme-images/devportal/Fig14.jpg differ diff --git a/readme-images/devportal/Fig15.jpg b/readme-images/devportal/Fig15.jpg new file mode 100755 index 0000000..6ab3d24 Binary files /dev/null and b/readme-images/devportal/Fig15.jpg differ diff --git a/readme-images/devportal/Fig16.jpg b/readme-images/devportal/Fig16.jpg new file mode 100755 index 0000000..02ea55d Binary files /dev/null and b/readme-images/devportal/Fig16.jpg differ diff --git a/readme-images/devportal/Fig17.jpg b/readme-images/devportal/Fig17.jpg new file mode 100755 index 0000000..fa51d58 Binary files /dev/null and b/readme-images/devportal/Fig17.jpg differ diff --git a/readme-images/devportal/Fig18.jpg b/readme-images/devportal/Fig18.jpg new file mode 100755 index 0000000..5020072 Binary files /dev/null and b/readme-images/devportal/Fig18.jpg differ diff --git a/readme-images/devportal/Fig19.jpg b/readme-images/devportal/Fig19.jpg new file mode 100755 index 0000000..da83b15 Binary files /dev/null and b/readme-images/devportal/Fig19.jpg differ diff --git a/readme-images/devportal/Fig20.jpg b/readme-images/devportal/Fig20.jpg new file mode 100755 index 0000000..d9f7f17 Binary files /dev/null and b/readme-images/devportal/Fig20.jpg differ diff --git a/readme-images/postman/Fig01.jpg b/readme-images/postman/Fig01.jpg new file mode 100755 index 0000000..4156b0b Binary files /dev/null and b/readme-images/postman/Fig01.jpg differ diff --git a/src/developerportal/LICENSE.md b/src/developerportal/LICENSE.md new file mode 100755 index 0000000..a825138 --- /dev/null +++ b/src/developerportal/LICENSE.md @@ -0,0 +1,659 @@ + +Copyright (c) 2016 Apigee + +GNU LICENSE + +Contents of this Developer Portal folder is licensed under + +http://www.gnu.org/licenses/gpl.html + + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + +========-------==========------------============---------------- +========-------==========------------============---------------- + +Below list details third Party libraries used in this folder and their corresponding licenses + +========-------==========------------============---------------- +contact_forms 7.x-1.8 https://www.drupal.org/project/contact_forms + +License: GNU (http://www.gnu.org/licenses/gpl.html) +========-------==========------------============---------------- + +flexslider 7.x-2.0-rc1 https://www.drupal.org/project/flexslider + +License: GNU (http://www.gnu.org/licenses/gpl.html) + +========-------==========------------============---------------- + +flexslider_views_slideshow 7.x-2.x-dev https://www.drupal.org/project/flexslider_views_slideshow + +License: GNU (http://www.gnu.org/licenses/gpl.html) + +========-------==========------------============---------------- + +quicktabs 7.x-3.6 https://www.drupal.org/project/quicktabs + +License: GNU (http://www.gnu.org/licenses/gpl.html) + +========-------==========------------============---------------- diff --git a/src/developerportal/README.MD b/src/developerportal/README.MD new file mode 100755 index 0000000..4c7cf30 --- /dev/null +++ b/src/developerportal/README.MD @@ -0,0 +1,294 @@ +1. Introduction +--------------- +The intent of this document is to guide step by step how to deploy and configure healthapix custom features on a default (out of the box) Apigee developer Portal. + +To know more about Apigee developer portal, refer +[http://apigee.com/docs/developer-services/content/what-developer-portal](http://apigee.com/docs/developer-services/content/what-developer-portal). + +On successful deployment of customized site, you will be able to access following: + +* Apigee Edge Developer Portal with a customized theme for Healthcare. +* FHIR API Documentation for easy understanding. +* FHIR Sandbox for trying out FHIR APIs. +* App Gallery to promote App ecosystem of your API program. + +The deployment of custom changes would result into a similar site as Apigee [HealthAPIx](https://healthapix.apigee.com). + +2. Pre-Requisites +----------------- + + - You have created an Apigee developer portal either in the cloud or on-prem. + On-prem instance is assumed to be created on a Linux server. + - You have an Apigee Edge gateway exposing FHIR APIs. + The details to setup an Apigee Edge gateway instance with FHIR APIs is covered in document in /flame/docs folder. + - If you have **In-Cloud** Instance: + 1. Apigee dev-portal admin access. + 2. Pantheon access to your site’s Git repo. + +-Refer [http://docs.apigee.com/developer-services/content/working-pantheon](http://docs.apigee.com/developer-services/content/working-pantheon). +-You will need to connect with Apigee support team to request them to associate your Apigee dev portal with your created pantheon account. + +3. Getting Started +------------------- + +###3.1 Get code with customized changes +Clone **flame** repo. +Go to **/flame/src/developerportal** – This contains custom portal source code. + +###3.2 Customize default developer portal +Initially, before flame code migration to the default portal, default developer portal website will look like as below: + +                                                                                    Fig 1. + +####3.2.1 Get default developer portal source + +The default portal code to be modified is in **sites** folder. + +#####In-Cloud instance: + +* Get the default site’s code from git via pantheon service. +**Note:** Here, you can get clone of site’s code by using “git clone ” command followed by pantheon service credentials. +* The code will be downloaded on your local system at . + + +#####On-prem instance: +You will find the default developer code at **/var/www/html/sites.** + +####3.2.2 Backup of default developer portal + +A backup of default portal’s code is recommended before importing custom changes. + +For **In-Cloud** instance, +Login Pantheon -> goto your portal site -> Backups -> and create a new backup. + +For **On-prem** instance, +Take a backup of **/var/www/html/sites directory**. + +####3.2.3 Replace **all** folder of default code with **all** folder from **flame** repo. + +The **all** folder from default portal code now has to be replaced with the **all** folder from the flame source code. +Replace(Overwrite) **/sites/all directory** with **/flame/src/developerportal/all** directory. +For **In-Cloud instance**, you will need to push the custom changes back to git. + +**Note** : All the changes can be reflect on **Cloud** instance, by using Git commands like $git add, $git commit, $git push followed by pantheon credentials. + +We further need to do few manual configurations. +Access the developer portal website and login with admin credentials. + +4. Further Configurations +------------------------- + + +###4.1 Applying HBR template: + +• Go to Configuration -> SmartDocs -> Advanced settings -> Click on **Choose File** button to select the **.hbr** file from cloned/downloaded flame source code i.e. **/flame/src/developerportal/smartdocTemplate.hbr** + +                                                                                                Fig 2. + +• Click Upload Button +• Save Configuration +• Clear Cache [hover Home icon of admin bar ->click Flush all caches ] +• Check the changes reflecting on SmartDoc page. [Apigee default theme changes to current theme as below] + +**NOTE:** If there are pre-existing swagger models, one need to republish and render it, to reflect theme changes. + +                                                                                                Fig 3. + +###4.2 Enable FHIR Swagger module: + + To enable FHIR Swagger or any other module, we can use Drush commands. **Drush** stands for **Drupal-Shell** and it is a command line shell and unix scripting interface for Drupal to control, manipulate, and administer Drupal websites. + +To run these commands, we need to install **Drush** either on our Cloud environment or On-Premises environment. + +For Drush installation details: please refer: [https://www.drupal.org/node/1791676](https://www.drupal.org/node/1791676) and [http://docs.drush.org/en/master/install/](http://docs.drush.org/en/master/install/) + +**Note:** + +#####Cloud Instance: +For a Cloud instance you have to download the **Drush aliases** file **(i.e. pantheon.aliases.drushrc.php)** from your pantheon account and copy to the installed Drush Installer folder (e.g C:\ProgramData\Drush) +Refer following screen shot: + +                                                                                    Fig 4. + +From this file, you need to obtain the drush alias name which needs to be used in every drush command. **(e.g. drush @youraliasname --strict=0)**. + +You will get available Drush Alias names by running following command: +**$ drush sa** + +Pick the alias for the desired portal from the above command’s output. For the drush commands mentioned in the following section, place the alias after drush in each command. Eg: **drush cc all** needs to be converted to **drush @_youralias_ cc all –strict=0** + +#####On-Prem customer: +For an on prem instance you do not require the alias name & --strict=0 in drush command. Simply use following drush commands. + +**Execute following Drush Commands to enable FHIR Swagger module :** + + $ drush pm-enable fhir_swagger + $ drush cc all + + +###4.3 Deploy SmartDocs +The FHIR APIs description are available in Swagger JSON formats. These APIs description defines requests that point to the FHIR resources deployed on the Apigee edge gateway instance. + +Swagger files are available at: **~\flame\src\developerportal\all\modules\custom\fhir_swagger\swaggers** + +You will need to modify the **host** field in all the swagger JSON files to point to the Apigee Edge gateway URL where the FHIR APIs are deployed. + +####4.3.1 Create a developer app. + + - Goto MY ACCOUNT -> My Apps. + - Select My Apps. + - Click on Add a new App and specify the following values. + - Specify any Name + - Do not add Callback URL. + - Select testFHIRproduct from the list of products + +####4.3.2 Create models and import all FHIR API’s swagger files. +**NOTE:** Creating all models and import swagger feature is only to be used for first time deployment. For subsequent imports, [manual steps](http://docs.apigee.com/developer-services/content/using-smartdocs-document-apis#creatingamodel) would be needed. + + - Goto address bar > enter dev-{org-name}.devportal.apigee.com**/swagger/import** + - replace {org-name} in above url with your portal organization name + - Creation of models and import of swagger will start and the progress of the same will be seen on UI. + + +                                                                                                Fig 5. + - Clear Cache + - Select Content->SmartDocs. + - You’ll find list of all FHIR APIs models which are unpublished. + +####4.3.3 Render and publish all API’s methods + + - Goto address bar > enter dev-{org-name}.devportal.apigee.com**/swagger/publish** + - Rendering and publishing of models will start and the progress of the same will be seen on UI. + + +                                                                                                Fig 6. + - Clear Cache. + - Select Content->SmartDocs. + - You’ll find list of all FHIR APIs models, rendered and published. + + +                                                                                                Fig 7. + +####4.3.4 Configure OAuth 2.0 authentication + +This section is applicable to all FHIR resources only i.e. should not be applied to OAuth and Basepath API documentation. +OAuth 2.0 authentication can be used to secure the access to the API. Following steps need to be done to accomplish this. + +#####4.3.4.1 Update Security Scheme + - Select Content > SmartDocs. + - For the API model which needs to be configured, select API Revisions from Operations drop-down. + - For an API revision, select Security Settings from Operations drop-down. + + +                    Fig 8. + + - Select Edit for outhB2C security scheme. + + +                                                                                                Fig 9. + - In Advanced Settings section set Authorization Request Method to Header. + + +                                                                                                Fig 10. + - Select Submit. + +#####4.3.4.2 Configure Template Authentication Scheme + - Select Content > SmartDocs. + - For the same model, select Settings from Operations drop-down. + - In Template authentication schemes, set Client Id & Client Secret to the previously created App’s Consumer key and Secret respectively. The app creation is explained in Section 4.3.1. + - Click the "Save template authentication schemes" button. + + +                                                                                                Fig 11. + +###4.4 Creating Quicktab instance + - Go to modules -> Enable Quicktab Module + - Go to Structure -> Quicktabs -> Add Quicktabs Instance + - Fill the details as highlighted in RED + + +                                                                                                Fig 12. + - Add Tabs for all APIs (e.g. Vaccination API) as shown in Fig. + (Ref. entries in RED colour box) + - Click “Save” Button. + + +                                                                                                Fig 13. + + - Configure to display Quicktab block on SmartDoc Page. + - Go to Structures -> Blocks -> Search for Created Quicktab name e.g. **FHIR_API** + - Select the region as a **SECONDARY** + - Click on **Configure** hyperlink as shown in below screenshot as BLUE + + +                                                                                                Fig 14. + - Fill the following details for “FHIR APIs” block as shown in below image + - Css : all-patient-left-nav + - FHIR Responsive theme : Secondary + - Content Type : SmartDocs Method + - Click on **Save** button. + + +                                                                                                Fig 15. + +                 + +                                                                                                Fig 16. + + - Resultant screen should be as below. + +                 + +                                                                                                Fig 17. + +This completes configuration of Smartdocs. + + +Following all sections and steps above would enable a customized developer-portal similar to [https://healthapix.apigee.com/](https://healthapix.apigee.com/) + +###4.5 Enable FHIR responsive theme and other FHIR required modules: + + +#####On-Prem customer: +**Execute following Drush Commands in the same order only :** + + $ drush vset theme_default fhir_responsive + $ drush cc all + $ drush pm-enable fhir_responsive + $ drush cc all + $ drush pm-enable fhir_blocks + $ drush cc all + $ drush pm-enable fhir_custom + $ drush cc all + +Set APIS menu weight, goto - + Structure->Menus->Main menu->Show row weights + ->Set APIS weight to -50->Save. + + $ drush pm-enable fhir_install + $ drush cc all + +Here we go, now refresh you portal site and you will see all changes of flame code on your portal. +See reference image below: + +                                                                                                Fig 18. + +5. Configure GTM +-------------------- + +Site owner will share a GTM container id [GTM-XXXXXX] created using a google application i.e Google analytics tag manager [URL https://tagmanager.google.com](https://tagmanager.google.com), which has to be configured on the apigee portal to analyze site statistics. + +Follow below step to configure container id on apigee portal :- +• Login portal with admin credentials -> Admin menu bar -> Configurations -> System -> Google Tag Manager -> General Tab -> Container ID -> Fill in the text box with container id. -> Save configuration + +That’s it, now using your google tag manager application you can track your statistics. + + +Have fun! + + + + + + + diff --git a/src/developerportal/all/libraries/README.txt b/src/developerportal/all/libraries/README.txt new file mode 100755 index 0000000..de5d585 --- /dev/null +++ b/src/developerportal/all/libraries/README.txt @@ -0,0 +1,2 @@ +This directory should be used to place downloaded and custom libraries (such as +JavaScript libraries) which are used by contributed or custom modules. diff --git a/src/developerportal/all/libraries/flexslider/flexslider.css b/src/developerportal/all/libraries/flexslider/flexslider.css new file mode 100755 index 0000000..c459ef4 --- /dev/null +++ b/src/developerportal/all/libraries/flexslider/flexslider.css @@ -0,0 +1,275 @@ +/* + * jQuery FlexSlider v2.6.0 + * http://www.woothemes.com/flexslider/ + * + * Copyright 2012 WooThemes + * Free to use under the GPLv2 and later license. + * http://www.gnu.org/licenses/gpl-2.0.html + * + * Contributing author: Tyler Smith (@mbmufffin) + * + */ +/* ==================================================================================================================== + * FONT-FACE + * ====================================================================================================================*/ +@font-face { + font-family: 'flexslider-icon'; + src: url('fonts/flexslider-icon.eot'); + src: url('fonts/flexslider-icon.eot?#iefix') format('embedded-opentype'), url('fonts/flexslider-icon.woff') format('woff'), url('fonts/flexslider-icon.ttf') format('truetype'), url('fonts/flexslider-icon.svg#flexslider-icon') format('svg'); + font-weight: normal; + font-style: normal; +} +/* ==================================================================================================================== + * RESETS + * ====================================================================================================================*/ +.flex-container a:hover, +.flex-slider a:hover { + outline: none; +} +.slides, +.slides > li, +.flex-control-nav, +.flex-direction-nav { + margin: 0; + padding: 0; + list-style: none; +} +.flex-pauseplay span { + text-transform: capitalize; +} +/* ==================================================================================================================== + * BASE STYLES + * ====================================================================================================================*/ +.flexslider { + margin: 0; + padding: 0; +} +.flexslider .slides > li { + display: none; + -webkit-backface-visibility: hidden; +} +.flexslider .slides img { + width: 100%; + display: block; +} +.flexslider .slides:after { + content: "\0020"; + display: block; + clear: both; + visibility: hidden; + line-height: 0; + height: 0; +} +html[xmlns] .flexslider .slides { + display: block; +} +* html .flexslider .slides { + height: 1%; +} +.no-js .flexslider .slides > li:first-child { + display: block; +} +/* ==================================================================================================================== + * DEFAULT THEME + * ====================================================================================================================*/ +.flexslider { + margin: 0 0 60px; + background: #ffffff; + border: 4px solid #ffffff; + position: relative; + zoom: 1; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + -webkit-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2); + -moz-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2); + -o-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2); + box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2); +} +.flexslider .slides { + zoom: 1; +} +.flexslider .slides img { + height: auto; + -moz-user-select: none; +} +.flex-viewport { + max-height: 2000px; + -webkit-transition: all 1s ease; + -moz-transition: all 1s ease; + -ms-transition: all 1s ease; + -o-transition: all 1s ease; + transition: all 1s ease; +} +.loading .flex-viewport { + max-height: 300px; +} +.carousel li { + margin-right: 5px; +} +.flex-direction-nav { + *height: 0; +} +.flex-direction-nav a { + text-decoration: none; + display: block; + width: 40px; + height: 40px; + margin: -20px 0 0; + position: absolute; + top: 50%; + z-index: 10; + overflow: hidden; + opacity: 0; + cursor: pointer; + color: rgba(0, 0, 0, 0.8); + text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3); + -webkit-transition: all 0.3s ease-in-out; + -moz-transition: all 0.3s ease-in-out; + -ms-transition: all 0.3s ease-in-out; + -o-transition: all 0.3s ease-in-out; + transition: all 0.3s ease-in-out; +} +.flex-direction-nav a:before { + font-family: "flexslider-icon"; + font-size: 40px; + display: inline-block; + content: '\f001'; + color: rgba(0, 0, 0, 0.8); + text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3); +} +.flex-direction-nav a.flex-next:before { + content: '\f002'; +} +.flex-direction-nav .flex-prev { + left: -50px; +} +.flex-direction-nav .flex-next { + right: -50px; + text-align: right; +} +.flexslider:hover .flex-direction-nav .flex-prev { + opacity: 0.7; + left: 10px; +} +.flexslider:hover .flex-direction-nav .flex-prev:hover { + opacity: 1; +} +.flexslider:hover .flex-direction-nav .flex-next { + opacity: 0.7; + right: 10px; +} +.flexslider:hover .flex-direction-nav .flex-next:hover { + opacity: 1; +} +.flex-direction-nav .flex-disabled { + opacity: 0!important; + filter: alpha(opacity=0); + cursor: default; + z-index: -1; +} +.flex-pauseplay a { + display: block; + width: 20px; + height: 20px; + position: absolute; + bottom: 5px; + left: 10px; + opacity: 0.8; + z-index: 10; + overflow: hidden; + cursor: pointer; + color: #000; +} +.flex-pauseplay a:before { + font-family: "flexslider-icon"; + font-size: 20px; + display: inline-block; + content: '\f004'; +} +.flex-pauseplay a:hover { + opacity: 1; +} +.flex-pauseplay a.flex-play:before { + content: '\f003'; +} +.flex-control-nav { + width: 100%; + position: absolute; + bottom: -40px; + text-align: center; +} +.flex-control-nav li { + margin: 0 6px; + display: inline-block; + zoom: 1; + *display: inline; +} +.flex-control-paging li a { + width: 11px; + height: 11px; + display: block; + background: #666; + background: rgba(0, 0, 0, 0.5); + cursor: pointer; + text-indent: -9999px; + -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); + -moz-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); + -o-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); + box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); + -webkit-border-radius: 20px; + -moz-border-radius: 20px; + border-radius: 20px; +} +.flex-control-paging li a:hover { + background: #333; + background: rgba(0, 0, 0, 0.7); +} +.flex-control-paging li a.flex-active { + background: #000; + background: rgba(0, 0, 0, 0.9); + cursor: default; +} +.flex-control-thumbs { + margin: 5px 0 0; + position: static; + overflow: hidden; +} +.flex-control-thumbs li { + width: 25%; + float: left; + margin: 0; +} +.flex-control-thumbs img { + width: 100%; + height: auto; + display: block; + opacity: .7; + cursor: pointer; + -moz-user-select: none; + -webkit-transition: all 1s ease; + -moz-transition: all 1s ease; + -ms-transition: all 1s ease; + -o-transition: all 1s ease; + transition: all 1s ease; +} +.flex-control-thumbs img:hover { + opacity: 1; +} +.flex-control-thumbs .flex-active { + opacity: 1; + cursor: default; +} +/* ==================================================================================================================== + * RESPONSIVE + * ====================================================================================================================*/ +@media screen and (max-width: 860px) { + .flex-direction-nav .flex-prev { + opacity: 1; + left: 10px; + } + .flex-direction-nav .flex-next { + opacity: 1; + right: 10px; + } +} diff --git a/src/developerportal/all/libraries/flexslider/fonts/flexslider-icon.eot b/src/developerportal/all/libraries/flexslider/fonts/flexslider-icon.eot new file mode 100755 index 0000000..97c4196 Binary files /dev/null and b/src/developerportal/all/libraries/flexslider/fonts/flexslider-icon.eot differ diff --git a/src/developerportal/all/libraries/flexslider/fonts/flexslider-icon.svg b/src/developerportal/all/libraries/flexslider/fonts/flexslider-icon.svg new file mode 100755 index 0000000..89fd1ab --- /dev/null +++ b/src/developerportal/all/libraries/flexslider/fonts/flexslider-icon.svg @@ -0,0 +1,19 @@ + + + + +This is a custom SVG font generated by IcoMoon. + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/developerportal/all/libraries/flexslider/fonts/flexslider-icon.ttf b/src/developerportal/all/libraries/flexslider/fonts/flexslider-icon.ttf new file mode 100755 index 0000000..0543298 Binary files /dev/null and b/src/developerportal/all/libraries/flexslider/fonts/flexslider-icon.ttf differ diff --git a/src/developerportal/all/libraries/flexslider/fonts/flexslider-icon.woff b/src/developerportal/all/libraries/flexslider/fonts/flexslider-icon.woff new file mode 100755 index 0000000..10c4eeb Binary files /dev/null and b/src/developerportal/all/libraries/flexslider/fonts/flexslider-icon.woff differ diff --git a/src/developerportal/all/libraries/flexslider/jquery.flexslider-min.js b/src/developerportal/all/libraries/flexslider/jquery.flexslider-min.js new file mode 100755 index 0000000..5ad6c37 --- /dev/null +++ b/src/developerportal/all/libraries/flexslider/jquery.flexslider-min.js @@ -0,0 +1,5 @@ +/* + * jQuery FlexSlider v2.6.0 + * Copyright 2012 WooThemes + * Contributing Author: Tyler Smith + */!function($){var e=!0;$.flexslider=function(t,a){var n=$(t);n.vars=$.extend({},$.flexslider.defaults,a);var i=n.vars.namespace,s=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,r=("ontouchstart"in window||s||window.DocumentTouch&&document instanceof DocumentTouch)&&n.vars.touch,o="click touchend MSPointerUp keyup",l="",c,d="vertical"===n.vars.direction,u=n.vars.reverse,v=n.vars.itemWidth>0,p="fade"===n.vars.animation,m=""!==n.vars.asNavFor,f={};$.data(t,"flexslider",n),f={init:function(){n.animating=!1,n.currentSlide=parseInt(n.vars.startAt?n.vars.startAt:0,10),isNaN(n.currentSlide)&&(n.currentSlide=0),n.animatingTo=n.currentSlide,n.atEnd=0===n.currentSlide||n.currentSlide===n.last,n.containerSelector=n.vars.selector.substr(0,n.vars.selector.search(" ")),n.slides=$(n.vars.selector,n),n.container=$(n.containerSelector,n),n.count=n.slides.length,n.syncExists=$(n.vars.sync).length>0,"slide"===n.vars.animation&&(n.vars.animation="swing"),n.prop=d?"top":"marginLeft",n.args={},n.manualPause=!1,n.stopped=!1,n.started=!1,n.startTimeout=null,n.transitions=!n.vars.video&&!p&&n.vars.useCSS&&function(){var e=document.createElement("div"),t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var a in t)if(void 0!==e.style[t[a]])return n.pfx=t[a].replace("Perspective","").toLowerCase(),n.prop="-"+n.pfx+"-transform",!0;return!1}(),n.ensureAnimationEnd="",""!==n.vars.controlsContainer&&(n.controlsContainer=$(n.vars.controlsContainer).length>0&&$(n.vars.controlsContainer)),""!==n.vars.manualControls&&(n.manualControls=$(n.vars.manualControls).length>0&&$(n.vars.manualControls)),""!==n.vars.customDirectionNav&&(n.customDirectionNav=2===$(n.vars.customDirectionNav).length&&$(n.vars.customDirectionNav)),n.vars.randomize&&(n.slides.sort(function(){return Math.round(Math.random())-.5}),n.container.empty().append(n.slides)),n.doMath(),n.setup("init"),n.vars.controlNav&&f.controlNav.setup(),n.vars.directionNav&&f.directionNav.setup(),n.vars.keyboard&&(1===$(n.containerSelector).length||n.vars.multipleKeyboard)&&$(document).bind("keyup",function(e){var t=e.keyCode;if(!n.animating&&(39===t||37===t)){var a=39===t?n.getTarget("next"):37===t?n.getTarget("prev"):!1;n.flexAnimate(a,n.vars.pauseOnAction)}}),n.vars.mousewheel&&n.bind("mousewheel",function(e,t,a,i){e.preventDefault();var s=0>t?n.getTarget("next"):n.getTarget("prev");n.flexAnimate(s,n.vars.pauseOnAction)}),n.vars.pausePlay&&f.pausePlay.setup(),n.vars.slideshow&&n.vars.pauseInvisible&&f.pauseInvisible.init(),n.vars.slideshow&&(n.vars.pauseOnHover&&n.hover(function(){n.manualPlay||n.manualPause||n.pause()},function(){n.manualPause||n.manualPlay||n.stopped||n.play()}),n.vars.pauseInvisible&&f.pauseInvisible.isHidden()||(n.vars.initDelay>0?n.startTimeout=setTimeout(n.play,n.vars.initDelay):n.play())),m&&f.asNav.setup(),r&&n.vars.touch&&f.touch(),(!p||p&&n.vars.smoothHeight)&&$(window).bind("resize orientationchange focus",f.resize),n.find("img").attr("draggable","false"),setTimeout(function(){n.vars.start(n)},200)},asNav:{setup:function(){n.asNav=!0,n.animatingTo=Math.floor(n.currentSlide/n.move),n.currentItem=n.currentSlide,n.slides.removeClass(i+"active-slide").eq(n.currentItem).addClass(i+"active-slide"),s?(t._slider=n,n.slides.each(function(){var e=this;e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener("MSPointerDown",function(e){e.preventDefault(),e.currentTarget._gesture&&e.currentTarget._gesture.addPointer(e.pointerId)},!1),e.addEventListener("MSGestureTap",function(e){e.preventDefault();var t=$(this),a=t.index();$(n.vars.asNavFor).data("flexslider").animating||t.hasClass("active")||(n.direction=n.currentItem=s&&t.hasClass(i+"active-slide")?n.flexAnimate(n.getTarget("prev"),!0):$(n.vars.asNavFor).data("flexslider").animating||t.hasClass(i+"active-slide")||(n.direction=n.currentItem'),n.pagingCount>1)for(var r=0;r":''+t+"","thumbnails"===n.vars.controlNav&&!0===n.vars.thumbCaptions){var c=s.attr("data-thumbcaption");""!==c&&void 0!==c&&(a+=''+c+"")}n.controlNavScaffold.append("
  • "+a+"
  • "),t++}n.controlsContainer?$(n.controlsContainer).append(n.controlNavScaffold):n.append(n.controlNavScaffold),f.controlNav.set(),f.controlNav.active(),n.controlNavScaffold.delegate("a, img",o,function(e){if(e.preventDefault(),""===l||l===e.type){var t=$(this),a=n.controlNav.index(t);t.hasClass(i+"active")||(n.direction=a>n.currentSlide?"next":"prev",n.flexAnimate(a,n.vars.pauseOnAction))}""===l&&(l=e.type),f.setToClearWatchedEvent()})},setupManual:function(){n.controlNav=n.manualControls,f.controlNav.active(),n.controlNav.bind(o,function(e){if(e.preventDefault(),""===l||l===e.type){var t=$(this),a=n.controlNav.index(t);t.hasClass(i+"active")||(a>n.currentSlide?n.direction="next":n.direction="prev",n.flexAnimate(a,n.vars.pauseOnAction))}""===l&&(l=e.type),f.setToClearWatchedEvent()})},set:function(){var e="thumbnails"===n.vars.controlNav?"img":"a";n.controlNav=$("."+i+"control-nav li "+e,n.controlsContainer?n.controlsContainer:n)},active:function(){n.controlNav.removeClass(i+"active").eq(n.animatingTo).addClass(i+"active")},update:function(e,t){n.pagingCount>1&&"add"===e?n.controlNavScaffold.append($('
  • '+n.count+"
  • ")):1===n.pagingCount?n.controlNavScaffold.find("li").remove():n.controlNav.eq(t).closest("li").remove(),f.controlNav.set(),n.pagingCount>1&&n.pagingCount!==n.controlNav.length?n.update(t,e):f.controlNav.active()}},directionNav:{setup:function(){var e=$('");n.customDirectionNav?n.directionNav=n.customDirectionNav:n.controlsContainer?($(n.controlsContainer).append(e),n.directionNav=$("."+i+"direction-nav li a",n.controlsContainer)):(n.append(e),n.directionNav=$("."+i+"direction-nav li a",n)),f.directionNav.update(),n.directionNav.bind(o,function(e){e.preventDefault();var t;(""===l||l===e.type)&&(t=$(this).hasClass(i+"next")?n.getTarget("next"):n.getTarget("prev"),n.flexAnimate(t,n.vars.pauseOnAction)),""===l&&(l=e.type),f.setToClearWatchedEvent()})},update:function(){var e=i+"disabled";1===n.pagingCount?n.directionNav.addClass(e).attr("tabindex","-1"):n.vars.animationLoop?n.directionNav.removeClass(e).removeAttr("tabindex"):0===n.animatingTo?n.directionNav.removeClass(e).filter("."+i+"prev").addClass(e).attr("tabindex","-1"):n.animatingTo===n.last?n.directionNav.removeClass(e).filter("."+i+"next").addClass(e).attr("tabindex","-1"):n.directionNav.removeClass(e).removeAttr("tabindex")}},pausePlay:{setup:function(){var e=$('
    ');n.controlsContainer?(n.controlsContainer.append(e),n.pausePlay=$("."+i+"pauseplay a",n.controlsContainer)):(n.append(e),n.pausePlay=$("."+i+"pauseplay a",n)),f.pausePlay.update(n.vars.slideshow?i+"pause":i+"play"),n.pausePlay.bind(o,function(e){e.preventDefault(),(""===l||l===e.type)&&($(this).hasClass(i+"pause")?(n.manualPause=!0,n.manualPlay=!1,n.pause()):(n.manualPause=!1,n.manualPlay=!0,n.play())),""===l&&(l=e.type),f.setToClearWatchedEvent()})},update:function(e){"play"===e?n.pausePlay.removeClass(i+"pause").addClass(i+"play").html(n.vars.playText):n.pausePlay.removeClass(i+"play").addClass(i+"pause").html(n.vars.pauseText)}},touch:function(){function e(e){e.stopPropagation(),n.animating?e.preventDefault():(n.pause(),t._gesture.addPointer(e.pointerId),T=0,c=d?n.h:n.w,f=Number(new Date),l=v&&u&&n.animatingTo===n.last?0:v&&u?n.limit-(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo:v&&n.currentSlide===n.last?n.limit:v?(n.itemW+n.vars.itemMargin)*n.move*n.currentSlide:u?(n.last-n.currentSlide+n.cloneOffset)*c:(n.currentSlide+n.cloneOffset)*c)}function a(e){e.stopPropagation();var a=e.target._slider;if(a){var n=-e.translationX,i=-e.translationY;return T+=d?i:n,m=T,x=d?Math.abs(T)500)&&(e.preventDefault(),!p&&a.transitions&&(a.vars.animationLoop||(m=T/(0===a.currentSlide&&0>T||a.currentSlide===a.last&&T>0?Math.abs(T)/c+2:1)),a.setProps(l+m,"setTouch"))))}}function i(e){e.stopPropagation();var t=e.target._slider;if(t){if(t.animatingTo===t.currentSlide&&!x&&null!==m){var a=u?-m:m,n=a>0?t.getTarget("next"):t.getTarget("prev");t.canAdvance(n)&&(Number(new Date)-f<550&&Math.abs(a)>50||Math.abs(a)>c/2)?t.flexAnimate(n,t.vars.pauseOnAction):p||t.flexAnimate(t.currentSlide,t.vars.pauseOnAction,!0)}r=null,o=null,m=null,l=null,T=0}}var r,o,l,c,m,f,g,h,S,x=!1,y=0,b=0,T=0;s?(t.style.msTouchAction="none",t._gesture=new MSGesture,t._gesture.target=t,t.addEventListener("MSPointerDown",e,!1),t._slider=n,t.addEventListener("MSGestureChange",a,!1),t.addEventListener("MSGestureEnd",i,!1)):(g=function(e){n.animating?e.preventDefault():(window.navigator.msPointerEnabled||1===e.touches.length)&&(n.pause(),c=d?n.h:n.w,f=Number(new Date),y=e.touches[0].pageX,b=e.touches[0].pageY,l=v&&u&&n.animatingTo===n.last?0:v&&u?n.limit-(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo:v&&n.currentSlide===n.last?n.limit:v?(n.itemW+n.vars.itemMargin)*n.move*n.currentSlide:u?(n.last-n.currentSlide+n.cloneOffset)*c:(n.currentSlide+n.cloneOffset)*c,r=d?b:y,o=d?y:b,t.addEventListener("touchmove",h,!1),t.addEventListener("touchend",S,!1))},h=function(e){y=e.touches[0].pageX,b=e.touches[0].pageY,m=d?r-b:r-y,x=d?Math.abs(m)t)&&(e.preventDefault(),!p&&n.transitions&&(n.vars.animationLoop||(m/=0===n.currentSlide&&0>m||n.currentSlide===n.last&&m>0?Math.abs(m)/c+2:1),n.setProps(l+m,"setTouch")))},S=function(e){if(t.removeEventListener("touchmove",h,!1),n.animatingTo===n.currentSlide&&!x&&null!==m){var a=u?-m:m,i=a>0?n.getTarget("next"):n.getTarget("prev");n.canAdvance(i)&&(Number(new Date)-f<550&&Math.abs(a)>50||Math.abs(a)>c/2)?n.flexAnimate(i,n.vars.pauseOnAction):p||n.flexAnimate(n.currentSlide,n.vars.pauseOnAction,!0)}t.removeEventListener("touchend",S,!1),r=null,o=null,m=null,l=null},t.addEventListener("touchstart",g,!1))},resize:function(){!n.animating&&n.is(":visible")&&(v||n.doMath(),p?f.smoothHeight():v?(n.slides.width(n.computedW),n.update(n.pagingCount),n.setProps()):d?(n.viewport.height(n.h),n.setProps(n.h,"setTotal")):(n.vars.smoothHeight&&f.smoothHeight(),n.newSlides.width(n.computedW),n.setProps(n.computedW,"setTotal")))},smoothHeight:function(e){if(!d||p){var t=p?n:n.viewport;e?t.animate({height:n.slides.eq(n.animatingTo).height()},e):t.height(n.slides.eq(n.animatingTo).height())}},sync:function(e){var t=$(n.vars.sync).data("flexslider"),a=n.animatingTo;switch(e){case"animate":t.flexAnimate(a,n.vars.pauseOnAction,!1,!0);break;case"play":t.playing||t.asNav||t.play();break;case"pause":t.pause()}},uniqueID:function(e){return e.filter("[id]").add(e.find("[id]")).each(function(){var e=$(this);e.attr("id",e.attr("id")+"_clone")}),e},pauseInvisible:{visProp:null,init:function(){var e=f.pauseInvisible.getHiddenProp();if(e){var t=e.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(t,function(){f.pauseInvisible.isHidden()?n.startTimeout?clearTimeout(n.startTimeout):n.pause():n.started?n.play():n.vars.initDelay>0?setTimeout(n.play,n.vars.initDelay):n.play()})}},isHidden:function(){var e=f.pauseInvisible.getHiddenProp();return e?document[e]:!1},getHiddenProp:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;tn.currentSlide?"next":"prev"),m&&1===n.pagingCount&&(n.direction=n.currentItemn.limit&&1!==n.visible?n.limit:S):h=0===n.currentSlide&&e===n.count-1&&n.vars.animationLoop&&"next"!==n.direction?u?(n.count+n.cloneOffset)*c:0:n.currentSlide===n.last&&0===e&&n.vars.animationLoop&&"prev"!==n.direction?u?0:(n.count+1)*c:u?(n.count-1-e+n.cloneOffset)*c:(e+n.cloneOffset)*c,n.setProps(h,"",n.vars.animationSpeed),n.transitions?(n.vars.animationLoop&&n.atEnd||(n.animating=!1,n.currentSlide=n.animatingTo),n.container.unbind("webkitTransitionEnd transitionend"),n.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(n.ensureAnimationEnd),n.wrapup(c)}),clearTimeout(n.ensureAnimationEnd),n.ensureAnimationEnd=setTimeout(function(){n.wrapup(c)},n.vars.animationSpeed+100)):n.container.animate(n.args,n.vars.animationSpeed,n.vars.easing,function(){n.wrapup(c)})}n.vars.smoothHeight&&f.smoothHeight(n.vars.animationSpeed)}},n.wrapup=function(e){p||v||(0===n.currentSlide&&n.animatingTo===n.last&&n.vars.animationLoop?n.setProps(e,"jumpEnd"):n.currentSlide===n.last&&0===n.animatingTo&&n.vars.animationLoop&&n.setProps(e,"jumpStart")),n.animating=!1,n.currentSlide=n.animatingTo,n.vars.after(n)},n.animateSlides=function(){!n.animating&&e&&n.flexAnimate(n.getTarget("next"))},n.pause=function(){clearInterval(n.animatedSlides),n.animatedSlides=null,n.playing=!1,n.vars.pausePlay&&f.pausePlay.update("play"),n.syncExists&&f.sync("pause")},n.play=function(){n.playing&&clearInterval(n.animatedSlides),n.animatedSlides=n.animatedSlides||setInterval(n.animateSlides,n.vars.slideshowSpeed),n.started=n.playing=!0,n.vars.pausePlay&&f.pausePlay.update("pause"),n.syncExists&&f.sync("play")},n.stop=function(){n.pause(),n.stopped=!0},n.canAdvance=function(e,t){var a=m?n.pagingCount-1:n.last;return t?!0:m&&n.currentItem===n.count-1&&0===e&&"prev"===n.direction?!0:m&&0===n.currentItem&&e===n.pagingCount-1&&"next"!==n.direction?!1:e!==n.currentSlide||m?n.vars.animationLoop?!0:n.atEnd&&0===n.currentSlide&&e===a&&"next"!==n.direction?!1:n.atEnd&&n.currentSlide===a&&0===e&&"next"===n.direction?!1:!0:!1},n.getTarget=function(e){return n.direction=e,"next"===e?n.currentSlide===n.last?0:n.currentSlide+1:0===n.currentSlide?n.last:n.currentSlide-1},n.setProps=function(e,t,a){var i=function(){var a=e?e:(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo,i=function(){if(v)return"setTouch"===t?e:u&&n.animatingTo===n.last?0:u?n.limit-(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo:n.animatingTo===n.last?n.limit:a;switch(t){case"setTotal":return u?(n.count-1-n.currentSlide+n.cloneOffset)*e:(n.currentSlide+n.cloneOffset)*e;case"setTouch":return u?e:e;case"jumpEnd":return u?e:n.count*e;case"jumpStart":return u?n.count*e:e;default:return e}}();return-1*i+"px"}();n.transitions&&(i=d?"translate3d(0,"+i+",0)":"translate3d("+i+",0,0)",a=void 0!==a?a/1e3+"s":"0s",n.container.css("-"+n.pfx+"-transition-duration",a),n.container.css("transition-duration",a)),n.args[n.prop]=i,(n.transitions||void 0===a)&&n.container.css(n.args),n.container.css("transform",i)},n.setup=function(e){if(p)n.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"}),"init"===e&&(r?n.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+n.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(n.currentSlide).css({opacity:1,zIndex:2}):0==n.vars.fadeFirstSlide?n.slides.css({opacity:0,display:"block",zIndex:1}).eq(n.currentSlide).css({zIndex:2}).css({opacity:1}):n.slides.css({opacity:0,display:"block",zIndex:1}).eq(n.currentSlide).css({zIndex:2}).animate({opacity:1},n.vars.animationSpeed,n.vars.easing)),n.vars.smoothHeight&&f.smoothHeight();else{var t,a;"init"===e&&(n.viewport=$('
    ').css({overflow:"hidden",position:"relative"}).appendTo(n).append(n.container),n.cloneCount=0,n.cloneOffset=0,u&&(a=$.makeArray(n.slides).reverse(),n.slides=$(a),n.container.empty().append(n.slides))),n.vars.animationLoop&&!v&&(n.cloneCount=2,n.cloneOffset=1,"init"!==e&&n.container.find(".clone").remove(),n.container.append(f.uniqueID(n.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(f.uniqueID(n.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),n.newSlides=$(n.vars.selector,n),t=u?n.count-1-n.currentSlide+n.cloneOffset:n.currentSlide+n.cloneOffset,d&&!v?(n.container.height(200*(n.count+n.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){n.newSlides.css({display:"block"}),n.doMath(),n.viewport.height(n.h),n.setProps(t*n.h,"init")},"init"===e?100:0)):(n.container.width(200*(n.count+n.cloneCount)+"%"),n.setProps(t*n.computedW,"init"),setTimeout(function(){n.doMath(),n.newSlides.css({width:n.computedW,marginRight:n.computedM,"float":"left",display:"block"}),n.vars.smoothHeight&&f.smoothHeight()},"init"===e?100:0))}v||n.slides.removeClass(i+"active-slide").eq(n.currentSlide).addClass(i+"active-slide"),n.vars.init(n)},n.doMath=function(){var e=n.slides.first(),t=n.vars.itemMargin,a=n.vars.minItems,i=n.vars.maxItems;n.w=void 0===n.viewport?n.width():n.viewport.width(),n.h=e.height(),n.boxPadding=e.outerWidth()-e.width(),v?(n.itemT=n.vars.itemWidth+t,n.itemM=t,n.minW=a?a*n.itemT:n.w,n.maxW=i?i*n.itemT-t:n.w,n.itemW=n.minW>n.w?(n.w-t*(a-1))/a:n.maxWn.w?n.w:n.vars.itemWidth,n.visible=Math.floor(n.w/n.itemW),n.move=n.vars.move>0&&n.vars.moven.w?n.itemW*(n.count-1)+t*(n.count-1):(n.itemW+t)*n.count-n.w-t):(n.itemW=n.w,n.itemM=t,n.pagingCount=n.count,n.last=n.count-1),n.computedW=n.itemW-n.boxPadding,n.computedM=n.itemM},n.update=function(e,t){n.doMath(),v||(en.controlNav.length?f.controlNav.update("add"):("remove"===t&&!v||n.pagingCountn.last&&(n.currentSlide-=1,n.animatingTo-=1),f.controlNav.update("remove",n.last))),n.vars.directionNav&&f.directionNav.update()},n.addSlide=function(e,t){var a=$(e);n.count+=1,n.last=n.count-1,d&&u?void 0!==t?n.slides.eq(n.count-t).after(a):n.container.prepend(a):void 0!==t?n.slides.eq(t).before(a):n.container.append(a),n.update(t,"add"),n.slides=$(n.vars.selector+":not(.clone)",n),n.setup(),n.vars.added(n)},n.removeSlide=function(e){var t=isNaN(e)?n.slides.index($(e)):e;n.count-=1,n.last=n.count-1,isNaN(e)?$(e,n.slides).remove():d&&u?n.slides.eq(n.last).remove():n.slides.eq(e).remove(),n.doMath(),n.update(t,"remove"),n.slides=$(n.vars.selector+":not(.clone)",n),n.setup(),n.vars.removed(n)},f.init()},$(window).blur(function(t){e=!1}).focus(function(t){e=!0}),$.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},$.fn.flexslider=function(e){if(void 0===e&&(e={}),"object"==typeof e)return this.each(function(){var t=$(this),a=e.selector?e.selector:".slides > li",n=t.find(a);1===n.length&&e.allowOneSlide===!0||0===n.length?(n.fadeIn(400),e.start&&e.start(t)):void 0===t.data("flexslider")&&new $.flexslider(this,e)});var t=$(this).data("flexslider");switch(e){case"play":t.play();break;case"pause":t.pause();break;case"stop":t.stop();break;case"next":t.flexAnimate(t.getTarget("next"),!0);break;case"prev":case"previous":t.flexAnimate(t.getTarget("prev"),!0);break;default:"number"==typeof e&&t.flexAnimate(e,!0)}}}(jQuery); \ No newline at end of file diff --git a/src/developerportal/all/libraries/flexslider/jquery.flexslider.js b/src/developerportal/all/libraries/flexslider/jquery.flexslider.js new file mode 100755 index 0000000..f44d18b --- /dev/null +++ b/src/developerportal/all/libraries/flexslider/jquery.flexslider.js @@ -0,0 +1,1195 @@ +/* + * jQuery FlexSlider v2.6.0 + * Copyright 2012 WooThemes + * Contributing Author: Tyler Smith + */ +; +(function ($) { + + var focused = true; + + //FlexSlider: Object Instance + $.flexslider = function(el, options) { + var slider = $(el); + + // making variables public + slider.vars = $.extend({}, $.flexslider.defaults, options); + + var namespace = slider.vars.namespace, + msGesture = window.navigator && window.navigator.msPointerEnabled && window.MSGesture, + touch = (( "ontouchstart" in window ) || msGesture || window.DocumentTouch && document instanceof DocumentTouch) && slider.vars.touch, + // depricating this idea, as devices are being released with both of these events + eventType = "click touchend MSPointerUp keyup", + watchedEvent = "", + watchedEventClearTimer, + vertical = slider.vars.direction === "vertical", + reverse = slider.vars.reverse, + carousel = (slider.vars.itemWidth > 0), + fade = slider.vars.animation === "fade", + asNav = slider.vars.asNavFor !== "", + methods = {}; + + // Store a reference to the slider object + $.data(el, "flexslider", slider); + + // Private slider methods + methods = { + init: function() { + slider.animating = false; + // Get current slide and make sure it is a number + slider.currentSlide = parseInt( ( slider.vars.startAt ? slider.vars.startAt : 0), 10 ); + if ( isNaN( slider.currentSlide ) ) { slider.currentSlide = 0; } + slider.animatingTo = slider.currentSlide; + slider.atEnd = (slider.currentSlide === 0 || slider.currentSlide === slider.last); + slider.containerSelector = slider.vars.selector.substr(0,slider.vars.selector.search(' ')); + slider.slides = $(slider.vars.selector, slider); + slider.container = $(slider.containerSelector, slider); + slider.count = slider.slides.length; + // SYNC: + slider.syncExists = $(slider.vars.sync).length > 0; + // SLIDE: + if (slider.vars.animation === "slide") { slider.vars.animation = "swing"; } + slider.prop = (vertical) ? "top" : "marginLeft"; + slider.args = {}; + // SLIDESHOW: + slider.manualPause = false; + slider.stopped = false; + //PAUSE WHEN INVISIBLE + slider.started = false; + slider.startTimeout = null; + // TOUCH/USECSS: + slider.transitions = !slider.vars.video && !fade && slider.vars.useCSS && (function() { + var obj = document.createElement('div'), + props = ['perspectiveProperty', 'WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective']; + for (var i in props) { + if ( obj.style[ props[i] ] !== undefined ) { + slider.pfx = props[i].replace('Perspective','').toLowerCase(); + slider.prop = "-" + slider.pfx + "-transform"; + return true; + } + } + return false; + }()); + slider.ensureAnimationEnd = ''; + // CONTROLSCONTAINER: + if (slider.vars.controlsContainer !== "") slider.controlsContainer = $(slider.vars.controlsContainer).length > 0 && $(slider.vars.controlsContainer); + // MANUAL: + if (slider.vars.manualControls !== "") slider.manualControls = $(slider.vars.manualControls).length > 0 && $(slider.vars.manualControls); + + // CUSTOM DIRECTION NAV: + if (slider.vars.customDirectionNav !== "") slider.customDirectionNav = $(slider.vars.customDirectionNav).length === 2 && $(slider.vars.customDirectionNav); + + // RANDOMIZE: + if (slider.vars.randomize) { + slider.slides.sort(function() { return (Math.round(Math.random())-0.5); }); + slider.container.empty().append(slider.slides); + } + + slider.doMath(); + + // INIT + slider.setup("init"); + + // CONTROLNAV: + if (slider.vars.controlNav) { methods.controlNav.setup(); } + + // DIRECTIONNAV: + if (slider.vars.directionNav) { methods.directionNav.setup(); } + + // KEYBOARD: + if (slider.vars.keyboard && ($(slider.containerSelector).length === 1 || slider.vars.multipleKeyboard)) { + $(document).bind('keyup', function(event) { + var keycode = event.keyCode; + if (!slider.animating && (keycode === 39 || keycode === 37)) { + var target = (keycode === 39) ? slider.getTarget('next') : + (keycode === 37) ? slider.getTarget('prev') : false; + slider.flexAnimate(target, slider.vars.pauseOnAction); + } + }); + } + // MOUSEWHEEL: + if (slider.vars.mousewheel) { + slider.bind('mousewheel', function(event, delta, deltaX, deltaY) { + event.preventDefault(); + var target = (delta < 0) ? slider.getTarget('next') : slider.getTarget('prev'); + slider.flexAnimate(target, slider.vars.pauseOnAction); + }); + } + + // PAUSEPLAY + if (slider.vars.pausePlay) { methods.pausePlay.setup(); } + + //PAUSE WHEN INVISIBLE + if (slider.vars.slideshow && slider.vars.pauseInvisible) { methods.pauseInvisible.init(); } + + // SLIDSESHOW + if (slider.vars.slideshow) { + if (slider.vars.pauseOnHover) { + slider.hover(function() { + if (!slider.manualPlay && !slider.manualPause) { slider.pause(); } + }, function() { + if (!slider.manualPause && !slider.manualPlay && !slider.stopped) { slider.play(); } + }); + } + // initialize animation + //If we're visible, or we don't use PageVisibility API + if(!slider.vars.pauseInvisible || !methods.pauseInvisible.isHidden()) { + (slider.vars.initDelay > 0) ? slider.startTimeout = setTimeout(slider.play, slider.vars.initDelay) : slider.play(); + } + } + + // ASNAV: + if (asNav) { methods.asNav.setup(); } + + // TOUCH + if (touch && slider.vars.touch) { methods.touch(); } + + // FADE&&SMOOTHHEIGHT || SLIDE: + if (!fade || (fade && slider.vars.smoothHeight)) { $(window).bind("resize orientationchange focus", methods.resize); } + + slider.find("img").attr("draggable", "false"); + + // API: start() Callback + setTimeout(function(){ + slider.vars.start(slider); + }, 200); + }, + asNav: { + setup: function() { + slider.asNav = true; + slider.animatingTo = Math.floor(slider.currentSlide/slider.move); + slider.currentItem = slider.currentSlide; + slider.slides.removeClass(namespace + "active-slide").eq(slider.currentItem).addClass(namespace + "active-slide"); + if(!msGesture){ + slider.slides.on(eventType, function(e){ + e.preventDefault(); + var $slide = $(this), + target = $slide.index(); + var posFromLeft = $slide.offset().left - $(slider).scrollLeft(); // Find position of slide relative to left of slider container + if( posFromLeft <= 0 && $slide.hasClass( namespace + 'active-slide' ) ) { + slider.flexAnimate(slider.getTarget("prev"), true); + } else if (!$(slider.vars.asNavFor).data('flexslider').animating && !$slide.hasClass(namespace + "active-slide")) { + slider.direction = (slider.currentItem < target) ? "next" : "prev"; + slider.flexAnimate(target, slider.vars.pauseOnAction, false, true, true); + } + }); + }else{ + el._slider = slider; + slider.slides.each(function (){ + var that = this; + that._gesture = new MSGesture(); + that._gesture.target = that; + that.addEventListener("MSPointerDown", function (e){ + e.preventDefault(); + if(e.currentTarget._gesture) { + e.currentTarget._gesture.addPointer(e.pointerId); + } + }, false); + that.addEventListener("MSGestureTap", function (e){ + e.preventDefault(); + var $slide = $(this), + target = $slide.index(); + if (!$(slider.vars.asNavFor).data('flexslider').animating && !$slide.hasClass('active')) { + slider.direction = (slider.currentItem < target) ? "next" : "prev"; + slider.flexAnimate(target, slider.vars.pauseOnAction, false, true, true); + } + }); + }); + } + } + }, + controlNav: { + setup: function() { + if (!slider.manualControls) { + methods.controlNav.setupPaging(); + } else { // MANUALCONTROLS: + methods.controlNav.setupManual(); + } + }, + setupPaging: function() { + var type = (slider.vars.controlNav === "thumbnails") ? 'control-thumbs' : 'control-paging', + j = 1, + item, + slide; + + slider.controlNavScaffold = $('
      '); + + if (slider.pagingCount > 1) { + for (var i = 0; i < slider.pagingCount; i++) { + slide = slider.slides.eq(i); + if ( undefined === slide.attr( 'data-thumb-alt' ) ) { slide.attr( 'data-thumb-alt', '' ); } + altText = ( '' !== slide.attr( 'data-thumb-alt' ) ) ? altText = ' alt="' + slide.attr( 'data-thumb-alt' ) + '"' : ''; + item = (slider.vars.controlNav === "thumbnails") ? '' : '' + j + ''; + if ( 'thumbnails' === slider.vars.controlNav && true === slider.vars.thumbCaptions ) { + var captn = slide.attr( 'data-thumbcaption' ); + if ( '' !== captn && undefined !== captn ) { item += '' + captn + ''; } + } + slider.controlNavScaffold.append('
    1. ' + item + '
    2. '); + j++; + } + } + + // CONTROLSCONTAINER: + (slider.controlsContainer) ? $(slider.controlsContainer).append(slider.controlNavScaffold) : slider.append(slider.controlNavScaffold); + methods.controlNav.set(); + + methods.controlNav.active(); + + slider.controlNavScaffold.delegate('a, img', eventType, function(event) { + event.preventDefault(); + + if (watchedEvent === "" || watchedEvent === event.type) { + var $this = $(this), + target = slider.controlNav.index($this); + + if (!$this.hasClass(namespace + 'active')) { + slider.direction = (target > slider.currentSlide) ? "next" : "prev"; + slider.flexAnimate(target, slider.vars.pauseOnAction); + } + } + + // setup flags to prevent event duplication + if (watchedEvent === "") { + watchedEvent = event.type; + } + methods.setToClearWatchedEvent(); + + }); + }, + setupManual: function() { + slider.controlNav = slider.manualControls; + methods.controlNav.active(); + + slider.controlNav.bind(eventType, function(event) { + event.preventDefault(); + + if (watchedEvent === "" || watchedEvent === event.type) { + var $this = $(this), + target = slider.controlNav.index($this); + + if (!$this.hasClass(namespace + 'active')) { + (target > slider.currentSlide) ? slider.direction = "next" : slider.direction = "prev"; + slider.flexAnimate(target, slider.vars.pauseOnAction); + } + } + + // setup flags to prevent event duplication + if (watchedEvent === "") { + watchedEvent = event.type; + } + methods.setToClearWatchedEvent(); + }); + }, + set: function() { + var selector = (slider.vars.controlNav === "thumbnails") ? 'img' : 'a'; + slider.controlNav = $('.' + namespace + 'control-nav li ' + selector, (slider.controlsContainer) ? slider.controlsContainer : slider); + }, + active: function() { + slider.controlNav.removeClass(namespace + "active").eq(slider.animatingTo).addClass(namespace + "active"); + }, + update: function(action, pos) { + if (slider.pagingCount > 1 && action === "add") { + slider.controlNavScaffold.append($('
    3. ' + slider.count + '
    4. ')); + } else if (slider.pagingCount === 1) { + slider.controlNavScaffold.find('li').remove(); + } else { + slider.controlNav.eq(pos).closest('li').remove(); + } + methods.controlNav.set(); + (slider.pagingCount > 1 && slider.pagingCount !== slider.controlNav.length) ? slider.update(pos, action) : methods.controlNav.active(); + } + }, + directionNav: { + setup: function() { + var directionNavScaffold = $(''); + + // CUSTOM DIRECTION NAV: + if (slider.customDirectionNav) { + slider.directionNav = slider.customDirectionNav; + // CONTROLSCONTAINER: + } else if (slider.controlsContainer) { + $(slider.controlsContainer).append(directionNavScaffold); + slider.directionNav = $('.' + namespace + 'direction-nav li a', slider.controlsContainer); + } else { + slider.append(directionNavScaffold); + slider.directionNav = $('.' + namespace + 'direction-nav li a', slider); + } + + methods.directionNav.update(); + + slider.directionNav.bind(eventType, function(event) { + event.preventDefault(); + var target; + + if (watchedEvent === "" || watchedEvent === event.type) { + target = ($(this).hasClass(namespace + 'next')) ? slider.getTarget('next') : slider.getTarget('prev'); + slider.flexAnimate(target, slider.vars.pauseOnAction); + } + + // setup flags to prevent event duplication + if (watchedEvent === "") { + watchedEvent = event.type; + } + methods.setToClearWatchedEvent(); + }); + }, + update: function() { + var disabledClass = namespace + 'disabled'; + if (slider.pagingCount === 1) { + slider.directionNav.addClass(disabledClass).attr('tabindex', '-1'); + } else if (!slider.vars.animationLoop) { + if (slider.animatingTo === 0) { + slider.directionNav.removeClass(disabledClass).filter('.' + namespace + "prev").addClass(disabledClass).attr('tabindex', '-1'); + } else if (slider.animatingTo === slider.last) { + slider.directionNav.removeClass(disabledClass).filter('.' + namespace + "next").addClass(disabledClass).attr('tabindex', '-1'); + } else { + slider.directionNav.removeClass(disabledClass).removeAttr('tabindex'); + } + } else { + slider.directionNav.removeClass(disabledClass).removeAttr('tabindex'); + } + } + }, + pausePlay: { + setup: function() { + var pausePlayScaffold = $('
      '); + + // CONTROLSCONTAINER: + if (slider.controlsContainer) { + slider.controlsContainer.append(pausePlayScaffold); + slider.pausePlay = $('.' + namespace + 'pauseplay a', slider.controlsContainer); + } else { + slider.append(pausePlayScaffold); + slider.pausePlay = $('.' + namespace + 'pauseplay a', slider); + } + + methods.pausePlay.update((slider.vars.slideshow) ? namespace + 'pause' : namespace + 'play'); + + slider.pausePlay.bind(eventType, function(event) { + event.preventDefault(); + + if (watchedEvent === "" || watchedEvent === event.type) { + if ($(this).hasClass(namespace + 'pause')) { + slider.manualPause = true; + slider.manualPlay = false; + slider.pause(); + } else { + slider.manualPause = false; + slider.manualPlay = true; + slider.play(); + } + } + + // setup flags to prevent event duplication + if (watchedEvent === "") { + watchedEvent = event.type; + } + methods.setToClearWatchedEvent(); + }); + }, + update: function(state) { + (state === "play") ? slider.pausePlay.removeClass(namespace + 'pause').addClass(namespace + 'play').html(slider.vars.playText) : slider.pausePlay.removeClass(namespace + 'play').addClass(namespace + 'pause').html(slider.vars.pauseText); + } + }, + touch: function() { + var startX, + startY, + offset, + cwidth, + dx, + startT, + onTouchStart, + onTouchMove, + onTouchEnd, + scrolling = false, + localX = 0, + localY = 0, + accDx = 0; + + if(!msGesture){ + onTouchStart = function(e) { + if (slider.animating) { + e.preventDefault(); + } else if ( ( window.navigator.msPointerEnabled ) || e.touches.length === 1 ) { + slider.pause(); + // CAROUSEL: + cwidth = (vertical) ? slider.h : slider. w; + startT = Number(new Date()); + // CAROUSEL: + + // Local vars for X and Y points. + localX = e.touches[0].pageX; + localY = e.touches[0].pageY; + + offset = (carousel && reverse && slider.animatingTo === slider.last) ? 0 : + (carousel && reverse) ? slider.limit - (((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo) : + (carousel && slider.currentSlide === slider.last) ? slider.limit : + (carousel) ? ((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.currentSlide : + (reverse) ? (slider.last - slider.currentSlide + slider.cloneOffset) * cwidth : (slider.currentSlide + slider.cloneOffset) * cwidth; + startX = (vertical) ? localY : localX; + startY = (vertical) ? localX : localY; + + el.addEventListener('touchmove', onTouchMove, false); + el.addEventListener('touchend', onTouchEnd, false); + } + }; + + onTouchMove = function(e) { + // Local vars for X and Y points. + + localX = e.touches[0].pageX; + localY = e.touches[0].pageY; + + dx = (vertical) ? startX - localY : startX - localX; + scrolling = (vertical) ? (Math.abs(dx) < Math.abs(localX - startY)) : (Math.abs(dx) < Math.abs(localY - startY)); + + var fxms = 500; + + if ( ! scrolling || Number( new Date() ) - startT > fxms ) { + e.preventDefault(); + if (!fade && slider.transitions) { + if (!slider.vars.animationLoop) { + dx = dx/((slider.currentSlide === 0 && dx < 0 || slider.currentSlide === slider.last && dx > 0) ? (Math.abs(dx)/cwidth+2) : 1); + } + slider.setProps(offset + dx, "setTouch"); + } + } + }; + + onTouchEnd = function(e) { + // finish the touch by undoing the touch session + el.removeEventListener('touchmove', onTouchMove, false); + + if (slider.animatingTo === slider.currentSlide && !scrolling && !(dx === null)) { + var updateDx = (reverse) ? -dx : dx, + target = (updateDx > 0) ? slider.getTarget('next') : slider.getTarget('prev'); + + if (slider.canAdvance(target) && (Number(new Date()) - startT < 550 && Math.abs(updateDx) > 50 || Math.abs(updateDx) > cwidth/2)) { + slider.flexAnimate(target, slider.vars.pauseOnAction); + } else { + if (!fade) { slider.flexAnimate(slider.currentSlide, slider.vars.pauseOnAction, true); } + } + } + el.removeEventListener('touchend', onTouchEnd, false); + + startX = null; + startY = null; + dx = null; + offset = null; + }; + + el.addEventListener('touchstart', onTouchStart, false); + }else{ + el.style.msTouchAction = "none"; + el._gesture = new MSGesture(); + el._gesture.target = el; + el.addEventListener("MSPointerDown", onMSPointerDown, false); + el._slider = slider; + el.addEventListener("MSGestureChange", onMSGestureChange, false); + el.addEventListener("MSGestureEnd", onMSGestureEnd, false); + + function onMSPointerDown(e){ + e.stopPropagation(); + if (slider.animating) { + e.preventDefault(); + }else{ + slider.pause(); + el._gesture.addPointer(e.pointerId); + accDx = 0; + cwidth = (vertical) ? slider.h : slider. w; + startT = Number(new Date()); + // CAROUSEL: + + offset = (carousel && reverse && slider.animatingTo === slider.last) ? 0 : + (carousel && reverse) ? slider.limit - (((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo) : + (carousel && slider.currentSlide === slider.last) ? slider.limit : + (carousel) ? ((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.currentSlide : + (reverse) ? (slider.last - slider.currentSlide + slider.cloneOffset) * cwidth : (slider.currentSlide + slider.cloneOffset) * cwidth; + } + } + + function onMSGestureChange(e) { + e.stopPropagation(); + var slider = e.target._slider; + if(!slider){ + return; + } + var transX = -e.translationX, + transY = -e.translationY; + + //Accumulate translations. + accDx = accDx + ((vertical) ? transY : transX); + dx = accDx; + scrolling = (vertical) ? (Math.abs(accDx) < Math.abs(-transX)) : (Math.abs(accDx) < Math.abs(-transY)); + + if(e.detail === e.MSGESTURE_FLAG_INERTIA){ + setImmediate(function (){ + el._gesture.stop(); + }); + + return; + } + + if (!scrolling || Number(new Date()) - startT > 500) { + e.preventDefault(); + if (!fade && slider.transitions) { + if (!slider.vars.animationLoop) { + dx = accDx / ((slider.currentSlide === 0 && accDx < 0 || slider.currentSlide === slider.last && accDx > 0) ? (Math.abs(accDx) / cwidth + 2) : 1); + } + slider.setProps(offset + dx, "setTouch"); + } + } + } + + function onMSGestureEnd(e) { + e.stopPropagation(); + var slider = e.target._slider; + if(!slider){ + return; + } + if (slider.animatingTo === slider.currentSlide && !scrolling && !(dx === null)) { + var updateDx = (reverse) ? -dx : dx, + target = (updateDx > 0) ? slider.getTarget('next') : slider.getTarget('prev'); + + if (slider.canAdvance(target) && (Number(new Date()) - startT < 550 && Math.abs(updateDx) > 50 || Math.abs(updateDx) > cwidth/2)) { + slider.flexAnimate(target, slider.vars.pauseOnAction); + } else { + if (!fade) { slider.flexAnimate(slider.currentSlide, slider.vars.pauseOnAction, true); } + } + } + + startX = null; + startY = null; + dx = null; + offset = null; + accDx = 0; + } + } + }, + resize: function() { + if (!slider.animating && slider.is(':visible')) { + if (!carousel) { slider.doMath(); } + + if (fade) { + // SMOOTH HEIGHT: + methods.smoothHeight(); + } else if (carousel) { //CAROUSEL: + slider.slides.width(slider.computedW); + slider.update(slider.pagingCount); + slider.setProps(); + } + else if (vertical) { //VERTICAL: + slider.viewport.height(slider.h); + slider.setProps(slider.h, "setTotal"); + } else { + // SMOOTH HEIGHT: + if (slider.vars.smoothHeight) { methods.smoothHeight(); } + slider.newSlides.width(slider.computedW); + slider.setProps(slider.computedW, "setTotal"); + } + } + }, + smoothHeight: function(dur) { + if (!vertical || fade) { + var $obj = (fade) ? slider : slider.viewport; + (dur) ? $obj.animate({"height": slider.slides.eq(slider.animatingTo).height()}, dur) : $obj.height(slider.slides.eq(slider.animatingTo).height()); + } + }, + sync: function(action) { + var $obj = $(slider.vars.sync).data("flexslider"), + target = slider.animatingTo; + + switch (action) { + case "animate": $obj.flexAnimate(target, slider.vars.pauseOnAction, false, true); break; + case "play": if (!$obj.playing && !$obj.asNav) { $obj.play(); } break; + case "pause": $obj.pause(); break; + } + }, + uniqueID: function($clone) { + // Append _clone to current level and children elements with id attributes + $clone.filter( '[id]' ).add($clone.find( '[id]' )).each(function() { + var $this = $(this); + $this.attr( 'id', $this.attr( 'id' ) + '_clone' ); + }); + return $clone; + }, + pauseInvisible: { + visProp: null, + init: function() { + var visProp = methods.pauseInvisible.getHiddenProp(); + if (visProp) { + var evtname = visProp.replace(/[H|h]idden/,'') + 'visibilitychange'; + document.addEventListener(evtname, function() { + if (methods.pauseInvisible.isHidden()) { + if(slider.startTimeout) { + clearTimeout(slider.startTimeout); //If clock is ticking, stop timer and prevent from starting while invisible + } else { + slider.pause(); //Or just pause + } + } + else { + if(slider.started) { + slider.play(); //Initiated before, just play + } else { + if (slider.vars.initDelay > 0) { + setTimeout(slider.play, slider.vars.initDelay); + } else { + slider.play(); //Didn't init before: simply init or wait for it + } + } + } + }); + } + }, + isHidden: function() { + var prop = methods.pauseInvisible.getHiddenProp(); + if (!prop) { + return false; + } + return document[prop]; + }, + getHiddenProp: function() { + var prefixes = ['webkit','moz','ms','o']; + // if 'hidden' is natively supported just return it + if ('hidden' in document) { + return 'hidden'; + } + // otherwise loop over all the known prefixes until we find one + for ( var i = 0; i < prefixes.length; i++ ) { + if ((prefixes[i] + 'Hidden') in document) { + return prefixes[i] + 'Hidden'; + } + } + // otherwise it's not supported + return null; + } + }, + setToClearWatchedEvent: function() { + clearTimeout(watchedEventClearTimer); + watchedEventClearTimer = setTimeout(function() { + watchedEvent = ""; + }, 3000); + } + }; + + // public methods + slider.flexAnimate = function(target, pause, override, withSync, fromNav) { + if (!slider.vars.animationLoop && target !== slider.currentSlide) { + slider.direction = (target > slider.currentSlide) ? "next" : "prev"; + } + + if (asNav && slider.pagingCount === 1) slider.direction = (slider.currentItem < target) ? "next" : "prev"; + + if (!slider.animating && (slider.canAdvance(target, fromNav) || override) && slider.is(":visible")) { + if (asNav && withSync) { + var master = $(slider.vars.asNavFor).data('flexslider'); + slider.atEnd = target === 0 || target === slider.count - 1; + master.flexAnimate(target, true, false, true, fromNav); + slider.direction = (slider.currentItem < target) ? "next" : "prev"; + master.direction = slider.direction; + + if (Math.ceil((target + 1)/slider.visible) - 1 !== slider.currentSlide && target !== 0) { + slider.currentItem = target; + slider.slides.removeClass(namespace + "active-slide").eq(target).addClass(namespace + "active-slide"); + target = Math.floor(target/slider.visible); + } else { + slider.currentItem = target; + slider.slides.removeClass(namespace + "active-slide").eq(target).addClass(namespace + "active-slide"); + return false; + } + } + + slider.animating = true; + slider.animatingTo = target; + + // SLIDESHOW: + if (pause) { slider.pause(); } + + // API: before() animation Callback + slider.vars.before(slider); + + // SYNC: + if (slider.syncExists && !fromNav) { methods.sync("animate"); } + + // CONTROLNAV + if (slider.vars.controlNav) { methods.controlNav.active(); } + + // !CAROUSEL: + // CANDIDATE: slide active class (for add/remove slide) + if (!carousel) { slider.slides.removeClass(namespace + 'active-slide').eq(target).addClass(namespace + 'active-slide'); } + + // INFINITE LOOP: + // CANDIDATE: atEnd + slider.atEnd = target === 0 || target === slider.last; + + // DIRECTIONNAV: + if (slider.vars.directionNav) { methods.directionNav.update(); } + + if (target === slider.last) { + // API: end() of cycle Callback + slider.vars.end(slider); + // SLIDESHOW && !INFINITE LOOP: + if (!slider.vars.animationLoop) { slider.pause(); } + } + + // SLIDE: + if (!fade) { + var dimension = (vertical) ? slider.slides.filter(':first').height() : slider.computedW, + margin, slideString, calcNext; + + // INFINITE LOOP / REVERSE: + if (carousel) { + margin = slider.vars.itemMargin; + calcNext = ((slider.itemW + margin) * slider.move) * slider.animatingTo; + slideString = (calcNext > slider.limit && slider.visible !== 1) ? slider.limit : calcNext; + } else if (slider.currentSlide === 0 && target === slider.count - 1 && slider.vars.animationLoop && slider.direction !== "next") { + slideString = (reverse) ? (slider.count + slider.cloneOffset) * dimension : 0; + } else if (slider.currentSlide === slider.last && target === 0 && slider.vars.animationLoop && slider.direction !== "prev") { + slideString = (reverse) ? 0 : (slider.count + 1) * dimension; + } else { + slideString = (reverse) ? ((slider.count - 1) - target + slider.cloneOffset) * dimension : (target + slider.cloneOffset) * dimension; + } + slider.setProps(slideString, "", slider.vars.animationSpeed); + if (slider.transitions) { + if (!slider.vars.animationLoop || !slider.atEnd) { + slider.animating = false; + slider.currentSlide = slider.animatingTo; + } + + // Unbind previous transitionEnd events and re-bind new transitionEnd event + slider.container.unbind("webkitTransitionEnd transitionend"); + slider.container.bind("webkitTransitionEnd transitionend", function() { + clearTimeout(slider.ensureAnimationEnd); + slider.wrapup(dimension); + }); + + // Insurance for the ever-so-fickle transitionEnd event + clearTimeout(slider.ensureAnimationEnd); + slider.ensureAnimationEnd = setTimeout(function() { + slider.wrapup(dimension); + }, slider.vars.animationSpeed + 100); + + } else { + slider.container.animate(slider.args, slider.vars.animationSpeed, slider.vars.easing, function(){ + slider.wrapup(dimension); + }); + } + } else { // FADE: + if (!touch) { + //slider.slides.eq(slider.currentSlide).fadeOut(slider.vars.animationSpeed, slider.vars.easing); + //slider.slides.eq(target).fadeIn(slider.vars.animationSpeed, slider.vars.easing, slider.wrapup); + + slider.slides.eq(slider.currentSlide).css({"zIndex": 1}).animate({"opacity": 0}, slider.vars.animationSpeed, slider.vars.easing); + slider.slides.eq(target).css({"zIndex": 2}).animate({"opacity": 1}, slider.vars.animationSpeed, slider.vars.easing, slider.wrapup); + + } else { + slider.slides.eq(slider.currentSlide).css({ "opacity": 0, "zIndex": 1 }); + slider.slides.eq(target).css({ "opacity": 1, "zIndex": 2 }); + slider.wrapup(dimension); + } + } + // SMOOTH HEIGHT: + if (slider.vars.smoothHeight) { methods.smoothHeight(slider.vars.animationSpeed); } + } + }; + slider.wrapup = function(dimension) { + // SLIDE: + if (!fade && !carousel) { + if (slider.currentSlide === 0 && slider.animatingTo === slider.last && slider.vars.animationLoop) { + slider.setProps(dimension, "jumpEnd"); + } else if (slider.currentSlide === slider.last && slider.animatingTo === 0 && slider.vars.animationLoop) { + slider.setProps(dimension, "jumpStart"); + } + } + slider.animating = false; + slider.currentSlide = slider.animatingTo; + // API: after() animation Callback + slider.vars.after(slider); + }; + + // SLIDESHOW: + slider.animateSlides = function() { + if (!slider.animating && focused ) { slider.flexAnimate(slider.getTarget("next")); } + }; + // SLIDESHOW: + slider.pause = function() { + clearInterval(slider.animatedSlides); + slider.animatedSlides = null; + slider.playing = false; + // PAUSEPLAY: + if (slider.vars.pausePlay) { methods.pausePlay.update("play"); } + // SYNC: + if (slider.syncExists) { methods.sync("pause"); } + }; + // SLIDESHOW: + slider.play = function() { + if (slider.playing) { clearInterval(slider.animatedSlides); } + slider.animatedSlides = slider.animatedSlides || setInterval(slider.animateSlides, slider.vars.slideshowSpeed); + slider.started = slider.playing = true; + // PAUSEPLAY: + if (slider.vars.pausePlay) { methods.pausePlay.update("pause"); } + // SYNC: + if (slider.syncExists) { methods.sync("play"); } + }; + // STOP: + slider.stop = function () { + slider.pause(); + slider.stopped = true; + }; + slider.canAdvance = function(target, fromNav) { + // ASNAV: + var last = (asNav) ? slider.pagingCount - 1 : slider.last; + return (fromNav) ? true : + (asNav && slider.currentItem === slider.count - 1 && target === 0 && slider.direction === "prev") ? true : + (asNav && slider.currentItem === 0 && target === slider.pagingCount - 1 && slider.direction !== "next") ? false : + (target === slider.currentSlide && !asNav) ? false : + (slider.vars.animationLoop) ? true : + (slider.atEnd && slider.currentSlide === 0 && target === last && slider.direction !== "next") ? false : + (slider.atEnd && slider.currentSlide === last && target === 0 && slider.direction === "next") ? false : + true; + }; + slider.getTarget = function(dir) { + slider.direction = dir; + if (dir === "next") { + return (slider.currentSlide === slider.last) ? 0 : slider.currentSlide + 1; + } else { + return (slider.currentSlide === 0) ? slider.last : slider.currentSlide - 1; + } + }; + + // SLIDE: + slider.setProps = function(pos, special, dur) { + var target = (function() { + var posCheck = (pos) ? pos : ((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo, + posCalc = (function() { + if (carousel) { + return (special === "setTouch") ? pos : + (reverse && slider.animatingTo === slider.last) ? 0 : + (reverse) ? slider.limit - (((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo) : + (slider.animatingTo === slider.last) ? slider.limit : posCheck; + } else { + switch (special) { + case "setTotal": return (reverse) ? ((slider.count - 1) - slider.currentSlide + slider.cloneOffset) * pos : (slider.currentSlide + slider.cloneOffset) * pos; + case "setTouch": return (reverse) ? pos : pos; + case "jumpEnd": return (reverse) ? pos : slider.count * pos; + case "jumpStart": return (reverse) ? slider.count * pos : pos; + default: return pos; + } + } + }()); + + return (posCalc * -1) + "px"; + }()); + + if (slider.transitions) { + target = (vertical) ? "translate3d(0," + target + ",0)" : "translate3d(" + target + ",0,0)"; + dur = (dur !== undefined) ? (dur/1000) + "s" : "0s"; + slider.container.css("-" + slider.pfx + "-transition-duration", dur); + slider.container.css("transition-duration", dur); + } + + slider.args[slider.prop] = target; + if (slider.transitions || dur === undefined) { slider.container.css(slider.args); } + + slider.container.css('transform',target); + }; + + slider.setup = function(type) { + // SLIDE: + if (!fade) { + var sliderOffset, arr; + + if (type === "init") { + slider.viewport = $('
      ').css({"overflow": "hidden", "position": "relative"}).appendTo(slider).append(slider.container); + // INFINITE LOOP: + slider.cloneCount = 0; + slider.cloneOffset = 0; + // REVERSE: + if (reverse) { + arr = $.makeArray(slider.slides).reverse(); + slider.slides = $(arr); + slider.container.empty().append(slider.slides); + } + } + // INFINITE LOOP && !CAROUSEL: + if (slider.vars.animationLoop && !carousel) { + slider.cloneCount = 2; + slider.cloneOffset = 1; + // clear out old clones + if (type !== "init") { slider.container.find('.clone').remove(); } + slider.container.append(methods.uniqueID(slider.slides.first().clone().addClass('clone')).attr('aria-hidden', 'true')) + .prepend(methods.uniqueID(slider.slides.last().clone().addClass('clone')).attr('aria-hidden', 'true')); + } + slider.newSlides = $(slider.vars.selector, slider); + + sliderOffset = (reverse) ? slider.count - 1 - slider.currentSlide + slider.cloneOffset : slider.currentSlide + slider.cloneOffset; + // VERTICAL: + if (vertical && !carousel) { + slider.container.height((slider.count + slider.cloneCount) * 200 + "%").css("position", "absolute").width("100%"); + setTimeout(function(){ + slider.newSlides.css({"display": "block"}); + slider.doMath(); + slider.viewport.height(slider.h); + slider.setProps(sliderOffset * slider.h, "init"); + }, (type === "init") ? 100 : 0); + } else { + slider.container.width((slider.count + slider.cloneCount) * 200 + "%"); + slider.setProps(sliderOffset * slider.computedW, "init"); + setTimeout(function(){ + slider.doMath(); + slider.newSlides.css({"width": slider.computedW, "marginRight" : slider.computedM, "float": "left", "display": "block"}); + // SMOOTH HEIGHT: + if (slider.vars.smoothHeight) { methods.smoothHeight(); } + }, (type === "init") ? 100 : 0); + } + } else { // FADE: + slider.slides.css({"width": "100%", "float": "left", "marginRight": "-100%", "position": "relative"}); + if (type === "init") { + if (!touch) { + //slider.slides.eq(slider.currentSlide).fadeIn(slider.vars.animationSpeed, slider.vars.easing); + if (slider.vars.fadeFirstSlide == false) { + slider.slides.css({ "opacity": 0, "display": "block", "zIndex": 1 }).eq(slider.currentSlide).css({"zIndex": 2}).css({"opacity": 1}); + } else { + slider.slides.css({ "opacity": 0, "display": "block", "zIndex": 1 }).eq(slider.currentSlide).css({"zIndex": 2}).animate({"opacity": 1},slider.vars.animationSpeed,slider.vars.easing); + } + } else { + slider.slides.css({ "opacity": 0, "display": "block", "webkitTransition": "opacity " + slider.vars.animationSpeed / 1000 + "s ease", "zIndex": 1 }).eq(slider.currentSlide).css({ "opacity": 1, "zIndex": 2}); + } + } + // SMOOTH HEIGHT: + if (slider.vars.smoothHeight) { methods.smoothHeight(); } + } + // !CAROUSEL: + // CANDIDATE: active slide + if (!carousel) { slider.slides.removeClass(namespace + "active-slide").eq(slider.currentSlide).addClass(namespace + "active-slide"); } + + //FlexSlider: init() Callback + slider.vars.init(slider); + }; + + slider.doMath = function() { + var slide = slider.slides.first(), + slideMargin = slider.vars.itemMargin, + minItems = slider.vars.minItems, + maxItems = slider.vars.maxItems; + + slider.w = (slider.viewport===undefined) ? slider.width() : slider.viewport.width(); + slider.h = slide.height(); + slider.boxPadding = slide.outerWidth() - slide.width(); + + // CAROUSEL: + if (carousel) { + slider.itemT = slider.vars.itemWidth + slideMargin; + slider.itemM = slideMargin; + slider.minW = (minItems) ? minItems * slider.itemT : slider.w; + slider.maxW = (maxItems) ? (maxItems * slider.itemT) - slideMargin : slider.w; + slider.itemW = (slider.minW > slider.w) ? (slider.w - (slideMargin * (minItems - 1)))/minItems : + (slider.maxW < slider.w) ? (slider.w - (slideMargin * (maxItems - 1)))/maxItems : + (slider.vars.itemWidth > slider.w) ? slider.w : slider.vars.itemWidth; + + slider.visible = Math.floor(slider.w/(slider.itemW)); + slider.move = (slider.vars.move > 0 && slider.vars.move < slider.visible ) ? slider.vars.move : slider.visible; + slider.pagingCount = Math.ceil(((slider.count - slider.visible)/slider.move) + 1); + slider.last = slider.pagingCount - 1; + slider.limit = (slider.pagingCount === 1) ? 0 : + (slider.vars.itemWidth > slider.w) ? (slider.itemW * (slider.count - 1)) + (slideMargin * (slider.count - 1)) : ((slider.itemW + slideMargin) * slider.count) - slider.w - slideMargin; + } else { + slider.itemW = slider.w; + slider.itemM = slideMargin; + slider.pagingCount = slider.count; + slider.last = slider.count - 1; + } + slider.computedW = slider.itemW - slider.boxPadding; + slider.computedM = slider.itemM; + }; + + slider.update = function(pos, action) { + slider.doMath(); + + // update currentSlide and slider.animatingTo if necessary + if (!carousel) { + if (pos < slider.currentSlide) { + slider.currentSlide += 1; + } else if (pos <= slider.currentSlide && pos !== 0) { + slider.currentSlide -= 1; + } + slider.animatingTo = slider.currentSlide; + } + + // update controlNav + if (slider.vars.controlNav && !slider.manualControls) { + if ((action === "add" && !carousel) || slider.pagingCount > slider.controlNav.length) { + methods.controlNav.update("add"); + } else if ((action === "remove" && !carousel) || slider.pagingCount < slider.controlNav.length) { + if (carousel && slider.currentSlide > slider.last) { + slider.currentSlide -= 1; + slider.animatingTo -= 1; + } + methods.controlNav.update("remove", slider.last); + } + } + // update directionNav + if (slider.vars.directionNav) { methods.directionNav.update(); } + + }; + + slider.addSlide = function(obj, pos) { + var $obj = $(obj); + + slider.count += 1; + slider.last = slider.count - 1; + + // append new slide + if (vertical && reverse) { + (pos !== undefined) ? slider.slides.eq(slider.count - pos).after($obj) : slider.container.prepend($obj); + } else { + (pos !== undefined) ? slider.slides.eq(pos).before($obj) : slider.container.append($obj); + } + + // update currentSlide, animatingTo, controlNav, and directionNav + slider.update(pos, "add"); + + // update slider.slides + slider.slides = $(slider.vars.selector + ':not(.clone)', slider); + // re-setup the slider to accomdate new slide + slider.setup(); + + //FlexSlider: added() Callback + slider.vars.added(slider); + }; + slider.removeSlide = function(obj) { + var pos = (isNaN(obj)) ? slider.slides.index($(obj)) : obj; + + // update count + slider.count -= 1; + slider.last = slider.count - 1; + + // remove slide + if (isNaN(obj)) { + $(obj, slider.slides).remove(); + } else { + (vertical && reverse) ? slider.slides.eq(slider.last).remove() : slider.slides.eq(obj).remove(); + } + + // update currentSlide, animatingTo, controlNav, and directionNav + slider.doMath(); + slider.update(pos, "remove"); + + // update slider.slides + slider.slides = $(slider.vars.selector + ':not(.clone)', slider); + // re-setup the slider to accomdate new slide + slider.setup(); + + // FlexSlider: removed() Callback + slider.vars.removed(slider); + }; + + //FlexSlider: Initialize + methods.init(); + }; + + // Ensure the slider isn't focussed if the window loses focus. + $( window ).blur( function ( e ) { + focused = false; + }).focus( function ( e ) { + focused = true; + }); + + //FlexSlider: Default Settings + $.flexslider.defaults = { + namespace: "flex-", //{NEW} String: Prefix string attached to the class of every element generated by the plugin + selector: ".slides > li", //{NEW} Selector: Must match a simple pattern. '{container} > {slide}' -- Ignore pattern at your own peril + animation: "fade", //String: Select your animation type, "fade" or "slide" + easing: "swing", //{NEW} String: Determines the easing method used in jQuery transitions. jQuery easing plugin is supported! + direction: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical" + reverse: false, //{NEW} Boolean: Reverse the animation direction + animationLoop: true, //Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end + smoothHeight: false, //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode + startAt: 0, //Integer: The slide that the slider should start on. Array notation (0 = first slide) + slideshow: true, //Boolean: Animate slider automatically + slideshowSpeed: 7000, //Integer: Set the speed of the slideshow cycling, in milliseconds + animationSpeed: 600, //Integer: Set the speed of animations, in milliseconds + initDelay: 0, //{NEW} Integer: Set an initialization delay, in milliseconds + randomize: false, //Boolean: Randomize slide order + fadeFirstSlide: true, //Boolean: Fade in the first slide when animation type is "fade" + thumbCaptions: false, //Boolean: Whether or not to put captions on thumbnails when using the "thumbnails" controlNav. + + // Usability features + pauseOnAction: true, //Boolean: Pause the slideshow when interacting with control elements, highly recommended. + pauseOnHover: false, //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering + pauseInvisible: true, //{NEW} Boolean: Pause the slideshow when tab is invisible, resume when visible. Provides better UX, lower CPU usage. + useCSS: true, //{NEW} Boolean: Slider will use CSS3 transitions if available + touch: true, //{NEW} Boolean: Allow touch swipe navigation of the slider on touch-enabled devices + video: false, //{NEW} Boolean: If using video in the slider, will prevent CSS3 3D Transforms to avoid graphical glitches + + // Primary Controls + controlNav: true, //Boolean: Create navigation for paging control of each slide? Note: Leave true for manualControls usage + directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false) + prevText: "Previous", //String: Set the text for the "previous" directionNav item + nextText: "Next", //String: Set the text for the "next" directionNav item + + // Secondary Navigation + keyboard: true, //Boolean: Allow slider navigating via keyboard left/right keys + multipleKeyboard: false, //{NEW} Boolean: Allow keyboard navigation to affect multiple sliders. Default behavior cuts out keyboard navigation with more than one slider present. + mousewheel: false, //{UPDATED} Boolean: Requires jquery.mousewheel.js (https://github.com/brandonaaron/jquery-mousewheel) - Allows slider navigating via mousewheel + pausePlay: false, //Boolean: Create pause/play dynamic element + pauseText: "Pause", //String: Set the text for the "pause" pausePlay item + playText: "Play", //String: Set the text for the "play" pausePlay item + + // Special properties + controlsContainer: "", //{UPDATED} jQuery Object/Selector: Declare which container the navigation elements should be appended too. Default container is the FlexSlider element. Example use would be $(".flexslider-container"). Property is ignored if given element is not found. + manualControls: "", //{UPDATED} jQuery Object/Selector: Declare custom control navigation. Examples would be $(".flex-control-nav li") or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs. + customDirectionNav: "", //{NEW} jQuery Object/Selector: Custom prev / next button. Must be two jQuery elements. In order to make the events work they have to have the classes "prev" and "next" (plus namespace) + sync: "", //{NEW} Selector: Mirror the actions performed on this slider with another slider. Use with care. + asNavFor: "", //{NEW} Selector: Internal property exposed for turning the slider into a thumbnail navigation for another slider + + // Carousel Options + itemWidth: 0, //{NEW} Integer: Box-model width of individual carousel items, including horizontal borders and padding. + itemMargin: 0, //{NEW} Integer: Margin between carousel items. + minItems: 1, //{NEW} Integer: Minimum number of carousel items that should be visible. Items will resize fluidly when below this. + maxItems: 0, //{NEW} Integer: Maxmimum number of carousel items that should be visible. Items will resize fluidly when above this limit. + move: 0, //{NEW} Integer: Number of carousel items that should move on animation. If 0, slider will move all visible items. + allowOneSlide: true, //{NEW} Boolean: Whether or not to allow a slider comprised of a single slide + + // Callback API + start: function(){}, //Callback: function(slider) - Fires when the slider loads the first slide + before: function(){}, //Callback: function(slider) - Fires asynchronously with each slider animation + after: function(){}, //Callback: function(slider) - Fires after each slider animation completes + end: function(){}, //Callback: function(slider) - Fires when the slider reaches the last slide (asynchronous) + added: function(){}, //{NEW} Callback: function(slider) - Fires after a slide is added + removed: function(){}, //{NEW} Callback: function(slider) - Fires after a slide is removed + init: function() {} //{NEW} Callback: function(slider) - Fires after the slider is initially setup + }; + + //FlexSlider: Plugin Function + $.fn.flexslider = function(options) { + if (options === undefined) { options = {}; } + + if (typeof options === "object") { + return this.each(function() { + var $this = $(this), + selector = (options.selector) ? options.selector : ".slides > li", + $slides = $this.find(selector); + + if ( ( $slides.length === 1 && options.allowOneSlide === true ) || $slides.length === 0 ) { + $slides.fadeIn(400); + if (options.start) { options.start($this); } + } else if ($this.data('flexslider') === undefined) { + new $.flexslider(this, options); + } + }); + } else { + // Helper strings to quickly perform functions on the slider + var $slider = $(this).data('flexslider'); + switch (options) { + case "play": $slider.play(); break; + case "pause": $slider.pause(); break; + case "stop": $slider.stop(); break; + case "next": $slider.flexAnimate($slider.getTarget("next"), true); break; + case "prev": + case "previous": $slider.flexAnimate($slider.getTarget("prev"), true); break; + default: if (typeof options === "number") { $slider.flexAnimate(options, true); } + } + } + }; +})(jQuery); diff --git a/src/developerportal/all/modules/README.txt b/src/developerportal/all/modules/README.txt new file mode 100755 index 0000000..b19849b --- /dev/null +++ b/src/developerportal/all/modules/README.txt @@ -0,0 +1,37 @@ +Modules extend your site functionality beyond Drupal core. + +WHAT TO PLACE IN THIS DIRECTORY? +-------------------------------- + +Placing downloaded and custom modules in this directory separates downloaded and +custom modules from Drupal core's modules. This allows Drupal core to be updated +without overwriting these files. + +DOWNLOAD ADDITIONAL MODULES +--------------------------- + +Contributed modules from the Drupal community may be downloaded at +https://www.drupal.org/project/project_module. + +ORGANIZING MODULES IN THIS DIRECTORY +------------------------------------ + +You may create subdirectories in this directory, to organize your added modules, +without breaking the site. Some common subdirectories include "contrib" for +contributed modules, and "custom" for custom modules. Note that if you move a +module to a subdirectory after it has been enabled, you may need to clear the +Drupal cache so it can be found. (Alternatively, you can disable the module +before moving it and then re-enable it after the move.) + +MULTISITE CONFIGURATION +----------------------- + +In multisite configurations, modules found in this directory are available to +all sites. Alternatively, the sites/your_site_name/modules directory pattern +may be used to restrict modules to a specific site instance. + +MORE INFORMATION +---------------- + +Refer to the "Developing for Drupal" section of the README.txt in the Drupal +root directory for further information on extending Drupal with custom modules. diff --git a/src/developerportal/all/modules/contrib/contact_forms/LICENSE.txt b/src/developerportal/all/modules/contrib/contact_forms/LICENSE.txt new file mode 100755 index 0000000..d159169 --- /dev/null +++ b/src/developerportal/all/modules/contrib/contact_forms/LICENSE.txt @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/src/developerportal/all/modules/contrib/contact_forms/README.txt b/src/developerportal/all/modules/contrib/contact_forms/README.txt new file mode 100755 index 0000000..a42613b --- /dev/null +++ b/src/developerportal/all/modules/contrib/contact_forms/README.txt @@ -0,0 +1,97 @@ + +CONTACT_FORMS.MODULE + +Overview +-------- +This module expands the features of the site wide +contact form. It eliminates the need for the drop +down category menu by generating a form, and a +unique path, for each of the contact form categories. + +The path 'contact/{category}' generates a contact form +for that category with a title = 'Contact {category}'. +e.g. path 'contact/Jill Jones' generates a contact form +for the category 'Jill Jones' with a title = 'Contact Jill Jones'. You can use underscore "_" or a dash "-" instead of spaces. + +If a path is entered that does not have a category you +can specify a page to redirect to. The default fall back +path is contact. + +To define the subject of the generated form the path is as follows +'contact/{category}/Subject goes here' +e.g. path 'contact/Jill Jones/Enquiry about Sales' generates a contact form +for the category 'Jill Jones' with a title = 'Contact jill Jones' and the subject +'Enquiry about Sales'. + +Multilingual Sites +------------------ +For use with the Internationalization module enable the Contact forms translation module and for more info see the README file in the contact_forms_int folder which is in the contact_forms folder + +Contact Field Compatability +------------- +This module works with the contact_field module but needs to be enabled after the contact_field module. If you are having problems with the added fields not displaying in the correct order, disable and enable the contact_forms module and the problem should be solved. + +This problem is caused by the weight of contact_field module in the System table needing to be greater than the weight of the contact_forms module. When the contact_forms module is enabled it compares the weights and changes the weight of the contact_field module. + + +Requirements +------------ +contact.module must be enabled. + + +Installation +------------ + 1. Copy contact_forms folder to sites/all/modules/. + 2. Check contact.module is enabled + 3. Enable Contact Forms module + + +Usage +----- +This module was written for sites that have many email +contacts where you want a page with information about +the people / departments etc with links to their individual +contact forms. + +Create a "Contact Directory" page with a path like 'directory' +and lay it out how you would like it. Links to the forms can +be made with the following code [using the drupal link function] + +This page can be set as the fall back page if a contact/category +path is entered that doesn't exist. + + +Snippets +-------- +1. The "old" contact/list page +This will give you a list of links to the contact forms. + + +

      Who would you like to contact?

      +'; + print '
        '; + while ($contact = db_fetch_object($result)) { + $cleanurl = str_replace(' ', '_' ,$contact->category); + print '
      • '. l($contact->category , 'contact/'. $cleanurl) .'
      • '; + } + print '
      '; + print ''; +?> + + + +Credits +------- +Thanks to the following people who have helped with suggestions and code: +nancyw +alienbrain +incrn8 +joachim +mfredrickson +jandd +arcaneadam +Rob C \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/contact_forms/contact_forms.info b/src/developerportal/all/modules/contrib/contact_forms/contact_forms.info new file mode 100755 index 0000000..1db569b --- /dev/null +++ b/src/developerportal/all/modules/contrib/contact_forms/contact_forms.info @@ -0,0 +1,16 @@ +; $Id: +name = Contact Forms +description = Creates individual contact pages from contact form categories. +dependencies[] = contact +core = 7.x +package = Contact Forms +files[] = contact_forms.module +files[] = contact_forms.install +configure = admin/structure/contact/settings + +; Information added by drupal.org packaging script on 2013-02-07 +version = "7.x-1.8" +core = "7.x" +project = "contact_forms" +datestamp = "1360197114" + diff --git a/src/developerportal/all/modules/contrib/contact_forms/contact_forms.install b/src/developerportal/all/modules/contrib/contact_forms/contact_forms.install new file mode 100755 index 0000000..a65c8ab --- /dev/null +++ b/src/developerportal/all/modules/contrib/contact_forms/contact_forms.install @@ -0,0 +1,67 @@ + 'text', 'size' => 'normal', 'not null' => FALSE)); + } + if (!db_field_exists('contact', 'page_info')) { + db_add_field('contact', 'page_info', array('type' => 'text', 'size' => 'big', 'not null' => FALSE)); +} + watchdog ('Contact Forms', 'contact_forms module installed'); + drupal_set_message(t("Contact Forms module has been enabled. Please go to the settings page at !link and choose the space replacement token", + array( '!link' => l('Administer > Structure > Contact form ', 'admin/structure/contact/settings' ) ) + )); +} + +/** + * Implementation of hook_uninstall(). + */ +function contact_forms_uninstall() { + + // remove variables + variable_del('contact_forms_information'); + variable_del('contact_forms_title'); + variable_del('contact_forms_redirect'); + + //remove category information field + db_drop_field('contact', 'page_title'); + db_drop_field('contact', 'page_info'); + + // clear the cache tables + cache_clear_all(null, 'cache'); + cache_clear_all(null, 'cache_filter'); + cache_clear_all(null, 'cache_menu'); + cache_clear_all(null, 'cache_page'); + + watchdog ('Contact Forms', 'Contact Forms module removed'); +} + + + /** + * Add 7.x columns for those upgrading from earlier Drupal version. + */ +function contact_forms_update_7000() { + //Alter the contact table to add an info field and title for each category + if (!db_field_exists('contact', 'page_title')) { + db_add_field('contact', 'page_title', array('type' => 'text', 'size' => 'normal', 'not null' => FALSE)); + } + if (!db_field_exists('contact', 'page_info')) { + db_add_field('contact', 'page_info', array('type' => 'text', 'size' => 'big', 'not null' => FALSE)); + } +} + +/** +* Implementation of hook_update_N() +*/ +function contact_forms_update_7101() { + $ret = array(); + + drupal_set_message(t("Contact Forms module has been updated. Please go to the settings page at !link and choose the space replacement token", array( '!link' => l('Administer > Site building > Contact form ', 'admin/build/contact/settings' )))); + + return $ret; +} \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/contact_forms/contact_forms.module b/src/developerportal/all/modules/contrib/contact_forms/contact_forms.module new file mode 100755 index 0000000..d01d1db --- /dev/null +++ b/src/developerportal/all/modules/contrib/contact_forms/contact_forms.module @@ -0,0 +1,363 @@ + 'Settings', + 'page callback' => 'drupal_get_form', + 'page arguments' => array('contact_forms_settings'), + 'access arguments' => array('administer contact forms'), + ); + + return $items; +} + +/** + * Implementation of hook_help + */ +function contact_forms_help($path, $arg) { + switch ($path) { + + case 'admin/help#contact_forms': + $output = ''; + + $output .= '

      ' . t('The Contact Forms module adds the following features to the Site Wide Contact Form generated by the core contact module.') . '

      '; + $output .= '
      '; + $output .= '
      Unique Contact form for each category
      '; + $output .= '
      Abilty to set Additional information for each form or to use a global Additional information.
      '; + $output .= '
      Abilty to set Additional Information for each form or if left empty the global Additional Information will be used.
      '; + + $output .= '
      '; + return $output; + + + case 'admin/structure/contact/settings': + $output = ''; + $output .= '

      ' . t('The Contact Forms module creates unique contact forms for each contact category with a unique path. Here you can set the default title and header which will be used if they are not specified on the category edit page.') . '

      '; + $output .= '

      ' . t('More help can be found at Contact Forms help page.', array('@help' => url('admin/help/contact_forms'))) . '

      '; + + return $output; + + case 'admin/structure/contact/edit/%': + $output = ''; + $output .= '

      ' . t('Help can be found at Contact Forms help page.', array('@help' => url('admin/help/contact_forms'))) . '

      '; + + return $output; + case 'admin/structure/contact': + $output = '

      ' . t('Features added by Contact Forms Module.') . '

      ' . t('Now that you have the Contact Forms module enabled you can add a unique title and additional text to each category on it\'s edit page or a global title and additional information on the Contact Forms settings page.', array('@settings' => url('admin/structure/contact/settings'))) . '

      '; + + return $output; + } +} + +/** + * Implementation of hook_settings + */ +function contact_forms_settings(){ + + drupal_set_title(t('Contact Forms Settings')); + + /* ********************************************** */ + // New form item for radios for space token + $sub = array( + 0 => t('Replace spaces with a Dash. (recommended. URLs will be like www.mysite.com/contact/Steve-Jones)'), + 1 => t('Replace spaces with an Underscore. (Useful if you want to have dashes in your categories e.g. Bill Smith-Jones. URLs will be like www.mysite.com/contact/Bill_Smith-Jones)'), + 2 => t('Don\'t replace the spaces. (URLs will be like www.mysite.com/contact/Steve Jones)'), + ); + + $form['contact_forms_space_substitute'] = array( + '#type' => 'radios', + '#title' => t('Spaces in Categories replacement'), + '#default_value' => variable_get('contact_forms_space_substitute'), + '#weight' => -4, + '#options' => $sub, + '#required' => true, + '#description' => t('Spaces in the category URL can be replaced with a dash or an underscore or not at all.'), + ); + + + $form['contact_forms_redirect'] = array( + '#type' => 'textfield', + '#title' => t('Contact Form redirect'), + '#default_value' => variable_get('contact_forms_redirect', 'contact'), + '#weight' => -3, + '#maxlength' => 60, + '#description' => t('The page you would like to redirect to if a contact/category path is entered that doesn\'t exist.'), + '#required' => false, + ); + + $form['contact_forms_title'] = array( + '#type' => 'textfield', + '#title' => t('Default Title for individual contact pages'), + '#default_value' => variable_get('contact_forms_title', 'Contact @category'), + '#weight' => -2, + '#maxlength' => 60, + '#description' => t('If a category doesn\'t have a page title specified this will be shown. To place the category name in the title use the wildcard "@category".'), + '#required' => true, + ); + + $form['contact_forms_information'] = array( + '#type' => 'textarea', + '#title' => t('Default Additional Information for individual contact pages'), + '#weight' => -1, + '#default_value' => variable_get('contact_forms_information', t('You can send @category a message using the contact form below.')), + '#description' => t('If a category doesn\'t have additional information specified this will be shown. To place the category name in your message use the wildcard "@category" e.g. You can send @category a message using the contact form below.'), + ); + return system_settings_form($form); +} + + +/** + * Implementation of hook_form_alter() + */ +function contact_forms_form_alter(&$form, $form_state, $form_id) { + $path = $_GET['q']; + + // redirect contact if another fall back page is defined + if ($path == 'contact' && variable_get('contact_forms_redirect', 'contact') != 'contact') { + drupal_goto(variable_get('contact_forms_redirect', 'contact')); + } + + + + // Alter all contact forms generated by this module but not other contact forms + if ($form_id == 'contact_site_form' && drupal_match_path($path, 'contact/*')) { + + + // work out spaces substitution + $sub_array = sub_array(); + $sub_key = variable_get('contact_forms_space_substitute', 3); + + // if 3 then not set and return error message + if ($sub_key == 3){ + _contact_forms_error_message(); + + // if < 2 then replace spaces with $sub_array[$sub_key] + } elseif ($sub_key < 2){ + $replacement = $sub_array[$sub_key]; + $category = str_replace( $replacement , ' ' , arg(1)); + $subject = str_replace( $replacement , ' ' , arg(2)); + // else + } else { + $category = arg(1); + $subject = arg(2); + } + + $categories_data = db_select('contact', 'c') + ->fields('c') + ->condition('c.category' , $category, '=') + ->addTag('translatable') + ->execute() + ->fetchObject(); + + // if category doesn't exist redirect to 'contact' or User Defined Page + if (!$categories_data) { + drupal_goto(variable_get('contact_forms_redirect', 'contact')); + } + // Set Contact Form Title + $contact_forms_title = (!$categories_data->page_title) ? variable_get('contact_forms_title', 'Contact @category') : $categories_data->page_title ; + + $contact_forms_title = str_replace( '@category', $categories_data->category, $contact_forms_title); + drupal_set_title($contact_forms_title); + + // Get Additional Info + $additional_info = (!$categories_data->page_info) ? variable_get('contact_forms_information' , 'You can send @category a message using the contact form below.') : $categories_data->page_info ; + + $additional_info = str_replace( '@category', $categories_data->category, $additional_info); + + + $form['contact_information'] = array( + '#markup' => filter_xss_admin($additional_info), + '#weight' => -1, + '#prefix' => '
      ', + '#suffix' => '
      ', + ); + + $form['subject'] = array('#type' => 'textfield', + '#title' => t('Subject'), + '#maxlength' => 255, + '#default_value' => $subject, + '#required' => TRUE, + ); + + $form['cid'] = array( + '#type' => 'hidden', + '#value' => $categories_data->cid, + '#required' => TRUE, + ); + + $form['orig_category'] = array( + '#type' => 'hidden', + '#value' => $categories_data->category, + ); + } + + + + // Alter the contact_category_edit_form + if($form_id == 'contact_category_edit_form'){ + + $cid = $form['cid']['#value']; + + if ($cid) { + + $contact = db_select('contact', 'c') + ->fields('c') + ->condition('c.cid' , $cid, '=') + ->addTag('translatable') + ->execute() + ->fetchObject(); + } + + // Adds a text field that will hold category specific info for the contact page information + $form['page_title'] = array( + '#type' => 'textfield', + '#title' => t('Page Title'), + '#weight' => -1, + '#default_value' => (isset($contact->page_title))? $contact->page_title : '', + '#description' => t('Page Title for this individual contact page. If this is left empty the "Default Page Title" will be displayed'), + ); + + // Adds a text area that will hold category specific info for the contact page information + $form['page_info'] = array( + '#type' => 'textarea', + '#title' => t('Additional Information'), + '#weight' => 0, + '#default_value' => (isset($contact->page_info))? $contact->page_info : '', + '#description' => t('Information to show on the individual contact page. If this is left empty the "Default Additional Information" will be displayed'), + ); + + // Set the weight of the category name so It appears above our inserted info area + $form['category']['#weight']='-2'; + } +} + + +/** + * Implementation of hook_menu_alter + */ + function contact_forms_menu_alter(&$items) { + $items['contact/%'] = $items['contact']; + + $items['admin/structure/contact'] = array( + 'title' => 'Contact form', + 'description' => 'Create a system contact form and set up categories for the form to use.', + 'page callback' => 'contact_forms_category_list', + 'access arguments' => array('administer contact forms'), + ); + +unset($items['admin/structure/contact']['file']); + +} + + +/** + * Categories/list tab. + * Replace the Category List Page with our table with more columns + */ +function contact_forms_category_list() { + $header = array( + t('Category'), + t('Recipients'), + t('Weight'), + t('Selected'), + t('Title'), + t('Info'), + array('data' => t('Operations'), 'colspan' => 2), + ); + $rows = array(); + + // Get all the contact categories from the database. + $categories = db_select('contact', 'c') + ->addTag('translatable') + ->fields('c') + ->orderby('c.weight') + ->execute() + ->fetchAll(); + + $sub_array = sub_array(); + $sub_key = variable_get('contact_forms_space_substitute', 3); + + if ($sub_key == 3) { + _contact_forms_error_message(); + } + // Loop through the categories and add them to the table. + foreach ($categories as $category) { + $title_status = ($category->page_title != '') ? 'Custom' : 'Default'; + $info_status = ($category->page_info != '') ? 'Custom' : 'Default'; + + if ($sub_key < 2) { + $link = 'contact/' . str_replace(' ', $sub_array[$sub_key] , check_plain($category->category)); + } else { + $link = 'contact/' . check_plain($category->category); + } + + $rows[] = array( + + l(check_plain($category->category), $link, array('attributes' => array('target' => '_blank'))), + + check_plain($category->recipients), + + $category->weight, + ($category->selected ? t('Yes') : t('No')), + $title_status, + $info_status, + l(t('Edit'), 'admin/structure/contact/edit/' . $category->cid), + l(t('Delete'), 'admin/structure/contact/delete/' . $category->cid), + ); + } + + if (!$rows) { + $rows[] = array(array( + 'data' => t('No categories available.'), + 'colspan' => 7, + )); + } + + return theme('table', array('header' => $header, 'rows' => $rows)); +} + +/** + * Define error message + */ +function _contact_forms_error_message() { + drupal_set_message(t('Please set the "Spaces in Categories replacement" !link', array( '!link' => l('here', 'admin/structure/contact/settings' )))); +} + +/** + * Define Space Substitution array + */ +function sub_array() { + return array(0 => '-', 1 => '_'); +} + +/** + * Implementation of hook_schema_alter + */ +function contact_forms_schema_alter(&$schema) { + // Add field to existing schema. + $schema['contact']['fields']['page_title'] = array( + 'type' => 'text', + 'not null' => FALSE, + 'size' => 'normal', + 'description' => 'Page Title displayed on the individual contact form pages', + 'translatable' => TRUE, + ); + $schema['contact']['fields']['page_info'] = array( + 'type' => 'text', + 'not null' => FALSE, + 'size' => 'big', + 'description' => 'Category Page Information Displayed on the individual contact form pages', + 'translatable' => TRUE, + ); +} \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/contact_forms/contact_forms.pot b/src/developerportal/all/modules/contrib/contact_forms/contact_forms.pot new file mode 100755 index 0000000..2c99012 --- /dev/null +++ b/src/developerportal/all/modules/contrib/contact_forms/contact_forms.pot @@ -0,0 +1,178 @@ +# $Id$ +# +# LANGUAGE translation of Drupal (general) +# Copyright YEAR NAME +# Generated from files: +# contact_forms.module: n/a +# contact_forms.install: n/a +# contact_forms.info: n/a +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"POT-Creation-Date: 2013-01-18 18:19+1100\n" +"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n" +"Last-Translator: NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" + +#: contact_forms.module:35 +msgid "The Contact Forms module adds the following features to the Site Wide Contact Form generated by the core contact module." +msgstr "" + +#: contact_forms.module:47 +msgid "The Contact Forms module creates unique contact forms for each contact category with a unique path. Here you can set the default title and header which will be used if they are not specified on the category edit page." +msgstr "" + +#: contact_forms.module:48 +msgid "More help can be found at Contact Forms help page." +msgstr "" + +#: contact_forms.module:54 +msgid "Help can be found at Contact Forms help page." +msgstr "" + +#: contact_forms.module:58 +msgid "Features added by Contact Forms Module." +msgstr "" + +#: contact_forms.module:58 +msgid "Now that you have the Contact Forms module enabled you can add a unique title and additional text to each category on it's edit page or a global title and additional information on the Contact Forms settings page." +msgstr "" + +#: contact_forms.module:69 +msgid "Contact Forms Settings" +msgstr "" + +#: contact_forms.module:73 +msgid "Contact Form redirect" +msgstr "" + +#: contact_forms.module:77 +msgid "The page you would like to redirect to if a contact/category path is entered that doesn't exist." +msgstr "" + +#: contact_forms.module:83 +msgid "Default Title for individual contact pages" +msgstr "" + +#: contact_forms.module:87 +msgid "If a category doesn't have a page title specified this will be shown. To place the category name in the title use the wildcard \"@category\"." +msgstr "" + +#: contact_forms.module:93 +msgid "Default Additional Information for individual contact pages" +msgstr "" + +#: contact_forms.module:95 +msgid "You can send @category a message using the contact form below." +msgstr "" + +#: contact_forms.module:96 +msgid "If a category doesn't have additional information specified this will be shown. To place the category name in your message use the wildcard \"@category\" e.g. You can send @category a message using the contact form below." +msgstr "" + +#: contact_forms.module:157 +msgid "Subject" +msgstr "" + +#: contact_forms.module:195 +msgid "Page Title" +msgstr "" + +#: contact_forms.module:198 +msgid "Page Title for this individual contact page. If this is left empty the \"Default Page Title\" will be displayed" +msgstr "" + +#: contact_forms.module:204 +msgid "Additional Information" +msgstr "" + +#: contact_forms.module:207 +msgid "Information to show on the individual contact page. If this is left empty the \"Default Additional Information\" will be displayed" +msgstr "" + +#: contact_forms.module:240 +msgid "Category" +msgstr "" + +#: contact_forms.module:241 +msgid "Recipients" +msgstr "" + +#: contact_forms.module:242 +msgid "Weight" +msgstr "" + +#: contact_forms.module:243 +msgid "Selected" +msgstr "" + +#: contact_forms.module:244 +msgid "Title" +msgstr "" + +#: contact_forms.module:245 +msgid "Info" +msgstr "" + +#: contact_forms.module:246 +msgid "Operations" +msgstr "" + +#: contact_forms.module:267 +msgid "Yes" +msgstr "" + +#: contact_forms.module:267 +msgid "No" +msgstr "" + +#: contact_forms.module:270 +msgid "Edit" +msgstr "" + +#: contact_forms.module:271 +msgid "Delete" +msgstr "" + +#: contact_forms.module:277 +msgid "No categories available." +msgstr "" + +#: contact_forms.module:15 +msgid "Settings" +msgstr "" + +#: contact_forms.module:223 +msgid "Contact form" +msgstr "" + +#: contact_forms.module:224 +msgid "Create a system contact form and set up categories for the form to use." +msgstr "" + +#: contact_forms.install:16 +msgid "Contact Forms module has been enabled. You can edit its settings at !link" +msgstr "" + +#: contact_forms.install:15;41 contact_forms.info:0;0 +msgid "Contact Forms" +msgstr "" + +#: contact_forms.install:15 +msgid "contact_forms module installed" +msgstr "" + +#: contact_forms.install:41 +msgid "Contact Forms module removed" +msgstr "" + +#: contact_forms.info:0 +msgid "Creates individual contact pages from contact form categories." +msgstr "" + diff --git a/src/developerportal/all/modules/contrib/contact_forms/contact_forms_int/README.txt b/src/developerportal/all/modules/contrib/contact_forms/contact_forms_int/README.txt new file mode 100755 index 0000000..aedfa33 --- /dev/null +++ b/src/developerportal/all/modules/contrib/contact_forms/contact_forms_int/README.txt @@ -0,0 +1,32 @@ + +CONTACT_FORMS_INT.MODULE + +Overview +-------- +This module enables the extra fields added to the contact form settings and categories to be translated. When you go to /admin/structure/contact/settings you will be able to translate the "Default Title for individual contact pages" and the "Default Additional Information for individual contact pages". And when you go to the translation page for each contact category you will be able to translate the "Page Title" and "Additional Information" fields. + +Translate URLs +-------------- +To translate the contact forms URLs you can use URL Aliases here /admin/config/search/path. + +e.g. +ALIAS SYSTEM LANGUAGE +kontakt/einzelhandel contact/retail German +kontakt/grohandel contact/wholesale German + + +Requirements +------------ +The following modules are required +Contact +Contact Forms +Contact translation +String translation +Locale +Internationalization +Variable + +Credits +------- +Thanks to the following people who have helped with suggestions and code: +rains \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/contact_forms/contact_forms_int/contact_forms_int.info b/src/developerportal/all/modules/contrib/contact_forms/contact_forms_int/contact_forms_int.info new file mode 100755 index 0000000..43bebf5 --- /dev/null +++ b/src/developerportal/all/modules/contrib/contact_forms/contact_forms_int/contact_forms_int.info @@ -0,0 +1,19 @@ +name = Contact Forms Translation +description = Makes contact forms additions available for translation. +dependencies[] = contact +dependencies[] = contact_forms +dependencies[] = locale +dependencies[] = i18n +dependencies[] = i18n_contact +dependencies[] = i18n_string +dependencies[] = variable +package = Contact Forms +core = 7.x +files[] = contact_forms_int.install +files[] = contact_forms_int.module +; Information added by drupal.org packaging script on 2013-02-07 +version = "7.x-1.8" +core = "7.x" +project = "contact_forms" +datestamp = "1360197114" + diff --git a/src/developerportal/all/modules/contrib/contact_forms/contact_forms_int/contact_forms_int.install b/src/developerportal/all/modules/contrib/contact_forms/contact_forms_int/contact_forms_int.install new file mode 100755 index 0000000..9a127c1 --- /dev/null +++ b/src/developerportal/all/modules/contrib/contact_forms/contact_forms_int/contact_forms_int.install @@ -0,0 +1,95 @@ +fetchObject(); + + $contact_forms_int_weight = $result->weight + 1; + + db_update('system') + ->condition('name', 'contact_forms_int') + ->fields(array('weight' => $contact_forms_int_weight)) + ->execute(); + + + } + + if (module_exists('i18n_contact')) { + // make this module heavier than i18n_contact so hook_form_alter runs later + + $result = db_query("SELECT weight FROM {system} WHERE `name` = 'i18n_contact'")->fetchObject(); + + $i18n_contact_weight = $result->weight ; + + if ($contact_forms_int_weight <= $i18n_contact_weight){ + + $contact_forms_int_weight = $i18n_contact_weight + 1; + + db_update('system') + ->condition('name', 'contact_forms_int') + ->fields(array('weight' => $contact_forms_int_weight)) + ->execute(); + } + } + + // enable our variables in the language realm by adding them to the + // variable_realm_list_language array but only if they are not already there + $change_flag = FALSE; + $realm_variables = variable_get('variable_realm_list_language'); + + if(!array_key_exists('contact_forms_title', $realm_variables)){ + $realm_variables = array_merge($realm_variables, array('contact_forms_title')); + $change_flag = TRUE; + } + if(!array_key_exists('contact_forms_information', $realm_variables)){ + $realm_variables = array_merge($realm_variables, array('contact_forms_information')); + $change_flag = TRUE; + } + + if ($change_flag) { + variable_set('variable_realm_list_language', $realm_variables); + } + +} + +/** + * Implementation of hook_disable() + */ +function contact_forms_int_disable() { + + // Remove 'contact_forms_title' and 'contact_forms_information' from + // the variable variable_realm_list_language + $change_flag = FALSE; + $realm_variables = variable_get('variable_realm_list_language'); + + $keys = array_keys($realm_variables, 'contact_forms_title'); + if(isset($keys)){ + foreach ($keys as $value) { + unset($realm_variables[$value]); + } + $change_flag = TRUE; + } + + $keys = array_keys($realm_variables, 'contact_forms_information'); + if(isset($keys)){ + foreach ($keys as $value) { + unset($realm_variables[$value]); + } + $change_flag = TRUE; + } + + if ($change_flag) { + variable_set('variable_realm_list_language', $realm_variables); + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/contact_forms/contact_forms_int/contact_forms_int.module b/src/developerportal/all/modules/contrib/contact_forms/contact_forms_int/contact_forms_int.module new file mode 100755 index 0000000..91d56de --- /dev/null +++ b/src/developerportal/all/modules/contrib/contact_forms/contact_forms_int/contact_forms_int.module @@ -0,0 +1,86 @@ + FALSE)); + + // But the token, @category, isn't translated + // so if not the default language replace the + // orig category with the translated category + $default_lang_category = $form['orig_category']['#value']; + $this_lang_category = i18n_string_translate('contact:category:' . $cid . ':category', $default_lang_category); + + if ($default_lang_category !== $this_lang_category) { + $page_info = str_replace($default_lang_category, $this_lang_category, $page_info); + } + $form['contact_information']['#markup'] = $page_info; + } + + if(!isset($form['cid']['#options'])){ + drupal_set_title(i18n_string_translate('contact:category:' . $form['cid']['#value'] . ':page_title', drupal_get_title())); + } +} + + +/** + * Implements hook_variable_group_info(). + */ +function contact_forms_int_variable_group_info() { + $groups['contact_forms_i18n'] = array( + 'title' => t('Contact Forms'), + 'description' => t('Contact Forms variables.'), + 'access' => 'administer contact forms', + 'path' => array('admin/config/system/variable/contact-forms'), + ); + return $groups; +} + +/** + * Implements hook_variable_info(). + */ +function contact_forms_int_variable_info($options) { + + $variable['contact_forms_title'] = array( + 'title' => t('Default Title for individual contact pages ', array(), $options), + 'description' => t('If a category doesn\'t have a page title specified this will be shown. To place the category name in the title use the wildcard "@category".', array(), $options), + 'type' => 'string', + 'default' => t('Contact @category', array(), $options), + 'required' => TRUE, + 'group' => 'contact_forms_i18n', + 'localize' => TRUE, + ); + + $variable['contact_forms_information'] = array( + 'title' => t('Default Additional Information for individual contact pages ', array(), $options), + 'description' => t('If a category doesn\'t have additional information specified this will be shown. To place the category name in your message use the wildcard "@category" e.g. You can send @category a message using the contact form below.', array(), $options), + 'type' => 'string', + 'default' => t('You can send @category a message using the contact form below.', array(), $options), +'group' => 'contact_forms_i18n', + 'localize' => TRUE, + ); + + return $variable; +} + +/** + * + */ +function contact_forms_int_i18n_object_info_alter(&$info) { + + $info['contact_category']['string translation']['properties'] = array( + 'category' => t('Category'), + 'page_title' => t('Page Title'), + 'page_info' => t('Additional Information'), + 'reply' => t('Auto-reply'), + + ); +} \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/contact_forms/contact_forms_int/contact_forms_int.pot b/src/developerportal/all/modules/contrib/contact_forms/contact_forms_int/contact_forms_int.pot new file mode 100755 index 0000000..6501e8c --- /dev/null +++ b/src/developerportal/all/modules/contrib/contact_forms/contact_forms_int/contact_forms_int.pot @@ -0,0 +1,77 @@ +# $Id$ +# +# LANGUAGE translation of Drupal (general) +# Copyright YEAR NAME +# Generated from files: +# contact_forms_int.module: n/a +# contact_forms_int.info: n/a +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"POT-Creation-Date: 2013-01-18 18:19+1100\n" +"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n" +"Last-Translator: NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" + +#: contact_forms_int.module:39 contact_forms_int.info:0 +msgid "Contact Forms" +msgstr "" + +#: contact_forms_int.module:40 +msgid "Contact Forms variables." +msgstr "" + +#: contact_forms_int.module:53 +msgid "Default Title for individual contact pages " +msgstr "" + +#: contact_forms_int.module:54 +msgid "If a category doesn't have a page title specified this will be shown. To place the category name in the title use the wildcard \"@category\"." +msgstr "" + +#: contact_forms_int.module:56 +msgid "Contact @category" +msgstr "" + +#: contact_forms_int.module:63 +msgid "Default Additional Information for individual contact pages " +msgstr "" + +#: contact_forms_int.module:64 +msgid "If a category doesn't have additional information specified this will be shown. To place the category name in your message use the wildcard \"@category\" e.g. You can send @category a message using the contact form below." +msgstr "" + +#: contact_forms_int.module:66 +msgid "You can send @category a message using the contact form below." +msgstr "" + +#: contact_forms_int.module:80 +msgid "Category" +msgstr "" + +#: contact_forms_int.module:81 +msgid "Page Title" +msgstr "" + +#: contact_forms_int.module:82 +msgid "Additional Information" +msgstr "" + +#: contact_forms_int.module:83 +msgid "Auto-reply" +msgstr "" + +#: contact_forms_int.info:0 +msgid "Contact Forms Translation" +msgstr "" + +#: contact_forms_int.info:0 +msgid "Makes contact forms additions available for translation." +msgstr "" + diff --git a/src/developerportal/all/modules/contrib/flexslider/.gitignore b/src/developerportal/all/modules/contrib/flexslider/.gitignore new file mode 100755 index 0000000..e43b0f9 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/src/developerportal/all/modules/contrib/flexslider/LICENSE.txt b/src/developerportal/all/modules/contrib/flexslider/LICENSE.txt new file mode 100755 index 0000000..d159169 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/LICENSE.txt @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/src/developerportal/all/modules/contrib/flexslider/README.md b/src/developerportal/all/modules/contrib/flexslider/README.md new file mode 100755 index 0000000..167a509 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/README.md @@ -0,0 +1,110 @@ +About +===== +Integrates the FlexSlider library into Drupal. + +Known Issues +------------ + +- IE10 requires an updated version of jQuery to work properly with FlexSlider. Please see http://drupal.org/project/jquery_update + +Current Options +--------------- +Allows you to use FlexSlider in a few different ways + +- As a library to be used with any other theme or module by calling flexslider_add() (N.B. You may also use libraries_load('flexslider') or drupal_add_library('flexslider', 'flexslider'), but only if you want to control everything manually). +- Integrates with Fields (flexslider_fields) +- Adds a Views display mode (flexslider_views) + +About FlexSlider +---------------- + +Library available at https://github.com/woothemes/FlexSlider + +- Simple, semantic markup +- Supported in all major browsers +- Horizontal/vertical slide and fade animations +- Multiple slider support, Callback API, and more +- Hardware accelerated touch swipe support +- Custom navigation options +- Use any html elements in the slides +- Built for beginners and pros, alike +- Free to use under the MIT license + +Installation +============ + +Dependencies +------------ + +- [Libraries API 2.x](http://drupal.org/project/libraries) +- [FlexSlider Library](https://github.com/woothemes/FlexSlider) + +Tasks +----- + +1. Download the FlexSlider library from https://github.com/woothemes/FlexSlider/tree/version/2.2 +2. Unzip the file and rename the folder to "flexslider" (pay attention to the case of the letters) +3. Put the folder in a libraries directory + - Ex: sites/all/libraries +4. The following files are required (last file is required for javascript debugging) + - jquery.flexslider-min.js + - flexslider.css + - jquery.flexslider.js +5. Ensure you have a valid path similar to this one for all files + - Ex: sites/all/libraries/flexslider/jquery.flexslider-min.js + +That's it! + +Drush Make +---------- + +You can also use Drush Make to download the library automatically. Simply copy/paste the 'flexslider.make.example' to 'flexslider.make' or copy the contents of the make file into your own make file. + +Usage +====== + +Option Sets +----------- + +No matter how you want to use FlexSlider (with fields or views) you need to define "option sets" to tell FlexSlider how you want it to display. An option set defines all the settings for displaying the slider. Things like slide direction, speed, starting slide, etc... You can define as many option sets as you like and on top of that they're all exportable! Which means you can carry configuration of your Flex Slider instances from one site to the next or create features. + +Go to admin/config/media/flexslider + +From there you can edit the default option set and define new ones. These will be listed as options in the various forms where you setup FlexSlider to display. NOTE: under advanced options, you can set a namespace prefix for the optionset. This will allow you to build custom CSS for each optionset. Start by copying the flexslider_img.css from the assets subfolder to your theme. Build new custom CSS for each prefix in your optionsets. + +Carousels +--------- + +Carousels can be created with Flexslider2 by setting an Item Width for images and a Margin Width in the optionset. Use the flexslider_thumbnail image style and set your item width to fit the desired number of images into the div space available. NOTE: the margin width setting should correspond IN PIXELS to the margin widths set by your img CSS in your theme. This will allow Flexslider to properly calculate the "total width" of the image+margins so that horizontal scrolling behaves properly. + +Flexslider Views +---------------- + +Flex Slider Views allows you to build views which display their results in Flex Slider. Similarly to how you can output fields as an "HTML List" or "Table", you can now select "Flex Slider" as an option. + +Create or edit a view and ensure it can load a content type which contain image fields. Set your display fields to include an image field. In the field settings, DO NOT SET THE FORMATTER TO FLEXSLIDER. This will attempt to put Flex Sliders inside other Flex Sliders and will just get messy. Ensure you don't include any wrapper markup, labels or container markup for the field value itself. Save your field. + +Next, go to "Format" in the main Views windows. Click and select "Flex Slider", then select your option set. Save your view and you should see your results displayed in Flex Slider. + +Debugging +--------- + +You can toggle the development version of the library in the administrative settings page. This will load the unminified version of the library. Uncheck this when moving to a production site to load the smaller minified version. + +### Image Width/Height Attributes + +If your images aren't resizing, ensure the width and height attributes are removed. The module will attempt to remove them automatically on any image matching the pattern + + ul.slides > li > img + + + +Export API +========== + +You can export your FlexSlider option presets using CTools exportables. So either using the Bulk Export module or Features. + +External Links +============== + +- [Wiki Documentation for FlexSlider 2](https://github.com/woothemes/FlexSlider/wiki/FlexSlider-Properties) \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/flexslider/assets/css/flexslider_img.css b/src/developerportal/all/modules/contrib/flexslider/assets/css/flexslider_img.css new file mode 100755 index 0000000..fad2f21 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/assets/css/flexslider_img.css @@ -0,0 +1,9 @@ +/* Avoid scroll bar issues when the slider is next to the edge of the page */ +.flexslider .flex-direction-nav a, +.flexslider .flex-direction-nav a { + display: none; +} +.flexslider:hover .flex-direction-nav a, +.flexslider:hover .flex-direction-nav a { + display: block; +} \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/flexslider/assets/images/flexslider-sample-1.JPG b/src/developerportal/all/modules/contrib/flexslider/assets/images/flexslider-sample-1.JPG new file mode 100755 index 0000000..f9fbaac Binary files /dev/null and b/src/developerportal/all/modules/contrib/flexslider/assets/images/flexslider-sample-1.JPG differ diff --git a/src/developerportal/all/modules/contrib/flexslider/assets/images/flexslider-sample-2.JPG b/src/developerportal/all/modules/contrib/flexslider/assets/images/flexslider-sample-2.JPG new file mode 100755 index 0000000..3a8d3e5 Binary files /dev/null and b/src/developerportal/all/modules/contrib/flexslider/assets/images/flexslider-sample-2.JPG differ diff --git a/src/developerportal/all/modules/contrib/flexslider/assets/images/flexslider-sample-3.JPG b/src/developerportal/all/modules/contrib/flexslider/assets/images/flexslider-sample-3.JPG new file mode 100755 index 0000000..66f89de Binary files /dev/null and b/src/developerportal/all/modules/contrib/flexslider/assets/images/flexslider-sample-3.JPG differ diff --git a/src/developerportal/all/modules/contrib/flexslider/assets/images/flexslider-sample-4.JPG b/src/developerportal/all/modules/contrib/flexslider/assets/images/flexslider-sample-4.JPG new file mode 100755 index 0000000..5eb7b1c Binary files /dev/null and b/src/developerportal/all/modules/contrib/flexslider/assets/images/flexslider-sample-4.JPG differ diff --git a/src/developerportal/all/modules/contrib/flexslider/assets/js/flexslider.load.js b/src/developerportal/all/modules/contrib/flexslider/assets/js/flexslider.load.js new file mode 100755 index 0000000..8423c6f --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/assets/js/flexslider.load.js @@ -0,0 +1,67 @@ +(function($) { + + // Behavior to load FlexSlider + Drupal.behaviors.flexslider = { + attach: function(context, settings) { + var sliders = []; + if ($.type(settings.flexslider) !== 'undefined' && $.type(settings.flexslider.instances) !== 'undefined') { + + for (id in settings.flexslider.instances) { + + if (settings.flexslider.optionsets[settings.flexslider.instances[id]] !== undefined) { + if (settings.flexslider.optionsets[settings.flexslider.instances[id]].asNavFor !== '') { + // We have to initialize all the sliders which are "asNavFor" first. + _flexslider_init(id, settings.flexslider.optionsets[settings.flexslider.instances[id]], context); + } else { + // Everyone else is second + sliders[id] = settings.flexslider.optionsets[settings.flexslider.instances[id]]; + } + } + } + } + // Slider set + for (id in sliders) { + _flexslider_init(id, settings.flexslider.optionsets[settings.flexslider.instances[id]], context); + } + } + }; + + /** + * Initialize the flexslider instance + */ + + function _flexslider_init(id, optionset, context) { + $('#' + id, context).once('flexslider', function() { + // Remove width/height attributes + // @todo load the css path from the settings + $(this).find('ul.slides > li > *').removeAttr('width').removeAttr('height'); + + if (optionset) { + // Add events that developers can use to interact. + $(this).flexslider($.extend(optionset, { + start: function(slider) { + slider.trigger('start'); + }, + before: function(slider) { + slider.trigger('before'); + }, + after: function(slider) { + slider.trigger('after'); + }, + end: function(slider) { + slider.trigger('end'); + }, + added: function(slider) { + slider.trigger('added'); + }, + removed: function(slider) { + slider.trigger('removed'); + } + })); + } else { + $(this).flexslider(); + } + }); + } + +}(jQuery)); diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider-logo.png b/src/developerportal/all/modules/contrib/flexslider/flexslider-logo.png new file mode 100755 index 0000000..4e9c829 Binary files /dev/null and b/src/developerportal/all/modules/contrib/flexslider/flexslider-logo.png differ diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider.admin.inc b/src/developerportal/all/modules/contrib/flexslider/flexslider.admin.inc new file mode 100755 index 0000000..4066fbf --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider.admin.inc @@ -0,0 +1,538 @@ + $form_state['values']['name'], 'title' => $form_state['values']['title'])); + + $saved = flexslider_optionset_save($optionset, TRUE); + + if ($saved) { + drupal_set_message(t('Option set %name was created.', array('%name' => $optionset->name))); + $form_state['redirect'] = 'admin/config/media/flexslider/edit/' . $optionset->name; + } + else { + drupal_set_message(t('Failed to create option set. Please verify your settings.'), 'error'); + } +} + +/** + * Defines the form elements used to edit the FlexSlider library options + * + * @param array $options [optional] + * Pass in a set of default values for the options + * @return array + * Returns the option set array + */ +function flexslider_option_elements($options = array()) { + $form = array(); + + // General Slideshow and Animiation Settings + $form['animation_slideshow'] = array( + '#type' => 'fieldset', + '#title' => t('General Slideshow and Animation Settings'), + ); + + $form['animation_slideshow']['animation'] = array( + '#type' => 'select', + '#title' => t('Animation'), + '#description' => t('Select your animation type'), + '#options' => array( + 'fade' => t('Fade'), + 'slide' => t('Slide'), + ), + '#default_value' => isset($options['animation']) ? $options['animation'] : _flexslider_optionset_defaults('animation'), + // @todo add states to enable/disable the direction + ); + + $form['animation_slideshow']['animationSpeed'] = array( + '#type' => 'textfield', + '#title' => t('Animation Speed'), + '#description' => t('Set the speed of animations, in milliseconds'), + '#element_validate' => array('_flexslider_validate_positive_integer'), + '#default_value' => isset($options['animationSpeed']) ? $options['animationSpeed'] : _flexslider_optionset_defaults('animationSpeed'), + '#size' => 30, + ); + + $form['animation_slideshow']['direction'] = array( + '#type' => 'select', + '#title' => t('Slide Direction'), + '#description' => t('Select the sliding direction, "horizontal" or "vertical"'), + '#options' => array( + 'horizontal' => t('Horizontal'), + 'vertical' => t('Vertical'), + ), + '#default_value' => isset($options['direction']) ? $options['direction'] : _flexslider_optionset_defaults('direction'), + ); + + $form['animation_slideshow']['slideshow'] = array( + '#type' => 'checkbox', + '#title' => t('Slideshow'), + '#description' => t('Animate the slides automatically'), + '#default_value' => isset($options['slideshow']) ? $options['slideshow'] : _flexslider_optionset_defaults('slideshow'), + ); + + // Build in support for easing plugin + $easing_options = array('swing' => t('Swing'), 'linear' => t('Linear')); + if (module_exists('jqeasing')) { + $easing_options = array_merge($easing_options, _flexslider_jqeasing_options()); + + } + + $form['animation_slideshow']['easing'] = array( + '#type' => 'select', + '#title' => t('Easing'), + '#multiple' => FALSE, + '#description' => t('The description appears usually below the item.'), + '#options' => $easing_options, + '#default_value' => isset($options['easing']) ? $options['easing'] : _flexslider_optionset_defaults('easing'), + ); + + $form['animation_slideshow']['smoothHeight'] = array( + '#type' => 'checkbox', + '#title' => t('Smooth Height'), + '#description' => t('Animate the height of the slider smoothly for slides of varying height.'), + '#default_value' => isset($options['smoothHeight']) ? $options['smoothHeight'] : _flexslider_optionset_defaults('smoothHeight'), + ); + + $form['animation_slideshow']['reverse'] = array( + '#type' => 'checkbox', + '#title' => t('Reverse'), + '#description' => t('Animate the slides in reverse'), + '#default_value' => isset($options['reverse']) ? $options['reverse'] : _flexslider_optionset_defaults('reverse'), + ); + + $form['animation_slideshow']['slideshowSpeed'] = array( + '#type' => 'textfield', + '#title' => t('Slideshow speed'), + '#description' => t('Set the speed of the slideshow cycling, in milliseconds'), + '#element_validate' => array('_flexslider_validate_positive_integer'), + '#default_value' => isset($options['slideshowSpeed']) ? $options['slideshowSpeed'] : _flexslider_optionset_defaults('slideshowSpeed'), + '#size' => 30, + ); + + $form['animation_slideshow']['animationLoop'] = array( + '#type' => 'checkbox', + '#title' => t('Loop Slideshow'), + '#description' => t('Loop the slideshow once it reaches the last slide.'), + '#default_value' => isset($options['animationLoop']) ? $options['animationLoop'] : _flexslider_optionset_defaults('animationLoop'), + ); + + $form['animation_slideshow']['randomize'] = array( + '#type' => 'checkbox', + '#title' => t('Randomize Slide Order'), + '#description' => t('Randomize the order the slides play back.'), + '#default_value' => isset($options['randomize']) ? $options['randomize'] : _flexslider_optionset_defaults('randomize'), + ); + $form['animation_slideshow']['startAt'] = array( + '#type' => 'textfield', + '#title' => t('Starting Slide'), + '#description' => t('The slide that the slider should start on. Ex: For the first slide enter "0", for the second enter "1", etc. If you enter a value which is greater than the number of slides, the slider will default to the first slide.'), + '#element_validate' => array('_flexslider_validate_positive_integer'), + '#default_value' => isset($options['startAt']) ? $options['startAt'] : _flexslider_optionset_defaults('startAt'), + '#size' => 30, + // @todo add states to disable if randomize is set + ); + + $form['animation_slideshow']['itemWidth'] = array( + '#type' => 'textfield', + '#title' => t('Item Width'), + '#description' => t('Box-model width of individual carousel items, including horizontal borders and padding.'), + '#size' => 40, + '#maxlength' => 255, + '#default_value' => isset($options['itemWidth']) ? $options['itemWidth'] : _flexslider_optionset_defaults('itemWidth'), + ); + $form['animation_slideshow']['itemMargin'] = array( + '#type' => 'textfield', + '#title' => t('Item Margin'), + '#description' => t('Margin between carousel items. (NB: the margin must be set in your CSS styles. This property merely informs FlexSlider of the margin.)'), + '#size' => 40, + '#maxlength' => 255, + '#default_value' => isset($options['itemMargin']) ? $options['itemMargin'] : _flexslider_optionset_defaults('itemMargin'), + ); + $form['animation_slideshow']['minItems'] = array( + '#type' => 'textfield', + '#title' => t('Minimum Items'), + '#description' => t('Minimum number of carousel items that should be visible.'), + '#size' => 40, + '#maxlength' => 255, + '#default_value' => isset($options['minItems']) ? $options['minItems'] : _flexslider_optionset_defaults('minItems'), + ); + $form['animation_slideshow']['maxItems'] = array( + '#type' => 'textfield', + '#title' => t('Max Items'), + '#description' => t('Maximum number of carousel items that should be visible.'), + '#size' => 40, + '#maxlength' => 255, + '#default_value' => isset($options['maxItems']) ? $options['maxItems'] : _flexslider_optionset_defaults('maxItems'), + ); + $form['animation_slideshow']['move'] = array( + '#type' => 'textfield', + '#title' => t('Move'), + '#description' => t('Number of carousel items that should move on animation. If 0, slider will move all visible items.'), + '#size' => 40, + '#maxlength' => 255, + '#default_value' => isset($options['move']) ? $options['move'] : _flexslider_optionset_defaults('move'), + ); + + // Navigation and Control Settings + $form['nav_controls'] = array( + '#type' => 'fieldset', + '#title' => t('Navigation and Control Settings'), + ); + $form['nav_controls']['directionNav'] = array( + '#type' => 'checkbox', + '#title' => t('Next/Previous Controls'), + '#description' => t('Add controls for previous/next navigation'), + '#default_value' => isset($options['directionNav']) ? $options['directionNav'] : _flexslider_optionset_defaults('directionNav'), + ); + $form['nav_controls']['controlNav'] = array( + '#type' => 'select', + '#title' => t('Paging Controls'), + '#description' => t('Add controls to jump to individual slides. (Note: set to "On" if using Manual Controls)'), + '#default_value' => isset($options['controlNav']) ? $options['controlNav'] : _flexslider_optionset_defaults('controlNav'), + '#options' => array( + 0 => t('Off'), + 1 => t('On'), + 'thumbnails' => t('Thumbnails'), + ) + ); + $form['nav_controls']['thumbCaptions'] = array( + '#type' => 'checkbox', + '#title' => t('Thumbnail Captions'), + '#description' => t('Requires FlexSlider Library 2.2+. After selecting this captions will be added to thumbnails and removed from the main slide.'), + '#default_value' => isset($options['thumbCaptions']) ? $options['thumbCaptions'] : _flexslider_optionset_defaults('thumbCaptions'), + '#states' => array( + 'visible' => array( + ':input[name="controlNav"]' => array('value' => 'thumbnails'), + ), + ), + '#element_validate' => array('_flexslider_validate_minimum_version_22'), + ); + $form['nav_controls']['thumbCaptionsBoth'] = array( + '#type' => 'checkbox', + '#title' => t('Display both thumbnail captions and normal captions'), + '#description' => t('Requires FlexSlider Library 2.2+. Display captions in the thumbnail as well as in the slider.'), + '#default_value' => isset($options['thumbCaptionsBoth']) ? $options['thumbCaptionsBoth'] : _flexslider_optionset_defaults('thumbCaptionsBoth'), + '#states' => array( + 'visible' => array( + ':input[name="controlNav"]' => array('value' => 'thumbnails'), + ), + ), + '#element_validate' => array('_flexslider_validate_minimum_version_22'), + ); + $form['nav_controls']['keyboard'] = array( + '#type' => 'checkbox', + '#title' => t('Keyboard Navigation'), + '#description' => t('Allow slider navigating via keyboard left/right keys'), + '#default_value' => isset($options['keyboard']) ? $options['keyboard'] : _flexslider_optionset_defaults('keyboard'), + ); + $form['nav_controls']['multipleKeyboard'] = array( + '#type' => 'checkbox', + '#title' => t('Multiple Keyboard'), + '#description' => t('Allow keyboard navigation to affect multiple sliders.'), + '#default_value' => isset($options['multipleKeyboard']) ? $options['multipleKeyboard'] : _flexslider_optionset_defaults('multipleKeyboard'), + ); + $form['nav_controls']['mousewheel'] = array( + '#type' => 'checkbox', + '#title' => t('Mousewheel Navigation'), + '#description' => t('Allow slider navigating via mousewheel'), + '#default_value' => isset($options['mousewheel']) ? $options['mousewheel'] : _flexslider_optionset_defaults('mousewheel'), + // @todo add check for jquery mousewheel library + ); + $form['nav_controls']['touch'] = array( + '#type' => 'checkbox', + '#title' => t('Touch'), + '#description' => t('Allow touch swipe navigation.'), + '#default_value' => isset($options['touch']) ? $options['touch'] : _flexslider_optionset_defaults('touch'), + ); + $form['nav_controls']['prevText'] = array( + '#type' => 'textfield', + '#title' => t('Previous Link Text'), + '#description' => t('Set the text for the "previous" control item. Text translation can be controlled using the String Overrides module.'), + '#default_value' => isset($options['prevText']) ? $options['prevText'] : _flexslider_optionset_defaults('prevText'), + ); + $form['nav_controls']['nextText'] = array( + '#type' => 'textfield', + '#title' => t('Next Link Text'), + '#description' => t('Set the text for the "next" control item. Text translation can be controlled using the String Overrides module.'), + '#default_value' => isset($options['nextText']) ? $options['nextText'] : _flexslider_optionset_defaults('nextText'), + ); + + // Advanced Options + $form['advanced'] = array( + '#type' => 'fieldset', + '#title' => t('Advanced Options'), + ); + $form['advanced']['namespace'] = array( + '#type' => 'textfield', + '#title' => t('Namespace'), + '#description' => t('Prefix string attached to the classes of all elements generated by the plugin.'), + '#size' => 40, + '#maxlength' => 255, + '#element_validate' => array('_flexslider_validate_namespace'), + '#default_value' => isset($options['namespace']) ? $options['namespace'] : _flexslider_optionset_defaults('namespace'), + ); + $form['advanced']['selector'] = array( + '#type' => 'textfield', + '#title' => t('Selector'), + '#description' => t('Must match a simple pattern. "{container} > {slide}".'), + '#size' => 40, + '#maxlength' => 255, + '#element_validate' => array('_flexslider_validate_selector'), + '#default_value' => isset($options['selector']) ? $options['selector'] : _flexslider_optionset_defaults('selector'), + ); + $form['advanced']['sync'] = array( + '#type' => 'textfield', + '#title' => t('Sync'), + '#description' => t('Mirror the actions performed on this slider with another slider.'), + '#size' => 40, + '#maxlength' => 255, + '#default_value' => isset($options['sync']) ? $options['sync'] : _flexslider_optionset_defaults('sync'), + ); + $form['advanced']['asNavFor'] = array( + '#type' => 'textfield', + '#title' => t('Use as navigation'), + '#description' => t('Turn the slider into a thumbnail navigation for another slider.'), + '#size' => 40, + '#maxlength' => 255, + '#default_value' => isset($options['asNavFor']) ? $options['asNavFor'] : _flexslider_optionset_defaults('asNavFor'), + ); + + $form['advanced']['initDelay'] = array( + '#type' => 'textfield', + '#title' => t('Initialize Delay'), + '#description' => t('Set an initialization delay, in milliseconds.'), + '#size' => 20, + '#maxlength' => 255, + '#default_value' => isset($options['initDelay']) ? $options['initDelay'] : _flexslider_optionset_defaults('initDelay'), + //'#element_validate' => add validate on zero or greater integer + ); + $form['advanced']['useCSS'] = array( + '#type' => 'checkbox', + '#title' => t('Use CSS'), + '#description' => t('Slider will use CSS3 transitions, if available.'), + '#default_value' => isset($options['useCSS']) ? $options['useCSS'] : _flexslider_optionset_defaults('useCSS'), + ); + $form['advanced']['video'] = array( + '#type' => 'checkbox', + '#title' => t('Video'), + '#description' => t('Will prevent use of CSS3 3D Transforms, avoiding graphical glitches.'), + '#default_value' => isset($options['video']) ? $options['video'] : _flexslider_optionset_defaults('video'), + ); + $form['advanced']['pausePlay'] = array( + '#type' => 'checkbox', + '#title' => t('Add Pause/Play Indicator'), + '#description' => t('Have FlexSlider add an element indicating the current state of the slideshow (i.e. "pause" or "play").'), + '#default_value' => isset($options['pausePlay']) ? $options['pausePlay'] : _flexslider_optionset_defaults('pausePlay'), + // @todo add states value for pause/play text + ); + $form['advanced']['pauseText'] = array( + '#type' => 'textfield', + '#title' => t('Pause State Text'), + '#description' => t('Set the text for the "pause" state indicator. Text translation can be controlled using the String Overrides module.'), + '#default_value' => isset($options['pauseText']) ? $options['pauseText'] : _flexslider_optionset_defaults('pauseText'), + ); + $form['advanced']['playText'] = array( + '#type' => 'textfield', + '#title' => t('Play State Text'), + '#description' => t('Set the text for the "play" state indicator. Text translation can be controlled using the String Overrides module.'), + '#default_value' => isset($options['playText']) ? $options['playText'] : _flexslider_optionset_defaults('playText'), + ); + $form['advanced']['pauseOnAction'] = array( + '#type' => 'checkbox', + '#title' => t('Pause On Controls'), + '#description' => t('Pause the slideshow when interacting with control elements.'), + '#default_value' => isset($options['pauseOnAction']) ? $options['pauseOnAction'] : _flexslider_optionset_defaults('pauseOnAction'), + ); + $form['advanced']['pauseOnHover'] = array( + '#type' => 'checkbox', + '#title' => t('Pause On Hover'), + '#description' => t('Pause the slideshow when hovering over slider, then resume when no longer hovering.'), + '#default_value' => isset($options['pauseOnHover']) ? $options['pauseOnHover'] : _flexslider_optionset_defaults('pauseOnHover'), + ); + $form['advanced']['controlsContainer'] = array( + '#type' => 'textfield', + '#title' => t('Controls container (Advanced)'), + '#description' => t('Declare which container the navigation elements should be appended too. Default container is the flexSlider element. Example use would be ".flexslider-container", "#container", etc. If the given element is not found, the default action will be taken.'), + '#default_value' => isset($options['controlsContainer']) ? $options['controlsContainer'] : _flexslider_optionset_defaults('controlsContainer'), + ); + $form['advanced']['manualControls'] = array( + '#type' => 'textfield', + '#title' => t('Manual controls (Advanced)'), + '#description' => t('Declare custom control navigation. Example would be ".flex-control-nav li" or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs.'), + '#default_value' => isset($options['manualControls']) ? $options['manualControls'] : _flexslider_optionset_defaults('manualControls'), + ); + + return $form; +} + +/** + * Form builder; Form to edit a given option set. + */ +function flexslider_form_optionset_edit($form, &$form_state) { + + if (empty($form_state['optionset'])) { + $optionset = flexslider_optionset_create(); + } + else { + $optionset = $form_state['optionset']; + } + + // Title + $form['title'] = array( + '#type' => 'textfield', + '#maxlength' => '255', + '#title' => t('Title'), + '#description' => t('A human-readable title for this option set.'), + '#required' => TRUE, + '#default_value' => $optionset->title, + ); + $form['name'] = array( + '#type' => 'machine_name', + '#maxlength' => '255', + '#machine_name' => array( + 'source' => array('title'), + 'exists' => 'flexslider_optionset_exists', + ), + '#required' => TRUE, + '#default_value' => $optionset->name, + ); + + // Options Vertical Tab Group table + $form['options'] = array( + '#type' => 'vertical_tabs', + ); + + $default_options = flexslider_option_elements($optionset->options); + // Add the options to the vertical tabs section + foreach ($default_options as $key => $value) { + $form['options'][] = $value; + } + + return $form; +} + +/** + * Validate a form element that should have an integer value. + */ +function _flexslider_validate_positive_integer($element, &$form_state) { + $value = $element['#value']; + if ($value !== '' && (!is_numeric($value) || intval($value) != $value || $value < 0)) { + form_error($element, t('%name must be a positive integer.', array('%name' => $element['#title']))); + } +} + +/** + * Validate a form element that should have a number as value. + */ +function _flexslider_validate_number($element, &$form_state) { + $value = $element['#value']; + if ($value !== '' && !is_numeric($value)) { + form_error($element, t('%name must be a number.', array('%name' => $element['#option_name']))); + } +} + +/** + * Form builder; Form to delete a given option set. + */ +function flexslider_optionset_form_delete($form, &$form_state, $optionset) { + $form_state['optionset'] = &$optionset; + + // Deleting an export in code will revert it. + $op = ($optionset->export_type & EXPORT_IN_CODE) ? 'Revert' : 'Delete'; + + return confirm_form( + $form, + t('Are you sure you want to @action the option set %name?', array('@action' => t(drupal_strtolower($op)), '%name' => $optionset->name)), + 'admin/config/media/flexslider', + NULL, + t($op), t('Cancel') + ); +} + +/** + * Submit handler for deleting an option set. + */ +function flexslider_optionset_form_delete_submit($form, &$form_state) { + $optionset = &$form_state['optionset']; + $op = ($optionset->export_type & EXPORT_IN_CODE) ? 'reverted' : 'deleted'; + + ctools_include('export'); + ctools_export_crud_delete('flexslider_optionset', $optionset); + + drupal_set_message(t('Option set %name was ' . $op . '.', array('%name' => $optionset->name))); + $form_state['redirect'] = 'admin/config/media/flexslider'; +} + + +/** + * Form builder; Form for advanced module settings. + */ +function flexslider_form_settings() { + $form = array(); + + $form['library'] = array( + '#type' => 'fieldset', + '#title' => 'Library', + ); + + // Debug mode toggle + $form['library']['flexslider_debug'] = array( + '#type' => 'checkbox', + '#title' => t('Enable debug mode'), + '#description' => t('Load the human-readable version of the FlexSlider library.'), + '#default_value' => variable_get('flexslider_debug', FALSE), + '#access' => user_access('administer flexslider'), + ); + + return system_settings_form($form); +} + +/** + * Submit handler for the advanced module settings. + */ +function flexslider_form_settings_submit($form, &$form_state) { + // Do nothing for now +} + +/** + * Validation functions + */ +function _flexslider_validate_namespace($element, &$form_state) { + // @todo + // @see form_error() + return TRUE; +} + +function _flexslider_validate_selector($element, &$form_state) { + // @todo + // @see form_error() + return TRUE; +} + +/** + * Validate a form element that should have a number as value. + */ +function _flexslider_validate_minimum_version_22($element, &$form_state) { + $lib = libraries_detect('flexslider'); + if (!isset($lib['version'])) { + drupal_set_message(t('Unable to detect FlexSlider library version. Some options may not function properly. Please review the README.md file for installation instructions.'), 'warning'); + } + else { + $version = $lib['version']; + $required = "2.2"; + + if (!version_compare($version, $required, '>=')) { + form_error($element, t('To use %name you must install FlexSlider version !required or higher.', array( + '%name' => $element['#title'], + '!required' => l($required, 'https://github.com/woothemes/FlexSlider/tree/version/2.2'), + ))); + } + } +} diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider.api.php b/src/developerportal/all/modules/contrib/flexslider/flexslider.api.php new file mode 100755 index 0000000..a82e155 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider.api.php @@ -0,0 +1,37 @@ +disabled = FALSE; /* Edit this to true to make a default preset disabled initially */ + $preset->api_version = 1; + $preset->name = 'default'; + $preset->title = 'Default'; + $presets['default'] = $preset; + + return $presets; +} diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider.info b/src/developerportal/all/modules/contrib/flexslider/flexslider.info new file mode 100755 index 0000000..b5968c5 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider.info @@ -0,0 +1,23 @@ +name = FlexSlider +description = Integrate the FlexSlider 2 library with Drupal +core = 7.x +package = FlexSlider + +; Dependencies +dependencies[] = libraries (>=2.x) +dependencies[] = ctools +dependencies[] = image + +; Files +files[] = theme/flexslider.theme.inc +files[] = flexslider.test + +; Configuration link +configure = admin/config/media/flexslider + +; Information added by Drupal.org packaging script on 2015-07-30 +version = "7.x-2.0-rc1" +core = "7.x" +project = "flexslider" +datestamp = "1438285141" + diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider.install b/src/developerportal/all/modules/contrib/flexslider/flexslider.install new file mode 100755 index 0000000..99bee18 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider.install @@ -0,0 +1,233 @@ + 'Store option sets for flexslider instances.', + 'export' => array( + 'key' => 'name', + 'identifier' => 'preset', + 'default hook' => 'flexslider_default_presets', + 'api' => array( + 'owner' => 'flexslider', + 'api' => 'flexslider_default_preset', + 'minimum_version' => 1, + 'current_version' => 1, + ), + ), + 'fields' => array( + 'name' => array( + 'description' => 'The machine-readable option set name.', + 'type' => 'varchar', + 'length' => 255, + 'not null' => TRUE, + ), + 'title' => array( + 'description' => 'The human-readable title for this option set.', + 'type' => 'varchar', + 'length' => 255, + 'not null' => TRUE, + ), + 'theme' => array( + 'description' => 'The flexslider theme.', + 'type' => 'varchar', + 'length' => 255, + 'not null' => TRUE, + 'default' => 'classic', + ), + 'options' => array( + 'description' => 'The options array.', + 'type' => 'blob', + 'size' => 'big', + 'serialize' => TRUE, + ), + ), + 'primary key' => array('name'), + ); + + return $schema; +} + +/** + * Implements hook_install(). + * + * Adds a 'default' option set for fresh installs. + */ +function flexslider_install() { + // Do nothing for now +} + +/** + * Implements hook_uninstall(). + */ +function flexslider_uninstall() { + variable_del('flexslider_debug'); + variable_del('flexslider_version'); +} + +/** + * Implements hook_requirements(). + */ +function flexslider_requirements($phase) { + $requirements = array(); + // Ensure translations don't break at install time + $t = get_t(); + + // Check to see if the flexslider library is available + if ($phase == 'runtime') { + $requirements['flexslider'] = array( + 'title' => $t('FlexSlider'), + // @todo have the version automatically detected + 'description' => $t('Version 2.0 installed'), + 'severity' => REQUIREMENT_OK, + ); + _flexslider_requirements_library_installed($requirements); + } + return $requirements; +} + +/** + * Implements hook_update_N(). + * + * Remove/Update table fields to better suit FlexSlider + */ +function flexslider_update_7001(&$sandbox) { + $field_new = array( + 'description' => 'The image style for normal images.', + 'type' => 'varchar', + 'length' => 255, + 'not null' => TRUE, + 'default' => 'flexslider_full', + ); + // Change the default image style + db_change_field('flexslider_optionset', 'imagestyle_normal', $field_new, array()); + // Drop the unused table column + db_drop_field('flexslider_optionset', 'imagestyle_thumb'); +} + +/** + * Implements hook_update_N(). + * + * Enables the Image module since it is now explicitly listed as a + * dependency. + */ +function flexslider_update_7002(&$sandbox) { + module_enable(array('image')); +} + +/** + * Implements hook_update_N(). + * + * Migrate settings from FlexSlider v1 to v2 + */ +function flexslider_update_7200(&$sandbox) { + $t = get_t(); + + $optionsets = flexslider_optionset_load_all(); + + foreach ($optionsets as $optionset) { + // Map old options to new keys/values + $optionset->options['animationSpeed'] = $optionset->options['animationDuration']; + $optionset->options['direction'] = $optionset->options['slidedirection']; + $optionset->options['keyboard'] = $optionset->options['keyboardnav']; + $optionset->options['startAt'] = $optionset->options['slidetostart']; + $optionset->options['start'] = $optionset->options['startCallback']; + $optionset->options['before'] = $optionset->options['beforeCallback']; + $optionset->options['after'] = $optionset->options['afterCallback']; + $optionset->options['end'] = $optionset->options['endCallback']; + + // Delete any options which no longer exist + unset($optionset->options['animationDuration']); + unset($optionset->options['slidedirection']); + unset($optionset->options['keyboardnav']); + unset($optionset->options['startCallback']); + unset($optionset->options['beforeCallback']); + unset($optionset->options['afterCallback']); + unset($optionset->options['endCallback']); + unset($optionset->options['controlsContainer']); // This value changed in the new version. We have to reset it to the default value + + // Merge in defaults for new options + $optionset->options += _flexslider_optionset_defaults(); + + // Save the updated optionset + flexslider_optionset_save($optionset); + } + drupal_set_message($t('Optionsets migrated. However it is recommended to go validate all your settings manually. Especially if you have callback functions defined. They may reference functions which no longer exist.'), 'warning'); +} + +function flexslider_update_7201(&$sandbox) { + $field_new = array( + 'description' => 'The image style for thumbnail images.', + 'type' => 'varchar', + 'length' => 255, + 'not null' => TRUE, + 'default' => 'flexslider_thumbnail', + ); + // Change the default image style + db_add_field('flexslider_optionset', 'imagestyle_thumbnail', $field_new, array()); +} + +/** + * Implements hook_update_N(). + * + * Remove the image style settings from the optionset + */ +function flexslider_update_7202(&$sandbox) { + db_drop_field('flexslider_optionset', 'imagestyle_normal'); + db_drop_field('flexslider_optionset', 'imagestyle_thumbnail'); +} + +/** + * Check if the library is available + * + * @param array $requirements + * Requirements definition + */ +function _flexslider_requirements_library_installed(&$requirements) { + $t = get_t(); + + $path = libraries_get_path('flexslider'); + $installed = file_exists($path . '/jquery.flexslider-min.js') && file_exists($path . '/jquery.flexslider.js'); + + // Check the results of the test + if (!$installed) { + $requirements['flexslider']['description'] = $t('FlexSlider library not found. Please consult the README.txt for installation instructions.'); + $requirements['flexslider']['severity'] = REQUIREMENT_ERROR; + $requirements['flexslider']['value'] = $t('FlexSlider library not found.'); + return; + } + + $js = file_exists($path . '/jquery.flexslider-min.js') ? fopen($path . '/jquery.flexslider-min.js', 'r') : fopen($path . '/jquery.flexslider.js', 'r'); + $header = fread($js, 64); + $matches = array(); + if (preg_match("/ v([0-9]+)\.([0-9]+)/", $header, $matches)) { + if (!($matches[1] == 2 and $matches[2] >= 0)) { + $requirements['flexslider']['description'] = $t('FlexSlider must be version 2.0 or higher, but lower than version 3.0. Please consult the README.txt for installation instructions.'); + $requirements['flexslider']['severity'] = REQUIREMENT_WARNING; + $requirements['flexslider']['value'] = $t('Incorrect version detected.'); + return; + } + else { + $version = $matches[1] . "." . $matches[2]; + variable_set('flexslider_version', $version); + $requirements['flexslider']['description'] = $t('Version %version installed', array( '%version' => $version)); + $requirements['flexslider']['value'] = $t('FlexSlider library installed.'); + return; + } + } + else { + $requirements['flexslider']['description'] = $t('FlexSlider version could not be determined. Please consult the README.txt for installation instructions.'); + $requirements['flexslider']['severity'] = REQUIREMENT_WARNING; + $requirements['flexslider']['value'] = $t('Unable to detect version.'); + } +} + +// @todo add hook_update_N function to migrate old option set data to new values diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider.make.example b/src/developerportal/all/modules/contrib/flexslider/flexslider.make.example new file mode 100755 index 0000000..b04741d --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider.make.example @@ -0,0 +1,9 @@ +; FlexSlider + +api = 2 +core = 7.x + +libraries[flexslider][download][type] = "get" +libraries[flexslider][download][url] = "https://github.com/woothemes/FlexSlider/zipball/master" +libraries[flexslider][directory_name] = "flexslider" +libraries[flexslider][type] = "library" diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider.module b/src/developerportal/all/modules/contrib/flexslider/flexslider.module new file mode 100755 index 0000000..8bd2f1b --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider.module @@ -0,0 +1,601 @@ + 'FlexSlider', + 'vendor url' => 'http://www.woothemes.com/flexslider/', + 'download url' => 'https://github.com/woothemes/FlexSlider', + 'version arguments' => array( + 'file' => 'jquery.flexslider-min.js', + // jQuery FlexSlider v2.1 + 'pattern' => '/jQuery FlexSlider v(\d+\.+\d+)/', + 'lines' => 2, + ), + 'files' => array( + 'js' => array( + 'jquery.flexslider-min.js', + ), + 'css' => array( + 'flexslider.css', + ), + ), + 'integration files' => array( + 'flexslider' => array( + 'css' => array('assets/css/flexslider_img.css'), + ), + ), + ); + + return $libraries; +} + +/** + * Implements hook_libraries_info_alter(). + */ +function flexslider_libraries_info_alter(&$libraries) { + $debug = variable_get('flexslider_debug', FALSE); + if ($debug) { + // Switch to the unminified version of the library + if (isset($libraries['flexslider'])) { + $libraries['flexslider']['files']['js'] = array( + 'jquery.flexslider.js', + ); + } + } + + // Add support for jQuery Easing module + if (module_exists('jqeasing')) { + $libraries['flexslider']['dependencies'][] = 'easing (>=1.3)'; + } +} + +/** + * Implements hook_library(). + * + * We also define FlexSlider through the core library callbacks + */ +function flexslider_library() { + $module_path = drupal_get_path('module', 'flexslider'); + $library_path = libraries_get_path('flexslider'); + + $libraries['flexslider'] = array( + 'title' => 'FlexSlider', + 'website' => 'http://flexslider.woothemes.com', + 'version' => FLEXSLIDER_VERSION, + 'js' => array( + $library_path . '/jquery.flexslider-min.js' => array( + 'scope' => 'footer', + ), + ), + 'css' => array( + $library_path . '/flexslider.css' => array( + 'type' => 'file', + 'media' => 'screen', + ), + $module_path . '/assets/css/flexslider_img.css' => array( + 'type' => 'file', + 'media' => 'screen', + ), + ), + ); + return $libraries; +} + +/** + * Implements hook_library_alter(). + */ +function flexslider_library_alter(&$libraries, $module) { + // Enable debug mode + if (FLEXSLIDER_DEBUG) { + if ($module == 'flexslider' and isset($libraries['flexslider'])) { + $libraries['flexslider']['js'] = array( + libraries_get_path() . '/jquery.flexslider.js' => array( + 'scope' => 'footer', + ), + ); + } + } +} + +/** + * Implements hook_permission(). + */ +function flexslider_permission() { + return array( + 'administer flexslider' => array( + 'title' => t('Administer the FlexSlider module'), + ), + ); +} + +/** + * Implements hook_menu(). + */ +function flexslider_menu() { + $items = array(); + + $items['admin/config/media/flexslider/advanced'] = array( + 'title' => 'Advanced settings', + 'description' => 'Configure the advanced flexslider module settings.', + 'page callback' => 'drupal_get_form', + 'page arguments' => array('flexslider_form_settings'), + 'access arguments' => array('administer flexslider'), + 'type' => MENU_LOCAL_TASK, + 'weight' => 2, + 'file' => 'flexslider.admin.inc', + ); + + return $items; +} + +/** + * Implements hook_help(). + */ +function flexslider_help($path, $arg) { + switch ($path) { + case 'admin/config/media/flexslider/edit/%': + return + '

      ' + . t('An option set defines exactly how a flexslider image gallery looks like on your site. ' + . 'It is s a combination of image styles for the various image sizes and FlexSlider library options.', array('@styles' => url('admin/config/media/image-styles'))) . '
      ' + . t('For a full documentation of all options, refer to the official @docs.', array('@docs' => l(t('FlexSlider documentation'), 'http://www.woothemes.com/flexslider/'))) + . '

      '; + } +} + +/** + * Implements hook_theme(). + */ +function flexslider_theme() { + return array( + // Flexslider container + 'flexslider' => array( + 'variables' => array('items' => array(), 'settings' => array()), + 'template' => 'theme/flexslider', + 'file' => 'theme/flexslider.theme.inc', + ), + + // Slide container + 'flexslider_list' => array( + 'variables' => array('items' => array(), 'settings' => array()), + 'file' => 'theme/flexslider.theme.inc', + ), + + // Slide item + 'flexslider_list_item' => array( + 'variables' => array('item' => array(), 'settings' => array(), 'caption' => ''), + 'file' => 'theme/flexslider.theme.inc', + ), + ); +} + +/** + * Implements hook_image_default_styles(). + */ +function flexslider_image_default_styles() { + $styles = array(); + + // Default image preset for FlexSlider + $styles['flexslider_full'] = array( + 'effects' => array( + array( + 'name' => 'image_scale_and_crop', + 'data' => array('width' => 800, 'height' => 500), + 'weight' => 0, + ), + ), + ); + + // Default image preset for FlexSlider thumbnails + $styles['flexslider_thumbnail'] = array( + 'effects' => array( + array( + 'name' => 'image_scale_and_crop', + 'data' => array('width' => 160, 'height' => 100), + 'weight' => 0, + ), + ), + ); + + return $styles; +} + +/** + * Implements hook_ctools_plugin_api(). + */ +function flexslider_ctools_plugin_api($owner, $api) { + if ($owner == 'flexslider' && $api == 'flexslider_default_preset') { + return array('version' => 1); + } +} + +/** + * Implements hook_ctools_plugin_directory(). + */ +function flexslider_ctools_plugin_directory($module, $type) { + if ($type == 'export_ui') { + return 'plugins/export_ui'; + } +} + +/** + * Create a new optionset object + * + * Note that this function does not save the optionset to the database. + * @see flexslider_optionset_save() + */ +function flexslider_optionset_create($values = array()) { + ctools_include('export'); + $optionset = ctools_export_crud_new('flexslider_optionset'); + + // Set the options to an array + $optionset->options = array(); + + // Assign specified values + if (isset($values['name'])) { + $optionset->name = $values['name']; + } + if (isset($values['title'])) { + $optionset->title = $values['title']; + } + if (isset($values['options']) and is_array($values['options'])) { + $optionset->options = $values['options']; + } + + // Merge default settings with any given settings + $optionset_defaults = _flexslider_optionset_defaults(); + $optionset->options = $optionset_defaults += $optionset->options; + + return $optionset; +} + +/** + * Fetches all option sets from the database and returns them as an associative array. + */ +function flexslider_optionset_load_all() { + ctools_include('export'); + $optionsets = ctools_export_crud_load_all('flexslider_optionset'); + foreach ($optionsets as $optionset) { + // Ensure the optionset is typecast after being loaded from DB + _flexslider_typecast_optionset($optionset->options); + } + return $optionsets; +} + +/** + * Fetches the given option set and returns it as an object or NULL, if no set could be found. + */ +function flexslider_optionset_load($optionset_name) { + ctools_include('export'); + $optionset = ctools_export_crud_load('flexslider_optionset', $optionset_name); + // Ensure the optionset is typecast after being loaded from DB + _flexslider_typecast_optionset($optionset->options); + return $optionset; +} + +/** + * Checks whether an option set with the given name already exists. + */ +function flexslider_optionset_exists($optionset_name) { + ctools_include('export'); + $optionset = ctools_export_crud_load('flexslider_optionset', $optionset_name); + return isset($optionset->name); +} + +/** + * Saves the given option set to the database. + * Set the $new flag if this set has not been written before. + * + * @return object|boolean + * Returns the newly saved object, FALSE otherwise. + */ +function flexslider_optionset_save($optionset, $new = FALSE) { + // If the machine name is missing or already in use, return an error. + if (empty($optionset->name) or (FALSE != flexslider_optionset_exists($optionset->name) and $new)) { + return FALSE; + } + + // Check for an invalid list of options + if (isset($optionset->options) and !is_array($optionset->options)) { + return FALSE; + } + + + // If the title is missing, default to the name + if (empty($optionset->title)) { + $optionset->title = $optionset->name; + } + + // Merge default settings with any given settings + $optionset_defaults = _flexslider_optionset_defaults(); + $optionset->options = $optionset_defaults += $optionset->options; + + // Prepare the database values. + $db_values = array( + 'name' => $optionset->name, + 'title' => $optionset->title, + 'options' => _flexslider_typecast_optionset($optionset->options), + ); + + if ($new) { + $result = drupal_write_record('flexslider_optionset', $db_values); + } + else { + $result = drupal_write_record('flexslider_optionset', $db_values, 'name'); + } + + // Return the object if the values were saved successfully. + if (($new and SAVED_NEW == $result) or (!$new and SAVED_UPDATED == $result)) { + return $optionset; + } + + // Otherwise, an error occured + return FALSE; +} + +/** + * Deletes the given option set from the database. + * + * @param object|string $optionset + * Optionset object or machine name + */ +function flexslider_optionset_delete($optionset) { + if (isset($optionset->name)) { + $name = $optionset->name; + } + else { + $name = $optionset; + } + db_delete('flexslider_optionset')->condition('name', $name)->execute(); +} + +/* + * This function loads the required JavaScripts and settings for a flexslider + * instance. + * + * @param string $id [optional] + * ID Attribute for FlexSlider container + * @param object|strong $optionset [optional] + * Option set to load or the machine name of an existing optionset + */ +function flexslider_add($id = NULL, $optionset = NULL) { + // Check optionset value + if (is_string($optionset)) { + $name = $optionset; + $optionset = flexslider_optionset_load($name); + if (empty($optionset)) { + watchdog('flexslider', 'Invalid optionset name supplied to flexslider_add: @name', array('@name' => $name), WATCHDOG_WARNING); + return; + } + } + + // Static array to remember which scripts are already attached. + // @todo not currently in use + $cache = &drupal_static(__FUNCTION__, array()); + + // @todo investigate the best way to cache data loaded from libraries_load() + libraries_load('flexslider'); + + // If the ID or optionset aren't set, it is assumed the settings will be set + // manually via the calling module/theme + if (!empty($optionset) && !in_array($optionset->name, $cache)) { + $cache[] = $optionset->name; + $js_setting['optionsets'] = array( + $optionset->name => $optionset->options, + ); + drupal_add_js(array('flexslider' => $js_setting), 'setting'); + } + + if (!empty($id)) { + // JavaScript settings + $js_settings = array( + 'instances' => array( + $id => $optionset->name, + ), + ); + // @todo add alter hook for optionset + drupal_add_js(array('flexslider' => $js_settings), 'setting'); + } + // Loader JavaScript + drupal_add_js(drupal_get_path('module', 'flexslider') . '/assets/js/flexslider.load.js', array('type' => 'file', 'scope' => 'footer')); +} + +/** + * Default settings for a newly created option set + * + * @param string $key [optional] + * Get specific default value + * + * @see https://github.com/woothemes/FlexSlider/blob/master/README.mdown + * @see https://github.com/woothemes/FlexSlider/wiki/FlexSlider-Properties + */ +function _flexslider_optionset_defaults($key = NULL) { + + // We add typecasts to ensure the variables get json encoded properly + + $defaults = array( + // v2.x options + 'namespace' => 'flex-', + 'selector' => '.slides > li', + 'easing' => 'swing', + 'direction' => 'horizontal', + 'reverse' => FALSE, // @todo verify data value + 'smoothHeight' => FALSE, // @todo verify data value + 'startAt' => 0, + 'animationSpeed' => 600, + 'initDelay' => 0, + 'useCSS' => TRUE, + 'touch' => TRUE, + 'video' => FALSE, + 'keyboard' => TRUE, + 'multipleKeyboard' => FALSE, + 'mousewheel' => FALSE, // requires https://github.com/brandonaaron/jquery-mousewheel @todo add to make file + 'controlsContainer' => '.flex-control-nav-container', + 'sync' => '', + 'asNavFor' => '', + 'itemWidth' => 0, + 'itemMargin' => 0, + 'minItems' => 0, + 'maxItems' => 0, + 'move' => 0, + //'start' => '', + //'before' => '', + //'after' => '', + //'end' => '', + //'added' => '', + //'removed' => '', + + // @todo verify the 1.x options are still valid + // v1.x options + 'animation' => 'fade', + //'animationDuration' => 6000, -- replaced by 'animationSpeed' + //'slidedirection' => 'horizontal', -- replaced by "direction" + 'slideshow' => TRUE, + 'slideshowSpeed' => 7000, + 'directionNav' => TRUE, + 'controlNav' => TRUE, + //'keyboardnav' => TRUE, -- replaced by 'keyboard' + //'mousewheel' => FALSE, + 'prevText' => t('Previous'), + 'nextText' => t('Next'), + 'pausePlay' => FALSE, + 'pauseText' => t('Pause'), + 'playText' => t('Play'), + 'randomize' => FALSE, + 'thumbCaptions' => FALSE, + 'thumbCaptionsBoth' => FALSE, + //'slidetostart' => 0, // integer value, not boolean -- replace by "startAt" + 'animationLoop' => TRUE, + 'pauseOnAction' => TRUE, + 'pauseOnHover' => FALSE, + //'controlscontainer' => '.flex-nav-container', -- updated in v2 + 'manualControls' => '', + //'startCallback' => 'function() {}', -- replace by 'start' + //'beforeCallback' => 'function() {}', -- replaced by 'before' + //'afterCallback' => 'function() {}', -- replaced by 'after' + //'endCallback' => 'function() {}', -- replaced by 'end' + ); + + // Typecast the values + _flexslider_typecast_optionset($defaults); + + // Return the specific item + if (isset($key) and array_key_exists($key, $defaults)) { + return $defaults[$key]; + } + + // Return all items + return $defaults; +} + +/** + * Adds the typecasting to the values so that the generated + * json array keeps the right values + */ +function _flexslider_typecast_optionset(&$options) { + if (isset($options) && !empty($options)) { + foreach ($options as $key => $value) { + switch ($key) { + case 'namespace': + case 'selector': + case 'easing': + case 'direction': + case 'controlsContainer': + case 'sync': + case 'asNavFor': + case 'fade': + case 'prevText': + case 'nextText': + case 'pauseText': + case 'playText': + case 'manualControls': + $options[$key] = (string)$value; + break; + case 'startAt': + case 'animationSpeed': + case 'initDelay': + case 'itemWidth': + case 'itemMargin': + case 'minItems': + case 'maxItems': + case 'move': + $options[$key] = (int)$value; + break; + case 'controlNav': + if ($value == 'thumbnails') { + $options[$key] = (string)$value; + break; + } + case 'reverse': + case 'smoothHeight': + case 'useCSS': + case 'touch': + case 'video': + case 'keyboard': + case 'multipleKeyboard': + case 'mouseWheel': + case 'slideshow': + case 'directionNav': + case 'pausePlay': + case 'randomize': + case 'thumbCaptions': + case 'thumbCaptionsBoth': + case 'animationLoop': + case 'pauseOnAction': + case 'pauseOnHover': + $options[$key] = (boolean)$value; + break; + } + } + } +} + +/** + * List of all easing methods available from jQuery Easing v1.3 + */ +function _flexslider_jqeasing_options() { + return array( + "jswing" => "jswing", + "def" => "def", + "easeInQuad" => "easeInQuad", + "easeOutQuad" => "easeOutQuad", + "easeInOutQuad" => "easeInOutQuad", + "easeInCubic" => "easeInCubic", + "easeOutCubic" => "easeOutCubic", + "easeInOutCubic" => "easeInOutCubic", + "easeInQuart" => "easeInQuart", + "easeOutQuart" => "easeOutQuart", + "easeInOutQuart" => "easeInOutQuart", + "easeInQuint" => "easeInQuint", + "easeOutQuint" => "easeOutQuint", + "easeInOutQuint" => "easeInOutQuint", + "easeInSine" => "easeInSine", + "easeOutSine" => "easeOutSine", + "easeInOutSine" => "easeInOutSine", + "easeInExpo" => "easeInExpo", + "easeOutExpo" => "easeOutExpo", + "easeInOutExpo" => "easeInOutExpo", + "easeInCirc" => "easeInCirc", + "easeOutCirc" => "easeOutCirc", + "easeInOutCirc" => "easeInOutCirc", + "easeInElastic" => "easeInElastic", + "easeOutElastic" => "easeOutElastic", + "easeInOutElastic" => "easeInOutElastic", + "easeInBack" => "easeInBack", + "easeOutBack" => "easeOutBack", + "easeInOutBack" => "easeInOutBack", + "easeInBounce" => "easeInBounce", + "easeOutBounce" => "easeOutBounce", + "easeInOutBounce" => "easeInOutBounce", + ); +} \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider.test b/src/developerportal/all/modules/contrib/flexslider/flexslider.test new file mode 100755 index 0000000..a41e9a1 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider.test @@ -0,0 +1,195 @@ + + */ + + +class FlexsliderTestCase extends DrupalWebTestCase { + protected $admin_user; + protected $any_user; + + public static function getInfo() { + return array( + 'name' => t('FlexSlider tests'), + 'description' => t('Test the FlexSlider presets, configuration options and permission controls.'), + 'group' => t('FlexSlider'), + ); + } + + function setUp() { + parent::setUp('libraries', 'ctools', 'flexslider'); + + // Create users + $this->admin_user = $this->drupalCreateUser(array('administer flexslider')); + $this->any_user = $this->drupalCreateuser(array('access administration pages')); + } + + function testAdminAccess() { + + // Login as the admin user + $this->drupalLogin($this->admin_user); + + // Load admin page + $this->drupalGet('admin/config/media/flexslider'); + $this->assertResponse(200, t('Administrative permission allows access to administration page.')); + + // Logout as admin user + $this->drupalLogout(); + + // Login as any user + $this->drupalLogin($this->any_user); + + // Attempt to load admin page + $this->drupalGet('admin/config/media/flexslider'); + $this->assertResponse(403, t('Regular users do not have access to administrative pages.')); + } + + function testOptionSetCrud() { + // Login as the admin user + $this->drupalLogin($this->admin_user); + $testsets = array('testset', 'testset2'); + + foreach ($testsets as $name) { + // Create a new optionset with default settings + $optionset = flexslider_optionset_create(array('name' => $name)); + $this->assertTrue($optionset->name == $name, t('Optionset object created: @name', array('@name' => $optionset->name))); + $this->assertFalse(empty($optionset->options), t('Create optionset works.')); + + // Save the optionset to the database + $optionset = flexslider_optionset_save($optionset, TRUE); + $this->assertFalse(FALSE === $optionset, t('Optionset saved to database.')); + + // Read the values from the database + $optionset = flexslider_optionset_load($name); + + $this->assertTrue(is_object($optionset), t('Loaded option set.')); + $this->assertEqual($name, $optionset->name, t('Loaded name matches: @name', array('@name' => $optionset->name))); + + $default_optionset = flexslider_optionset_create(); + foreach ($default_optionset->options as $key => $value) { + $this->assertEqual($value, $optionset->options[$key], t('Option @option matches saved value.', array('@option' => $key))); + } + + } + + // Load all optionsets + $optionsets = flexslider_optionset_load_all(); + $this->assertTrue(is_array($optionsets), t('Array of optionsets loaded')); + $this->assertTrue(count($optionsets) == 3, t('Proper number of optionsets loaded (two created, one default): 3')); + + // Ensure they all loaded correctly + foreach ($optionsets as $optionset) { + $this->assertTrue(isset($optionset->name), t('Loaded optionsets have a defined machine name')); + $this->assertTrue(isset($optionset->title), t('Loaded optionsets have a defined human readable name (title)')); + $this->assertTrue(isset($optionset->options), t('Loaded optionsets have a defined array of options')); + } + + // Update the optionset + $test_options = _flexslider_test_options(); + $test_options = $test_options['valid']; + + // Load one of the test option sets + $optionset = flexslider_optionset_load($testsets[0]); + + // Change the settings + $optionset->options += $test_options['set2']; + + // Save the updated values + $optionset = flexslider_optionset_save($optionset); + $this->assertFalse(FALSE == $optionset, t('Saved updates to optionset to database.')); + + // Load the values from the database again + $optionset = flexslider_optionset_load($testsets[0]); + + // Compare settings to the test options + foreach ($test_options['set2'] as $key => $value) { + $this->assertEqual($optionset->options[$key], $value, t('Saved value matches set value: @key', array('@key' => $key))); + } + + // Delete the optionset + $this->assertTrue(flexslider_optionset_exists($optionset->name), t('Optionset exists and is ready to be deleted.')); + flexslider_optionset_delete($optionset->name); + + // Ensure the delete is successfull + $this->assertFalse(flexslider_optionset_exists($optionset->name), t('Optionset successfully deleted: @name', array('@name' => $optionset->name))); + } + + function testOptionSetForm() { + + // Login with admin user + $this->drupalLogin($this->admin_user); + + // ------------ Test Option Set Add ------------ // + // Load create form + $this->drupalGet('admin/config/media/flexslider/add'); + $this->assertResponse(200, t('Administrative user can reach the "Add" form.')); + + // Save new optionset + $optionset = array(); + $optionset['title'] = 'testset'; + $optionset['name'] = 'testset'; + $this->drupalPost('admin/config/media/flexslider/add', $optionset, t('Save')); + $this->assertResponse(200); + $this->assertText('testset has been created.', t('Successfully saved the new optionset "testset"')); + + // Attempt to save option set of the same name again + $this->drupalPost('admin/config/media/flexslider/add', $optionset, t('Save')); + $this->assertResponse(200); + $this->assertText("The machine-readable name is already in use. It must be unique.", t("Blocked the creation of duplicate named optionset.")); + + // ------------ Test Option Set Edit ------------ // + // Attempt to save each option value + $options = _flexslider_test_options(); + + foreach ($options['valid'] as $testset) { + $this->drupalPost('admin/config/media/flexslider/list/default/edit', $testset, t('Save')); + $this->assertResponse(200); + + // Test saved values loaded into form + $this->drupalGet('admin/config/media/flexslider/list/default/edit'); + $this->assertResponse(200, t('Default optionset reloaded.')); + foreach ($testset as $key => $option) { + $this->assertFieldByName($key, $option, t('Value for @key appears in form correctly.', array('@key' => $key))); + } + } + + // ------------ Test Option Set Delete ------------ // + $testset = flexslider_optionset_load('testset'); + + // Test the delete workflow + $this->drupalGet("admin/config/media/flexslider/list/$testset->name/delete"); + $this->assertResponse(200); + $this->assertText("Are you sure you want to delete $testset->name?", t('Delete confirmation form loaded.')); + $this->drupalPost("admin/config/media/flexslider/list/$testset->name/delete", '', 'Delete'); + $this->assertResponse(200); + $this->assertText("The item has been deleted.", t('Deleted test set using form.')); + } + +} + +/** + * Test configuration options + * + * @return array + * Returns an array of options to test saving. + */ +function _flexslider_test_options() { + // Valid option set data + $valid = array( + 'set1' => _flexslider_optionset_defaults(), + 'set2' => array( + 'animation' => 'slide', + 'startAt' => 4, + // @todo add more option tests + ), + ); + + // Invalid edge cases + $error = array(); + + return array('valid' => $valid, 'error' => $error); +} \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_example/README.txt b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/README.txt new file mode 100755 index 0000000..d6b91cc --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/README.txt @@ -0,0 +1,12 @@ +FlexSlider Example +================== + +Contains sample configurations for FlexSlider. You can use these as a starting point for creating your own FlexSlider configurations. + +Dependencies +------------ + +- FlexSlider Views +- FlexSlider Fields +- FlexSlider +- Context \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.context.inc b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.context.inc new file mode 100755 index 0000000..872cd83 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.context.inc @@ -0,0 +1,47 @@ +disabled = FALSE; /* Edit this to true to make a default context disabled initially */ + $context->api_version = 3; + $context->name = 'flexslider_example_thumbnail'; + $context->description = 'Add thumbnail block to thumbnail slideshow'; + $context->tag = 'FlexSlider Example'; + $context->conditions = array( + 'views' => array( + 'values' => array( + 'flexslider_views_example:page_2' => 'flexslider_views_example:page_2', + ), + ), + ); + $context->reactions = array( + 'block' => array( + 'blocks' => array( + 'views-0070a91ad114185c9bacdc9eb0b88ce2' => array( + 'module' => 'views', + 'delta' => '0070a91ad114185c9bacdc9eb0b88ce2', + 'region' => 'content', + 'weight' => '-10', + ), + ), + ), + ); + $context->condition_mode = 0; + + // Translatables + // Included for use with string extractors like potx. + t('Add thumbnail block to thumbnail slideshow'); + t('FlexSlider Example'); + $export['flexslider_example_thumbnail'] = $context; + + return $export; +} diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.features.field.inc b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.features.field.inc new file mode 100755 index 0000000..4f31702 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.features.field.inc @@ -0,0 +1,176 @@ + array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_flexslider_example_image', + 'foreign keys' => array( + 'fid' => array( + 'columns' => array( + 'fid' => 'fid', + ), + 'table' => 'file_managed', + ), + ), + 'indexes' => array( + 'fid' => array( + 0 => 'fid', + ), + ), + 'locked' => '0', + 'module' => 'image', + 'settings' => array( + 'default_image' => 0, + 'uri_scheme' => 'public', + ), + 'translatable' => '0', + 'type' => 'image', + ), + 'field_instance' => array( + 'bundle' => 'flexslider_example', + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'hidden', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => '0', + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_flexslider_example_image', + 'label' => 'FlexSlider Example Image', + 'required' => 0, + 'settings' => array( + 'alt_field' => 0, + 'default_image' => 0, + 'file_directory' => 'flexslider_example', + 'file_extensions' => 'png gif jpg jpeg', + 'max_filesize' => '', + 'max_resolution' => '', + 'min_resolution' => '', + 'title_field' => 0, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'image', + 'settings' => array( + 'preview_image_style' => 'thumbnail', + 'progress_indicator' => 'throbber', + ), + 'type' => 'image_image', + 'weight' => '-4', + ), + ), + ); + + // Exported field: 'node-flexslider_example-field_flexslider_example_slidesh'. + $fields['node-flexslider_example-field_flexslider_example_slidesh'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_flexslider_example_slidesh', + 'foreign keys' => array( + 'fid' => array( + 'columns' => array( + 'fid' => 'fid', + ), + 'table' => 'file_managed', + ), + ), + 'indexes' => array( + 'fid' => array( + 0 => 'fid', + ), + ), + 'locked' => '0', + 'module' => 'image', + 'settings' => array( + 'default_image' => 0, + 'uri_scheme' => 'public', + ), + 'translatable' => '0', + 'type' => 'image', + ), + 'field_instance' => array( + 'bundle' => 'flexslider_example', + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'flexslider_fields', + 'settings' => array( + 'caption' => 1, + 'image_style' => '', + 'optionset' => 'flexslider_default_thumbnail_slider', + ), + 'type' => 'flexslider', + 'weight' => '1', + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_flexslider_example_slidesh', + 'label' => 'FlexSlider Example Slideshow', + 'required' => 0, + 'settings' => array( + 'alt_field' => 0, + 'default_image' => 0, + 'file_directory' => 'flexslider_example', + 'file_extensions' => 'png gif jpg jpeg', + 'max_filesize' => '', + 'max_resolution' => '', + 'min_resolution' => '', + 'title_field' => 1, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'image', + 'settings' => array( + 'preview_image_style' => 'thumbnail', + 'progress_indicator' => 'throbber', + ), + 'type' => 'image_image', + 'weight' => '-3', + ), + ), + ); + + // Translatables + // Included for use with string extractors like potx. + t('FlexSlider Example Image'); + t('FlexSlider Example Slideshow'); + + return $fields; +} diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.features.inc b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.features.inc new file mode 100755 index 0000000..1a250df --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.features.inc @@ -0,0 +1,47 @@ + "3"); + } + list($module, $api) = func_get_args(); + if ($module == "flexslider" && $api == "flexslider_default_preset") { + return array("version" => "1"); + } + list($module, $api) = func_get_args(); + if ($module == "strongarm" && $api == "strongarm") { + return array("version" => "1"); + } +} + +/** + * Implements hook_views_api(). + */ +function flexslider_example_views_api() { + return array("version" => "3.0"); +} + +/** + * Implements hook_node_info(). + */ +function flexslider_example_node_info() { + $items = array( + 'flexslider_example' => array( + 'name' => t('FlexSlider Example'), + 'base' => 'node_content', + 'description' => t('Used for generating example FlexSlider implementations'), + 'has_title' => '1', + 'title_label' => t('Title'), + 'help' => '', + ), + ); + return $items; +} diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.features.menu_custom.inc b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.features.menu_custom.inc new file mode 100755 index 0000000..5c409f6 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.features.menu_custom.inc @@ -0,0 +1,26 @@ + 'menu-flexslider-example', + 'title' => 'FlexSlider Example', + 'description' => 'Example FlexSlider implementations', + ); + // Translatables + // Included for use with string extractors like potx. + t('Example FlexSlider implementations'); + t('FlexSlider Example'); + + + return $menus; +} diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.flexslider_default_preset.inc b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.flexslider_default_preset.inc new file mode 100755 index 0000000..f90ab1f --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.flexslider_default_preset.inc @@ -0,0 +1,303 @@ +disabled = FALSE; /* Edit this to true to make a default preset disabled initially */ + $preset->api_version = 1; + $preset->name = 'flexslider_carousel_with_min_and_max_ranges'; + $preset->title = 'FlexSlider carousel with min and max ranges'; + $preset->theme = 'classic'; + $preset->options = array( + 'namespace' => 'flex-', + 'selector' => '.slides > li', + 'easing' => 'swing', + 'direction' => 'horizontal', + 'reverse' => 0, + 'smoothHeight' => 0, + 'startAt' => '0', + 'animationSpeed' => '600', + 'initDelay' => '0', + 'useCSS' => 1, + 'touch' => 1, + 'video' => 0, + 'keyboard' => 1, + 'multipleKeyboard' => 0, + 'mousewheel' => 0, + 'controlsContainer' => '.flex-control-nav-container', + 'sync' => '', + 'asNavFor' => '', + 'itemWidth' => '210', + 'itemMargin' => '5', + 'minItems' => '2', + 'maxItems' => '4', + 'move' => '0', + 'animation' => 'slide', + 'slideshow' => 0, + 'slideshowSpeed' => '7000', + 'directionNav' => 1, + 'controlNav' => '1', + 'prevText' => 'Previous', + 'nextText' => 'Next', + 'pausePlay' => 0, + 'pauseText' => 'Pause', + 'playText' => 'Play', + 'randomize' => 0, + 'animationLoop' => 0, + 'pauseOnAction' => 1, + 'pauseOnHover' => 0, + 'manualControls' => '', + ); + $export['flexslider_carousel_with_min_and_max_ranges'] = $preset; + + $preset = new stdClass(); + $preset->disabled = FALSE; /* Edit this to true to make a default preset disabled initially */ + $preset->api_version = 1; + $preset->name = 'flexslider_default_basic_carousel'; + $preset->title = 'Basic Carousel'; + $preset->theme = 'classic'; + $preset->options = array( + 'namespace' => 'flex-', + 'selector' => '.slides > li', + 'easing' => 'swing', + 'direction' => 'horizontal', + 'reverse' => 0, + 'smoothHeight' => 0, + 'startAt' => '0', + 'animationSpeed' => '600', + 'initDelay' => '0', + 'useCSS' => 1, + 'touch' => 1, + 'video' => 0, + 'keyboard' => 1, + 'multipleKeyboard' => 0, + 'mousewheel' => 0, + 'controlsContainer' => '.flex-control-nav-container', + 'sync' => '', + 'asNavFor' => '', + 'itemWidth' => '210', + 'itemMargin' => '5', + 'minItems' => '2', + 'maxItems' => '2', + 'move' => '0', + 'animation' => 'slide', + 'slideshow' => 0, + 'slideshowSpeed' => '7000', + 'directionNav' => 1, + 'controlNav' => '1', + 'prevText' => 'Previous', + 'nextText' => 'Next', + 'pausePlay' => 1, + 'pauseText' => 'Pause', + 'playText' => 'Play', + 'randomize' => 0, + 'animationLoop' => 0, + 'pauseOnAction' => 1, + 'pauseOnHover' => 1, + 'manualControls' => '', + ); + $export['flexslider_default_basic_carousel'] = $preset; + + $preset = new stdClass(); + $preset->disabled = FALSE; /* Edit this to true to make a default preset disabled initially */ + $preset->api_version = 1; + $preset->name = 'flexslider_default_slider_thumbnail_controlnav'; + $preset->title = 'slider w/thumbnail controlnav pattern'; + $preset->theme = 'classic'; + $preset->options = array( + 'namespace' => 'flex-', + 'selector' => '.slides > li', + 'easing' => 'swing', + 'direction' => 'horizontal', + 'reverse' => 0, + 'smoothHeight' => 1, + 'startAt' => '0', + 'animationSpeed' => '600', + 'initDelay' => '0', + 'useCSS' => 1, + 'touch' => 1, + 'video' => 0, + 'keyboard' => 1, + 'multipleKeyboard' => 0, + 'mousewheel' => 0, + 'controlsContainer' => '.flex-control-nav-container', + 'sync' => '', + 'asNavFor' => '', + 'itemWidth' => '0', + 'itemMargin' => '0', + 'minItems' => '0', + 'maxItems' => '0', + 'move' => '0', + 'animation' => 'slide', + 'slideshow' => 1, + 'slideshowSpeed' => '7000', + 'directionNav' => 1, + 'controlNav' => 'thumbnails', + 'prevText' => 'Previous', + 'nextText' => 'Next', + 'pausePlay' => 0, + 'pauseText' => 'Pause', + 'playText' => 'Play', + 'randomize' => 0, + 'animationLoop' => 1, + 'pauseOnAction' => 1, + 'pauseOnHover' => 1, + 'manualControls' => '', + ); + $export['flexslider_default_slider_thumbnail_controlnav'] = $preset; + + $preset = new stdClass(); + $preset->disabled = FALSE; /* Edit this to true to make a default preset disabled initially */ + $preset->api_version = 1; + $preset->name = 'flexslider_default_slider_w_thumbnail_slider'; + $preset->title = 'Slider w/thumbnail slider'; + $preset->theme = 'classic'; + $preset->options = array( + 'namespace' => 'flex-', + 'selector' => '.slides > li', + 'easing' => 'swing', + 'direction' => 'horizontal', + 'reverse' => 0, + 'smoothHeight' => 0, + 'startAt' => '0', + 'animationSpeed' => '600', + 'initDelay' => '0', + 'useCSS' => 1, + 'touch' => 1, + 'video' => 0, + 'keyboard' => 1, + 'multipleKeyboard' => 0, + 'mousewheel' => 0, + 'controlsContainer' => '.flex-control-nav-container', + 'sync' => '#flexslider-2', + 'asNavFor' => '', + 'itemWidth' => '0', + 'itemMargin' => '0', + 'minItems' => '0', + 'maxItems' => '0', + 'move' => '0', + 'animation' => 'slide', + 'slideshow' => 0, + 'slideshowSpeed' => '7000', + 'directionNav' => 1, + 'controlNav' => '0', + 'prevText' => 'Previous', + 'nextText' => 'Next', + 'pausePlay' => 0, + 'pauseText' => 'Pause', + 'playText' => 'Play', + 'randomize' => 0, + 'animationLoop' => 0, + 'pauseOnAction' => 1, + 'pauseOnHover' => 0, + 'manualControls' => '', + ); + $export['flexslider_default_slider_w_thumbnail_slider'] = $preset; + + $preset = new stdClass(); + $preset->disabled = FALSE; /* Edit this to true to make a default preset disabled initially */ + $preset->api_version = 1; + $preset->name = 'flexslider_default_thumbnail_captions'; + $preset->title = 'FlexSlider Default Thumbnail Captions'; + $preset->theme = 'classic'; + $preset->options = array( + 'namespace' => 'flex-', + 'selector' => '.slides > li', + 'easing' => 'swing', + 'direction' => 'horizontal', + 'reverse' => 0, + 'smoothHeight' => 0, + 'startAt' => '0', + 'animationSpeed' => '600', + 'initDelay' => '0', + 'useCSS' => 1, + 'touch' => 1, + 'video' => 0, + 'keyboard' => 1, + 'multipleKeyboard' => 0, + 'mousewheel' => 0, + 'controlsContainer' => '.flex-control-nav-container', + 'sync' => '', + 'asNavFor' => '', + 'itemWidth' => '0', + 'itemMargin' => '0', + 'minItems' => '0', + 'maxItems' => '0', + 'move' => '0', + 'animation' => 'fade', + 'slideshow' => 1, + 'slideshowSpeed' => '7000', + 'directionNav' => 1, + 'controlNav' => 'thumbnails', + 'prevText' => 'Previous', + 'nextText' => 'Next', + 'pausePlay' => 0, + 'pauseText' => 'Pause', + 'playText' => 'Play', + 'randomize' => 0, + 'thumbCaptions' => 1, + 'animationLoop' => 1, + 'pauseOnAction' => 1, + 'pauseOnHover' => 0, + 'manualControls' => '', + ); + $export['flexslider_default_thumbnail_captions'] = $preset; + + $preset = new stdClass(); + $preset->disabled = FALSE; /* Edit this to true to make a default preset disabled initially */ + $preset->api_version = 1; + $preset->name = 'flexslider_default_thumbnail_slider'; + $preset->title = 'Thumbnail Slider'; + $preset->theme = 'classic'; + $preset->options = array( + 'namespace' => 'flex-', + 'selector' => '.slides > li', + 'easing' => 'swing', + 'direction' => 'horizontal', + 'reverse' => 0, + 'smoothHeight' => 1, + 'startAt' => '0', + 'animationSpeed' => '600', + 'initDelay' => '0', + 'useCSS' => 1, + 'touch' => 1, + 'video' => 0, + 'keyboard' => 1, + 'multipleKeyboard' => 0, + 'mousewheel' => 0, + 'controlsContainer' => '.flex-control-nav-container', + 'sync' => '', + 'asNavFor' => '#flexslider-1', + 'itemWidth' => '210', + 'itemMargin' => '5', + 'minItems' => '', + 'maxItems' => '0', + 'move' => '0', + 'animation' => 'slide', + 'slideshow' => 0, + 'slideshowSpeed' => '7000', + 'directionNav' => 1, + 'controlNav' => '0', + 'prevText' => 'Previous', + 'nextText' => 'Next', + 'pausePlay' => 0, + 'pauseText' => 'Pause', + 'playText' => 'Play', + 'randomize' => 0, + 'animationLoop' => 0, + 'pauseOnAction' => 1, + 'pauseOnHover' => 0, + 'manualControls' => '', + ); + $export['flexslider_default_thumbnail_slider'] = $preset; + + return $export; +} diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.info b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.info new file mode 100755 index 0000000..e960cba --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.info @@ -0,0 +1,39 @@ +name = FlexSlider Example +description = Sample implementation of FlexSlider +core = 7.x +package = FlexSlider +php = 5.2.4 +dependencies[] = context +dependencies[] = features +dependencies[] = flexslider +dependencies[] = flexslider_fields +dependencies[] = flexslider_views +dependencies[] = image +dependencies[] = menu +dependencies[] = strongarm +dependencies[] = views +features[context][] = flexslider_example_thumbnail +features[ctools][] = context:context:3 +features[ctools][] = flexslider:flexslider_default_preset:1 +features[ctools][] = strongarm:strongarm:1 +features[ctools][] = views:views_default:3.0 +features[features_api][] = api:1 +features[field][] = node-flexslider_example-field_flexslider_example_image +features[field][] = node-flexslider_example-field_flexslider_example_slidesh +features[flexslider_optionset][] = flexslider_carousel_with_min_and_max_ranges +features[flexslider_optionset][] = flexslider_default_basic_carousel +features[flexslider_optionset][] = flexslider_default_slider_thumbnail_controlnav +features[flexslider_optionset][] = flexslider_default_slider_w_thumbnail_slider +features[flexslider_optionset][] = flexslider_default_thumbnail_captions +features[flexslider_optionset][] = flexslider_default_thumbnail_slider +features[menu_custom][] = menu-flexslider-example +features[node][] = flexslider_example +features[variable][] = field_bundle_settings_node__flexslider_example +features[views_view][] = flexslider_views_example + +; Information added by Drupal.org packaging script on 2015-07-30 +version = "7.x-2.0-rc1" +core = "7.x" +project = "flexslider" +datestamp = "1438285141" + diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.install b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.install new file mode 100755 index 0000000..c853fcc --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.install @@ -0,0 +1,44 @@ + + */ + +/** + * Implements hook_uninstall(). + */ +function flexslider_example_uninstall() { + // Collect all the example nodes and delete them since core/features won't do + // this for us + // @see [#1840288] + + $query = new EntityFieldQuery(); + $query->entityCondition('entity_type', 'node') + ->entityCondition('bundle', 'flexslider_example'); + + $results = $query->execute(); + + // Ensure we have some nodes + if (!empty($results['node'])) { + $nids = array_keys($results['node']); + node_delete_multiple($nids); + } +} + + + +/** + * Implements hook_update_N(). + * + * Checks for the Context module. Disables if not present. + */ +function flexslider_example_update_7001(&$sandbox) { + if (!module_exists('context')) { + module_disable(array('flexslider_example')); + drupal_set_message(t('FlexSlider Example has been disabled as it now requires the !context module which is not currently available. Please download and enable the !context module and re-enable the FlexSlider Example module', array('!context' => l('Context', 'http://drupal.org/project/context'))), 'warning'); + } +} + diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.module b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.module new file mode 100755 index 0000000..683e404 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.module @@ -0,0 +1,55 @@ + + */ + +@include 'flexslider_example.features.inc'; + +/** + * Generate the sample content + */ +function flexslider_example_generate_content() { + $images = array( + 'flexslider-sample-1.jpg', + 'flexslider-sample-2.jpg', + 'flexslider-sample-3.jpg', + 'flexslider-sample-4.jpg', + ); + + foreach ($images as $image) { + // Add the images using the Drupal File API + $path = drupal_get_path('module', 'flexslider') . '/assets/images/' . $image; + $filetitle = $image; + $filename = $image; + + $file_temp = file_get_contents($path); + $file_temp - file_save_data($file_temp, 'public://' . $filename, FILE_EXISTS_RENAME); + + $node = new stdClass(); + + $node->title = $image; + $node->type = 'flexslider_example'; + + node_object_prepare($node); + $node->uid = 1; + $node->status = 1; + $node->promote = 0; + $node->comment = 0; + + $node->field_flexslider_example_image[LANGUAGE_NONE][] = array( + 'fid' => $file_temp->fid, + 'filename' => $file_temp->filename, + 'filemime' => $file_temp->filemime, + 'uid' => 1, + 'uri' => $file_temp->uri, + 'status' => 1, + 'display' => 1, + ); + + node_save($node); + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.strongarm.inc b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.strongarm.inc new file mode 100755 index 0000000..9059180 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.strongarm.inc @@ -0,0 +1,44 @@ +disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'field_bundle_settings_node__flexslider_example'; + $strongarm->value = array( + 'view_modes' => array( + 'teaser' => array( + 'custom_settings' => TRUE, + ), + 'full' => array( + 'custom_settings' => FALSE, + ), + 'rss' => array( + 'custom_settings' => FALSE, + ), + 'token' => array( + 'custom_settings' => FALSE, + ), + ), + 'extra_fields' => array( + 'form' => array( + 'title' => array( + 'weight' => '-5', + ), + ), + 'display' => array(), + ), + ); + $export['field_bundle_settings_node__flexslider_example'] = $strongarm; + + return $export; +} diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.views_default.inc b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.views_default.inc new file mode 100755 index 0000000..00b5fa9 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_example/flexslider_example.views_default.inc @@ -0,0 +1,312 @@ +name = 'flexslider_views_example'; + $view->description = ''; + $view->tag = 'default'; + $view->base_table = 'node'; + $view->human_name = 'FlexSlider Views Example'; + $view->core = 7; + $view->api_version = '3.0'; + $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ + + /* Display: Master */ + $handler = $view->new_display('default', 'Master', 'default'); + $handler->display->display_options['title'] = 'FlexSlider Views Example'; + $handler->display->display_options['use_more_always'] = FALSE; + $handler->display->display_options['access']['type'] = 'perm'; + $handler->display->display_options['cache']['type'] = 'none'; + $handler->display->display_options['query']['type'] = 'views_query'; + $handler->display->display_options['exposed_form']['type'] = 'basic'; + $handler->display->display_options['pager']['type'] = 'some'; + $handler->display->display_options['pager']['options']['items_per_page'] = '4'; + $handler->display->display_options['pager']['options']['offset'] = '0'; + $handler->display->display_options['style_plugin'] = 'flexslider'; + $handler->display->display_options['row_plugin'] = 'fields'; + $handler->display->display_options['row_options']['hide_empty'] = TRUE; + $handler->display->display_options['row_options']['default_field_elements'] = FALSE; + /* Field: Content: FlexSlider Example Image */ + $handler->display->display_options['fields']['field_flexslider_example_image']['id'] = 'field_flexslider_example_image'; + $handler->display->display_options['fields']['field_flexslider_example_image']['table'] = 'field_data_field_flexslider_example_image'; + $handler->display->display_options['fields']['field_flexslider_example_image']['field'] = 'field_flexslider_example_image'; + $handler->display->display_options['fields']['field_flexslider_example_image']['label'] = ''; + $handler->display->display_options['fields']['field_flexslider_example_image']['element_label_colon'] = FALSE; + $handler->display->display_options['fields']['field_flexslider_example_image']['click_sort_column'] = 'fid'; + $handler->display->display_options['fields']['field_flexslider_example_image']['settings'] = array( + 'image_style' => 'flexslider_full', + 'image_link' => '', + ); + $handler->display->display_options['fields']['field_flexslider_example_image']['group_rows'] = FALSE; + $handler->display->display_options['fields']['field_flexslider_example_image']['delta_offset'] = '0'; + /* Sort criterion: Content: Post date */ + $handler->display->display_options['sorts']['created']['id'] = 'created'; + $handler->display->display_options['sorts']['created']['table'] = 'node'; + $handler->display->display_options['sorts']['created']['field'] = 'created'; + $handler->display->display_options['sorts']['created']['order'] = 'DESC'; + /* Filter criterion: Content: Published */ + $handler->display->display_options['filters']['status']['id'] = 'status'; + $handler->display->display_options['filters']['status']['table'] = 'node'; + $handler->display->display_options['filters']['status']['field'] = 'status'; + $handler->display->display_options['filters']['status']['value'] = 1; + $handler->display->display_options['filters']['status']['group'] = 1; + $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE; + /* Filter criterion: Content: Type */ + $handler->display->display_options['filters']['type']['id'] = 'type'; + $handler->display->display_options['filters']['type']['table'] = 'node'; + $handler->display->display_options['filters']['type']['field'] = 'type'; + $handler->display->display_options['filters']['type']['value'] = array( + 'flexslider_example' => 'flexslider_example', + ); + + /* Display: Basic Slider */ + $handler = $view->new_display('page', 'Basic Slider', 'page'); + $handler->display->display_options['defaults']['title'] = FALSE; + $handler->display->display_options['title'] = 'Basic Slider'; + $handler->display->display_options['defaults']['hide_admin_links'] = FALSE; + $handler->display->display_options['defaults']['style_plugin'] = FALSE; + $handler->display->display_options['style_plugin'] = 'flexslider'; + $handler->display->display_options['style_options']['captionfield'] = 'title'; + $handler->display->display_options['defaults']['style_options'] = FALSE; + $handler->display->display_options['defaults']['row_plugin'] = FALSE; + $handler->display->display_options['row_plugin'] = 'fields'; + $handler->display->display_options['row_options']['hide_empty'] = TRUE; + $handler->display->display_options['row_options']['default_field_elements'] = FALSE; + $handler->display->display_options['defaults']['row_options'] = FALSE; + $handler->display->display_options['defaults']['fields'] = FALSE; + /* Field: Content: FlexSlider Example Image */ + $handler->display->display_options['fields']['field_flexslider_example_image']['id'] = 'field_flexslider_example_image'; + $handler->display->display_options['fields']['field_flexslider_example_image']['table'] = 'field_data_field_flexslider_example_image'; + $handler->display->display_options['fields']['field_flexslider_example_image']['field'] = 'field_flexslider_example_image'; + $handler->display->display_options['fields']['field_flexslider_example_image']['label'] = ''; + $handler->display->display_options['fields']['field_flexslider_example_image']['element_label_colon'] = FALSE; + $handler->display->display_options['fields']['field_flexslider_example_image']['click_sort_column'] = 'fid'; + $handler->display->display_options['fields']['field_flexslider_example_image']['settings'] = array( + 'image_style' => 'flexslider_full', + 'image_link' => '', + ); + $handler->display->display_options['fields']['field_flexslider_example_image']['group_rows'] = FALSE; + $handler->display->display_options['fields']['field_flexslider_example_image']['delta_offset'] = '0'; + /* Field: Content: Title */ + $handler->display->display_options['fields']['title']['id'] = 'title'; + $handler->display->display_options['fields']['title']['table'] = 'node'; + $handler->display->display_options['fields']['title']['field'] = 'title'; + $handler->display->display_options['fields']['title']['label'] = ''; + $handler->display->display_options['fields']['title']['element_type'] = 'p'; + $handler->display->display_options['fields']['title']['element_class'] = 'flex-caption'; + $handler->display->display_options['fields']['title']['element_label_type'] = '0'; + $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE; + $handler->display->display_options['fields']['title']['element_wrapper_type'] = '0'; + $handler->display->display_options['fields']['title']['element_default_classes'] = FALSE; + $handler->display->display_options['path'] = 'flexslider-views-example'; + $handler->display->display_options['menu']['type'] = 'normal'; + $handler->display->display_options['menu']['title'] = 'Basic Slider (Views)'; + $handler->display->display_options['menu']['weight'] = '0'; + $handler->display->display_options['menu']['name'] = 'menu-flexslider-example'; + $handler->display->display_options['menu']['context'] = 0; + + /* Display: Slide with thumbnail controls */ + $handler = $view->new_display('page', 'Slide with thumbnail controls', 'page_1'); + $handler->display->display_options['defaults']['title'] = FALSE; + $handler->display->display_options['title'] = 'slider w/thumbnail controlnav pattern'; + $handler->display->display_options['defaults']['hide_admin_links'] = FALSE; + $handler->display->display_options['defaults']['style_plugin'] = FALSE; + $handler->display->display_options['style_plugin'] = 'flexslider'; + $handler->display->display_options['style_options']['optionset'] = 'flexslider_default_slider_thumbnail_controlnav'; + $handler->display->display_options['defaults']['style_options'] = FALSE; + $handler->display->display_options['defaults']['row_plugin'] = FALSE; + $handler->display->display_options['row_plugin'] = 'fields'; + $handler->display->display_options['row_options']['hide_empty'] = TRUE; + $handler->display->display_options['row_options']['default_field_elements'] = FALSE; + $handler->display->display_options['defaults']['row_options'] = FALSE; + $handler->display->display_options['defaults']['fields'] = FALSE; + /* Field: Content: FlexSlider Example Image */ + $handler->display->display_options['fields']['field_flexslider_example_image']['id'] = 'field_flexslider_example_image'; + $handler->display->display_options['fields']['field_flexslider_example_image']['table'] = 'field_data_field_flexslider_example_image'; + $handler->display->display_options['fields']['field_flexslider_example_image']['field'] = 'field_flexslider_example_image'; + $handler->display->display_options['fields']['field_flexslider_example_image']['label'] = ''; + $handler->display->display_options['fields']['field_flexslider_example_image']['element_label_colon'] = FALSE; + $handler->display->display_options['fields']['field_flexslider_example_image']['click_sort_column'] = 'fid'; + $handler->display->display_options['fields']['field_flexslider_example_image']['settings'] = array( + 'image_style' => 'flexslider_full', + 'image_link' => '', + ); + $handler->display->display_options['fields']['field_flexslider_example_image']['group_rows'] = FALSE; + $handler->display->display_options['fields']['field_flexslider_example_image']['delta_offset'] = '0'; + $handler->display->display_options['path'] = 'flexslider-views-example-with-thumbnail-controls'; + $handler->display->display_options['menu']['type'] = 'normal'; + $handler->display->display_options['menu']['title'] = 'slider w/thumbnail controlnav pattern (Views)'; + $handler->display->display_options['menu']['weight'] = '0'; + $handler->display->display_options['menu']['name'] = 'menu-flexslider-example'; + $handler->display->display_options['menu']['context'] = 0; + + /* Display: Slide with thumbnail slider */ + $handler = $view->new_display('page', 'Slide with thumbnail slider', 'page_2'); + $handler->display->display_options['defaults']['title'] = FALSE; + $handler->display->display_options['title'] = 'Slider w/thumbnail slider'; + $handler->display->display_options['display_description'] = 'Slider controlled by another instance of FlexSlider'; + $handler->display->display_options['defaults']['hide_admin_links'] = FALSE; + $handler->display->display_options['defaults']['style_plugin'] = FALSE; + $handler->display->display_options['style_plugin'] = 'flexslider'; + $handler->display->display_options['style_options']['optionset'] = 'flexslider_default_slider_w_thumbnail_slider'; + $handler->display->display_options['defaults']['style_options'] = FALSE; + $handler->display->display_options['defaults']['row_plugin'] = FALSE; + $handler->display->display_options['row_plugin'] = 'fields'; + $handler->display->display_options['row_options']['default_field_elements'] = FALSE; + $handler->display->display_options['defaults']['row_options'] = FALSE; + $handler->display->display_options['path'] = 'flexslider-views-example-with-thumbnail-slider'; + $handler->display->display_options['menu']['type'] = 'normal'; + $handler->display->display_options['menu']['title'] = 'slider w/thumbnail slider (Views)'; + $handler->display->display_options['menu']['weight'] = '0'; + $handler->display->display_options['menu']['name'] = 'menu-flexslider-example'; + $handler->display->display_options['menu']['context'] = 0; + + /* Display: Thumbnail Controls */ + $handler = $view->new_display('block', 'Thumbnail Controls', 'block_1'); + $handler->display->display_options['defaults']['title'] = FALSE; + $handler->display->display_options['display_description'] = 'Controls another FlexSlider instance'; + $handler->display->display_options['defaults']['hide_admin_links'] = FALSE; + $handler->display->display_options['defaults']['style_plugin'] = FALSE; + $handler->display->display_options['style_plugin'] = 'flexslider'; + $handler->display->display_options['style_options']['optionset'] = 'flexslider_default_thumbnail_slider'; + $handler->display->display_options['defaults']['style_options'] = FALSE; + $handler->display->display_options['defaults']['row_plugin'] = FALSE; + $handler->display->display_options['row_plugin'] = 'fields'; + $handler->display->display_options['row_options']['hide_empty'] = TRUE; + $handler->display->display_options['row_options']['default_field_elements'] = FALSE; + $handler->display->display_options['defaults']['row_options'] = FALSE; + + /* Display: Basic Carousel */ + $handler = $view->new_display('page', 'Basic Carousel', 'page_3'); + $handler->display->display_options['defaults']['title'] = FALSE; + $handler->display->display_options['title'] = 'Basic Carousel'; + $handler->display->display_options['defaults']['hide_admin_links'] = FALSE; + $handler->display->display_options['defaults']['pager'] = FALSE; + $handler->display->display_options['pager']['type'] = 'some'; + $handler->display->display_options['pager']['options']['items_per_page'] = '10'; + $handler->display->display_options['pager']['options']['offset'] = '0'; + $handler->display->display_options['defaults']['style_plugin'] = FALSE; + $handler->display->display_options['style_plugin'] = 'flexslider'; + $handler->display->display_options['style_options']['optionset'] = 'flexslider_default_basic_carousel'; + $handler->display->display_options['defaults']['style_options'] = FALSE; + $handler->display->display_options['defaults']['row_plugin'] = FALSE; + $handler->display->display_options['row_plugin'] = 'fields'; + $handler->display->display_options['row_options']['default_field_elements'] = FALSE; + $handler->display->display_options['defaults']['row_options'] = FALSE; + $handler->display->display_options['path'] = 'flexslider-views-example-basic-carousel'; + $handler->display->display_options['menu']['type'] = 'normal'; + $handler->display->display_options['menu']['title'] = 'basic carousel (Views)'; + $handler->display->display_options['menu']['weight'] = '0'; + $handler->display->display_options['menu']['name'] = 'menu-flexslider-example'; + $handler->display->display_options['menu']['context'] = 0; + + /* Display: Carousel with min and max ranges */ + $handler = $view->new_display('page', 'Carousel with min and max ranges', 'page_4'); + $handler->display->display_options['defaults']['title'] = FALSE; + $handler->display->display_options['title'] = 'carousel with min and max ranges'; + $handler->display->display_options['defaults']['hide_admin_links'] = FALSE; + $handler->display->display_options['defaults']['pager'] = FALSE; + $handler->display->display_options['pager']['type'] = 'some'; + $handler->display->display_options['pager']['options']['items_per_page'] = '10'; + $handler->display->display_options['pager']['options']['offset'] = '0'; + $handler->display->display_options['defaults']['style_plugin'] = FALSE; + $handler->display->display_options['style_plugin'] = 'flexslider'; + $handler->display->display_options['style_options']['optionset'] = 'flexslider_carousel_with_min_and_max_ranges'; + $handler->display->display_options['defaults']['style_options'] = FALSE; + $handler->display->display_options['defaults']['row_plugin'] = FALSE; + $handler->display->display_options['row_plugin'] = 'fields'; + $handler->display->display_options['row_options']['default_field_elements'] = FALSE; + $handler->display->display_options['defaults']['row_options'] = FALSE; + $handler->display->display_options['path'] = 'flexslider-views-example-carousel-min-max'; + $handler->display->display_options['menu']['type'] = 'normal'; + $handler->display->display_options['menu']['title'] = 'carousel with min and max ranges (Views)'; + $handler->display->display_options['menu']['weight'] = '0'; + $handler->display->display_options['menu']['name'] = 'menu-flexslider-example'; + $handler->display->display_options['menu']['context'] = 0; + + /* Display: Basic Slider with Thumbnail Caption */ + $handler = $view->new_display('page', 'Basic Slider with Thumbnail Caption', 'page_5'); + $handler->display->display_options['defaults']['title'] = FALSE; + $handler->display->display_options['title'] = 'Basic Slider with Thumbnail captions'; + $handler->display->display_options['display_description'] = 'To use thumbnail captions, use the "caption field" option in the style settings.'; + $handler->display->display_options['defaults']['hide_admin_links'] = FALSE; + $handler->display->display_options['defaults']['style_plugin'] = FALSE; + $handler->display->display_options['style_plugin'] = 'flexslider'; + $handler->display->display_options['style_options']['optionset'] = 'flexslider_default_thumbnail_captions'; + $handler->display->display_options['style_options']['captionfield'] = 'title'; + $handler->display->display_options['defaults']['style_options'] = FALSE; + $handler->display->display_options['defaults']['row_plugin'] = FALSE; + $handler->display->display_options['row_plugin'] = 'fields'; + $handler->display->display_options['row_options']['hide_empty'] = TRUE; + $handler->display->display_options['row_options']['default_field_elements'] = FALSE; + $handler->display->display_options['defaults']['row_options'] = FALSE; + $handler->display->display_options['defaults']['fields'] = FALSE; + /* Field: Content: FlexSlider Example Image */ + $handler->display->display_options['fields']['field_flexslider_example_image']['id'] = 'field_flexslider_example_image'; + $handler->display->display_options['fields']['field_flexslider_example_image']['table'] = 'field_data_field_flexslider_example_image'; + $handler->display->display_options['fields']['field_flexslider_example_image']['field'] = 'field_flexslider_example_image'; + $handler->display->display_options['fields']['field_flexslider_example_image']['label'] = ''; + $handler->display->display_options['fields']['field_flexslider_example_image']['element_label_colon'] = FALSE; + $handler->display->display_options['fields']['field_flexslider_example_image']['click_sort_column'] = 'fid'; + $handler->display->display_options['fields']['field_flexslider_example_image']['settings'] = array( + 'image_style' => 'flexslider_full', + 'image_link' => '', + ); + $handler->display->display_options['fields']['field_flexslider_example_image']['group_rows'] = FALSE; + $handler->display->display_options['fields']['field_flexslider_example_image']['delta_offset'] = '0'; + /* Field: Content: Title */ + $handler->display->display_options['fields']['title']['id'] = 'title'; + $handler->display->display_options['fields']['title']['table'] = 'node'; + $handler->display->display_options['fields']['title']['field'] = 'title'; + $handler->display->display_options['fields']['title']['label'] = ''; + $handler->display->display_options['fields']['title']['exclude'] = TRUE; + $handler->display->display_options['fields']['title']['element_type'] = '0'; + $handler->display->display_options['fields']['title']['element_label_type'] = '0'; + $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE; + $handler->display->display_options['fields']['title']['element_wrapper_type'] = '0'; + $handler->display->display_options['fields']['title']['element_default_classes'] = FALSE; + $handler->display->display_options['fields']['title']['link_to_node'] = FALSE; + $handler->display->display_options['path'] = 'flexslider-views-example-thumbnail-captions'; + $handler->display->display_options['menu']['type'] = 'normal'; + $handler->display->display_options['menu']['title'] = 'Thumbnail Captions (Views)'; + $handler->display->display_options['menu']['description'] = 'Basic slider with thumbnail captions'; + $handler->display->display_options['menu']['weight'] = '0'; + $handler->display->display_options['menu']['name'] = 'menu-flexslider-example'; + $handler->display->display_options['menu']['context'] = 0; + $translatables['flexslider_views_example'] = array( + t('Master'), + t('FlexSlider Views Example'), + t('more'), + t('Apply'), + t('Reset'), + t('Sort by'), + t('Asc'), + t('Desc'), + t('Basic Slider'), + t('Slide with thumbnail controls'), + t('slider w/thumbnail controlnav pattern'), + t('Slide with thumbnail slider'), + t('Slider w/thumbnail slider'), + t('Slider controlled by another instance of FlexSlider'), + t('Thumbnail Controls'), + t('Controls another FlexSlider instance'), + t('Basic Carousel'), + t('Carousel with min and max ranges'), + t('carousel with min and max ranges'), + t('Basic Slider with Thumbnail Caption'), + t('Basic Slider with Thumbnail captions'), + t('To use thumbnail captions, use the "caption field" option in the style settings.'), + ); + $export['flexslider_views_example'] = $view; + + return $export; +} diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_fields/README.txt b/src/developerportal/all/modules/contrib/flexslider/flexslider_fields/README.txt new file mode 100755 index 0000000..caaa59f --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_fields/README.txt @@ -0,0 +1,14 @@ +About +===== + +Adds a field display formatter to allow you to display field content using FlexSlider. The module doesn't require Field UI to be enabled by default (so you can leave it off once everything is configured) but it is recommended to use to setup your display settings. + +Usage +===== + +Manage the fields on any entity (ex: node of type Article) + +Ex: admin/structure/types/manage/article + +Select any field of type "image" or "media" and set the display options to "FlexSlider". Then select your option set in the display formatter settings. That's it! + diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_fields/flexslider_fields.info b/src/developerportal/all/modules/contrib/flexslider/flexslider_fields/flexslider_fields.info new file mode 100755 index 0000000..0574dbb --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_fields/flexslider_fields.info @@ -0,0 +1,12 @@ +name = FlexSlider Fields +description = Adds a display mode in Fields for FlexSlider +core = 7.x +package = FlexSlider + +dependencies[] = flexslider +; Information added by Drupal.org packaging script on 2015-07-30 +version = "7.x-2.0-rc1" +core = "7.x" +project = "flexslider" +datestamp = "1438285141" + diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_fields/flexslider_fields.module b/src/developerportal/all/modules/contrib/flexslider/flexslider_fields/flexslider_fields.module new file mode 100755 index 0000000..8429865 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_fields/flexslider_fields.module @@ -0,0 +1,188 @@ + + */ + +/** + * Implements hook_field_formatter_info(). + * + * Adds the flexslider format option within the manage display form of + * of an image field. + */ +function flexslider_fields_field_formatter_info() { + return array( + 'flexslider' => array( + 'label' => t('flexslider'), + 'field types' => array('image', 'media'), + 'settings' => array( + 'optionset' => 'default', + 'image_style' => '', + 'caption' => FALSE, + ), + ), + ); +} + +/** + * Implements hook_field_formatter_settings_form(). + * + * Provides display settings form within the manage display page of + * an image field with formatter flexslider. + */ +function flexslider_fields_field_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state) { + $display = $instance['display'][$view_mode]; + $settings = $display['settings']; + + $form = array(); + + // Show select box for the option set + $optionsets = array(); + ctools_include('export'); + foreach (flexslider_optionset_load_all() as $name => $optionset) { + $optionsets[$name] = check_plain($optionset->title); + } + + $form['optionset'] = array( + '#title' => t('Option set'), + '#type' => 'select', + '#options' => $optionsets, + '#default_value' => $settings['optionset'], + ); + + $image_styles = image_style_options(FALSE, PASS_THROUGH); + $form['image_style'] = array( + '#title' => t('Image style'), + '#type' => 'select', + '#default_value' => $settings['image_style'], + '#empty_option' => t('None (original image)'), + '#options' => $image_styles, + ); + + if (!empty($instance['settings'])) { + // If the image field doesn't have the Title field enabled, tell the user. + if ($instance['settings']['title_field'] == FALSE and $instance['bundle'] != 'ctools') { + $form['caption'] = array( + '#title' => t('Use image title as the caption'), + '#type' => 'checkbox', + '#disabled' => TRUE, + '#description' => t('You need to enable the Title field for this image field to be able use it as a caption.', array('@url' => url('admin/structure/types/manage/' . $instance['bundle'] . '/fields/' . $instance['field_name'], array('fragment' => 'edit-instance-settings-title-field', 'query' => array('destination' => 'admin/structure/types/manage/' . $instance['bundle'] . '/display'))))), + ); + } + else { + $form['caption'] = array( + '#title' => t('Use image title as the caption'), + '#type' => 'checkbox', + '#default_value' => $settings['caption'], + ); + } + } + + return $form; +} + +/** + * Implements hook_field_formatter_settings_summary(). + * + * Displays the summary of the set options of a flexslider formatted image field + */ +function flexslider_fields_field_formatter_settings_summary($field, $instance, $view_mode) { + $display = $instance['display'][$view_mode]; + $settings = $display['settings']; + + $summary = array(); + + // Load option set + ctools_include('export'); + if (!empty($settings['optionset'])) { + $o = flexslider_optionset_load($settings['optionset']); + if ($o !== NULL) { + $optionset = $o; + } + } + + // Display the selected image style + if (!empty($settings['image_style'])) { + $is = t('Image style: %imagestyle', array('%imagestyle' => $settings['image_style'])); + } + else { + $is = t('Image style: None (original image)'); + } + + // Build settings summary + $optionset = isset($optionset) ? $optionset->title : t('Default settings'); + $summary[] = t('Option set: %optionset', array('%optionset' => $optionset)); + $summary[] = $is; + + return implode('
      ', $summary); +} + +/** + * Implements hook_field_formatter_view(). + * + * Prepares a renderable array of images and adds the neccessary JS and CSS + */ +function flexslider_fields_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) { + + $element = array(); + if (count($items) > 0) { + + foreach ($items as $key => $item) { + if(isset($item['item'])) continue; + $tmp = $item; + $item = array(); + $item['item'] = $tmp; + + // Setup the variables for calling theme_image_style + if (isset($item['item']['uri'])) { + $item['slide']['path'] = $item['item']['uri']; + } + if (isset($display['settings']['image_style'])) { + $item['slide']['style_name'] = $display['settings']['image_style']; + } + if (isset($item['item']['width'])) { + $item['slide']['width'] = $item['item']['width']; + } + if (isset($item['item']['height'])) { + $item['slide']['height'] = $item['item']['height']; + } + if (isset($item['item']['alt'])) { + $item['slide']['alt'] = $item['item']['alt']; + } + if (isset($item['item']['title'])) { + $item['slide']['title'] = $item['item']['title']; + } + + // Render the slide item + // If not style set, we have to call theme_image since theme_image_style + // doesn't auto-fallback to full size image + if (!empty($item['slide']['style_name'])) { + // Generate the HTML for the slide + $item['slide'] = theme('image_style', $item['slide']); + } + else { + // Generate the HTML for the slide + $item['slide'] = theme('image', $item['slide']); + } + + // Check caption settings + if ($display['settings']['caption']) { + $item['caption'] = filter_xss($item['item']['title']); + } + + $items[$key] = $item; + } + + $element = array( + '#theme' => 'flexslider', + '#items' => $items, + '#settings' => $display['settings'], + ); + } + + return $element; +} \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_views/README.txt b/src/developerportal/all/modules/contrib/flexslider/flexslider_views/README.txt new file mode 100755 index 0000000..8609bc0 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_views/README.txt @@ -0,0 +1,11 @@ +About +===== + +This adds a new display style to views called "FlexSlider". Similar to how you select "HTML List" or "Unformatted List" as display styles. + +This module doesn't require Views UI to be enabled but it is required if you want to configure your Views display using FlexSlider through the web interface. This ensures you can leave Views UI off once everything is setup. + +Usage +===== + +Go to Views andUse the display mode "FlexSlider" \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_views/flexslider_views.info b/src/developerportal/all/modules/contrib/flexslider/flexslider_views/flexslider_views.info new file mode 100755 index 0000000..01eaba5 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_views/flexslider_views.info @@ -0,0 +1,17 @@ +name = FlexSlider Views Style +description = Adds a Views style plugin for FlexSlider +core = 7.x +package = FlexSlider + +dependencies[] = views +dependencies[] = flexslider + +files[] = flexslider_views.module +files[] = flexslider_views.views.inc +files[] = flexslider_views_plugin_style_flexslider.inc +; Information added by Drupal.org packaging script on 2015-07-30 +version = "7.x-2.0-rc1" +core = "7.x" +project = "flexslider" +datestamp = "1438285141" + diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_views/flexslider_views.module b/src/developerportal/all/modules/contrib/flexslider/flexslider_views/flexslider_views.module new file mode 100755 index 0000000..15f7bf6 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_views/flexslider_views.module @@ -0,0 +1,17 @@ + + */ + +/** + * Implements hook_views_api(). + */ +function flexslider_views_views_api() { + return array( + 'api' => 3, + ); +} \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_views/flexslider_views.views.inc b/src/developerportal/all/modules/contrib/flexslider/flexslider_views/flexslider_views.views.inc new file mode 100755 index 0000000..454c41d --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_views/flexslider_views.views.inc @@ -0,0 +1,31 @@ + array( + // Style plugin for the FlexSlider. + 'flexslider' => array( + 'title' => t('FlexSlider'), + 'help' => t('Display the results in a FlexSlider widget.'), + 'handler' => 'flexslider_views_plugin_style_flexslider', + 'theme' => 'flexslider_views', + 'theme file' => 'flexslider_views.theme.inc', + 'theme path' => drupal_get_path('module', 'flexslider_views') . '/theme', + 'uses row plugin' => TRUE, + 'uses fields' => TRUE, + 'uses options' => TRUE, + 'type' => 'normal', + 'even empty' => FALSE, + ), + ), + ); +} diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_views/flexslider_views_plugin_style_flexslider.inc b/src/developerportal/all/modules/contrib/flexslider/flexslider_views/flexslider_views_plugin_style_flexslider.inc new file mode 100755 index 0000000..7eb3f4e --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_views/flexslider_views_plugin_style_flexslider.inc @@ -0,0 +1,123 @@ + array('default' => 'default'), + 'captionfield' => array('default' => ''), + 'id' => array('default' => ''), + ); + + return $options; + } + + /** + * Show a form to edit the style options. + */ + function options_form(&$form, &$form_state) { + parent::options_form($form, $form_state); + + $form['flexslider'] = array( + '#type' => 'fieldset', + '#title' => t('FlexSlider'), + ); + + $optionsets = array(); + foreach (flexslider_optionset_load_all() as $name => $optionset) { + $optionsets[$name] = check_plain($optionset->title); + } + $form['flexslider']['optionset'] = array( + '#title' => t('Option set'), + '#type' => 'select', + '#options' => $optionsets, + '#default_value' => $this->options['optionset'], + ); + + $link_options = array('' => t('None')); + foreach ($this->view->display_handler->get_handlers('field') as $field => $handler) { + $link_options[$field] = $handler->ui_name(); + } + + $captionfield_options = array('' => t('None')); + foreach ($this->view->display_handler->get_handlers('field') as $field => $handler) { + $captionfield_options[$field] = $handler->ui_name(); + } + + $form['flexslider']['captionfield'] = array( + '#type' => 'select', + '#title' => t('Caption Field'), + '#description' => t("Select a field to be used as the caption. This can also be set manually by adding the '.flex-caption' class to a field. Required to use thumbnail captions."), + '#options' => $captionfield_options, + '#default_value' => $this->options['captionfield'], + ); + + $form['flexslider']['id'] = array( + '#type' => 'textfield', + '#title' => t('Element ID'), + '#description' => t("Manually define the FlexSlider container ID attribute Ensure you don't display similar ID elements on the same page."), + '#size' => 40, + '#maxlength' => 255, + '#default_value' => $this->options['id'], + ); + } + + /** + * Performs some cleanup tasks on the options array before saving it. + */ + function options_submit(&$form, &$form_state) { + $options =& $form_state['values']['style_options']; + + // In some cases, namely when the style settings are overriden for this display, + // the flexslider options aren't in a sub array. No idea why. But this + // prevents a fatal error. + if (!empty($options['flexslider'])) { + // Pull the fieldset values one level up + $options += $options['flexslider']; + unset($options['flexslider']); + } + } + + /** + * Render the display in this style. + */ + function render() { + + // Group the rows according to the grouping field, if specified. + $sets = $this->render_grouping($this->view->result, $this->options['grouping']); + + // Render each group separately and concatenate. + $output = ''; + + foreach ($sets as $title => $rows) { + // Add caption field if chosen. + if (!empty($this->options['captionfield'])) { + $caption_field = $this->options['captionfield']; + foreach ($rows as $index => $row) { + $rows[$index]->caption = $this->rendered_fields[$index][$caption_field]; + } + } + $output .= theme($this->theme_functions(), + array( + 'view' => $this->view, + 'options' => $this->options, + 'rows' => $rows, + 'title' => $title + ) + ); + } + + return $output; + } +} diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_views/theme/flexslider-views.tpl.php b/src/developerportal/all/modules/contrib/flexslider/flexslider_views/theme/flexslider-views.tpl.php new file mode 100755 index 0000000..99cdcb9 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_views/theme/flexslider-views.tpl.php @@ -0,0 +1,14 @@ + + */ + +print theme('flexslider', array('items' => $items, 'settings' => $settings)); diff --git a/src/developerportal/all/modules/contrib/flexslider/flexslider_views/theme/flexslider_views.theme.inc b/src/developerportal/all/modules/contrib/flexslider/flexslider_views/theme/flexslider_views.theme.inc new file mode 100755 index 0000000..45d2b1f --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/flexslider_views/theme/flexslider_views.theme.inc @@ -0,0 +1,42 @@ + + */ + +/** + * Add a preprocessor to prepare data from FlexSlider Views + */ +function template_process_flexslider_views(&$vars) { + // Only run the preprocessor if it is a view + if (!empty($vars['view'])) { + // Prepare all data to be passed to theme_flexslider(). + $items = array(); + $view = $vars['view']; + $settings = array(); + $settings['optionset'] = $vars['options']['optionset']; + + $row_plugin = $view->style_plugin->row_plugin; + + foreach ($vars['rows'] as $id => $row) { + // Render the row into a slide + $view->row_index = $id; + $item['slide'] = $row_plugin->render($row); + $item['caption'] = (isset($row->caption) && !empty($row->caption)) ? $row->caption : NULL; + $items[] = $item; + } + + // Add the slide items to the variables + $vars['items'] = $items; + + // Add the attributes + $settings['attributes']['id'] = $vars['options']['id']; + + // Reset the options to the processed values + $vars['settings'] = $settings; + } + return $vars; +} diff --git a/src/developerportal/all/modules/contrib/flexslider/plugins/export_ui/flexslider_ctools_export_ui.inc b/src/developerportal/all/modules/contrib/flexslider/plugins/export_ui/flexslider_ctools_export_ui.inc new file mode 100755 index 0000000..8ee4c63 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/plugins/export_ui/flexslider_ctools_export_ui.inc @@ -0,0 +1,79 @@ + + */ + + +/** + * Define this Export UI plugin. + */ +$plugin = array( + 'schema' => 'flexslider_optionset', // As defined in hook_schema(). + 'access' => 'administer flexslider', // Define a permission users must have to access these pages. + + // Define the menu item. + 'menu' => array( + 'menu prefix' => 'admin/config/media', + 'menu item' => 'flexslider', + 'menu title' => 'FlexSlider', + 'menu description' => 'Administer FlexSlider presets.', + ), + + // Define user interface texts. + 'title singular' => t('optionset'), + 'title plural' => t('optionsets'), + 'title singular proper' => t('FlexSlider optionset'), + 'title plural proper' => t('FlexSlider optionsets'), + + // Define the names of the functions that provide the add/edit forms. + 'form' => array( + 'settings' => 'flexslider_ctools_export_ui_form', + 'validate' => 'flexslider_ctools_export_ui_form_validate', + 'submit' => 'flexslider_ctools_export_ui_form_submit', + ), +); + +/** + * Export UI form + */ +function flexslider_ctools_export_ui_form(&$form, &$form_state) { + // Load the admin form include + module_load_include('inc', 'flexslider', 'flexslider.admin'); + + // Make optionset reference in form_state + $form_state['optionset'] = &$form_state['item']; + + // Load the configuration form + $form = drupal_retrieve_form('flexslider_form_optionset_edit', $form_state); +} + +/** + * Validation handler + */ +function flexslider_ctools_export_ui_form_validate(&$form, &$form_state) { + // @todo +} + +/** + * Submit handler + */ +function flexslider_ctools_export_ui_form_submit(&$form, &$form_state) { + // Edit the reference to $form_state['optionset'] which will in turn + // reference $form_state['item'] which is what CTools is looking for. + $optionset = &$form_state['optionset']; + $optionset->title = $form_state['values']['title']; + + // Assign the values to the option set + $optionset->options = _flexslider_optionset_defaults(); + + // Save all the values for the optionset + foreach ($optionset->options as $key => $value) { + if (array_key_exists($key, $form_state['values'])) { + $optionset->options[$key] = $form_state['values'][$key]; + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/flexslider/theme/flexslider.theme.inc b/src/developerportal/all/modules/contrib/flexslider/theme/flexslider.theme.inc new file mode 100755 index 0000000..c3b27d4 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/theme/flexslider.theme.inc @@ -0,0 +1,158 @@ +'; + foreach ($items as $i => $item) { + + $caption = ''; + if (!empty($item['caption'])) { + $caption = $item['caption']; + } + + $output .= theme('flexslider_list_item', array( + 'item' => $item['slide'], + 'settings' => array( + 'optionset' => $optionset, + ), + 'caption' => $caption, + )); + } + $output .= ""; + } + + return $output; +} + +/** + * Default theme implementation for flexslider_list_item + */ +function theme_flexslider_list_item(&$vars) { + return '' . $vars['item'] . $vars['caption'] . "\n"; +} + +/** + * Template preprocess handler for 'flexslider' theme. + */ +function template_process_flexslider(&$vars) { + + // Reference configuration variables + $optionset = &$vars['settings']['optionset']; + $settings = &$vars['settings']; + $items = &$vars['items']; + + // Set the default container type + if (empty($settings['type'])) { + $settings['type'] = 'ul'; + } + + // Load the selected optionset + if (!empty($optionset)) { + $optionset = flexslider_optionset_load($optionset); + } + + // Check if an optionset was loaded + if (empty($optionset)) { + // Fall back to 'default' option set + $optionset = flexslider_optionset_load('default'); + watchdog('flexslider', 'Fallback to default optionset.', array(), WATCHDOG_WARNING); + } + + // Configure attributes for containing elements + $attributes = array(); + // Merge with defined attributes + if (isset($settings['attributes']) and is_array($settings['attributes'])) { + $attributes += $settings['attributes']; + } + + // Set the ID for each flexslider instance if none is provided + if (empty($attributes['id'])) { + $flexslider_id = &drupal_static('flexslider_id', 0); + $attributes['id'] = 'flexslider-' . ++$flexslider_id; + } + + // Add the namespace to any classes + // @todo figure out what this is supposed to do + if (!empty($attributes['class']) && !empty($optionset->options['namespace'])) { + foreach ($attributes['class'] as $key => $value) { + $attributes['class'][$key] = $optionset->options['namespace'] . $value; + } + } + + // Add the flexslider class to be namespaced + $attributes['class'][] = 'flexslider'; + + // Add the attributes to the settings array. + $settings['attributes'] = $attributes; + + // Finally, add the configuration to the page + flexslider_add($vars['settings']['attributes']['id'], $vars['settings']['optionset']); +} + +/** + * Process function for flexslider_list_item + */ +function template_process_flexslider_list(&$vars) { + // Reset the list of attributes + $vars['settings']['attributes'] = array( + // @todo find a way to detect the outter container class if possible + 'class' => array('slides'), + ); + +} + +/** + * Process function for flexslider_list_item + */ +function template_process_flexslider_list_item(&$vars) { + // Reset the list of attributes + $vars['settings']['attributes'] = array(); + + // Reference configuration variables + $item = &$vars['item']; + $settings = &$vars['settings']; + $caption = &$vars['caption']; + $attributes = &$vars['settings']['attributes']; + + // Generated thumbnail support + if (isset($settings['optionset']->options['controlNav']) and $settings['optionset']->options['controlNav'] === "thumbnails") { + // If the thumbnails are enabled in the option set, scan for the first img + // tag and extract the src attribute to set as the thumbnail data + $src = array(); + preg_match("", $item, $src); + + if (!empty($src[1])) { + $attributes['data-thumb'] = $src[1]; + } + } + + if (isset($settings['optionset']->options['thumbCaptions']) and $settings['optionset']->options['thumbCaptions'] and !empty($caption)) { + $attributes['data-thumbcaption'] = $caption; + // Prevent captions from appearing in the slider as well + if (isset($settings['optionset']->options['thumbCaptionsBoth']) and FALSE === $settings['optionset']->options['thumbCaptionsBoth']) { + $caption = ''; + } + } + + if (!empty($caption)) { + $caption = '
      ' . $caption . '
      '; + } +} diff --git a/src/developerportal/all/modules/contrib/flexslider/theme/flexslider.tpl.php b/src/developerportal/all/modules/contrib/flexslider/theme/flexslider.tpl.php new file mode 100755 index 0000000..5983b3a --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider/theme/flexslider.tpl.php @@ -0,0 +1,9 @@ + +
      > + $items, 'settings' => $settings)); ?> +
      diff --git a/src/developerportal/all/modules/contrib/flexslider_views_slideshow/LICENSE.txt b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/LICENSE.txt new file mode 100755 index 0000000..d159169 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/LICENSE.txt @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/src/developerportal/all/modules/contrib/flexslider_views_slideshow/README.txt b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/README.txt new file mode 100755 index 0000000..d921a1f --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/README.txt @@ -0,0 +1,11 @@ +About +=========== + +Adds a new "Slideshow Type" to Views Slideshow called "FlexSlider". + +Usage +====== + +Enable Views, Views Slideshow and FlexSlider Views Slideshow (note: you do NOT need to enable FlexSlider Views). Create/Edit a View, select a display mode of "Slideshow". In the settings for your display, set the "Slideshow Type" to "FlexSlider", select your option set, set any other options you'd like. + +Save your view and you're good to go. \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/flexslider_views_slideshow/flexslider_views_slideshow.info b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/flexslider_views_slideshow.info new file mode 100755 index 0000000..ffffc6a --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/flexslider_views_slideshow.info @@ -0,0 +1,18 @@ +name = FlexSlider Views Slideshow +description = NOT FUNCTIONAL - Integrate the FlexSlider library with Views Slideshow +core = 7.x +package = FlexSlider + +dependencies[] = flexslider +dependencies[] = views_slideshow + +files[] = flexslider_views_slideshow.module +files[] = flexslider_views_slideshow.views_slideshow.inc +files[] = theme/flexslider_views_slideshow.theme.inc + +; Information added by drupal.org packaging script on 2013-09-30 +version = "7.x-2.x-dev" +core = "7.x" +project = "flexslider_views_slideshow" +datestamp = "1380579618" + diff --git a/src/developerportal/all/modules/contrib/flexslider_views_slideshow/flexslider_views_slideshow.module b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/flexslider_views_slideshow.module new file mode 100755 index 0000000..0cae458 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/flexslider_views_slideshow.module @@ -0,0 +1,96 @@ + + */ + +/** + * Implements hook_help(). + */ +function flexslider_views_slideshow_help($path, $arg) { + switch ($path) { + // Main module help for the block module + case 'admin/help#flexslider_views_slideshow': + return '

      ' . t('More to come. For now see the README.txt file please.') . '

      '; + } +} + +/** + * Implements hook_theme(). + */ +function flexslider_views_slideshow_theme($existing, $type, $theme, $path) { + return array( + 'flexslider_views_slideshow' => array( + 'variables' => array('view' => NULL, 'settings' => array(), 'rows' => array(), 'title' => ''), + 'template' => 'theme/flexslider-views-slideshow', + 'file' => 'theme/flexslider_views_slideshow.theme.inc', + 'pattern' => 'flexslider_views_slideshow__', + ), + 'flexslider_views_slideshow_main_frame' => array( + 'variables' => array('vss_id' => NULL, 'view' => NULL, 'settings' => NULL, 'rows' => NULL), + 'template' => 'theme/flexslider-views-slideshow-main-frame', + ), + 'flexslider_views_slideshow_main_frame_row' => array( + 'variables' => array('vss_id' => NULL, 'items' => NULL, 'count' => NULL, 'view' => NULL), + 'template' => 'theme/flexslider-views-slideshow-main-frame-row', + ), + 'flexslider_views_slideshow_main_frame_row_item' => array( + 'variables' => array('item' => NULL, 'item_count' => NULL, 'view' => NULL), + 'template' => 'theme/flexslider-views-slideshow-main-frame-row-item', + ), + ); +} + +/** + * Implements hook_views_pre_render(). + **/ +function flexslider_views_slideshow_views_pre_render(&$view) { + // This used to be where the captions were added. We won't be using that method anymore... + /* + if (get_class($view->style_plugin) == 'views_slideshow_plugin_style_slideshow' and isset($view->style_options['slideshow_type']) and $view->style_options['slideshow_type'] == 'flexslider_views_slideshow') { + + $fieldname = $view->style_plugin->options['flexslider_views_slideshow']['caption_field']; + if ($fieldname == 'none' or !isset($view->field[$fieldname])) { + return; + } + + $view->field[$fieldname]->options['element_type'] = 'p'; + $view->field[$fieldname]->options['element_class'] = empty($view->field[$fieldname]->options['element_class'])? 'flex-caption': $view->field[$fieldname]->options['element_class'] . ' flex-caption'; + $view->field[$fieldname]->options['element_label_type'] = ''; + $view->field[$fieldname]->options['element_label_class'] = ''; + $view->field[$fieldname]->options['element_label_colon'] = FALSE; + $view->field[$fieldname]->options['element_wrapper_type'] = '0'; + $view->field[$fieldname]->options['element_wrapper_class'] = ''; + $view->field[$fieldname]->options['element_default_classes'] = 0; + }*/ +} + +/** + * Based on notes from views_slideshow_cycle + * @see http://drupal.org/project/views_slideshow + * + * Need to have preprocess functions here because drupal doesn't cache them + * correctly in the theme.inc file. + * + * If you would like to override the preprocess functions make sure to look at + * the associated function in theme.inc. + */ + +// Trying to make sure the theme.inc get's loaded. +include_once('theme/flexslider_views_slideshow.theme.inc'); + +function template_preprocess_flexslider_views_slideshow_main_frame(&$vars) { + _flexslider_views_slideshow_preprocess_flexslider_views_slideshow_main_frame($vars); +} + +function template_preprocess_flexslider_views_slideshow_main_frame_row(&$vars) { + _flexslider_views_slideshow_preprocess_flexslider_views_slideshow_main_frame_row($vars); +} + +function template_preprocess_flexslider_views_slideshow_main_frame_row_item(&$vars) { + _flexslider_views_slideshow_preprocess_flexslider_views_slideshow_main_frame_row_item($vars); +} + diff --git a/src/developerportal/all/modules/contrib/flexslider_views_slideshow/flexslider_views_slideshow.views_slideshow.inc b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/flexslider_views_slideshow.views_slideshow.inc new file mode 100755 index 0000000..665ec81 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/flexslider_views_slideshow.views_slideshow.inc @@ -0,0 +1,84 @@ + + */ + +/** + * Implements hook_views_slideshow_slideshow_info(). + */ +function flexslider_views_slideshow_views_slideshow_slideshow_info() { + $options = array( + 'flexslider_views_slideshow' => array( + 'name' => t('FlexSlider'), + 'accepts' => array( +// 'goToSlide', + 'nextSlide', + 'pause', + 'play', + 'previousSlide', + ), + 'calls' => array( +// 'transitionBegin', +// 'transitionEnd', +// 'goToSlide', + 'pause', + 'play', + 'nextSlide', + 'previousSlide', + ), + ), + ); + + // @todo figure out which options to add + + return $options; +} + +/** + * Implements hook_views_slideshow_option_definition(). + */ +function flexslider_views_slideshow_views_slideshow_option_definition() { + // Default options for FlexSlider + $options['flexslider_views_slideshow'] = array( + 'contains' => array( + 'optionset' => array('default' => 'default'), + ), + ); + // @todo figure out which options to define + // @todo integrate with "optionsets" + + return $options; +} + +/** + * Configuration form within the Views Slideshow settings pane + */ +function flexslider_views_slideshow_views_slideshow_slideshow_type_form(&$form, &$form_state, &$view) { + // For a full list of options + // @see http://flex.madebymufffin.com/ + + // Load the list of option sets + $optionsets = flexslider_optionset_load_all(); + // Parse out into key/value pairs + foreach ($optionsets as $key => $optionset) { + $options[$key] = $optionset->title; + } + + // Add a select field + $form['flexslider_views_slideshow']['optionset'] = array( + '#type' => 'select', + '#title' => t('Option Set'), + '#multiple' => FALSE, + '#description' => t('Select a configured option set to use with Flex Slider.'), + '#options' => $options, + '#default_value' => $view->options['flexslider_views_slideshow']['optionset'], + ); +} + +function flexslider_views_slideshow_views_slideshow_slideshow_type_form_validate(&$form, &$form_state, &$view) { + // @todo add validation for any fields in the settings form +} diff --git a/src/developerportal/all/modules/contrib/flexslider_views_slideshow/js/flexslider_views_slideshow.js b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/js/flexslider_views_slideshow.js new file mode 100755 index 0000000..45ad23f --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/js/flexslider_views_slideshow.js @@ -0,0 +1,125 @@ +(function ($) { + // @todo convert to use Drupal.behaviors + // @todo add configuration options + + // Register callback to save references to flexslider instances. Allows + // Views Slideshow controls to affect the slider + function flexslider_views_slideshow_register(fullId, slider) { + Drupal.flexsliderViewsSlideshow.active = Drupal.flexsliderViewsSlideshow.active || {}; + Drupal.flexsliderViewsSlideshow.active[fullId] = slider; + } + + Drupal.behaviors.flexsliderViewsSlideshow = { + attach: function (context) { + $('.flexslider_views_slideshow_main:not(.flexslider_views_slideshow-processed)', context).addClass('flexslider_views_slideshow-processed').each(function() { + // Get the ID of the slideshow + var fullId = '#' + $(this).attr('id'); + + // Create settings container + var settings = Drupal.settings.flexslider_views_slideshow[fullId]; + + //console.log(settings); + + // @todo map the settings from the form to their javascript equivalents + settings.targetId = fullId; + + settings.loaded = false; + + // Assign default settings + // @todo update the list of options to match the new set + settings.opts = { + // v2.x options + namespace:settings.namespace, + selector:settings.selector, + easing:settings.easing, + direction:settings.direction, + reverse:settings.reverse, + smoothHeight:settings.smoothHeight, + startAt:settings.startAt, + animationSpeed:settings.animationSpeed, + initDelay:settings.initDelay, + useCSS:settings.useCSS, + touch:settings.touch, + video:settings.video, + keyboard:settings.keyboard, + multipleKeyboard:settings.multipleKeyboard, + mousewheel:settings.mousewheel, + controlsContainer:settings.controlsContainer, + sync:settings.sync, + asNavFor:settings.asNavFor, + itemWidth:settings.itemWidth, + itemMargin:settings.itemMargin, + minItems:settings.minItems, + maxItems:settings.maxItems, + move:settings.move, + // v1.x options + animation:settings.animation, + slideshow:settings.slideshow, + slideshowSpeed:settings.slideshowSpeed, + directionNav:settings.directionNav, + controlNav:settings.controlNav, + prevText:settings.prevText, + nextText:settings.nextText, + pausePlay:settings.pausePlay, + pauseText:settings.pauseText, + playText:settings.playText, + randomize:settings.randomize, + animationLoop:settings.animationLoop, + pauseOnAction:settings.pauseOnAction, + pauseOnHover:settings.pauseOnHover, + manualControls:settings.manualControls, + start: function(slider) { + flexslider_views_slideshow_register(fullId, slider); + } + // @todo register other callbacks + }; + + Drupal.flexsliderViewsSlideshow.load(fullId); + }); + } + }; + + + // Initialize the flexslider object + Drupal.flexsliderViewsSlideshow = Drupal.flexsliderViewsSlideshow || {}; + + // Load mapping from Views Slideshow to FlexSlider + Drupal.flexsliderViewsSlideshow.load = function(fullId) { + var settings = Drupal.settings.flexslider_views_slideshow[fullId]; + + // Ensure the slider isn't already loaded + if (!settings.loaded) { + $(settings.targetId + " .flexslider").flexslider(settings.opts); + settings.loaded = true; + } + } + + // Pause mapping from Views Slideshow to FlexSlider + Drupal.flexsliderViewsSlideshow.pause = function (options) { + Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].pause(); + Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].manualPause = true; + } + + // Play mapping from Views Slideshow to FlexSlider + Drupal.flexsliderViewsSlideshow.play = function (options) { + console.log(Drupal.flexsliderViewsSlideshow); + Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].resume(); + Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].manualPause = false; + } + + Drupal.flexsliderViewsSlideshow.nextSlide = function (options) { + var target = Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].getTarget('next'); + + if (Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].canAdvance(target)) { + Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].flexAnimate(target, Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].vars.pauseOnAction); + } + } + Drupal.flexsliderViewsSlideshow.previousSlide = function (options) { + var target = Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].getTarget('prev'); + + if (Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].canAdvance(target)) { + Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].flexAnimate(target, Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].vars.pauseOnAction); + } + } + // @todo add support for jquery mobile page init +})(jQuery); \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/flexslider_views_slideshow/theme/flexslider-views-slideshow-main-frame-row-item.tpl.php b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/theme/flexslider-views-slideshow-main-frame-row-item.tpl.php new file mode 100755 index 0000000..b28e7ea --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/theme/flexslider-views-slideshow-main-frame-row-item.tpl.php @@ -0,0 +1,10 @@ + + */ + +print $item; diff --git a/src/developerportal/all/modules/contrib/flexslider_views_slideshow/theme/flexslider-views-slideshow-main-frame-row.tpl.php b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/theme/flexslider-views-slideshow-main-frame-row.tpl.php new file mode 100755 index 0000000..f4c6d2d --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/theme/flexslider-views-slideshow-main-frame-row.tpl.php @@ -0,0 +1,12 @@ + + */ +?> +
    5. + +
    6. diff --git a/src/developerportal/all/modules/contrib/flexslider_views_slideshow/theme/flexslider-views-slideshow-main-frame.tpl.php b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/theme/flexslider-views-slideshow-main-frame.tpl.php new file mode 100755 index 0000000..c6653d6 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/theme/flexslider-views-slideshow-main-frame.tpl.php @@ -0,0 +1,16 @@ + + */ +?> +
      +
      +
        + +
      +
      +
      \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/flexslider_views_slideshow/theme/flexslider-views-slideshow.tpl.php b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/theme/flexslider-views-slideshow.tpl.php new file mode 100755 index 0000000..98c0b64 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/theme/flexslider-views-slideshow.tpl.php @@ -0,0 +1,15 @@ + + */ + +// @todo get views slideshow to use this template. At the moment it seems to +// ignore it. + +// @todo see if theme_views_slideshow_main_section can be changed to be overridable +// see line 162 in views_slideshow.theme.inc +?> \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/flexslider_views_slideshow/theme/flexslider_views_slideshow.theme.inc b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/theme/flexslider_views_slideshow.theme.inc new file mode 100755 index 0000000..8201303 --- /dev/null +++ b/src/developerportal/all/modules/contrib/flexslider_views_slideshow/theme/flexslider_views_slideshow.theme.inc @@ -0,0 +1,165 @@ + + */ + +/** + * FlexSlider Views theme for the main wrapper element + * + * @ingroup themeable + */ +function _flexslider_views_slideshow_preprocess_flexslider_views_slideshow_main_frame(&$vars) { + // @todo see if we can get this to call theme('flexslider') instead. +// return + // Load the settings, row information, view data and views slideshow ID into + // more conveniently named variables. + $settings = $vars['settings']; + $rows = $vars['rows']; + $view = $vars['view']; + $vss_id = $vars['vss_id']; + + // Load the option set data + $optionset = $settings['optionset']; + $settings = flexslider_optionset_load($settings['optionset']); + $settings = $settings->options; + + + // Cast the strings into int or bool as necessary + $new_settings = array(); + foreach ($settings as $key => $value) { + if (is_string($value)) { + + $value = str_ireplace("\n", ' ', $value); + $value = trim($value); + + // Check for numbers and/or boolean values + if (is_numeric($value)) { + $value = (int)$value; + } + elseif (drupal_strtolower($value) == 'true') { + $value = TRUE; + } + elseif (drupal_strtolower($value) == 'false') { + $value = FALSE; + } + } + + $new_settings[$key] = $value; + } + + // Merge the existing settings with the generated ones + $settings = array_merge( + array( + 'num_divs' => sizeof($rows), + 'id_prefix' => '#flexslider_views_slideshow_main_', + //'div_prefix' => '#' + // @todo figure out what the div prefix is used for + 'vss_id' => $vss_id, + ), + $new_settings + ); + + // We need to go through the current js setting values to make sure the one we + // want to add is not already there. If it is already there then append -[num] + // to the id to make it unique. + $slideshow_count = 1; + $current_settings = drupal_add_js(); + foreach ($current_settings['settings']['data'] AS $current_setting) { + if (isset($current_setting['flexslider_views_slideshow'])) { + $current_keys = array_keys($current_setting['flexslider_views_slideshow']); + if (stristr($current_keys[0], '#flexslider_views_slideshow_main_' . $vss_id)) { + $slideshow_count++; + } + } + } + + // Append the new unique IDs if required + if ($slideshow_count > 1) { + $vss_id .= '-' . $slideshow_count; + $settings['vss_id'] = $vss_id; + } + + // Load the FlexSlider library for use. + libraries_load('flexslider'); + + // Create the settings container + // Due to a limitation inside of views_slideshow, the ID for the settings container + // must end with _main + // + // see lines 162 through 169 in views_slideshow.theme.inc + drupal_add_js(array('flexslider_views_slideshow' => array('#flexslider_views_slideshow_main_' . $vss_id => $settings)), 'setting'); + + // Load the initilization javascript + drupal_add_js(drupal_get_path('module', 'flexslider_views_slideshow') . '/js/flexslider_views_slideshow.js'); + + // Required container class for FlexSlider + $vars['classes_array'][] = 'slides'; + + // Render the rows + $rendered_rows = ''; + $slideshow_count = 0; + foreach ($rows as $count => $row) { + $items[] = $row; + // @todo see if we can group multiple items per slide + $rendered_rows .= theme('flexslider_views_slideshow_main_frame_row', array('vss_id' => $vss_id, 'items' => $items, 'count' => $count, 'view' => $view)); + + // Clear the items array + $items = array(); + // Count the number of slides created + $slideshow_count++; + } + + // Save the rendered rows + $vars['rendered_rows'] = $rendered_rows; +} + +/** + * FlexSlider Views Slideshow theme for the row element + * + * @ingroup themeable + */ +function _flexslider_views_slideshow_preprocess_flexslider_views_slideshow_main_frame_row(&$vars) { + $current = $vars['count'] + 1; + $vars['classes_array'][] = 'flexslider_views_slideshow_slide views-row-' . $current; + + // @todo figure out why this if statement is here + if ($vars['count']) { + $vars['classes_array'][] = 'views_slideshow_cycle_hidden'; + } + // @todo add option to toggle views rows counters on/off + $vars['classes_array'][] = ($vars['count'] % 2) ? 'views-row-even' : 'views-row-odd'; + + $vars['rendered_items'] = ''; + foreach ($vars['items'] as $item_count => $item) { + $vars['rendered_items'] .= theme('flexslider_views_slideshow_main_frame_row_item', array('item' => $item, 'item_count' => $item_count, 'view' => $vars['view'])); + } +} + +/** + * FlexSlider Views Slideshow theme for an item within a row + * + * @ingroup themeable + */ +function _flexslider_views_slideshow_preprocess_flexslider_views_slideshow_main_frame_row_item(&$vars) { + $vars['classes_array'][] = 'views-row views-row-' . $vars['item_count']; + if (!$vars['item_count']) { + $vars['classes_array'][] = 'views-row-first'; + } + if ($vars['item_count'] % 2) { + $vars['classes_array'][] = 'views-row-even'; + } + else { + $vars['classes_array'][] = 'views-row-odd'; + } + + /** + * Support custom row classes. + */ + if ($row_class = $vars['view']->style_plugin->get_row_class($vars['item_count'])) { + $vars['classes_array'][] = $row_class; + } +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/LICENSE.txt b/src/developerportal/all/modules/contrib/quicktabs/LICENSE.txt new file mode 100755 index 0000000..d159169 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/LICENSE.txt @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/src/developerportal/all/modules/contrib/quicktabs/README.txt b/src/developerportal/all/modules/contrib/quicktabs/README.txt new file mode 100755 index 0000000..38398bb --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/README.txt @@ -0,0 +1,78 @@ +******************************************************************************* + +Quicktabs + +Description: +------------------------------------------------------------------------------- + +This module provides a form for admins to create a block of tabbed content by +selecting a view, a node, a block or an existing Quicktabs instance as the content +of each tab. +The module can be extended to display other types of content. + + +Installation & Use: +------------------------------------------------------------------------------- + +1. Enable module in module list located at administer > structure > modules. +2. Go to admin/structure/quicktabs and click on "Add Quicktabs Instance". +3. Add a title (this will be the block title) and start entering information for your tabs +4. Use the Add another tab button to add more tabs. +5. Use the drag handles on the left to re-arrange tabs. +6. Once you have defined all the tabs, click 'Save'. +7. You new block will be available at admin/structure/blocks. +8. Configure & enable it as required. +9. To add tab styles to your Quicktabs instances, enable the quicktabs_tabstyles module +10. Edit the default style at admin/structure/quicktabs/styles +11. Control the style of individual Quicktabs instances by editing the instance in +question and selecting from the style dropdown. + +Note: +------------------------------------------------------------------------------- +Because Quicktabs allows your tabbed content to be pulled via ajax, it has its +own menu callback for getting this content and returning it in JSON format. For +node content, it uses the standard node_access check to make sure the user has +access to this content. It is important to note that ANY node can be viewed +from this menu callback; if you go to it directly at quicktabs/ajax/node/[nid] +it will return a JSON text string of the node information. If there are certain +fields in ANY of your nodes that are supposed to be private, these MUST be +controlled at admin/content/node-type/MY_NODE_TYPE/display by setting them to +be excluded on teaser and node view. Setting them as private through some other +mechanism, e.g. Panels, will not affect their being displayed in an ajax Quicktab. + +For Developers: +------------------------------------------------------------------------------- +The basic Quicktabs functionality can be extended in several ways. The most basic is +to use the quicktabs_build_quicktabs() function to create Quicktabs instances +programmatically, putting whatever you want into the Quicktabs instance. This function +takes 3 parameters: +$name - the name of an existing Quicktabs instance (i.e. existing in the database or +in code), or a new name if creating an instance from scratch +$overrides - an array of options to override the settings for the existing instance, or +to override the default settings if creating an instance from scratch +$custom_tabs - an array of tab content arrays. A very basic tab content array would be +array('title' => 'My Custom Tab', 'contents' => 'Some text'). +One example of where this might prove useful is in a hook_page_alter implementation, +where you could essentially put any render array that's part of the page into a +Quicktabs instance. The contents property of a cusom tab can be a render array or +a string of html. + +Another way to extend Quicktabs is to add a renderer plugin. Quicktabs comes with +3 renderer plugins: jQuery UI Tabs, jQuery UI Accordion, and classic Quicktabs. A +renderer plugin is a class that extends the QuickRenderer class and implements the +render() method, returning a render array that can be passed to drupal_render(). +See any of the existing renderer plugins for examples. Also see Quicktabs' implement- +ation of hook_quicktabs_renderers(). + +Lastly, Quicktabs can be extended by adding new types of entities that can be loaded +as tab content. Quicktabs itself provides the node, block, view, qtabs and callback +tab content types. Your contents plugins should extend the QuickContent class. See +the existing plugins and the hook_quicktabs_contents implementation for guidance. + + + +Author: +------------------------------------------------------------------------------- +Katherine Bailey +http://drupal.org/user/172987 + diff --git a/src/developerportal/all/modules/contrib/quicktabs/add-tab.gif b/src/developerportal/all/modules/contrib/quicktabs/add-tab.gif new file mode 100755 index 0000000..a7ed246 Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/add-tab.gif differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/css/quicktabs-admin.css b/src/developerportal/all/modules/contrib/quicktabs/css/quicktabs-admin.css new file mode 100755 index 0000000..6fe16d7 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/css/quicktabs-admin.css @@ -0,0 +1,79 @@ + +/* Admin form */ + +#qt-tablist-table .form-type-select label, +#qt-tablist-table .form-type-textfield label { + float: left; + clear: left; + min-width: 120px; + margin-right: 10px; +} +#qt-tablist-table .form-item { + margin-bottom: 5px; +} +#qt-tablist-table .form-item .description { + margin-top: 3px; +} +#qt-tablist-table .qt-tab-title { + width: 130px; + height: 125px; +} +#qt-tablist-table .qt-tab-type, +#qt-tablist-table .qt-tab-remove { + width: 100px; +} + +#qt-tablist-table .description { + white-space: normal; +} + +#qt-tablist-table .qt-tab-title .form-item .form-text { + width: 80px; +} +#qt-tablist-table .qt-tab-type label.option { + width: auto; +} +#qt-tablist-table .qt-tab-content .form-item .form-text { + width: 150px; +} +#qt-tablist-table .qt-tab-options-form { + border-bottom: 1px solid #999; + padding: 5px; +} +html.js #qt-tablist-table .qt-tab-options-form { + display: none; + border-bottom: none; + padding: 0px; +} +#qt-tablist-table .qt-tab-remove label, +#quicktabs-form #add-more-tabs-button label { + font-weight: bold; + float: left; + clear: left; + width: auto; +} +#quicktabs-form #add-more-tabs-button { + width: 100px; + display: block; + margin-top: 20px; + float: right; +} +#quicktabs-form .add-tab, +#qt-tablist-table .delete-tab { + display: block; + overflow: hidden; + width: 39px; + height: 23px; + padding: 0; + margin: 0; + border: 0; + text-indent: -9999px; + cursor: pointer; +} + +#quicktabs-form .add-tab { + background: transparent url(../add-tab.gif) no-repeat 0 -3px; +} +#quicktabs-form .delete-tab { + background: transparent url(../delete-tab.gif) no-repeat 0 0; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/css/quicktabs.css b/src/developerportal/all/modules/contrib/quicktabs/css/quicktabs.css new file mode 100755 index 0000000..71ccecd --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/css/quicktabs.css @@ -0,0 +1,17 @@ +.quicktabs-hide { + display: none; +} + +ul.quicktabs-tabs { + margin-top: 0; +} +ul.quicktabs-tabs li { + display: inline; + background: none; + list-style-type: none; + padding: 2px; + white-space: nowrap; +} +ul.quicktabs-tabs li a:focus { + outline: none; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/delete-tab.gif b/src/developerportal/all/modules/contrib/quicktabs/delete-tab.gif new file mode 100755 index 0000000..c1aadc4 Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/delete-tab.gif differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/includes/quicktabs_style_plugin.inc b/src/developerportal/all/modules/contrib/quicktabs/includes/quicktabs_style_plugin.inc new file mode 100755 index 0000000..1a9e1c0 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/includes/quicktabs_style_plugin.inc @@ -0,0 +1,166 @@ + 'default'); + $options['tab_title_field'] = array('default' => NULL); + + return $options; + } + + // Create the options form. + function options_form(&$form, &$form_state) { + parent::options_form($form, $form_state); + $options = array(); + $styles = module_invoke_all('quicktabs_tabstyles'); + // The keys used for options must be valid html id-s. + // Removing the css file path, because that can't be used. + foreach ($styles as $style) { + $options[$style] = $style; + } + ksort($options); + $form['tab_style'] = array( + '#type' => 'select', + '#title' => t('Tab style'), + '#options' => array('nostyle' => t('No style'), 'default' => t('Default style')) + $options, + '#default_value' => $this->options['tab_style'], + '#description' => t('The tab style that will be applied to this set of tabs. Note that this style may not show in the live preview.'), + '#weight' => -5, + ); + + if (isset($form['grouping'])) { + $options = array(); + foreach (element_children($form['grouping']) as $key => $value) { + if (!empty($form['grouping'][$key]['field']['#options']) && is_array($form['grouping'][$key]['field']['#options'])) { + $options = array_merge($options, $form['grouping'][$key]['field']['#options']); + } + } + + unset($options['']); + $form['tab_title_field'] = array( + '#type' => 'select', + '#title' => t('Title field'), + '#options' => $options, + '#required' => TRUE, + '#default_value' => $this->options['tab_title_field'], + '#description' => t('Select the field that will be used as the tab title.'), + '#weight' => -3, + ); + } + } + + // Ensure we have all the settings necessary to render into tabs. + function validate() { + $errors = parent::validate(); + + // Ensure that we're using the field row style. + if (!$this->row_plugin->uses_fields()) { + $errors[] = t('Display "@display" uses the "@style" row style, but the Quicktabs display style requires use of the "Fields" row style.', array('@display' => $this->display->display_title, '@style' => $this->row_plugin->definition['title'])); + } + + // Ensure that a valid tab title field is selected. + $fields = $this->display->handler->get_handlers('field'); + if (empty($this->options['tab_title_field']) || !isset($fields[$this->options['tab_title_field']])) { + $errors[] = t('The Quicktabs display style requires that a field be configured to be used as the tab title.'); + } + + return $errors; + } + + // Override the render functionality. + function render() { + if (empty($this->row_plugin)) { + vpr('views_plugin_style_default: Missing row plugin'); + return; + } + + $view = $this->view; + $qt_name = 'view__' . $view->name .'__'. $view->current_display; + + // Group the rows according to the grouping field, if specified. + $sets = $this->render_grouping($this->view->result, $this->options['grouping']); + $tabs = array(); + + foreach ($sets as $title => $records) { + if ($this->uses_row_plugin()) { + $rows = array(); + foreach ($records as $row_index => $row) { + $this->view->row_index = $row_index; + $rows[] = $this->row_plugin->render($row); + } + } + else { + $rows = $records; + } + + // If grouped, we'll be using the group title for each tab. + if ($this->options['grouping']) { + + // Remove labels from titles. + foreach (element_children($this->options['grouping']) as $key => $value) { + if (!empty($this->view->field[$this->options['grouping'][$key]['field']]->options['label'])) { + $title = str_replace($this->view->field[$this->options['grouping'][$key]['field']]->options['label'] . ': ', '', $title); + } + } + + $contents = ''; + foreach ($rows as $row) { + $contents .= '
      ' . $row . '
      '; + } + $tabs[] = array( + 'title' => $title, + 'contents' => array('#markup' => $contents), + ); + } + + // If not grouped, there's just one set of rows that we loop through. + else { + foreach ($rows as $index => $row) { + $title = $this->get_field($index, $this->options['tab_title_field']); + $tabs[] = array( + 'title' => $title, + 'contents' => array('#markup' => $row), + ); + } + } + } + + $overrides = array('style' => $view->style_options['tab_style'], 'sorted' => TRUE); + $quicktabs = quicktabs_build_quicktabs($qt_name, $overrides, $tabs); + + $output = drupal_render($quicktabs); + + // If doing a live preview, add the JavaScript directly to the output. + if (isset($view->live_preview) && $view->live_preview) { + $js = drupal_add_js(); + $qtsettings = array(); + foreach ($js['settings']['data'] as $settings) { + if (isset($settings['quicktabs']['qt_'. $qt_name])) { + $qtsettings = $settings['quicktabs']['qt_'. $qt_name]; + break; + } + } + + $output .= "\n"; + } + + unset($view->row_index); + + return $output; + } + +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/js/qt_accordion.js b/src/developerportal/all/modules/contrib/quicktabs/js/qt_accordion.js new file mode 100755 index 0000000..83a94a9 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/js/qt_accordion.js @@ -0,0 +1,23 @@ +(function ($) { + +Drupal.behaviors.qt_accordion = { + attach: function (context, settings) { + $('.quick-accordion', context).once(function(){ + var id = $(this).attr('id'); + var qtKey = 'qt_' + this.id.substring(this.id.indexOf('-') +1); + var options = settings.quicktabs[qtKey].options; + + options.active = parseInt(settings.quicktabs[qtKey].active_tab); + if (settings.quicktabs[qtKey].history) { + options.event = 'change'; + $(this).accordion(options); + Drupal.quicktabsBbq($(this), 'h3 a', 'h3'); + } + else { + $(this).accordion(options); + } + }); + } +} + +})(jQuery); diff --git a/src/developerportal/all/modules/contrib/quicktabs/js/qt_ui_tabs.js b/src/developerportal/all/modules/contrib/quicktabs/js/qt_ui_tabs.js new file mode 100755 index 0000000..ad6b5a8 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/js/qt_ui_tabs.js @@ -0,0 +1,21 @@ +(function ($) { + +Drupal.behaviors.qt_ui_tabs = { + attach: function (context, settings) { + + $('.quicktabs-ui-wrapper').once('qt-ui-tabs-processed', function() { + var id = $(this).attr('id'); + var qtKey = 'qt_' + id.substring(id.indexOf('-') +1); + if (!settings.quicktabs[qtKey].history) { + $(this).tabs(); + } + else { + $(this).tabs({event: 'change'}); + Drupal.quicktabsBbq($(this), 'ul.ui-tabs-nav a'); + } + }); + + } +} + +})(jQuery); diff --git a/src/developerportal/all/modules/contrib/quicktabs/js/quicktabs.js b/src/developerportal/all/modules/contrib/quicktabs/js/quicktabs.js new file mode 100755 index 0000000..b4e2db2 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/js/quicktabs.js @@ -0,0 +1,118 @@ +(function ($) { +Drupal.settings.views = Drupal.settings.views || {'ajax_path': '/views/ajax'}; + +Drupal.quicktabs = Drupal.quicktabs || {}; + +Drupal.quicktabs.getQTName = function (el) { + return el.id.substring(el.id.indexOf('-') +1); +} + +Drupal.behaviors.quicktabs = { + attach: function (context, settings) { + $.extend(true, Drupal.settings, settings); + $('.quicktabs-wrapper', context).once(function(){ + Drupal.quicktabs.prepare(this); + }); + } +} + +// Setting up the inital behaviours +Drupal.quicktabs.prepare = function(el) { + // el.id format: "quicktabs-$name" + var qt_name = Drupal.quicktabs.getQTName(el); + var $ul = $(el).find('ul.quicktabs-tabs:first'); + $ul.find('li a').each(function(i, element){ + element.myTabIndex = i; + element.qt_name = qt_name; + var tab = new Drupal.quicktabs.tab(element); + var parent_li = $(element).parents('li').get(0); + if ($(parent_li).hasClass('active')) { + $(element).addClass('quicktabs-loaded'); + } + $(element).once(function() {$(this).bind('click', {tab: tab}, Drupal.quicktabs.clickHandler);}); + }); +} + +Drupal.quicktabs.clickHandler = function(event) { + var tab = event.data.tab; + var element = this; + // Set clicked tab to active. + $(this).parents('li').siblings().removeClass('active'); + $(this).parents('li').addClass('active'); + + // Hide all tabpages. + tab.container.children().addClass('quicktabs-hide'); + + if (!tab.tabpage.hasClass("quicktabs-tabpage")) { + tab = new Drupal.quicktabs.tab(element); + } + + tab.tabpage.removeClass('quicktabs-hide'); + return false; +} + +// Constructor for an individual tab +Drupal.quicktabs.tab = function (el) { + this.element = el; + this.tabIndex = el.myTabIndex; + var qtKey = 'qt_' + el.qt_name; + var i = 0; + for (var i = 0; i < Drupal.settings.quicktabs[qtKey].tabs.length; i++) { + if (i == this.tabIndex) { + this.tabObj = Drupal.settings.quicktabs[qtKey].tabs[i]; + this.tabKey = i; + } + } + this.tabpage_id = 'quicktabs-tabpage-' + el.qt_name + '-' + this.tabKey; + this.container = $('#quicktabs-container-' + el.qt_name); + this.tabpage = this.container.find('#' + this.tabpage_id); +} + +if (Drupal.ajax) { + /** + * Handle an event that triggers an AJAX response. + * + * We unfortunately need to override this function, which originally comes from + * misc/ajax.js, in order to be able to cache loaded tabs, i.e. once a tab + * content has loaded it should not need to be loaded again. + * + * I have removed all comments that were in the original core function, so that + * the only comments inside this function relate to the Quicktabs modification + * of it. + */ + Drupal.ajax.prototype.eventResponse = function (element, event) { + var ajax = this; + + if (ajax.ajaxing) { + return false; + } + + try { + if (ajax.form) { + if (ajax.setClick) { + element.form.clk = element; + } + + ajax.form.ajaxSubmit(ajax.options); + } + else { + // Do not perform an ajax request for already loaded Quicktabs content. + if (!$(element).hasClass('quicktabs-loaded')) { + ajax.beforeSerialize(ajax.element, ajax.options); + $.ajax(ajax.options); + if ($(element).parents('ul').hasClass('quicktabs-tabs')) { + $(element).addClass('quicktabs-loaded'); + } + } + } + } + catch (e) { + ajax.ajaxing = false; + alert("An error occurred while attempting to process " + ajax.options.url + ": " + e.message); + } + return false; + }; +} + + +})(jQuery); diff --git a/src/developerportal/all/modules/contrib/quicktabs/js/quicktabs_bbq.js b/src/developerportal/all/modules/contrib/quicktabs/js/quicktabs_bbq.js new file mode 100755 index 0000000..72dc60b --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/js/quicktabs_bbq.js @@ -0,0 +1,37 @@ +/** + * @file + * Implements history using the BBQ plugin. + * See http://benalman.com/code/projects/jquery-bbq/examples/fragment-jquery-ui-tabs + */ +(function($) { + +Drupal.quicktabsBbq = function($tabset, clickSelector, changeSelector) { + + changeSelector = changeSelector || clickSelector; + + // Define our own click handler for the tabs, overriding the default. + $(clickSelector, $tabset).each(function(i, el){ + this.tabIndex = i; + $(this).click(function(e){ + e.preventDefault(); + var state = {}, + id = $tabset.attr('id'), // qt container id + idx = this.tabIndex; // tab index + + state[id] = idx; + $.bbq.pushState(state); + }); + }); + + $(window).bind('hashchange', function(e) { + $tabset.each(function() { + var idx = $.bbq.getState(this.id, true); + var $active_link = $(this).find(changeSelector).eq(idx); + $active_link.triggerHandler('change'); + }); + }); + + $(window).trigger('hashchange'); +} + +})(jQuery); \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/quicktabs/js/quicktabs_form.js b/src/developerportal/all/modules/contrib/quicktabs/js/quicktabs_form.js new file mode 100755 index 0000000..fa8376a --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/js/quicktabs_form.js @@ -0,0 +1,17 @@ +(function ($) { + +Drupal.quicktabsShowHide = function() { + $(this).parents('tr').find('div.qt-tab-' + this.value + '-options-form').show().siblings('div.qt-tab-options-form').hide(); +}; + +Drupal.behaviors.quicktabsform = { + attach: function (context, settings) { + $('#quicktabs-form tr').once(function(){ + var currentRow = $(this); + currentRow.find('div.form-item :input[name*="type"]').bind('click', Drupal.quicktabsShowHide); + $(':input[name*="type"]:checked', this).trigger('click'); + }) + } +}; + +})(jQuery); diff --git a/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickAccordion.inc b/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickAccordion.inc new file mode 100755 index 0000000..5f0ecd3 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickAccordion.inc @@ -0,0 +1,100 @@ + 'checkbox', + '#title' => 'History', + '#description' => t('Store tab state in the URL allowing for browser back / forward and bookmarks.'), + '#default_value' => (isset($qt->renderer) && $qt->renderer == 'accordion' && isset($qt->options['history']) && $qt->options['history']), + ); + $form['jquery_ui'] = array( + '#type' => 'fieldset', + '#title' => t('JQuery UI options'), + ); + $form['jquery_ui']['autoHeight'] = array( + '#type' => 'checkbox', + '#title' => 'Autoheight', + '#default_value' => (isset($qt->renderer) && $qt->renderer == 'accordion' && isset($qt->options['jquery_ui']['autoHeight']) && $qt->options['jquery_ui']['autoHeight']), + ); + $form['jquery_ui']['collapsible'] = array( + '#type' => 'checkbox', + '#title' => t('Collapsible'), + '#default_value' => (isset($qt->renderer) && $qt->renderer == 'accordion' && isset($qt->options['jquery_ui']['collapsible']) && $qt->options['jquery_ui']['collapsible']), + ); + return $form; + } + + public function render() { + $quickset = $this->quickset; + $qsid = 'quickset-' . $quickset->getName(); + // Build our render array... + $render_array = array(); + $render_array['#attached'] = $this->add_attached(); + $render_array['content'] = array( + '#theme' => 'qt_accordion', + '#options' => array('attributes' => array( + 'id' => $qsid, + 'class' => array('quick-accordion'), + )), + 'divs' => array(), + ); + + // Render all tab content. + foreach ($quickset->getContents() as $key => $item) { + if (!empty($item)) { + $render_array['content']['divs'][] = array( + '#prefix' => '

      '. check_plain($quickset->translateString($item->getTitle(), 'tab', $key)) .'

      ', + '#suffix' => '
      ', + 'content' => $item->render(), + ); + } + } + return $render_array; + } + + /** + * Add any necessary js, css and libraries for the render array. + */ + protected function add_attached() { + $settings = $this->quickset->getSettings(); + $options = $settings['options']; + + $attached = array( + 'library' => array( + array('system', 'ui.accordion'), + ), + 'js' => array( + array('data' => drupal_get_path('module', 'quicktabs') . '/js/qt_accordion.js'), + ), + ); + + $javascript = drupal_add_js(); + if (isset($javascript['settings']['data'])) { + foreach ($javascript['settings']['data'] as $key => $settings) { + if (key($settings) == 'quicktabs') { + $qtkey = $key; + break; + } + } + } + + if ($options['history']) { + $attached['library'][] = array('system', 'jquery.bbq'); + $attached['js'][] = array('data' => drupal_get_path('module', 'quicktabs') . '/js/quicktabs_bbq.js'); + } + + $name = $this->quickset->getName(); + if (!isset($qtkey) || !array_key_exists('qt_' . $name, $javascript['settings']['data'][$qtkey]['quicktabs'])) { + $quicktabs_array = array('name' => $name, 'active_tab' => $this->quickset->getActiveTab(), 'options' => $options['jquery_ui'], 'history' => $options['history']); + $attached['js'][] = array('data' => array('quicktabs' => array('qt_'. $name => $quicktabs_array)), 'type' => 'setting'); + } + return $attached; + } + +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickBlockContent.inc b/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickBlockContent.inc new file mode 100755 index 0000000..500e183 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickBlockContent.inc @@ -0,0 +1,124 @@ +settings; + $form = array(); + $form['block']['bid'] = array( + '#type' => 'select', + '#options' => quicktabs_get_blocks(), + '#default_value' => isset($tab['bid']) ? $tab['bid'] : '', + '#title' => t('Select a block'), + ); + $form['block']['hide_title'] = array( + '#type' => 'checkbox', + '#title' => t('Hide the title of this block'), + '#default_value' => isset($tab['hide_title']) ? $tab['hide_title'] : 1, + ); + return $form; + } + + public function render($hide_empty = FALSE, $args = array()) { + if ($this->rendered_content) { + return $this->rendered_content; + } + $output = array(); + $item = $this->settings; + if (!empty($args)) { + // The args have been passed in from an ajax request. + $qt_name = array_shift($args); + list($item['bid'], $item['hide_title']) = $args; + + // Ensure the block is assigned to the requested quicktabs block. This test prevents + // AJAX access to blocks that have not been added to an AJAX-enabled quicktabs block. + $break = TRUE; + $quicktabs = quicktabs_load($qt_name); + // Ensure AJAX is enabled for the quicktabs block. + if (!empty($quicktabs) && $quicktabs->ajax == 1) { + // Ensure the requested tab has been added to the quicktabs block. + foreach ($quicktabs->tabs as $quicktab) { + if (isset($quicktab['bid']) && ($quicktab['bid'] == $item['bid'])) { + $break = FALSE; + break; + } + } + } + if ($break == TRUE) { + if (!$hide_empty) { + $output['#markup'] = theme('quicktabs_tab_access_denied', $item); + } + return $output; + } + } + + if (isset($item['bid'])) { + if (module_exists('block')) { + $pos = strpos($item['bid'], '_delta_'); + $module = drupal_substr($item['bid'], 0, $pos); + $delta = drupal_substr($item['bid'], $pos + 7); + + // Make sure the user can access the block. + if ($this->accessBlock($module, $delta)) { + + $block = block_load($module, $delta); + $block->region = 'quicktabs_tabpage'; + + if ($block_arr = _block_render_blocks(array($block))) { + if ($item['hide_title']) { + $block_arr["{$block->module}_{$block->delta}"]->subject = FALSE; + } + if (!empty($block_arr["{$block->module}_{$block->delta}"]->content)) { + $build = _block_get_renderable_array($block_arr); + $output = $build; + } + } + } + elseif (!$hide_empty) { + $output['#markup'] = theme('quicktabs_tab_access_denied', $item); + } + } + elseif (!$hide_empty) { + $output['#markup'] = t('Block module is not enabled, cannot display content.'); + } + } + $this->rendered_content = $output; + return $output; + } + + public function getAjaxKeys() { + return array('bid', 'hide_title'); + } + + /** + * Checks if the current user can access a block. + */ + private function accessBlock($module, $delta) { + // Get current user's rids. + global $user; + $rids = array_keys($user->roles); + + // Get authorized rids. + $authorized_rids = db_select('block_role', 'br') + ->fields('br', array('rid')) + ->condition('module', $module, '=') + ->condition('delta', $delta, '=') + ->execute() + ->fetchCol('rid'); + + // Return whether the user can access the block: + // - Either all roles have access - no record in {block_role} + // - Or only specific roles have access - in which case rids should match. + return (count($authorized_rids) == 0) + || (count(array_intersect($authorized_rids, $rids)) != 0); + } +} + diff --git a/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickCallbackContent.inc b/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickCallbackContent.inc new file mode 100755 index 0000000..fffe037 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickCallbackContent.inc @@ -0,0 +1,92 @@ + $arg) { + $path = str_replace("%$id", $arg, $path); + } + $path = preg_replace(',/?(%\d),', '', $path); + if (!empty($path)) { + $this->settings['ajax_path'] = rawurlencode($path); + } + else { + $this->settings['ajax_path'] = ''; + } + $this->settings['actual_path'] = $path; + } + } + + public function optionsForm($delta, $qt) { + $tab = $this->settings; + $form = array(); + $form['callback']['path'] = array( + '#type' => 'textfield', + '#default_value' => isset($tab['path']) ? $tab['path'] : '', + '#title' => t('Path'), + '#element_validate' => array('quicktabs_callback_element_validate'), + ); + return $form; + } + + public function render($hide_empty = FALSE, $args = array()) { + if ($this->rendered_content) { + return $this->rendered_content; + } + $item = $this->settings; + if (!empty($args)) { + // The args have been passed in from an ajax request. + // The first element of the args array is the qt_name, which we don't need + // for this content type. + array_shift($args); + $item['actual_path'] = rawurldecode($args[0]); + $_GET['q'] = $item['actual_path']; + } + + $output = array(); + if (isset($item['actual_path'])) { + // Retain the current page title as we'll need to set it back after + // calling menu_execute_active_handler(). + $page_title = drupal_get_title(); + $response = menu_execute_active_handler($item['actual_path'], FALSE); + // Revert the page title. + drupal_set_title($page_title); + + if (!is_array($response)) { + if (is_int($response)) { + if (MENU_ACCESS_DENIED == $response && !$hide_empty) { + $output['#markup'] = theme('quicktabs_tab_access_denied', array('tab' => $item)); + } + // For any other integer response form the menu callback, we'll just + // return an empty array. + } + else { + $output = array('#markup' => $response); + } + } + else { + $output = $response; + } + } + $this->rendered_content = $output; + return $output; + } + + public function getAjaxKeys() { + return array('ajax_path'); + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickNodeContent.inc b/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickNodeContent.inc new file mode 100755 index 0000000..2010ea1 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickNodeContent.inc @@ -0,0 +1,78 @@ +settings; + $form = array(); + $form['node']['nid'] = array( + '#type' => 'textfield', + '#title' => t('Node'), + '#description' => t('The node ID of the node.'), + '#maxlength' => 10, + '#size' => 20, + '#default_value' => isset($tab['nid']) ? $tab['nid'] : '', + ); + $entity_info = entity_get_info('node'); + $view_modes = array(); + foreach ($entity_info['view modes'] as $view_mode_name => $view_mode) { + $view_modes[$view_mode_name] = $view_mode['label']; + } + $form['node']['view_mode'] = array( + '#type' => 'select', + '#title' => t('View mode'), + '#options' => $view_modes, + '#default_value' => isset($tab['view_mode']) ? $tab['view_mode'] : 'full', + ); + $form['node']['hide_title'] = array( + '#type' => 'checkbox', + '#title' => t('Hide the title of this node'), + '#default_value' => isset($tab['hide_title']) ? $tab['hide_title'] : 1, + ); + return $form; + } + + public function render($hide_empty = FALSE, $args = array()) { + if ($this->rendered_content) { + return $this->rendered_content; + } + $item = $this->settings; + if (!empty($args)) { + // The args have been passed in from an ajax request. + // The first element of the args array is the qt_name, which we don't need + // for this content type. + array_shift($args); + list($item['nid'], $item['view_mode'], $item['hide_title']) = $args; + } + $output = array(); + if (isset($item['nid'])) { + $node = node_load($item['nid']); + if (!empty($node)) { + if (node_access('view', $node)) { + $buildmode = $item['view_mode']; + $nstruct = node_view($node, $buildmode); + if ($item['hide_title']) { + $nstruct['#node']->title = NULL; + } + $output = $nstruct; + } + elseif (!$hide_empty) { + $output = array('#markup' => theme('quicktabs_tab_access_denied', array('tab' => $item))); + } + } + } + return $output; + } + + public function getAjaxKeys() { + return array('nid', 'view_mode', 'hide_title'); + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickQtabsContent.inc b/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickQtabsContent.inc new file mode 100755 index 0000000..7c395c6 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickQtabsContent.inc @@ -0,0 +1,65 @@ +settings; + $form = array(); + $tab_options = array(); + foreach (quicktabs_load_multiple() as $machine_name => $info) { + // Do not offer the option to put a tab inside itself. + if (!isset($qt->machine_name) || $machine_name != $qt->machine_name) { + $tab_options[$machine_name] = $info->title; + } + } + $form['qtabs']['machine_name'] = array( + '#type' => 'select', + '#title' => t('Quicktabs instance'), + '#description' => t('The Quicktabs instance to put inside this tab.'), + '#options' => $tab_options, + '#default_value' => isset($tab['machine_name']) ? $tab['machine_name'] : '', + ); + return $form; + } + + public function render($hide_empty = FALSE, $args = array()) { + if ($this->rendered_content) { + return $this->rendered_content; + } + $item = $this->settings; + if (!empty($args)) { + // The args have been passed in from an ajax request. + // The first element of the args array is the qt_name, which we don't need + // for this content type. + array_shift($args); + $item['machine_name'] = $args[0]; + } + + $output = array(); + if (isset($item['machine_name'])) { + if ($quicktabs = quicktabs_load($item['machine_name'])) { + $contents = $quicktabs->tabs; + $name = $quicktabs->machine_name; + unset($quicktabs->tabs, $quicktabs->machine_name); + $options = (array) $quicktabs; + if ($qt = QuickSet::QuickSetRendererFactory($name, $contents, $quicktabs->renderer, $options)) { + $output = $qt->render(); + } + } + } + $this->rendered_content = $output; + return $output; + } + + public function getAjaxKeys() { + return array('machine_name'); + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickQuicktabs.inc b/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickQuicktabs.inc new file mode 100755 index 0000000..28d100b --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickQuicktabs.inc @@ -0,0 +1,161 @@ +quickset; + + $render_array = array(); + + $active_tab = $quickset->getActiveTab(); + if ($tabs = $this->build_tablinks($active_tab)) { + $render_array['#attached'] = $this->add_attached(); + + $qt_name = $quickset->getName(); + $settings = $quickset->getSettings(); + $contents = $quickset->getContents(); + + $render_array['content'] = array( + '#theme' => 'qt_quicktabs', + '#options' => array('attributes' => array( + 'id' => 'quicktabs-' . $qt_name, + 'class' => 'quicktabs-wrapper quicktabs-style-' . drupal_html_class($settings['style']), + )), + 'tabs' => array('#theme' => 'qt_quicktabs_tabset', '#options' => array('active' => $active_tab, 'style' => drupal_html_class($settings['style'])), 'tablinks' => $tabs), + // The main content area, each quicktab container needs a unique id. + 'container' => array( + '#prefix' => '
      ', + '#suffix' => '
      ', + 'divs' => array(), + ), + ); + + // If in ajax mode, we'll only be rendering one tab, otherwise all of them. + $tabs_to_render = $settings['ajax'] ? array($active_tab => $contents[$active_tab]) : $contents; + foreach ($tabs_to_render as $key => $tab) { + if (!empty($tab)) { + $attribs = array( + 'id' => 'quicktabs-tabpage-'. $qt_name . '-'. $key, + 'class' => array('quicktabs-tabpage', ($active_tab == $key ? '' : 'quicktabs-hide')), + ); + $render_array['content']['container']['divs'][] = array( + '#prefix' => '
      ', + '#suffix' => '
      ', + 'content' => $tab->render(), + ); + } + } + } + return $render_array; + } + + /** + * Build the actual tab links, with appropriate href, title and attributes. + * + * @param $active_tab The index of the active tab. + */ + protected function build_tablinks($active_tab) { + $quickset = $this->quickset; + $settings = $quickset->getSettings(); + $tabs = array(); + foreach ($quickset->getContents() as $i => $tab) { + if (!empty($tab)) { + $tablink = array( + '#type' => 'link', + '#title' => $quickset->translateString($tab->getTitle(), 'tab', $i), + '#href' => $_GET['q'], + '#options' => $this->construct_link_options($i), + ); + if ($settings['ajax']) { + $tab_settings = $tab->getSettings(); + $ajax_keys = $tab->getAjaxKeys(); + $ajax_args = array(); + foreach ($ajax_keys as $key) { + $ajax_args[] = $tab_settings[$key]; + } + $ajax_path = $quickset->getAjaxPath($i, $tab->getType()); + $ajax_href = $ajax_path . '/'. implode('/', $ajax_args); + $tablink['#ajax'] = array( + 'progress' => array('message' => '', 'type' => 'throbber'), + 'path' => $ajax_href, + ); + } + $tabs[$i] = $tablink; + } + } + return $tabs; + } + + /** + * Add any necessary js, css and libraries for the render array. + */ + protected function add_attached() { + $attached = array( + 'css' => array( + array('data' => drupal_get_path('module', 'quicktabs') .'/css/quicktabs.css'), + ), + 'js' => array( + array('data' => drupal_get_path('module', 'quicktabs') . '/js/quicktabs.js'), + array('data' => 'misc/progress.js', 'weight' => JS_LIBRARY), + ), + ); + $settings = $this->quickset->getSettings(); + // Add the custom style css if a custom style has been set. + $style_css = quicktabs_get_css($settings['style']); + if (!empty($style_css)) { + $attached['css'][] = $style_css; + } + // Prepare a tab_settings array for passing the tab info to our JavaScript. + $tab_settings = array(); + foreach ($this->quickset->getContents() as $i => $content) { + if (!empty($content)) { + $tab_settings[$i] = $content->getSettings(); + } + } + // Add our JS settings + $javascript = drupal_add_js(); + if (isset($javascript['settings']['data'])) { + foreach ($javascript['settings']['data'] as $key => $settings) { + if (key($settings) == 'quicktabs') { + $qtkey = $key; + break; + } + } + } + $name = $this->quickset->getName(); + if (!isset($qtkey) || (isset($javascript['settings']['data'][$qtkey]['quicktabs']) + && !array_key_exists('qt_' . $name, $javascript['settings']['data'][$qtkey]['quicktabs']))) { + $quicktabs_array = array_merge(array('name' => $name, 'tabs' => $tab_settings), $settings); + $attached['js'][] = array('data' => array('quicktabs' => array('qt_' . $name => $quicktabs_array)), 'type' => 'setting'); + } + return $attached; + } + + /** + * Helper function to construct link options for tab links. + */ + protected function construct_link_options($tabkey) { + $qt_name = $this->quickset->getName(); + $settings = $this->quickset->getSettings(); + + $id = 'quicktabs-tab-' . implode('-', array($qt_name, $tabkey)); + + // Need to construct the correct querystring for the tab links. + $query = drupal_get_query_parameters(NULL, array("qt-$qt_name", 'q', 'page')); + $query["qt-{$qt_name}"] = $tabkey; + + $link_options = array( + 'attributes' => array( + 'id' => $id, + ), + 'query' => $query, + 'fragment' => 'qt-' . $qt_name, + 'html' => isset($settings['html']) ? $settings['html'] : FALSE, + ); + return $link_options; + } +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickUiTabs.inc b/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickUiTabs.inc new file mode 100755 index 0000000..dabb4c7 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickUiTabs.inc @@ -0,0 +1,115 @@ + 'checkbox', + '#title' => 'History', + '#description' => t('Store tab state in the URL allowing for browser back / forward and bookmarks.'), + '#default_value' => (isset($qt->renderer) && $qt->renderer == 'ui_tabs' && isset($qt->options['history']) && $qt->options['history']), + ); + return $form; + } + + public function render() { + $quickset = $this->quickset; + + $active_tab = $quickset->getActiveTab(); + $tabs = $this->build_tablinks($active_tab); + $qt_name = $quickset->getName(); + $render_array = array( + '#attached' => $this->add_attached(), + 'content' => array( + '#theme' => 'qt_ui_tabs', + '#options' => array('attributes' => array( + 'id' => 'quicktabs-' . $qt_name, + 'class' => 'quicktabs-ui-wrapper', + )), + 'tabs' => array('#theme' => 'qt_ui_tabs_tabset', '#options' => array('active' => $active_tab), 'tablinks' => $tabs), + 'divs' => array(), + ), + ); + foreach ($quickset->getContents() as $key => $tab) { + if (!empty($tab)) { + $attribs = array( + 'id' => 'qt-'. $qt_name .'-ui-tabs' . ($key+1), + ); + $render_array['content']['divs'][] = array( + '#prefix' => '
      ', + '#suffix' => '
      ', + 'content' => $tab->render(), + ); + } + } + return $render_array; + } + + + /** + * Build the actual tab links, with appropriate href, title and attributes. + * + * @param $active_tab The index of the active tab. + */ + protected function build_tablinks($active_tab) { + $tabs = array(); + $qt_name = $this->quickset->getName(); + foreach ($this->quickset->getContents() as $i => $tab) { + if (!empty($tab)) { + // If we use l() here or a render array of type 'link', the '#' symbol will + // be escaped. Sad panda is sad. + $href = '#qt-'. $qt_name .'-ui-tabs' . ($i+1); + $tablink = array( + '#markup' => ''. check_plain($this->quickset->translateString($tab->getTitle(), 'tab', $i)) .'', + ); + $tabs[$i] = $tablink; + } + } + return $tabs; + } + + /** + * Add any necessary js, css and libraries for the render array. + */ + protected function add_attached() { + $active_tab = $this->quickset->getActiveTab(); + $settings = $this->quickset->getSettings(); + $options = $settings['options']; + + $attached = array( + 'library' => array( + array('system', 'ui.tabs'), + array('system', 'jquery.bbq'), + ), + 'js' => array( + array('data' => drupal_get_path('module', 'quicktabs') . '/js/qt_ui_tabs.js', 'weight' => JS_DEFAULT + 1), + ), + ); + + $javascript = drupal_add_js(); + if (isset($javascript['settings']['data'])) { + foreach ($javascript['settings']['data'] as $key => $settings) { + if (key($settings) == 'quicktabs') { + $qtkey = $key; + break; + } + } + } + + if ($options['history']) { + $attached['library'][] = array('system', 'jquery.bbq'); + $attached['js'][] = array('data' => drupal_get_path('module', 'quicktabs') . '/js/quicktabs_bbq.js', 'weight' => JS_DEFAULT); + } + + $name = $this->quickset->getName(); + if (!isset($qtkey) || !array_key_exists('qt_' . $name, $javascript['settings']['data'][$qtkey]['quicktabs'])) { + $quicktabs_array = array('name' => $name, 'active_tab' => $this->quickset->getActiveTab(), 'history' => $options['history']); + $attached['js'][] = array('data' => array('quicktabs' => array('qt_'. $name => $quicktabs_array)), 'type' => 'setting'); + } + return $attached; + } +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickViewContent.inc b/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickViewContent.inc new file mode 100755 index 0000000..2060c42 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/plugins/QuickViewContent.inc @@ -0,0 +1,140 @@ +settings; + $form = array(); + $views = quicktabs_get_views(); + $views_keys = array_keys($views); + + $selected_view = (isset($tab['vid']) ? $tab['vid'] : (isset($views_keys[0]) ? $views_keys[0] : '')); + $form['view']['vid'] = array( + '#type' => 'select', + '#options' => $views, + '#default_value' => $selected_view, + '#title' => t('Select a view'), + '#ajax' => array( + 'callback' => '_quicktabs_replace_view_displays_callback', + ), + ); + $form['view']['display'] = array( + '#type' => 'select', + '#title' => 'display', + '#options' => _quicktabs_get_views_displays($selected_view), + '#default_value' => isset($tab['display']) ? $tab['display'] : '', + '#prefix' => '
      ', + '#suffix' => '
      ' + ); + $form['view']['args'] = array( + '#type' => 'textfield', + '#title' => 'arguments', + '#size' => '40', + '#required' => FALSE, + '#default_value' => isset($tab['args']) ? $tab['args'] : '', + '#description' => t('Additional arguments to send to the view as if they were part of the URL in the form of arg1/arg2/arg3. You may use %0, %1, ..., %N to grab arguments from the URL.'), + ); + return $form; + } + + public function __construct($item) { + parent::__construct($item); + if (module_exists('views')) views_add_js('ajax_view'); + $this->settings['view_path'] = rawurlencode($_GET['q']); + $this->settings['view_dom_id'] = self::$view_dom_id++; + $args_array = array(); + $ajax_args = ''; + if (isset($item['args'])) { + $url_args = arg(); + $args = $item['args']; + + foreach ($url_args as $id => $arg) { + $args = str_replace("%$id", $arg, $args); + } + $args = preg_replace(',/?(%\d),', '', $args); + if (!empty($args)) { + $ajax_args = rawurlencode($args); + $args_array = explode('/', $args); + } + } + $this->settings['ajax_args'] = $ajax_args; + $this->settings['actual_args'] = $args_array; + } + + public function render($hide_empty = FALSE, $args = array()) { + if (!empty($args)) { + // The args have been passed in from an ajax request. We use Views' own + // ajax functionality to get the view. + // The first element of the args array is the qt_name, which we don't need + // for this content type. + array_shift($args); + // The order of these arguments corresponds to the array returned in + // $this->getAjaxKeys(). + $_REQUEST['view_name'] = array_shift($args); + $_REQUEST['view_display_id'] = array_shift($args); + $_REQUEST['view_dom_id'] = array_shift($args); + $view_path = array_shift($args); + $_REQUEST['view_path'] = rawurldecode($view_path); + if (!empty($args)) { + $view_args = array_shift($args); + $_REQUEST['view_args'] = rawurldecode($view_args); + } + + module_load_include('inc', 'views', 'includes/ajax'); + $view = views_ajax(); + foreach ($view['#commands'] as $command) { + if ($command['command'] == 'insert') { + return array('#markup' => trim($command['data'])); + } + } + return array(); + } + + // Non-ajax rendering of a view. + if ($this->rendered_content) { + return $this->rendered_content; + } + $item = $this->settings; + $output = array(); + if (isset($item['vid'])) { + if (module_exists('views')) { + if ($view = views_get_view($item['vid'])) { + if ($view->access($item['display'])) { + $view->set_display($item['display']); + $view->set_arguments($item['actual_args']); + $view_output = $view->preview(); + if (!empty($view->result) || $view->display_handler->get_option('empty') || !empty($view->style_plugin->definition['even empty'])) { + $output['#markup'] = $view_output; + } + } + elseif (!$hide_empty) { + $output['#markup'] = theme('quicktabs_tab_access_denied', array('tab' => $item)); + } + $view->destroy(); + } + } + elseif (!$hide_empty) { + $output['#markup'] = t('Views module is not enabled, cannot display content.'); + } + } + $this->rendered_content = $output; + return $output; + } + + public function getAjaxKeys() { + return array('vid', 'display', 'view_dom_id', 'view_path', 'ajax_args'); + } +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs.admin.inc b/src/developerportal/all/modules/contrib/quicktabs/quicktabs.admin.inc new file mode 100755 index 0000000..c003600 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs.admin.inc @@ -0,0 +1,655 @@ + t('QuickSet')), + array('data' => t('Storage')), + array('data' => t('Operations'), 'colspan' => 4), + ); + $rows = array(); + + foreach (quicktabs_load_multiple() as $qt) { + // Determine storage + switch ($qt->export_type) { + case EXPORT_IN_DATABASE | EXPORT_IN_CODE: + $storage = t('Overridden'); + $delete = l(t('Revert'), 'admin/structure/quicktabs/manage/'. $qt->machine_name .'/delete'); + break; + case EXPORT_IN_DATABASE: + $storage = t('Normal'); + $delete = l(t('Delete'), 'admin/structure/quicktabs/manage/'. $qt->machine_name .'/delete'); + break; + case EXPORT_IN_CODE: + $storage = t('Default'); + $delete = ''; + break; + } + + $tablerow = array( + array('data' => check_plain($qt->title)), + array('data' => $storage), + array('data' => l(t('Edit'), 'admin/structure/quicktabs/manage/'. $qt->machine_name .'/edit')), + array('data' => l(t('Export'), 'admin/structure/quicktabs/manage/'. $qt->machine_name .'/export')), + array('data' => l(t('Clone'), 'admin/structure/quicktabs/manage/'. $qt->machine_name .'/clone')), + array('data' => $delete), + ); + $rows[] = $tablerow; + } + + if (empty($rows)) { + $rows[] = array(array('data' => t('No quicktabs instances available.'), 'colspan' => 6)); + } + + $build = array( + '#theme' => 'table', + '#header' => $header, + '#rows' => $rows, + '#attributes' => array('id' => 'quicktabs'), + ); + return $build; +} + +/** + * Clone QuickTabs. + */ +function quicktabs_clone($qt) { + unset($qt->machine_name); + $qt->title = ''; + return drupal_get_form('quicktabs_form', 'clone', $qt); +} + +/** + * Build the quicktab creation and edit form. + */ +function quicktabs_form($form, &$form_state, $formtype, $qt = NULL) { + if (!isset($qt)) { + $qt = new stdClass; + } + $form = _quicktabs_admin_main_form($form_state, $qt); + + // If creating a new Quicktabs instance, start off with 2 empty tabs. + if (empty($qt->tabs)) { + $qt->tabs = array( + 0 => array(), + 1 => array(), + ); + } + + // If the "Add another" button was clicked, we need to increment the number of + // tabs by one. + if (isset($form_state['num_tabs']) && $form_state['num_tabs'] > count($qt->tabs)) { + $qt->tabs[] = array(); + } + $form_state['num_tabs'] = count($qt->tabs); + + // If the "Remove" button was clicked for a tab, we need to remove that tab + // from the form. + if (isset($form_state['to_remove'])) { + unset($qt->tabs[$form_state['to_remove']]); + unset($form_state['to_remove']); + $form_state['num_tabs']--; + } + + $tab_titles = array( + QUICKTABS_DELTA_NONE => t('- None -'), + ); + + // Add current tabs to the form. + foreach ($qt->tabs as $delta => $tab) { + $tab['delta'] = $delta; + $form['qt_wrapper']['tabs'][$delta] = _quicktabs_form($tab, $qt); + if (isset($tab['title'])) { + $tab_titles[$delta] = $tab['title']; + } + } + // If there's only one tab, it shouldn't be removeable. + if (count($qt->tabs) == 1) $form['qt_wrapper']['tabs'][$delta]['remove']['#access'] = FALSE; + + $form['default_tab'] = array( + '#type' => 'select', + '#title' => t('Default tab'), + '#options' => $tab_titles, + '#default_value' => isset($qt->default_tab) ? $qt->default_tab : 0, + '#access' => !empty($tab_titles), + '#weight' => -5, + ); + + return $form; +} + +/** + * The main section of admin page. + */ +function _quicktabs_admin_main_form($form_state, &$qt) { + + // The contents of $qt will either come from the db or from $form_state. + if (isset($form_state['values']['title'])) { + $qt = _quicktabs_convert_form_to_quicktabs($form_state); + } + + $form['title'] = array( + '#title' => t('Title'), + '#description' => t('This will appear as the block title.'), + '#type' => 'textfield', + '#default_value' => isset($qt->title) ? $qt->title : '', + '#weight' => -9, + '#required' => TRUE, + ); + + $form['machine_name'] = array( + '#type' => 'machine_name', + '#maxlength' => 32, + '#machine_name' => array( + 'exists' => 'quicktabs_machine_name_exists', + 'source' => array('title'), + ), + '#description' => t('A unique machine-readable name for this Quicktabs instance. It must only contain lowercase letters, numbers, and underscores. The machine name will be used internally by Quicktabs and will be used in the CSS ID of your Quicktabs block.'), + '#weight' => -8, + ); + + if (!empty($qt->machine_name)) { + $form['machine_name']['#default_value'] = $qt->machine_name; + $form['machine_name']['#disabled'] = TRUE; + $form['machine_name']['#value'] = $qt->machine_name; + } + + ctools_include('plugins'); + $renderers = ctools_get_plugins('quicktabs', 'renderers'); + $renderer_options = array(); + foreach ($renderers as $name => $info) { + if ($class = ctools_plugin_load_class('quicktabs', 'renderers', $name, 'handler')) { + // Add the renderer to the dropdown list of renderers + $renderer_options[$name] = $name; + // Get the renderer's options form elements + + // PHP 5.2 doesn't support $class::staticMethod() syntax, so we have to + // use call_user_func_array() until PHP 5.3 is required. + $renderer_form_options[$name] = call_user_func_array(array($class, 'optionsForm'), array($qt)); + } + } + ksort($renderer_options); + $form['renderer'] = array( + '#type' => 'select', + '#title' => t('Renderer'), + '#options' => $renderer_options, + '#default_value' => isset($qt->renderer) ? $qt->renderer : 'quicktabs', + '#description' => t('Choose how to render the content.'), + '#weight' => -7, + ); + // Add the renderer options form elements to the form, to be shown only if the + // renderer in question is selected. + $form['options'] = array('#tree' => TRUE, '#weight' => -6); + foreach ($renderer_form_options as $renderer => $options) { + foreach ($options as &$option) { + $option['#states'] = array('visible' => array(':input[name="renderer"]' => array('value' => $renderer))); + } + $form['options'][$renderer] = $options; + } + + $styles = module_invoke_all('quicktabs_tabstyles'); + if (count($styles)) { + $style_options = array(); + // The keys used for options must be valid html IDs. + foreach ($styles as $style) { + $style_options[$style] = $style; + } + ksort($style_options); + $form['style'] = array( + '#type' => 'select', + '#title' => t('Style'), + '#options' => array('nostyle' => t('No style')) + array('default' => t('Default style')) + $style_options, + '#default_value' => isset($qt->style) ? $qt->style : 'default', + '#description' => t('Choose the quicktab style.'), + '#states' => array('visible' => array(':input[name="renderer"]' => array('value' => 'quicktabs'))), + '#weight' => -6, + ); + } + else { + $form['style'] = array( + '#type' => 'value', + '#value' => 'nostyle', + ); + } + + $form['ajax'] = array( + '#type' => 'radios', + '#title' => t('Ajax'), + '#options' => array( + TRUE => t('Yes') . ': ' . t('Load only the first tab on page view'), + FALSE => t('No') . ': ' . t('Load all tabs on page view.'), + ), + '#default_value' => isset($qt->ajax) ? $qt->ajax : 0, + '#description' => t('Choose how the content of tabs should be loaded.

      By choosing "Yes", only the first tab will be loaded when the page first viewed. Content for other tabs will be loaded only when the user clicks the other tab. This will provide faster initial page loading, but subsequent tab clicks will be slower. This can place less load on a server.

      By choosing "No", all tabs will be loaded when the page is first viewed. This will provide slower initial page loading, and more server load, but subsequent tab clicks will be faster for the user. Use with care if you have heavy views.

      Warning: if you enable Ajax, any block you add to this quicktabs block will be accessible to anonymous users, even if you place role restrictions on the quicktabs block. Do not enable Ajax if the quicktabs block includes any blocks with potentially sensitive information.

      '), + '#states' => array('visible' => array(':input[name="renderer"]' => array('value' => 'quicktabs'))), + '#weight' => -5, + ); + + $form['hide_empty_tabs'] = array( + '#type' => 'checkbox', + '#title' => t('Hide empty tabs'), + '#default_value' => isset($qt->hide_empty_tabs) ? $qt->hide_empty_tabs : 0, + '#description' => t('Empty and restricted tabs will not be displayed. Could be useful when the tab content is not accessible.
      This option does not work in ajax mode.'), + '#weight' => -4, + ); + + // Add a wrapper for the tabs and Add Another Tab button. + $form['qt_wrapper'] = array( + '#tree' => FALSE, + '#weight' => -3, + '#prefix' => '
      ', + '#suffix' => '
      ', + ); + + $form['qt_wrapper']['tabs'] = array( + '#tree' => TRUE, + '#prefix' => '
      ', + '#suffix' => '
      ', + '#theme' => 'quicktabs_admin_form_tabs', + ); + + $form['qt_wrapper']['tabs_more'] = array( + '#type' => 'submit', + '#prefix' => '
      ', + '#suffix' => '
      ', + '#value' => t('More tabs'), + '#attributes' => array('class' => array('add-tab'), 'title' => t('Click here to add more tabs.')), + '#weight' => 1, + '#submit' => array('quicktabs_more_tabs_submit'), + '#ajax' => array( + 'callback' => 'quicktabs_ajax_callback', + 'wrapper' => 'quicktab-tabs', + 'effect' => 'fade', + ), + '#limit_validation_errors' => array(), + ); + + $form['actions'] = array('#type' => 'actions'); + $form['actions']['submit_form'] = array( + '#type' => 'submit', + '#value' => t('Save'), + ); + + return $form; +} + +/* + * Build one row (one tabpage) on the QT admin form. + * + * @param array $tab + * An array containing the details of this particular tabpage. + * + * @param object $qt + * An object representing the Quicktabs instance that the tabs are + * being built for. + */ +function _quicktabs_form(array $tab, $qt) { + $form['#tree'] = TRUE; + $delta = $tab['delta']; + + $form['weight'] = array( + '#type' => 'weight', + '#default_value' => isset($tab['weight']) ? $tab['weight'] : $delta-100, + '#delta' => 100, + ); + + $form['title'] = array( + '#type' => 'textfield', + '#size' => '10', + '#default_value' => isset($tab['title']) ? $tab['title'] : '', + ); + + // Load all "contents" plugins to display a choice of content types. + ctools_include('plugins'); + $contents = ctools_get_plugins('quicktabs', 'contents'); + foreach ($contents as $name => $info) { + if (isset($info['dependencies'])) { + foreach ($info['dependencies'] as $dep) { + // Do not load the options form for any plugin that is missing dependencies. + if (!module_exists($dep)) continue 2; + } + } + $tabtypes[$name] = $name; + $content_provider = quick_content_factory($name, $tab); + $form = array_merge_recursive($form, $content_provider->optionsForm($delta, $qt)); + } + + $form['type'] = array( + '#type' => 'radios', + '#options' => $tabtypes, + '#default_value' => isset($tab['type']) ? $tab['type'] : key($tabtypes), + ); + + $form['remove'] = array( + '#type' => 'submit', + '#prefix' => '
      ', + '#suffix' => '
      ', + '#value' => 'remove_' . $delta, + '#attributes' => array('class' => array('delete-tab'), 'title' => t('Click here to delete this tab.')), + '#submit' => array('quicktabs_remove_tab_submit'), + '#ajax' => array( + 'callback' => 'quicktabs_ajax_callback', + 'wrapper' => 'quicktab-tabs', + 'method' => 'replace', + 'effect' => 'fade', + ), + '#limit_validation_errors' => array(), + ); + + return $form; +} + +/** + * Theme function for quicktabs admin page. + * Theme the form elements for the tabs as draggable table rows. + * + * @ingroup themeable + */ +function theme_quicktabs_admin_form_tabs($variables) { + $tabs = $variables['tabs']; + + drupal_add_tabledrag('qt-tablist-table', 'order', 'sibling', 'qt-tabs-weight'); + $rows = array(); + $header = array( + t('Tab title'), + t('Tab weight'), + t('Tab type'), + t('Tab content'), + t('Operations'), + ); + + foreach (element_children($tabs) as $key) { + $tab = &$tabs[$key]; + $tab['weight']['#attributes']['class'] = array('qt-tabs-weight'); + + // tab settings fields + $tab_fields = array( + array('data' => drupal_render($tab['title']), 'class' => array('qt-tab-title')), + array('data' => drupal_render($tab['weight']), 'class' => array('qt-tab-weight')), + array('data' => drupal_render($tab['type']), 'class' => array('qt-tab-type')), + ); + + // content plugins + $content_plugins = ''; + foreach ($tab['type']['#options'] as $content_provider ) { + $tab[$content_provider]['#prefix'] = '
      '; + $tab[$content_provider]['#suffix'] = '
      '; + $content_plugins .= drupal_render($tab[$content_provider]); + } + $tab_fields[] = array('data' => $content_plugins); + $tab_fields[] = array('data' => drupal_render($tab['remove']), 'class' => array('qt-tab-remove')); + + // Build the table row. + $row = array( + 'data' => $tab_fields, + 'class' => array('draggable'), + ); + + // Add additional attributes to the row, such as a class for this row. + if (isset($tab['#attributes'])) { + $row = array_merge($row, $tab['#attributes']); + } + $rows[] = $row; + } + + $build['quicktab'] = array( + '#theme' => 'table', + '#header' => $header, + '#rows' => $rows, + '#attributes' => array('id' => 'qt-tablist-table'), + '#weight' => -1, + ); + $build['#attached']['css'][] = drupal_get_path('module', 'quicktabs') . '/css/quicktabs-admin.css'; + $build['#attached']['js'][] = drupal_get_path('module', 'quicktabs') . '/js/quicktabs_form.js'; + + $output = drupal_render($build); + return $output; +} + +/** + * Ajax callback for the add tab and remove tab buttons. + */ +function quicktabs_ajax_callback($form, $form_state) { + $form_tabs = $form['qt_wrapper']['tabs']; + return $form_tabs; +} + +/** + * Submit handler for the "Add Tab" button. + */ +function quicktabs_more_tabs_submit($form, &$form_state) { + // Increment the number of tabs to be rendered. + $form_state['num_tabs']++; + $form_state['rebuild'] = TRUE; +} + +/** + * Submit handler for the "Remove Tab" button. + */ +function quicktabs_remove_tab_submit($form, &$form_state) { + // Get the tab delta for the clicked button. + $delta = $form_state['clicked_button']['#parents'][1]; + $form_state['to_remove'] = $delta; + $form_state['rebuild'] = TRUE; +} + +/** + * Validation handler for quicktabs admin page. + */ +function quicktabs_form_validate($form, &$form_state) { + if (empty($form_state['values']['machine_name'])) { + form_set_error('machine_name', t('The quicktabs machine name is required.')); + } + elseif (!preg_match('!^[a-z0-9_]+$!', $form_state['values']['machine_name'])) { + form_set_error('machine_name', t('The quicktabs machine name must contain only lowercase letters, numbers, and underscores.')); + } + + if (!isset($form_state['values']['tabs'])) { + form_set_error('', t('At least one tab should be created.')); + } + else { + foreach ($form_state['values']['tabs'] as $j => $tab) { + if (empty($tab['title'])) { + form_set_error('tabs][' . $j . '][title', t('Title is required for each tab.')); + } + } + } +} + +function quicktabs_callback_element_validate($element, &$form_state, $form) { + // We can tell which tab delta the element is for from the element's #parents + // property, which is an array based on the tree structure. + $delta = $element['#parents'][1]; + if ($form_state['values']['tabs'][$delta]['type'] == 'callback') { + if (empty($element['#value']) || url_is_external($element['#value'])) { + form_error($element, t('You must specify a valid path.')); + } + if (strpos($element['#value'], '%') === 0) { + form_error($element, t('"%" may not be used for the first segment of a path.')); + } + // automatically remove '/' from path. + $form_state['values']['tabs'][$delta]['callback']['path'] = trim($form_state['values']['tabs'][$delta]['callback']['path'], '/'); + } +} + + +/** + * Submit handler for quicktabs admin page. + */ +function quicktabs_form_submit($form, &$form_state) { + if ($form_state['clicked_button']['#id'] == 'edit-submit-form') { + $qt = _quicktabs_convert_form_to_quicktabs($form_state); + + $exists = quicktabs_load($qt->machine_name); + if ($exists && empty($exists->in_code_only)) { + if (quicktabs_update($qt)) { + drupal_set_message(t('The Quicktabs instance has been updated.')); + } + } + else { + if (quicktabs_save($qt)) { + drupal_set_message(t('The Quicktabs instance has been created.')); + } + } + $form_state['redirect'] = 'admin/structure/quicktabs'; + } +} + +/** + * Deletion of quicktab block. + */ +function quicktabs_block_delete($form, $form_state, $qt) { + $form['machine_name'] = array('#type' => 'hidden', '#value' => $qt->machine_name); + $form['title'] = array('#type' => 'hidden', '#value' => $qt->title); + return confirm_form($form, t('Are you sure you want to delete the quicktab block %title?', array('%title' => $qt->title)), 'admin/structure/quicktabs', '', t('Delete'), t('Cancel')); +} + +/** + * Submit handler for quicktab block deletion. + */ +function quicktabs_block_delete_submit($form, &$form_state) { + quicktabs_delete($form_state['values']['machine_name']); + drupal_set_message(t('The Quicktabs instance %name has been removed.', array('%name' => $form_state['values']['title']))); + cache_clear_all(); + $form_state['redirect'] = 'admin/structure/quicktabs'; +}; + +/** + * Export form for quicktabs. + */ +function quicktabs_export_form($form, &$form_state, $qt) { + ctools_include('export'); + // Generate export code + $code = ctools_export_object('quicktabs', $qt, ''); + + // Create form + $form = array(); + $form['export'] = array( + '#type' => 'textarea', + '#default_value' => $code, + '#rows' => substr_count($code, "\n") + 1, + '#resizable' => FALSE, + '#description' => t('Place this code in your module\'s implementation of hook_quicktabs_default_quicktabs() to provide it as a default quicktab.'), + ); + $form['done'] = array( + '#type' => 'submit', + '#value' => t('Done'), + ); + $form['#redirect'] = 'admin/structure/quicktabs'; + + return $form; +} + +/** + * Helper function to get all blocks. + */ +function quicktabs_get_blocks() { + $blocksarray = &drupal_static(__FUNCTION__, array()); + if (empty($blocksarray)) { + $blocks = _block_rehash(); + $blocksarray = array(); + foreach ($blocks as $block) { + if ($block['module'] != 'quicktabs') { + $key = $block['module'] . '_delta_' . $block['delta']; + $blocksarray[$key] = $block['info'] . ' (' . $block['module'] . ':' . $block['delta'] . ')'; + } + } + } + return $blocksarray; +} + +/** + * Ajax callback, triggered when view is changed. + */ +function _quicktabs_replace_view_displays_callback($form, $form_state) { + $view_name = $form_state['triggering_element']['#value']; + $delta = $form_state['triggering_element']['#parents'][1]; + $display_options = _quicktabs_get_views_displays($view_name); + $form['qt_wrapper']['tabs'][$delta]['view']['display']['#options'] = $display_options; + + $commands = array(); + // Replace the view display dropdown. + $commands[] = ajax_command_replace("#view-display-dropdown-$delta", drupal_render($form['qt_wrapper']['tabs'][$delta]['view']['display'])); + return array('#type' => 'ajax', '#commands' => $commands); +} + +/** + * Helper function to get all views. + */ +function quicktabs_get_views() { + $enabled_views = array(); + $views = views_get_all_views(); + + foreach ($views as $view) { + // Skip disabled views. + if (!empty($views[$view->name]->disabled)) { + continue; + } + $enabled_views[$view->name] = $view->name; + } + ksort($enabled_views); + return $enabled_views; +} + +/** + * Helper function to get all view displays. + */ +function _quicktabs_get_views_displays($view_name) { + $displays = array(); + if (empty($view_name)) { + // No view. + return $displays; + } + + $views = views_get_all_views(); + $view = $views[$view_name]; + + if (empty($view->display)) { + // This view is broken. + return $displays; + } + + foreach ($view->display as $id => $display) { + $displays[$id] = $id .': '. $display->display_title; + } + return $displays; +} + +/** + * Helper function to convert the data on admin form into quicktab presentation. + */ +function _quicktabs_convert_form_to_quicktabs($form_state) { + $formvalues_tabs = array(); + if (!empty($form_state['values']['tabs'])) { + foreach ($form_state['values']['tabs'] as $j => $tab) { + $formvalues_tabs[$j] = $tab[$tab['type']]; + $formvalues_tabs[$j]['title'] = $tab['title']; + $formvalues_tabs[$j]['weight'] = $tab['weight']; + $formvalues_tabs[$j]['type'] = $tab['type']; + $weight[$j] = $tab['weight']; + } + array_multisort($weight, SORT_ASC, $formvalues_tabs); + } + $renderer = $form_state['values']['renderer']; + $qt = new stdClass(); + $qt->title = $form_state['values']['title']; + $qt->ajax = $form_state['values']['ajax']; + $qt->default_tab = isset($form_state['values']['default_tab']) ? $form_state['values']['default_tab'] : 0; + $qt->hide_empty_tabs = $form_state['values']['hide_empty_tabs']; + $qt->renderer = $renderer; + $qt->style = $form_state['values']['style']; + $qt->tabs = $formvalues_tabs; + $qt->options = isset($form_state['values']['options'][$renderer]) ? $form_state['values']['options'][$renderer] : array(); + + if (isset($form_state['values']['machine_name'])) { + $qt->machine_name = $form_state['values']['machine_name']; + } + + return $qt; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs.api.php b/src/developerportal/all/modules/contrib/quicktabs/quicktabs.api.php new file mode 100755 index 0000000..1c7e616 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs.api.php @@ -0,0 +1,23 @@ + value pairs suitable for inclusion as the #options in a + * select or radios form element. Each key must be the location of a css + * file for a quick tabs style. Each value should be the name of the style. + */ +function hook_quicktabs_tabstyles() { +} + diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs.classes.inc b/src/developerportal/all/modules/contrib/quicktabs/quicktabs.classes.inc new file mode 100755 index 0000000..56c2569 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs.classes.inc @@ -0,0 +1,516 @@ +name; + } + + public function getContents() { + return $this->contents; + } + + public function getSettings() { + return $this->settings; + } + + public function getTitle() { + return isset($this->settings['title']) ? $this->translateString($this->settings['title'], 'title') : $this->name; + } + + /** + * Instantiate, populate and return a QuickSet object wrapped in a renderer. + * + * @param $name + * The unique name (machine name) of the QuickSet instance. + * + * @param $contents + * The array of content items, each one itself an array with at least a 'type' + * key, a 'title' key, and the other info necessary for that type. + * + * @param $renderer + * The plugin key for this renderer plugin + * + * @param $settings + * An array of settings determining the behaviour of this QuickSet instance. + * + */ + public static function QuickSetRendererFactory($name, $contents, $renderer, $settings) { + ctools_include('plugins'); + if ($class = ctools_plugin_load_class('quicktabs', 'renderers', $renderer, 'handler')) { + try { + $qs = new self($name, $contents, $settings); + } + catch (InvalidQuickSetException $e) { + watchdog('Quicktabs', $e->getMessage()); + return NULL; + } + return new $class($qs); + } + } + + /** + * Returns a reference to an object that implements the QuickContentRenderable + * interface. + */ + public static function getContentRenderer($tab) { + if ($tab['type'] == 'prerendered') { + return new QuickPreRenderedContent($tab); + } + if ($content = QuickContent::factory($tab['type'], $tab)) { + return $content; + } + return NULL; + } + + /** + * Static method to retrieve content from an ajax call. This is called by the + * quicktabs_ajax() callback in quicktabs.module. + */ + public static function ajaxRenderContent($type, $args) { + if ($renderer = self::getContentRenderer(array('type' => $type))) { + $output = $renderer->render(FALSE, $args); + return !empty($output) ? drupal_render($output) : ''; + } + return ''; + } + + /** + * Ensure sensible default settings for each QuickSet object. + */ + private static function getDefaultSettings() { + return array( + 'title' => '', + 'style' => 'nostyle', + 'hide_empty_tabs' => 0, + 'ajax' => 0, + 'default_tab' => 0, + 'options' => array(), + ); + } + + /** + * Constructor + */ + public function __construct($name, $contents, $settings) { + $this->name = $name; + $this->contents = array(); + foreach ($contents as $key => $item) { + // Instantiate a content renderer object and add it to the contents array. + if ($renderer = self::getContentRenderer($item)) { + $this->contents[$key] = $renderer; + } + } + $default_settings = self::getDefaultSettings(); + $this->settings = array_merge($default_settings, $settings); + + $this->prepareContents(); + // Set the default style if necessary. + if ($this->settings['style'] == 'default') { + $this->settings['style'] = variable_get('quicktabs_tabstyle', 'nostyle'); + } + } + + /** + * Returns an ajax path to be used on ajax-enabled tab links. + * + * @param $index The index of the tab, i.e where it fits into the QuickSet + * instance. + * + * @param $type The type of content we are providing an ajax path for. + */ + public function getAjaxPath($index, $type) { + return 'quicktabs/ajax/'. $this->name .'/'. $index . '/'. $type; + } + + /** + * Translates Quicktabs user-defined strings if the i18n module is + * enabled. + */ + public function translateString($string, $type = 'tab', $index = 0) { + switch ($type) { + case 'tab': + $name = "tab:{$this->name}-{$index}:title"; + break; + case 'title': + $name = "title:{$this->name}"; + break; + } + return quicktabs_translate($name, $string); + } + + /** + * This method does some initial set-up of the tab contents, such as hiding + * tabs with no content if the hide_empty_tabs option is set. It also makes sure + * that prerendered contents are never attempted to be loaded via ajax. + * + * @throws InvalidQuickSetException if there are no contents to render. + */ + protected function prepareContents() { + if (!count($this->contents)) { + throw new InvalidQuickSetException('There are no contents to render.'); + } + if ($this->settings['hide_empty_tabs'] && !$this->settings['ajax']) { + // Check if any tabs need to be hidden because of empty content. + $renderable_contents = 0; + foreach ($this->contents as $key => $tab) { + $contents = $tab->render(TRUE); + if (empty($contents)) { + // Rather than removing the item, we set it to NULL. This way we retain + // the same indices across tabs, so that permanent links to particular + // tabs can be relied upon. + $this->contents[$key] = NULL; + // The default tab must not be a hidden tab. + if ($this->settings['default_tab'] == $key) { + $this->settings['default_tab'] = ($key + 1) % count($this->contents); + } + } + else { + $renderable_contents++; + } + } + if (!$renderable_contents) { + throw new InvalidQuickSetException('There are no contents to render.'); + } + } + elseif ($this->settings['ajax']) { + // Make sure that there is at most 1 prerendered tab and it is the default tab. + // Prerendered content cannot be rendered via ajax. + $has_prerendered = FALSE; // keep track of whether we have found a prerendered tab. + foreach ($this->contents as $key => $tab) { + $type = $tab->getType(); + if ($type == 'prerendered') { + if (!$has_prerendered) { + $has_prerendered = TRUE; + $this->settings['default_tab'] = $key; + // In the case of a direct link to a different tab, the 'default_tab' + // will be overridden, so we need to make sure it does not attempt + // to load a pre-rendered tab via ajax. Turn ajax option off. + if ($this->getActiveTab() !== $key) { + $this->settings['ajax'] = 0; + } + } + else { + // We are on a second custom tab and the ajax option is set, we cannot + // render custom tabs via ajax, so we skip out of the loop, set the + // ajax option to off, and call the method again. + $this->settings['ajax'] = 0; + $this->prepareContents(); + return; + } + } + } + } + } + + /** + * Returns the active tab for a given Quicktabs instance. This could be coming + * from the URL or just from the settings for this instance. If neither, it + * defaults to 0. + */ + public function getActiveTab() { + $active_tab = isset($this->settings['default_tab']) ? $this->settings['default_tab'] : key($this->contents); + $active_tab = isset($_GET['qt-' . $this->name]) ? $_GET['qt-' . $this->name] : $active_tab; + $active_tab = (isset($active_tab) && isset($this->contents[$active_tab])) ? $active_tab : QUICKTABS_DELTA_NONE; + return $active_tab; + } +} + +/** + * Abstract base class for QuickSet Renderers. + * + * A renderer object contains a reference to a QuickSet object, which it can + * then render. + */ +abstract class QuickRenderer { + + /** + * @var QuickSet + */ + protected $quickset; + + /** + * Constructor + */ + public function __construct($quickset) { + $this->quickset = $quickset; + } + + /** + * Accessor method for the title. + */ + public function getTitle() { + return $this->quickset->getTitle(); + } + + /** + * The only method that renderer plugins must implement. + * + * @return A render array to be passed to drupal_render(). + */ + abstract public function render(); + + + /** + * Method for returning the form elements to display for this renderer type on + * the admin form. + + * @param $qt An object representing the Quicktabs instance that the tabs are + * being built for. + */ + public static function optionsForm($qt) { + return array(); + } + +} + +/******************************************************* + * The classes below relate to individual tab content * + *******************************************************/ + +/** + * Each QuickSet object has a "contents" property which is an array of objects + * that implement the QuickContentRenderable interface. + */ +interface QuickContentRenderable { + + /** + * Returns the short type name of the content plugin, e.g. 'block', 'node', + * 'prerendered'. + */ + public static function getType(); + + /** + * Returns the tab title. + */ + public function getTitle(); + + /** + * Returns an array of settings specific to the type of content. + */ + public function getSettings(); + + /** + * Renders the content. + * + * @param $hide_emtpy If set to true, then the renderer should return an empty + * array if there is no content to display, for example if the user does not + * have access to the requested content. + * + * @param $args Used during an ajax call to pass in the settings necessary to + * render this type of content. + */ + public function render($hide_empty = FALSE, $args = array()); + + /** + * Returns an array of keys to use for constructing the correct arguments for + * an ajax callback to retrieve content of this type. The order of the keys + * returned affects the order of the args passed in to the render method when + * called via ajax (see the render() method above). + */ + public function getAjaxKeys(); + +} + +/** + * Abstract base class for content plugins. + */ +abstract class QuickContent implements QuickContentRenderable { + + /** + * Used as the title of the tab. + * @var string + */ + protected $title; + + /** + * An array containing the information that defines the tab content, specific + * to its type. + * @var array + */ + protected $settings; + + /** + * A render array of the contents. + * @var array + */ + protected $rendered_content; + + + /** + * Constructor + */ + public function __construct($item) { + $this->title = isset($item['title']) ? $item['title'] : ''; + // We do not need to store title, type or weight in the settings array, which + // is for type-specific settings. + unset($item['title'], $item['type'], $item['weight']); + $this->settings = $item; + } + + + /** + * Accessor for the tab title. + */ + public function getTitle() { + return $this->title; + } + + /** + * Accessor for the tab settings. + */ + public function getSettings() { + return $this->settings; + } + + /** + * Instantiate a content type object. + * + * @param $name + * The type name of the plugin. + * + * @param $item + * An array containing the item definition + * + */ + public static function factory($name, $item) { + ctools_include('plugins'); + if ($class = ctools_plugin_load_class('quicktabs', 'contents', $name, 'handler')) { + // We now need to check the plugin's dependencies, to make sure they're installed. + // This info has already been statically cached at this point so there's no + // harm in making a call to ctools_get_plugins(). + $plugin = ctools_get_plugins('quicktabs', 'contents', $name); + if (isset($plugin['dependencies'])) { + foreach ($plugin['dependencies'] as $dep) { + // If any dependency is missing we cannot instantiate our class. + if (!module_exists($dep)) return NULL; + } + } + return new $class($item); + } + return NULL; + } + + /** + * Method for returning the form elements to display for this tab type on + * the admin form. + * + * @param $delta Integer representing this tab's position in the tabs array. + * + * @param $qt An object representing the Quicktabs instance that the tabs are + * being built for. + */ + abstract public function optionsForm($delta, $qt); + +} + +/** + * This class implements the same interface that content plugins do but it is not + * a content plugin. It is a special class for pre-rendered content which is used + * when "custom" tabs are added to existing Quicktabs instances in a call to + * quicktabs_build_quicktabs(). + */ +class QuickPreRenderedContent implements QuickContentRenderable { + + public static function getType() { + return 'prerendered'; + } + + /** + * Used as the title of the tab. + * @var title + */ + protected $title; + + /** + * A render array of the contents. + * @var array + */ + protected $rendered_content; + + + /** + * Constructor + */ + public function __construct($item) { + + $contents = isset($item['contents']) ? $item['contents'] : array(); + if (!is_array($contents)) { + $contents = array('#markup' => $contents); + } + $this->rendered_content = $contents; + + $this->title = isset($item['title']) ? $item['title'] : ''; + } + + /** + * Accessor for the tab title. + */ + public function getTitle() { + return $this->title; + } + + /** + * Prerendered content doesn't need any extra settings. + */ + public function getSettings() { + return array(); + } + + + /** + * The render method simply returns the contents that were passed in and + * stored during construction. + */ + public function render($hide_empty = FALSE, $args = array()) { + return $this->rendered_content; + } + + /** + * This content cannot be rendered via ajax so we don't return any ajax keys. + */ + public function getAjaxKeys() { + return array(); + } + +} + +/** + * Create our own exception class. + */ +class InvalidQuickSetException extends Exception { + +} \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs.info b/src/developerportal/all/modules/contrib/quicktabs/quicktabs.info new file mode 100755 index 0000000..39386ba --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs.info @@ -0,0 +1,16 @@ +name = Quicktabs +description = Render content with tabs and other display styles +core = 7.x +files[] = quicktabs.module +files[] = quicktabs.classes.inc +files[] = includes/quicktabs_style_plugin.inc +files[] = tests/quicktabs.test +configure = admin/structure/quicktabs +dependencies[] = "ctools" + +; Information added by drupal.org packaging script on 2013-10-02 +version = "7.x-3.6" +core = "7.x" +project = "quicktabs" +datestamp = "1380731929" + diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs.install b/src/developerportal/all/modules/contrib/quicktabs/quicktabs.install new file mode 100755 index 0000000..f5a2863 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs.install @@ -0,0 +1,212 @@ + 'The quicktabs table.', + 'export' => array( + 'key' => 'machine_name', + 'identifier' => 'quicktabs', + 'default hook' => 'quicktabs_default_quicktabs', + 'api' => array( + 'owner' => 'quicktabs', + 'api' => 'quicktabs', + 'minimum_version' => 1, + 'current_version' => 1, + ), + 'export callback' => 'quicktabs_export', + ), + 'fields' => array( + 'machine_name' => array( + 'description' => 'The primary identifier for a qt block.', + 'type' => 'varchar', + 'length' => 255, + 'not null' => TRUE, + ), + 'ajax' => array( + 'description' => 'Whether this is an ajax views block.', + 'type' => 'int', + 'unsigned' => TRUE, + 'not null' => TRUE, + 'default' => 0, + ), + 'hide_empty_tabs' => array( + 'description' => 'Whether this tabset hides empty tabs.', + 'type' => 'int', + 'size' => 'tiny', + 'unsigned' => TRUE, + 'not null' => TRUE, + 'default' => 0, + ), + 'default_tab' => array( + 'description' => 'Default tab.', + 'type' => 'int', + 'unsigned' => TRUE, + 'not null' => TRUE, + 'default' => 0, + ), + 'title' => array( + 'description' => 'The title of this quicktabs block.', + 'type' => 'varchar', + 'length' => 255, + 'not null' => TRUE, + ), + 'tabs' => array( + 'description' => 'A serialized array of the contents of this qt block.', + 'type' => 'text', + 'size' => 'medium', + 'not null' => TRUE, + 'serialize' => TRUE, + ), + 'renderer' => array( + 'description' => 'The rendering mechanism.', + 'type' => 'varchar', + 'length' => 255, + 'not null' => TRUE, + ), + 'style' => array( + 'description' => 'The tab style.', + 'type' => 'varchar', + 'length' => 255, + 'not null' => TRUE, + ), + 'options' => array( + 'description' => 'A serialized array of the options for this qt instance.', + 'type' => 'text', + 'size' => 'medium', + 'not null' => FALSE, + 'serialize' => TRUE, + ), + ), + 'primary key' => array('machine_name'), + ); + return $schema; +} + + +/** + * Update to 7.x-3.x + */ +function quicktabs_update_7300() { + + $output = array(); + + if (!db_field_exists('quicktabs', 'renderer')) { + // Add the renderer field + $renderer_field = array( + 'description' => 'The rendering mechanism.', + 'type' => 'varchar', + 'length' => 255, + 'not null' => TRUE, + 'default' => 'quicktabs', + ); + db_add_field('quicktabs', 'renderer', $renderer_field); + $output[] = "Added the renderer field"; + } + + if (!db_field_exists('quicktabs', 'machine_name')) { + // Pull all existing quicktabs, and then delete existing quicktabs. We will reinsert. + $result = db_query("SELECT * FROM {quicktabs}"); + if (!db_query("DELETE FROM {quicktabs}")) { + throw new DrupalUpdateException(t('Could not complete the update.')); + } + + db_drop_field('quicktabs', 'qtid'); + $name_field = array( + 'description' => 'The primary identifier for a qt block.', + 'type' => 'varchar', + 'length' => 255, + 'not null' => TRUE, + ); + db_add_field('quicktabs', 'machine_name', $name_field); + db_add_primary_key('quicktabs', array('machine_name')); + + $used = array(); + foreach ($result as $qt) { + $row = (array)$qt; + // Generate a machine-readable string + $qt_name = strtolower(preg_replace('/[^a-zA-Z0-9_]+/', '_', $row['title'])); + $i = 0; + while (in_array($i == 0 ? $qt_name : "{$qt_name}_{$i}", $used)) { + $i++; + } + $row['machine_name'] = $used[] = $i == 0 ? $qt_name : "{$qt_name}_{$i}"; + unset($row['qtid']); + $row['style'] = ''; + $row['renderer'] = 'tabs'; + $placeholders = implode(', ', array_keys($row)); + $values = array(); + // Ugh - really?? Somebody tell me there's a better way to do this :-/ + foreach ($row as $name => $value) { + $values[':' . $name] = $value; + } + $tokens = implode(', ', array_keys($values)); + db_query("INSERT INTO {quicktabs} ($placeholders) VALUES($tokens)", $values); + + $output[] = "Converted quicktab {$row['machine_name']}."; + } + } + + return implode('
      ', $output); +} + +/** + * Add the options field which will hold renderer-specific options. + */ +function quicktabs_update_7301() { + $options_field = array( + 'description' => 'A serialized array of the options for this qt instance.', + 'type' => 'text', + 'size' => 'medium', + 'not null' => FALSE, + 'serialize' => TRUE, + ); + db_add_field('quicktabs', 'options', $options_field); + return "Added the options field"; +} + +/** + * Rebuild the registry because of changed method name. + */ +function quicktabs_update_7302() { + registry_rebuild(); +} + +/** + * Add support for view modes. + */ +function quicktabs_update_7303() { + foreach (quicktabs_load_multiple() as $quicktab) { + $updated = FALSE; + + foreach ($quicktab->tabs as &$tab) { + if ($tab['type'] === 'node') { + $tab['view_mode'] = !empty($tab['teaser']) ? 'teaser' : 'full'; + unset($tab['teaser']); + $updated = TRUE; + } + } + + if (!$updated) { + continue; + } + + if (empty($quicktab->in_code_only)) { + $result = drupal_write_record('quicktabs', $quicktab, 'machine_name'); + } + else { + $result = drupal_write_record('quicktabs', $quicktab); + } + if (!$result) { + throw new DrupalUpdateException(t('Could not complete the update.')); + } + } + return 'Added support for view modes.'; +} \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs.module b/src/developerportal/all/modules/contrib/quicktabs/quicktabs.module new file mode 100755 index 0000000..182a89c --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs.module @@ -0,0 +1,683 @@ +' . t('The Quicktabs module allows you to create blocks of tabbed content. Clicking on the tabs makes the corresponding content display instantly (it uses jQuery). The content for each tabbed section can be a node, view, block or another Quicktabs instance. You can create an unlimited number of Quicktabs instances, each of which will automatically have an associated block.') . '

      '; + $output .= '

      ' . t('The quicktabs page displays all quicktabs currently available on your site. Create new quicktabs using the add quicktab page (the block containing a new quicktab must also be enabled on the blocks administration page).', array('@quicktabs' => url('admin/structure/quicktabs'), '@add-quicktab' => url('admin/structure/quicktab/add'), '@blocks' => url('admin/structure/block'))) . '

      '; + return $output; + } + if ($path == 'admin/structure/quicktabs' && module_exists('block')) { + return '

      ' . t('Each Quicktabs instance has a corresponding block that is managed on the blocks administration page.', array('@blocks' => url('admin/structure/block'))) . '

      '; + } +} + +/** + * Implements hook_menu(). + */ +function quicktabs_menu() { + $items['admin/structure/quicktabs'] = array( + 'title' => 'Quicktabs', + 'description' => 'Create blocks of tabbed content.', + 'page callback' => 'quicktabs_list', + 'access callback' => 'user_access', + 'access arguments' => array('administer quicktabs'), + 'type' => MENU_NORMAL_ITEM, + 'file' => 'quicktabs.admin.inc', + ); + $items['admin/structure/quicktabs/list'] = array( + 'title' => 'List quicktabs', + 'type' => MENU_DEFAULT_LOCAL_TASK, + ); + $items['admin/structure/quicktabs/add'] = array( + 'title' => 'Add Quicktabs Instance', + 'page callback' => 'drupal_get_form', + 'page arguments' => array('quicktabs_form', 'add'), + 'access arguments' => array('administer quicktabs'), + 'type' => MENU_LOCAL_ACTION, + 'file' => 'quicktabs.admin.inc', + ); + $items['admin/structure/quicktabs/manage/%quicktabs'] = array( + 'title' => 'Edit quicktab', + 'page callback' => 'drupal_get_form', + 'page arguments' => array('quicktabs_form', 'edit', 4), + 'access arguments' => array('administer quicktabs'), + 'file' => 'quicktabs.admin.inc', + ); + $items['admin/structure/quicktabs/manage/%quicktabs/edit'] = array( + 'title' => 'Edit quicktab', + 'type' => MENU_DEFAULT_LOCAL_TASK, + 'context' => MENU_CONTEXT_INLINE, + ); + $items['admin/structure/quicktabs/manage/%quicktabs/delete'] = array( + 'title' => 'Delete quicktab', + 'page callback' => 'drupal_get_form', + 'page arguments' => array('quicktabs_block_delete', 4), + 'access arguments' => array('administer quicktabs'), + 'type' => MENU_LOCAL_TASK, + 'file' => 'quicktabs.admin.inc', + ); + $items['admin/structure/quicktabs/manage/%quicktabs/clone'] = array( + 'title' => 'Clone quicktab', + 'page callback' => 'quicktabs_clone', + 'page arguments' => array(4), + 'access arguments' => array('administer quicktabs'), + 'type' => MENU_LOCAL_TASK, + 'file' => 'quicktabs.admin.inc', + ); + $items['admin/structure/quicktabs/manage/%quicktabs/export'] = array( + 'title' => 'Export', + 'page callback' => 'drupal_get_form', + 'page arguments' => array('quicktabs_export_form', 4), + 'access arguments' => array('administer quicktabs'), + 'type' => MENU_LOCAL_TASK, + 'file' => 'quicktabs.admin.inc', + ); + $items['quicktabs/ajax'] = array( + 'page callback' => 'quicktabs_ajax', + 'access callback' => 'user_access', + 'access arguments' => array('access content'), + 'type' => MENU_CALLBACK, + ); + return $items; +} + + +/** + * Implements hook_permission(). + */ +function quicktabs_permission() { + return array( + 'administer quicktabs' => array( + 'title' => t('Administer Quicktabs'), + ), + ); +} + +/** + * Implements hook_theme(). + */ +function quicktabs_theme() { + return array( + 'quicktabs_admin_form_tabs' => array( + 'render element' => 'tabs', + 'file' => 'quicktabs.admin.inc', + ), + 'qt_ui_tabs' => array( + 'render element' => 'element', + ), + 'qt_ui_tabs_tabset' => array( + 'render element' => 'tabset', + ), + 'qt_quicktabs' => array( + 'render element' => 'element', + ), + 'qt_quicktabs_tabset' => array( + 'render element' => 'tabset', + ), + 'qt_accordion' => array( + 'render element' => 'element', + ), + 'quicktabs_tab_access_denied' => array( + 'variables' => array('tab'), + ), + ); +} + +/** + * Implements hook_block_info(). + */ +function quicktabs_block_info() { + $blocks = array(); + foreach (quicktabs_load_multiple() as $qt_name => $quicktabs) { + $blocks[$qt_name]['info'] = $quicktabs->title; + $blocks[$qt_name]['cache'] = DRUPAL_NO_CACHE; + } + return $blocks; +} + +/** + * Implements hook_block_view(). + */ +function quicktabs_block_view($delta = '') { + $block = array(); + if ($qt = quicktabs_build_quicktabs($delta)) { + if (isset($qt['content']) && !empty($qt['content'])) { + $block['content'] = $qt['content']; + $block['content']['#contextual_links']['quicktabs'] = array('admin/structure/quicktabs/manage', array($delta)); + $block['subject'] = check_plain($qt['#title']); + } + } + return $block; +} + +/** + * Constructs a Quicktabs instance. + * + * This function can be called by other modules to programmatically build a + * quicktabs instance. + * + * @param name. The machine name of the Quicktabs instance to build - if a name + * is passed that does not correspond to an existing instance, then it is taken + * to be a completely custom instance and is built from only the custom tabs + * that are passed in. + * + * @param settings. An array of settings that will override the options of the Quicktabs + * instance from the database, or if no existing instance is being used, these + * will override the default settings. Possible keys are 'style', 'hide_empty_tabs', + * ajax', 'default_tab', 'renderer', 'title' and 'options'. + * + * @param custom_tabs. An array representing custom tab contents, which will be + * appended to the Quicktabs instance from the database, or if no existing instance + * is being used, the custom tabs will be the entire contents. An example custom_tabs + * array would be array(array('title' => 'custom', 'contents' => array('#markup' => + * t('Some markup'), 'weight' => 5)); + * + * @return A render array that can be used as block content in hook_block_view + * (see quicktabs_block_view()), but can also just be added to the page array + * during hook_page_alter, or output anywhere else where it's sure to get + * passed through drupal_render(). + */ +function quicktabs_build_quicktabs($name, $settings = array(), $custom_tabs = array()) { + if ($info = quicktabs_load($name)) { + // Allow other modules to alter the Quicktabs instance before it gets output. + drupal_alter('quicktabs', $info); + $info = (array) $info; + $settings = array_merge($info, $settings); + $contents = $settings['tabs']; + unset($settings['tabs'], $settings['machine_name']); + } + elseif (!empty($custom_tabs)) { + // We'll be creating a custom Quicktabs instance. Make sure we're using an + // alphanumeric name. + $name = preg_replace('/[^[a-zA-Z]_]/', '_', $name); + $contents = array(); + } + else { + // If $name doesn't correspond to an existing Quicktabs instance, and there + // are no custom tabs to render, then we have nothing to do. + return array(); + } + $renderer = isset($settings['renderer']) ? $settings['renderer'] : 'quicktabs'; + unset($settings['renderer']); + $needs_sorting = FALSE; + $weight = 0; + foreach ($custom_tabs as &$tab) { + $needs_sorting = $needs_sorting || isset($tab['weight']); + $tab += array( + 'type' => 'prerendered', + 'weight' => $weight++, + ); + } + $contents = array_merge($custom_tabs, $contents); + $weight = array(); + foreach ($contents as $key => $item) { + // Load the plugin responsible for rendering this item, if it is not a + // prerendered tab. + if ($item['type'] != 'prerendered') { + ctools_plugin_load_class('quicktabs', 'contents', $item['type'], 'handler'); + } + + // Add item's weight to our weights array so that we can then sort by weight. + $weight[$key] = $item['weight']; + + // Make sure we're not going to try to load the same QuickSet instance + // inside itself. + if ($item['type'] == 'qtabs' && $item['machine_name'] == $name) { + unset($contents[$key]); + unset($weight[$key]); + } + } + // Only sort by weight if the tabs haven't already been sorted by some other + // mechanism, e.g. Views in the case of the Views style plugin and there was + // a weight given for one of the tabs. + if ($needs_sorting && (!isset($settings['sorted']) || !$settings['sorted'])) { + array_multisort($weight, SORT_ASC, $contents); + } + else { + unset($settings['sorted']); + } + if ($qt = quickset_renderer_factory($name, $contents, $renderer, $settings)) { + $renderable_qt = array('#title' => $qt->getTitle(), 'content' => $qt->render()); + return $renderable_qt; + } + return array(); +} + +/** + * Ajax callback for tab content. + * + * @param name The machine name of the quicktabs instance. + * + * @param index The tab index we're returning content for. + * + * @param type The type of content we're rendering. + * + * @return a json-formatted ajax commands array. + */ +function quicktabs_ajax($name, $index, $type) { + + $args = func_get_args(); + $variable_args = array_slice($args, 3); + // Add the Quicktabs machine name to the args we pass to the content renderer + array_unshift($variable_args, $name); + + $data = QuickSet::ajaxRenderContent($type, $variable_args); + + $commands = array(); + $tabpage_id = 'quicktabs-tabpage-'. $name .'-' . $index; + $commands[] = ajax_command_append('#quicktabs-container-'. $name, '
      '. $data .'
      '); + $page = array('#type' => 'ajax', '#commands' => $commands); + ajax_deliver($page); +} + +/** + * Load the quicktabs data for a particular instance. + */ +function quicktabs_load($name) { + $qts = quicktabs_load_multiple(array($name)); + return isset($qts[$name]) ? $qts[$name] : NULL; +} + +/** + * Load the quicktabs data. + */ +function quicktabs_load_multiple($names = array()) { + ctools_include('export'); + $defaults = empty($names) ? ctools_export_load_object('quicktabs', 'all') : ctools_export_load_object('quicktabs', 'names', $names); + return $defaults; +} + +/** + * Creates a new quicktab instance. + */ +function quicktabs_save($quicktab) { + module_invoke_all('quicktabs_presave', $quicktab); + + $exists = quicktabs_load($quicktab->machine_name); + if ($exists && empty($exists->in_code_only)) { + $ret = drupal_write_record('quicktabs', $quicktab, 'machine_name'); + if ($ret == SAVED_UPDATED) { + quicktabs_i18n_update_strings(array($quicktab->machine_name)); + } + else { + return FALSE; + } + } + else { + $ret = drupal_write_record('quicktabs', $quicktab); + if ($ret == SAVED_NEW) { + quicktabs_i18n_update_strings(array($quicktab->machine_name)); + module_invoke_all('quicktabs_insert', $quicktab); + } + else { + return FALSE; + } + } + module_invoke_all('quicktabs_save', $quicktab); + return $quicktab; +} + +/** + * Updates an existing quicktab instance. + */ +function quicktabs_update($quicktab) { + quicktabs_save($quicktab); + module_invoke_all('quicktabs_update', $quicktab); + return $quicktab; +} + +/** + * Deletes a quicktab instance. + */ +function quicktabs_delete($machine_name) { + db_query('DELETE FROM {quicktabs} WHERE machine_name = :machine_name', array(':machine_name' => $machine_name)); + module_invoke_all('quicktabs_delete', $machine_name); +} + +/** + * Exports the specified Quicktabs instance with translatable strings. + */ +function quicktabs_export($qt, $indent = '') { + $output = ctools_export_object('quicktabs', $qt, $indent); + $translatables = array(); + if (!empty($qt->title)) { + $translatables[] = $qt->title; + } + foreach ($qt->tabs as $tab) { + $translatables[] = $tab['title']; + } + $translatables = array_filter(array_unique($translatables)); + if (!empty($translatables)) { + $output .= "\n"; + $output .= "{$indent}// Translatables\n"; + $output .= "{$indent}// Included for use with string extractors like potx.\n"; + sort($translatables); + foreach ($translatables as $string) { + $output .= "{$indent}t(" . ctools_var_export($string) . ");\n"; + } + $output .= "\n"; + } + return $output; +} + +/** +* Implements hook_i18n_string_info() +*/ +function quicktabs_i18n_string_info() { + $groups['quicktabs'] = array( + 'title' => t('Quicktabs'), + 'description' => t('Vocabulary titles and term names for localizable quicktabs.'), + 'format' => FALSE, // This group doesn't have strings with format + 'list' => TRUE, // This group can list all strings + ); + return $groups; +} + +function quicktabs_translate($name, $string, $langcode = NULL, $textgroup = 'quicktabs') { + return function_exists('i18n_string') ? i18n_string($textgroup . ':' . $name, $string, array('langcode' => $langcode)) : $string; +} + +/** + * Update translatable strings. + */ +function quicktabs_i18n_update_strings($names = array()) { + if (!function_exists('i18n_string_update')) return; + $qts = quicktabs_load_multiple($names); + foreach ($qts as $name => $quicktabs) { + i18n_string_update("quicktabs:title:$name", $quicktabs->title); + foreach ($quicktabs->tabs as $tabkey => $tab) { + i18n_string_update("quicktabs:tab:$name-$tabkey:title", $tab['title']); + } + } +} + +/** + * Implements hook_i18n_string_refresh(). + * + * Refresh translations for all user-generated strings managed by quicktabs. + * This will load all strings inputted via the quicktabs user interface and + * register them (and their translations, if there are any) with the + * i18n_strings system. + */ +function quicktabs_i18n_string_refresh($group) { + if ($group === 'quicktabs') { + quicktabs_i18n_update_strings(); + } + return TRUE; +} + +/** + * Implements hook_ctools_plugin_type(). + */ +function quicktabs_ctools_plugin_type() { + return array( + // Renderer plugins control the display of sets of items, e.g. as tabs. + 'renderers' => array( + 'cache' => TRUE, + 'use hooks' => TRUE, + 'classes' => array('handler'), + ), + // Content plugins control the display of individual items. + 'contents' => array( + 'cache' => TRUE, + 'use hooks' => TRUE, + 'classes' => array('handler'), + ) + ); +} + +/** + * Implements hook_quicktabs_renderers(). + */ +function quicktabs_quicktabs_renderers() { + $info = array(); + $path = drupal_get_path('module', 'quicktabs') . '/plugins'; + $info['quicktabs'] = array( + 'path' => $path, + 'handler' => array( + 'file' => 'QuickQuicktabs.inc', + 'class' => 'QuickQuicktabs', + ), + ); + $info['ui_tabs'] = array( + 'path' => $path, + 'handler' => array( + 'file' => 'QuickUiTabs.inc', + 'class' => 'QuickUitabs', + ), + ); + $info['accordion'] = array( + 'path' => $path, + 'handler' => array( + 'file' => 'QuickAccordion.inc', + 'class' => 'QuickAccordion', + ), + ); + return $info; +} + +/** + * Implements hook_quicktabs_contents(). + */ +function quicktabs_quicktabs_contents() { + $info = array(); + $path = drupal_get_path('module', 'quicktabs') . '/plugins'; + $info['block'] = array( + 'path' => $path, + 'handler' => array( + 'file' => 'QuickBlockContent.inc', + 'class' => 'QuickBlockContent', + ), + 'dependencies' => array('block'), + ); + $info['view'] = array( + 'path' => $path, + 'handler' => array( + 'file' => 'QuickViewContent.inc', + 'class' => 'QuickViewContent', + ), + 'dependencies' => array('views'), + ); + $info['node'] = array( + 'path' => $path, + 'handler' => array( + 'file' => 'QuickNodeContent.inc', + 'class' => 'QuickNodeContent', + ), + ); + $info['qtabs'] = array( + 'path' => $path, + 'handler' => array( + 'file' => 'QuickQtabsContent.inc', + 'class' => 'QuickQtabsContent', + ), + ); + $info['callback'] = array( + 'path' => $path, + 'handler' => array( + 'file' => 'QuickCallbackContent.inc', + 'class' => 'QuickCallbackContent', + ), + ); + return $info; +} + +/** + * Returns a renderered QuickSet. + */ +function quickset_renderer_factory($name, $contents, $renderer, $settings) { + return QuickSet::QuickSetRendererFactory($name, $contents, $renderer, $settings); +} + +/** + * Returns an object that implements the QuickContent interface. + */ +function quick_content_factory($name, $item) { + return QuickContent::factory($name, $item); +} + +/** + * Determine if the machine name is in use. + */ +function quicktabs_machine_name_exists($machine_name) { + $qt_exists = db_query_range('SELECT 1 FROM {quicktabs} WHERE machine_name = :name', 0, 1, array(':name' => $machine_name))->fetchField(); + return $qt_exists; +} + +/** + * Implementation of hook_views_api(). + */ +function quicktabs_views_api() { + return array( + 'api' => 3, + ); +} + +/** + * Theme function to display the access denied tab. + * + * @ingroup themeable + */ +function theme_quicktabs_tab_access_denied($variables) { + return t('You are not authorized to access this content.'); +} + + +/** + * Fetch the necessary CSS files for the tab style. + */ +function quicktabs_get_css($style) { + if ($style == 'default') { + // Get the default style. + $style = variable_get('quicktabs_tabstyle', 'nostyle'); + } + if ($style == 'nostyle') return array(); + $style_css = _quicktabs_get_style_css($style); + return $style_css; +} + +/** + * Helper function to get the css file for given style. + */ +function _quicktabs_get_style_css($style) { + $tabstyles = &drupal_static(__FUNCTION__); + if (empty($tabstyles)) { + $cid = 'quicktabs_tabstyles'; + $cache = cache_get($cid); + if (!$cache) { + $tabstyles = module_invoke_all('quicktabs_tabstyles'); + cache_set($cid, $tabstyles); + } + else { + $tabstyles = $cache->data; + } + } + if ($css_file = array_search($style, $tabstyles)) { + return array('data' => $css_file); + } + return array(); +} + +/** + * Theme function to output tablinks for jQuery UI style tabs. + * + * @ingroup themeable + */ +function theme_qt_ui_tabs_tabset($vars) { + + $output = '
        '; + foreach ($vars['tabset']['tablinks'] as $i => $tab) { + if (is_array($tab)) { + $output .= '
      • '. drupal_render($tab) .'
      • '; + } + } + $output .= '
      '; + return $output; +} + +/** + * Theme function to output content for jQuery UI style tabs. + * + * @ingroup themeable + */ +function theme_qt_ui_tabs($variables) { + $element = $variables['element']; + $output = '
      '; + $output .= drupal_render($element['tabs']); + + if (isset($element['active'])) { + $output .= drupal_render($element['active']); + } + else { + foreach ($element['divs'] as $div) { + $output .= drupal_render($div); + } + } + + $output .= '
      '; + return $output; +} + +/** + * Theme function to output tablinks for classic Quicktabs style tabs. + * + * @ingroup themeable + */ +function theme_qt_quicktabs_tabset($vars) { + $variables = array( + 'attributes' => array( + 'class' => 'quicktabs-tabs quicktabs-style-' . $vars['tabset']['#options']['style'], + ), + 'items' => array(), + ); + foreach (element_children($vars['tabset']['tablinks']) as $key) { + $item = array(); + if (is_array($vars['tabset']['tablinks'][$key])) { + $tab = $vars['tabset']['tablinks'][$key]; + if ($key == $vars['tabset']['#options']['active']) { + $item['class'] = array('active'); + } + $item['data'] = drupal_render($tab); + $variables['items'][] = $item; + } + } + return theme('item_list', $variables); +} + +/** + * Theme function to output content for classic Quicktabs style tabs. + * + * @ingroup themeable + */ +function theme_qt_quicktabs($variables) { + $element = $variables['element']; + $output = '
      '; + $output .= drupal_render($element['tabs']); + + $output .= drupal_render($element['container']); + + $output .= '
      '; + return $output; +} + + +/** + * Theme function to output markup for the accordion style. + * + * @ingroup themeable + */ +function theme_qt_accordion($variables) { + $element = $variables['element']; + $output = '
      '; + foreach ($element['divs'] as $div) { + $output .= drupal_render($div); + } + + $output .= '
      '; + return $output; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs.views.inc b/src/developerportal/all/modules/contrib/quicktabs/quicktabs.views.inc new file mode 100755 index 0000000..bd658db --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs.views.inc @@ -0,0 +1,28 @@ + array( + 'quicktabs' => array( + 'title' => t('Quicktabs'), + 'help' => t('Display view in Quicktabs.'), + 'handler' => 'quicktabs_style_plugin', + 'path' => "$path/includes", + 'theme' => 'quicktabs_view', + 'uses row plugin' => TRUE, + 'uses options' => TRUE, + 'type' => 'normal', + ), + ), + ); +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/css/quicktabs-tabstyles-admin.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/css/quicktabs-tabstyles-admin.css new file mode 100755 index 0000000..3ac05ba --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/css/quicktabs-tabstyles-admin.css @@ -0,0 +1,37 @@ +/* QT style selection form */ + +div.quicktabs-preview { + border: none; + width: 250px; + height: 80px; +} + +#quicktabs-styles .quicktabs-tabstyles .form-item { + width: 280px; + float: left; + margin: 0 10px 10px 0; + border: 1px solid #ccc; + background-color: #fff; +} +#quicktabs-styles .quicktabs-tabstyles .form-item .option { + display: block; + background-color: #bfe3ff; + font: bold 12px/18px verdana; + color: #0a5793; +} +#quicktabs-styles .quicktabs-tabstyles .form-item .option:hover { + background-color: #aadaff; + cursor: pointer; + color: #003863; +} +#quicktabs-styles .quicktabs-tabstyles .form-item .option .form-radio { + margin-right: 5px; + float: left; + height: 15px; + margin-top: 2px; +} +#quicktabs-styles .quicktabs_wrapper { + margin: 5px; + font: bold 12px/170% Verdana; +} + diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/quicktabs_tabstyles.info b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/quicktabs_tabstyles.info new file mode 100755 index 0000000..974b460 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/quicktabs_tabstyles.info @@ -0,0 +1,11 @@ +name = Quicktabs Styles +description = Adds predefined tab styles to choose from per Quicktabs instance. +core = 7.x +configure=admin/structure/quicktabs/styles +dependencies[] = "quicktabs" +; Information added by drupal.org packaging script on 2013-10-02 +version = "7.x-3.6" +core = "7.x" +project = "quicktabs" +datestamp = "1380731929" + diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/quicktabs_tabstyles.module b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/quicktabs_tabstyles.module new file mode 100755 index 0000000..15a2c19 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/quicktabs_tabstyles.module @@ -0,0 +1,113 @@ + array( + 'render element' => 'quicktabs_tabstyle', + ), + ); +} + +/** + * Implements hook_menu(). + */ +function quicktabs_tabstyles_menu() { + $items['admin/structure/quicktabs/styles'] = array( + 'title' => 'Styles', + 'page callback' => 'drupal_get_form', + 'page arguments' => array('quicktabs_tabstyles_styles'), + 'access arguments' => array('administer quicktabs'), + 'type' => MENU_LOCAL_TASK, + ); + return $items; +} + +/** + * Callback function for admin/structure/quicktabs/styles. The style chooser form. + */ +function quicktabs_tabstyles_styles() { + $options = array(); + $styles = module_invoke_all('quicktabs_tabstyles'); + // The keys used for options must be valid html id-s. + // Removing the css file path, because that can't be used. + foreach ($styles as $style) { + $options[$style] = $style; + } + ksort($options); + + $form['quicktabs_tabstyle'] = array( + '#type' => 'radios', + '#title' => t('Quicktab styles'), + '#options' => array('nostyle' => t('No style')) + $options, + '#default_value' => variable_get('quicktabs_tabstyle', 'nostyle'), + '#description' => t('Select the default style for quicktabs.'), + '#attributes' => array('class' => array('quicktabs-tabstyles', 'clear-block')), + '#theme' => 'quicktabs_style_options', + ); + + $form['submit'] = array( + '#type' => 'submit', + '#value' => t('Save'), + ); + return $form; +} + +/** + * Submit handler for QuickTabs styles. + */ +function quicktabs_tabstyles_styles_submit($form, &$form_state) { + variable_set('quicktabs_tabstyle', $form_state['values']['quicktabs_tabstyle']); + drupal_set_message(t('The default quicktab style has been saved.')); +} + +/** + * Theme function for quicktabs style radio options. + * + * @ingroup themeable + */ +function theme_quicktabs_style_options($variables) { + $style_element = $variables['quicktabs_tabstyle']; + $markup = ''; + + $tabs = array( + array('title' => t('One'), 'contents' => array('#markup' => t('First tab')), 'weight' => 0), + array('title' => t('Two'), 'contents' => array('#markup' => t('Second tab')), 'weight' => 1), + array('title' => t('Three'), 'contents' => array('#markup' => t('Third tab')), 'weight' => 2) + ); + + $options = array('renderer' => 'quicktabs', 'hide_empty_tabs' => 0, 'ajax' => 0); + // Preview for each style. + foreach (element_children($style_element) as $style) { + $element = $style_element[$style]; + $options['style'] = $style; + $quicktabs = quicktabs_build_quicktabs(drupal_strtolower($style), $options, $tabs); + $preview = '
      '. drupal_render($quicktabs['content']) .'
      '; + $element['#description'] = t('%style preview', array('%style' => $element['#title'])) .':
      '. $preview; + $markup .= drupal_render($element); + } + $build = array( + 'style' => array('#markup' => $markup), + '#attached' => array('css' => array(drupal_get_path('module', 'quicktabs_tabstyles') . '/css/quicktabs-tabstyles-admin.css')), + ); + return drupal_render($build); +} + + +/** + * Implements hook_quicktabs_tabstyles(). + */ +function quicktabs_tabstyles_quicktabs_tabstyles() { + $tabstyles_directory = drupal_get_path('module', 'quicktabs_tabstyles') . '/tabstyles'; + $files = file_scan_directory($tabstyles_directory, '/\.css$/'); + $tabstyles = array(); + foreach ($files as $file) { + // Skip RTL files. + if (!strpos($file->name, '-rtl')) { + $tabstyles[$file->uri] = drupal_ucfirst($file->name); + } + } + return $tabstyles; +} \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/arrows/arrows-rtl.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/arrows/arrows-rtl.css new file mode 100755 index 0000000..c87f2d6 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/arrows/arrows-rtl.css @@ -0,0 +1,9 @@ + +ul.quicktabs-tabs.quicktabs-style-arrows{ + padding:0 0 0 10px!important; + height:25px; +} + +ul.quicktabs-tabs.quicktabs-style-arrows li{ + float:right; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/arrows/arrows.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/arrows/arrows.css new file mode 100755 index 0000000..af3eb06 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/arrows/arrows.css @@ -0,0 +1,24 @@ + +.quicktabs_main.quicktabs-style-arrows{ + clear:both; +} + +ul.quicktabs-tabs.quicktabs-style-arrows{ + font:bold 12px/170% Verdana; + border-bottom:1px solid #ccc; + padding:0 10px 0 0!important; + line-height:22px; + margin:0 0 10px 0; +} + +ul.quicktabs-tabs.quicktabs-style-arrows a{ + text-decoration:none; + background:transparent url(images/arrows.gif) no-repeat center 17px; + padding:2px 10px 4px; +} + +ul.quicktabs-tabs.quicktabs-style-arrows li.active a, +ul.quicktabs-tabs.quicktabs-style-arrows li a:hover{ + text-decoration:none; + background:transparent url(images/arrows.gif) no-repeat center bottom; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/arrows/images/arrows.gif b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/arrows/images/arrows.gif new file mode 100755 index 0000000..f17f661 Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/arrows/images/arrows.gif differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/basic/basic-rtl.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/basic/basic-rtl.css new file mode 100755 index 0000000..027da38 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/basic/basic-rtl.css @@ -0,0 +1,12 @@ + +.quicktabs_main.quicktabs-style-basic{ + border:1px solid #aaa; +} +ul.quicktabs-tabs.quicktabs-style-basic{ + border-bottom:none; + padding:0 0 0 5px; +} +ul.quicktabs-tabs.quicktabs-style-basic li{ + float:right; + margin:0 0 0 3px; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/basic/basic.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/basic/basic.css new file mode 100755 index 0000000..277bf38 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/basic/basic.css @@ -0,0 +1,43 @@ + +.quicktabs_main.quicktabs-style-basic{ + background-color:#fff; + border:1px solid #aaa; + border-top:none; + padding:10px; + clear:both; +} +ul.quicktabs-tabs.quicktabs-style-basic{ + border-bottom:1px solid #aaa; + padding:0 5px 0 0; + font:bold 12px/19px Verdana !important; + font-weight:bold; + height:19px; + margin:0; +} +ul.quicktabs-tabs.quicktabs-style-basic a{ + font:bold 12px/19px Verdana !important; + text-decoration:none; + color:#aaa; +} +ul.quicktabs-tabs.quicktabs-style-basic a:hover{ + color:#555; +} +ul.quicktabs-tabs.quicktabs-style-basic li{ + border:1px solid #e5e5e5; + border-bottom:none; + padding:2px 5px; + margin:0 3px 0 0; + position:relative; +} +ul.quicktabs-tabs.quicktabs-style-basic li:hover{ + border:1px solid #ccc; + border-bottom:none; +} +ul.quicktabs-tabs.quicktabs-style-basic li.active{ + border:1px solid #aaa; + border-bottom:1px solid #fff; + background-color:#fff; +} +ul.quicktabs-tabs.quicktabs-style-basic li.active a{ + color:#027AC6; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/bullets/bullets-rtl.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/bullets/bullets-rtl.css new file mode 100755 index 0000000..3047640 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/bullets/bullets-rtl.css @@ -0,0 +1,4 @@ + +ul.quicktabs-tabs.quicktabs-style-bullets li{ + float: right; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/bullets/bullets.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/bullets/bullets.css new file mode 100755 index 0000000..1e9484e --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/bullets/bullets.css @@ -0,0 +1,49 @@ + +.quicktabs_main.quicktabs-style-bullets{ + clear:both; +} +ul.quicktabs-tabs.quicktabs-style-bullets{ + margin:0 0 10px 0; + font-size:11px; + list-style: none; + padding:3px 0 23px 0; +} +ul.quicktabs-tabs.quicktabs-style-bullets li{ + float: left; + height:20px; + margin:0 5px; + padding: 0 0 0 10px; + background:transparent url(images/bullets.png) no-repeat 0 -80px; +} +ul.quicktabs-tabs.quicktabs-style-bullets li a{ + font:bold 12px/170% Verdana; + margin: 0; + display:block; + padding:0px 17px 0px 7px; + text-decoration:none; + color: #777 !important; + background:transparent url(images/bullets.png) no-repeat right -100px ; +} +ul.quicktabs-tabs.quicktabs-style-bullets li:hover a{ + background-position: right -60px ; +} +ul.quicktabs-tabs.quicktabs-style-bullets li:hover{ + background-position: 0 -40px; +} +ul.quicktabs-tabs.quicktabs-style-bullets li.active a, +ul.quicktabs-tabs.quicktabs-style-bullets li.active a:hover{ + color: #0372d9 !important; + background-position:right -20px; +} +ul.quicktabs-tabs.quicktabs-style-bullets li.active{ + background-position: 0 0; +} + +/* IE6 Gif (no PNGs) */ + +*html ul.quicktabs-tabs.quicktabs-style-bullets li a{ + background:transparent url(images/bullets.gif) no-repeat right -100px ; +} +*html ul.quicktabs-tabs.quicktabs-style-bullets li{ /* image for IE6 */ + background:transparent url(images/bullets.gif) no-repeat 0 -80px; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/bullets/images/bullets.gif b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/bullets/images/bullets.gif new file mode 100755 index 0000000..4b2e175 Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/bullets/images/bullets.gif differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/bullets/images/bullets.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/bullets/images/bullets.png new file mode 100755 index 0000000..b14784d Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/bullets/images/bullets.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/excel-rtl.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/excel-rtl.css new file mode 100755 index 0000000..5a0f1ef --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/excel-rtl.css @@ -0,0 +1,38 @@ + +/* RTL support */ +ul.quicktabs-tabs.quicktabs-style-excel li { + float: right; + padding: 0 10px 0 0; +} + +ul.quicktabs-tabs.quicktabs-style-excel li a { + padding: 4px 12px 0px 22px; + background: transparent url(images/tab-right-sep-rtl.png) no-repeat left -38px; +} + +/*override active tab*/ +ul.quicktabs-tabs.quicktabs-style-excel li.active { + background: transparent url(images/tab-left-sep-rtl.png) no-repeat right 0; +} + +ul.quicktabs-tabs.quicktabs-style-excel li.active a { + background: transparent url(images/tab-right-sep-rtl.png) no-repeat left 0; +} + +/*override first (most right) tab*/ +ul.quicktabs-tabs.quicktabs-style-excel li.first { + background: transparent url(images/tab-left-rtl.png) no-repeat right -38px; +} + +ul.quicktabs-tabs.quicktabs-style-excel li.first.active { + background: transparent url(images/tab-left-rtl.png) no-repeat right 0px; +} + +/*override last (most left) tab*/ +ul.quicktabs-tabs.quicktabs-style-excel li.last a { + background: transparent url(images/tab-right-rtl.png) no-repeat left -38px; +} + +ul.quicktabs-tabs.quicktabs-style-excel li.last.active a { + background:transparent url(images/tab-right-rtl.png) no-repeat left 0px; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/excel.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/excel.css new file mode 100755 index 0000000..16b476a --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/excel.css @@ -0,0 +1,79 @@ + +/* Excel style tabs */ + +.quicktabs_main.quicktabs-style-excel { + border-bottom: 1px solid #EEEEEE; + padding: 10px 5px 2px; +} + +ul.quicktabs-tabs.quicktabs-style-excel { + margin: 0; + padding: 0 15px; + font-size: 1em; + list-style: none; + height: 24px; + background: transparent url(images/tab-bar.png) repeat-x left bottom; +} + +ul.quicktabs-tabs.quicktabs-style-excel li { + float: left; + margin: 0 -5px -5px -5px; + padding: 0 0 0 10px; +} + +ul.quicktabs-tabs.quicktabs-style-excel li a { + font: bold 12px/170% Verdana; + font-size-adjust: none; + display: block; + margin: 0; + padding: 4px 22px 0px 12px; + border-width: 0; + font-weight: bold; + text-decoration: none; + background: transparent url(images/tab-right-sep.png) no-repeat right -38px; +} + +/*override hover*/ +ul.quicktabs-tabs.quicktabs-style-excel li:hover { + /*background: transparent url(images/tab-left-sep.png) no-repeat left -76px;*/ +} + +ul.quicktabs-tabs.quicktabs-style-excel li a:hover { + color: #000; + /*background: transparent url(images/tab-right-sep.png) no-repeat right -76px;*/ +} + +/*override active tab*/ +ul.quicktabs-tabs.quicktabs-style-excel li.active { + background: transparent url(images/tab-left-sep.png) no-repeat left 0; +} + +ul.quicktabs-tabs.quicktabs-style-excel li.active a { + background: transparent url(images/tab-right-sep.png) no-repeat right 0; +} + +/*override first tab*/ +ul.quicktabs-tabs.quicktabs-style-excel li.first { + background: transparent url(images/tab-left.png) no-repeat left -38px; +} + +ul.quicktabs-tabs.quicktabs-style-excel li.first:hover { + /*background: transparent url(images/tab-left.png) no-repeat left -76px;*/ +} + +ul.quicktabs-tabs.quicktabs-style-excel li.first.active { + background: transparent url(images/tab-left.png) no-repeat left 0px; +} + +/*override last tab*/ +ul.quicktabs-tabs.quicktabs-style-excel li.last a { + background: transparent url(images/tab-right.png) no-repeat right -38px; +} + +ul.quicktabs-tabs.quicktabs-style-excel li.last a:hover { + /*background: transparent url(images/tab-right.png) no-repeat right -76px;*/ +} + +ul.quicktabs-tabs.quicktabs-style-excel li.last.active a { + background:transparent url(images/tab-right.png) no-repeat right 0px; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-bar.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-bar.png new file mode 100755 index 0000000..0b380be Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-bar.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left-rtl.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left-rtl.png new file mode 100755 index 0000000..015da17 Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left-rtl.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left-sep-rtl.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left-sep-rtl.png new file mode 100755 index 0000000..c687493 Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left-sep-rtl.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left-sep.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left-sep.png new file mode 100755 index 0000000..f9264fc Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left-sep.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left.png new file mode 100755 index 0000000..55d7e68 Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right-rtl.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right-rtl.png new file mode 100755 index 0000000..22e91de Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right-rtl.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right-sep-rtl.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right-sep-rtl.png new file mode 100755 index 0000000..c6584ed Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right-sep-rtl.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right-sep.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right-sep.png new file mode 100755 index 0000000..4eddb66 Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right-sep.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right.png new file mode 100755 index 0000000..57e15dc Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/garland-rtl.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/garland-rtl.css new file mode 100755 index 0000000..775da52 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/garland-rtl.css @@ -0,0 +1,9 @@ + +ul.quicktabs-tabs.quicktabs-style-garland li { + float: right; +} + +ul.quicktabs-tabs.quicktabs-style-garland li a:link, +ul.quicktabs-tabs.quicktabs-style-garland li a:visited { + padding: 8px 11px 4px 12px; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/garland.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/garland.css new file mode 100755 index 0000000..1c46d89 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/garland.css @@ -0,0 +1,71 @@ + +.quicktabs_main.quicktabs-style-garland { + clear:both; +} + +ul.quicktabs-tabs.quicktabs-style-garland { + background: #bcd6eb url('images/bg.gif') repeat-x bottom; + font:bold 12px/20px Verdana; + padding: 3px 0px 3px; + height: 20px; + margin:0 0 10px 0; +} + +.sidebar ul.quicktabs-tabs.quicktabs-style-garland { + padding:0 0 3px 0; +} + +ul.quicktabs-tabs.quicktabs-style-garland li { + margin:0; + padding:0; + display: block; + float: left; + padding: 2px 0 1px !important; + list-style-type: none; + background: none; +} + +.sidebar ul.quicktabs-tabs.quicktabs-style-garland li { + margin:0; + display: block; + float: left; + padding: 2px 0 1px; + list-style-type: none; + background: none; +} + +ul.quicktabs-tabs.quicktabs-style-garland li a:link, +ul.quicktabs-tabs.quicktabs-style-garland li a:visited { + color: #fff; + padding: 8px 12px 4px 11px; + margin:0; + font:bold 12px/20px Verdana; +} + +ul.quicktabs-tabs.quicktabs-style-garland li.active a { + color: #027AC6 !important; + background: url('images/tab-right.gif') no-repeat right bottom; +} +ul.quicktabs-tabs.quicktabs-style-garland li.active { + background: url('images/tab-left.gif') no-repeat left bottom; +} + +.sidebar ul.quicktabs-tabs.quicktabs-style-garland li.active a { + color: #027AC6 !important; + background: url('images/tab-right-sidebar.gif') no-repeat right bottom; +} +.sidebar ul.quicktabs-tabs.quicktabs-style-garland li.active { + background: url('images/tab-left-sidebar.gif') no-repeat left bottom; +} + +/* IE 6 Debug */ +* html ul.quicktabs-tabs.quicktabs-style-garland, +* html .sidebar ul.quicktabs-tabs.quicktabs-style-garland { + padding-bottom: 0px; +} + +/* IE 7 Debug */ +*+html .sidebar ul.quicktabs-tabs.quicktabs-style-garland li a:link { + padding-bottom: 4px; +} + diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/bg.gif b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/bg.gif new file mode 100755 index 0000000..42102c0 Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/bg.gif differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-left-sidebar.gif b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-left-sidebar.gif new file mode 100755 index 0000000..b8e265c Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-left-sidebar.gif differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-left.gif b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-left.gif new file mode 100755 index 0000000..0239310 Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-left.gif differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-right-sidebar.gif b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-right-sidebar.gif new file mode 100755 index 0000000..94e98b1 Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-right-sidebar.gif differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-right.gif b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-right.gif new file mode 100755 index 0000000..92728a3 Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-right.gif differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/mac/images/mac.gif b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/mac/images/mac.gif new file mode 100755 index 0000000..6932031 Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/mac/images/mac.gif differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/mac/images/mac.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/mac/images/mac.png new file mode 100755 index 0000000..540b9fa Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/mac/images/mac.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/mac/mac-rtl.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/mac/mac-rtl.css new file mode 100755 index 0000000..cf8ab6f --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/mac/mac-rtl.css @@ -0,0 +1,4 @@ + +ul.quicktabs-tabs.quicktabs-style-mac li{ + float: right; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/mac/mac.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/mac/mac.css new file mode 100755 index 0000000..4afd3a3 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/mac/mac.css @@ -0,0 +1,50 @@ + +.quicktabs_main.quicktabs-style-mac{ + clear:both; +} +ul.quicktabs-tabs.quicktabs-style-mac{ + margin:0 0 10px 0; + font-size:11px; + list-style: none; + padding:3px 0 23px 0; +} +ul.quicktabs-tabs.quicktabs-style-mac li{ + float: left; + height:24px; + margin:0 5px; + padding: 0 0 0 15px; + background:transparent url(images/mac.png) no-repeat 0 0px; +} +ul.quicktabs-tabs.quicktabs-style-mac li a{ + font:bold 12px/170% Verdana; + margin: 0; + display:block; + padding:0px 15px 5px 0px; + font-weight:bold; + text-decoration:none; + color: #fff; + background:transparent url(images/mac.png) no-repeat right -25px ; +} +ul.quicktabs-tabs.quicktabs-style-mac li:hover a{ + background-position: right -75px ; +} +ul.quicktabs-tabs.quicktabs-style-mac li:hover{ + background-position: 0 -50px; +} +ul.quicktabs-tabs.quicktabs-style-mac li.active a, +ul.quicktabs-tabs.quicktabs-style-mac li.active a:hover{ + background-position:right -125px; +} +ul.quicktabs-tabs.quicktabs-style-mac li.active{ + background-position: 0 -100px; +} + +/* IE6 Gif (no PNGs) */ + +*html ul.quicktabs-tabs.quicktabs-style-mac li a{ + color:#fff!important; + background:transparent url(images/mac.gif) no-repeat right -25px ; +} +*html ul.quicktabs-tabs.quicktabs-style-mac li{ /* image for IE6 */ + background:transparent url(images/mac.gif) no-repeat 0 0px; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/navlist/navlist.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/navlist/navlist.css new file mode 100755 index 0000000..6e8e15c --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/navlist/navlist.css @@ -0,0 +1,50 @@ + +.quicktabs_wrapper.quicktabs-style-navlist { + margin: 0; + width: 100%; + display: block; +} + +ul.quicktabs-tabs.quicktabs-style-navlist { + float: left; + padding: 4px 0; + margin: 0; + position: relative; + z-index: 2; + width: 20%; +} +ul.quicktabs-tabs.quicktabs-style-navlist li { + display: block; + margin-right: -1px; + padding: 0; +} +ul.quicktabs-tabs.quicktabs-style-navlist li a { + display: block; + color: #404040; + text-align: right; + text-decoration: none; + margin: 0; + padding: 0 10px 0 0; + height: 23px; + font-weight: normal; +} +ul.quicktabs-tabs.quicktabs-style-navlist li.active { + background: #F0F8FC; + border-top: 1px solid #BFD0FF; + border-bottom: 1px solid #BFD0FF; +} +ul.quicktabs-tabs.quicktabs-style-navlist li.active a { + color: #007734; + font-weight: bold; +} + +.quicktabs_main.quicktabs-style-navlist { + float: left; + border: 1px solid #BFD0FF; + background: #F0F8FC; + padding: 10px; + min-height: 64px; + position: relative; + z-index: 1; + width: 70%; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/phy.gif b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/phy.gif new file mode 100755 index 0000000..42bcd94 Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/phy.gif differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/phy.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/phy.png new file mode 100755 index 0000000..70ceb5b Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/phy.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/shade.gif b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/shade.gif new file mode 100755 index 0000000..e323923 Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/shade.gif differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/shade.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/shade.png new file mode 100755 index 0000000..69e0eaf Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/shade.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/phylactere-rtl.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/phylactere-rtl.css new file mode 100755 index 0000000..1be1aa5 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/phylactere-rtl.css @@ -0,0 +1,4 @@ + +ul.quicktabs-tabs.quicktabs-style-phylactere li{ + float: right; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/phylactere.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/phylactere.css new file mode 100755 index 0000000..c1ece59 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/phylactere.css @@ -0,0 +1,53 @@ + +.quicktabs_main.quicktabs-style-phylactere{ + clear:both; +} +ul.quicktabs-tabs.quicktabs-style-phylactere{ + margin:0 0 10px 0; + padding:0; + font-size:12px; + list-style: none; + background:transparent url(images/shade.png) repeat-x bottom left; + height:28px; +} +ul.quicktabs-tabs.quicktabs-style-phylactere li{ + float: left; + margin:0 5px; + padding:0 0 8px 23px; + background:transparent url(images/phy.png) no-repeat 0 -59px; +} +ul.quicktabs-tabs.quicktabs-style-phylactere li a{ + font:bold 12px/170% Verdana; + margin: 0; + display:block; + padding:2px 21px 1px 0; + text-decoration:none; + color: #bbb !important; + background:transparent url(images/phy.png) no-repeat right -35px ; +} +ul.quicktabs-tabs.quicktabs-style-phylactere li a:hover{ + text-decoration:none; + color:#888 !important; +} +ul.quicktabs-tabs.quicktabs-style-phylactere li.active a{ + color: #0372d9 !important; +} +ul.quicktabs-tabs.quicktabs-style-phylactere li.active{ + background-position: 0 0; + padding-bottom:11px; + position:relative; + top:-2px; +} + +/* IE6 */ + +*html ul.quicktabs-tabs.quicktabs-style-phylactere{ + background: transparent url(images/shade.gif) repeat-x 0 25px; +} +*html ul.quicktabs-tabs.quicktabs-style-phylactere li a{ + padding:0px 21px 3px 0; + background-image: url(images/phy.gif); +} +*html ul.quicktabs-tabs.quicktabs-style-phylactere li{ /* image for IE6 */ + background-image: url(images/phy.gif); +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/sky/images/bg-shade-dark.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/sky/images/bg-shade-dark.png new file mode 100755 index 0000000..1be36f2 Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/sky/images/bg-shade-dark.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/sky/images/bg-shade-light.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/sky/images/bg-shade-light.png new file mode 100755 index 0000000..ad7167b Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/sky/images/bg-shade-light.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/sky/images/bg-shade-medium.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/sky/images/bg-shade-medium.png new file mode 100755 index 0000000..e4b39fe Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/sky/images/bg-shade-medium.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/sky/sky-rtl.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/sky/sky-rtl.css new file mode 100755 index 0000000..32a1c7d --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/sky/sky-rtl.css @@ -0,0 +1,9 @@ + +ul.quicktabs-tabs.quicktabs-style-sky li { + float: right; +} + +ul.quicktabs-tabs.quicktabs-style-sky li a, +ul.quicktabs-tabs.quicktabs-style-sky li a:visited { + float: right; +} \ No newline at end of file diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/sky/sky.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/sky/sky.css new file mode 100755 index 0000000..da877fa --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/sky/sky.css @@ -0,0 +1,94 @@ + +/* Quicktabs - Sky theme style + * http://drupal.org/project/sky + */ + +.quicktabs_main.quicktabs-style-sky { + border: 1px solid #eee; + clear: both; + padding: 10px 5px 0 5px; + position: relative; + top: -0.1em; + background: #fff; +} + +ul.quicktabs-tabs.quicktabs-style-sky { + margin: 0; + padding: 0; + width: 100%; +} + +ul.quicktabs-tabs.quicktabs-style-sky li { + float: left; + font-weight: normal; + list-style: none; + margin: 0.3em 0 0 0; + height: 2.65em; + min-height: 2.95em; + padding: 0; +} + +ul.quicktabs-tabs.quicktabs-style-sky li.active { + margin: -0.2em 0 0 0; +} + +ul.quicktabs-tabs.quicktabs-style-sky li a, +ul.quicktabs-tabs.quicktabs-style-sky li a:visited { + float: left; + display: block; + height: 2.65em; + min-height: 2.95em; + line-height: 2.95em; + padding: 0 8px; + text-decoration: none; + border-right: 1px solid #eee; + border-top: 1px solid #eee; + font-size: .95em; + background: #fff url('images/bg-shade-light.png') repeat-x bottom left; + color: #777; + position: relative; +} + +ul.quicktabs-tabs.quicktabs-style-sky li a:hover, +ul.quicktabs-tabs.quicktabs-style-sky li.active a:hover { + text-decoration: none; + border-color: #B3B3B3; + background: #B3B3B3 url('images/bg-shade-medium.png') repeat-x bottom left; + color: #fff; +} + +ul.quicktabs-tabs.quicktabs-style-sky li.active a, +ul.quicktabs-tabs.quicktabs-style-sky li.active a:visited { + height: 3.05em; + min-height: 3.35em; + line-height: 3.35em; + font-weight: normal; + border: 1px solid #eee; + background: #858585 url('images/bg-shade-dark.png') repeat-x bottom left; + border-color: #555; + color: #fff; + font-size: .95em; + font-weight: normal; + top: -0.025em; +} + +ul.quicktabs-tabs.quicktabs-style-sky li:first-child a { + border-left: solid 1px #eee; +} + +ul.quicktabs-tabs.quicktabs-style-sky li.active a { + border-left: solid 1px #777; +} + +ul.quicktabs-tabs.quicktabs-style-sky li a:focus, +ul.quicktabs-tabs.quicktabs-style-sky li a:active { + outline: none; + +} + +/* Opera */ +@media all and (min-width: 0px) { + body .quicktabs_main.quicktabs-style-sky { + top: -0.2em; + } +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/zen/images/tab-bar.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/zen/images/tab-bar.png new file mode 100755 index 0000000..0b380be Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/zen/images/tab-bar.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/zen/images/tab-left-ie6.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/zen/images/tab-left-ie6.png new file mode 100755 index 0000000..5c512ae Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/zen/images/tab-left-ie6.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/zen/images/tab-right-ie6.png b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/zen/images/tab-right-ie6.png new file mode 100755 index 0000000..1c00281 Binary files /dev/null and b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/zen/images/tab-right-ie6.png differ diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/zen/zen-rtl.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/zen/zen-rtl.css new file mode 100755 index 0000000..be923f4 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/zen/zen-rtl.css @@ -0,0 +1,6 @@ + +/* RTL support */ + +ul.quicktabs-tabs.quicktabs-style-zen li{ + float: right; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/zen/zen.css b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/zen/zen.css new file mode 100755 index 0000000..5659674 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/quicktabs_tabstyles/tabstyles/zen/zen.css @@ -0,0 +1,53 @@ + +/** + * Style from the new (great!) ZEN THEME for Drupal + * http://drupal.org/project/zen + */ + +.quicktabs_main.quicktabs-style-zen{ + clear:both; +} +ul.quicktabs-tabs.quicktabs-style-zen{ + margin:0 0 10px 0; + padding:0 0 3px; + font-size:1em; + list-style: none; + height:21px; + background:transparent url(images/tab-bar.png) repeat-x left bottom; +} +*html ul.quicktabs-tabs.quicktabs-style-zen li{ + margin-bottom:-5px; +} +ul.quicktabs-tabs.quicktabs-style-zen li{ + float: left; + margin:0 5px; + padding: 0 0 0 5px; + background:transparent url(images/tab-left-ie6.png) no-repeat left -38px; +} +ul.quicktabs-tabs.quicktabs-style-zen li a{ + font:bold 12px/170% Verdana; + font-size-adjust:none; + display: block; + margin: 0; + padding:4px 17px 0px 12px; + border-width: 0; + font-weight:bold; + text-decoration:none; + background: transparent url(images/tab-right-ie6.png) no-repeat right -38px; +} +ul.quicktabs-tabs.quicktabs-style-zen li:hover a{ + border-width: 0; + background:transparent url(images/tab-right-ie6.png) no-repeat right -76px; +} +quicktabs-tabs.quicktabs-style-zen li:hover{ + background:transparent url(images/tab-left-ie6.png) no-repeat left -76px; +} +ul.quicktabs-tabs.quicktabs-style-zen li.active a, +ul.quicktabs-tabs.quicktabs-style-zen li.active a:hover{ + text-decoration:none; + border-width: 0; + background:transparent url(images/tab-right-ie6.png) no-repeat right 0; +} +ul.quicktabs-tabs.quicktabs-style-zen li.active{ + background:transparent url(images/tab-left-ie6.png) no-repeat left 0; +} diff --git a/src/developerportal/all/modules/contrib/quicktabs/tests/quicktabs.test b/src/developerportal/all/modules/contrib/quicktabs/tests/quicktabs.test new file mode 100755 index 0000000..ae1aa55 --- /dev/null +++ b/src/developerportal/all/modules/contrib/quicktabs/tests/quicktabs.test @@ -0,0 +1,136 @@ + t('Quicktabs tests'), + 'description' => t('Add, edit and delete quicktabs.'), + 'group' => t('Quicktabs'), + ); + } + + /** + * Implementation of setUp(). + */ + function setUp() { + parent::setUp('ctools','quicktabs'); + + // Create and login user + $admin_user = $this->drupalCreateUser(array('access administration pages', 'administer quicktabs', 'administer nodes')); + $this->drupalLogin($admin_user); + + // Create some nodes that we can populate our tabs with. + for ($i = 0; $i < 5; $i++) { + $node = new stdClass(); + $node->type = 'page'; + $node->title = 'This is node number '. ($i+1); + $node->body[LANGUAGE_NONE][0]['value'] = $this->randomString(255); + node_object_prepare($node); + node_save($node); + } + } + + /** + * Create a Quicktabs instance through the UI and ensure that it is saved properly. + */ + function testQuicktabsAdmin() { + // Add a new Quicktabs instance using the UI. + $edit = array( + 'machine_name' => strtolower($this->randomName()), + 'title' => $this->randomName(), + 'ajax' => 0, + 'hide_empty_tabs' => FALSE, + 'renderer' => 'quicktabs', + ); + + $saved = $edit; + // We'll be using the $saved array to compare against the Quicktabs instance + // that gets created. However, hierarchical form elements are dealt with + // differenly so we can't include them in the $saved array like this. + $tab_title_first = $this->randomName(); + $tab_title_second = $this->randomName(); + $edit += array( + 'tabs[0][type]' => 'node', + 'tabs[0][node][nid]' => 1, + 'tabs[0][node][view_mode]' => 'full', + 'tabs[0][title]' => $tab_title_first, + 'tabs[0][weight]' => 0, + 'tabs[1][type]' => 'node', + 'tabs[1][node][nid]' => 2, + 'tabs[1][node][view_mode]' => 'full', + 'tabs[1][title]' => $tab_title_second, + 'tabs[1][weight]' => 1, + ); + // Now add on the tabs info to the $saved array - it's the same as what we + // put in the edit form but we need it in proper array format. + $saved['tabs'] = array(0 => array('type' => 'node', 'nid' => 1, 'view_mode' => 'full', 'title' => $tab_title_first, 'weight' => 0), 1 => array('type' => 'node', 'nid' => 2, 'view_mode' => 'full', 'title' => $tab_title_second, 'weight' => 1)); + $this->drupalPost('admin/structure/quicktabs/add', $edit, t('Save')); + + // Check that the quicktabs object is in the database. + $quicktabs = quicktabs_load($edit['machine_name']); + $this->assertTrue($quicktabs != FALSE, t('Quicktabs instance found in database')); + + // Check each individual property of the quicktabs and make sure it was set. + foreach ($saved as $property => $value) { + if ($property == 'tabs') { + // Add some extra default values that we didn't include on the form, for + // the sake of comparing the two tabs arrays. + foreach ($value as &$val) { + $val += array('hide_title' => 1); + } + } + $this->assertEqual($quicktabs->$property, $value, t('Quicktabs property %property properly saved.', array('%property' => $property))); + } + + // Edit the Quicktabs instance through the UI. + $edit = array( + 'title' => $this->randomName(), + 'ajax' => 1, + 'hide_empty_tabs' => TRUE, + 'renderer' => 'ui_tabs', + 'default_tab' => 1, + ); + + $saved = $edit; + $tab_title_first = $this->randomName(); + $tab_title_second = $this->randomName(); + $edit += array( + 'tabs[0][title]' => $tab_title_first, + 'tabs[0][weight]' => 1, + 'tabs[0][node][nid]' => 3, + 'tabs[0][node][view_mode]' => 'teaser', + 'tabs[0][node][hide_title]' => FALSE, + 'tabs[1][title]' => $tab_title_second, + 'tabs[1][weight]' => 0, + 'tabs[1][node][nid]' => 4, + 'tabs[1][node][view_mode]' => 'teaser', + 'tabs[1][node][hide_title]' => 1, + ); + $saved['tabs'] = array(0 => array('type' => 'node', 'nid' => 4, 'title' => $tab_title_second, 'weight' => 0, 'view_mode' => 'teaser', 'hide_title' => 1), 1 => array('type' => 'node', 'nid' => 3, 'title' => $tab_title_first, 'weight' => 1, 'view_mode' => 'teaser', 'hide_title' => 0)); + $this->drupalPost('admin/structure/quicktabs/manage/'. $quicktabs->machine_name .'/edit', $edit, t('Save')); + + // Reset static vars because ctools will have cached the original $quicktabs object + drupal_static_reset(); + // Check that the quicktabs object is in the database. + $edited_qt = quicktabs_load($quicktabs->machine_name); + $this->assertTrue($edited_qt != FALSE, t('Quicktabs instance found in database')); + + // Check each individual property of the quicktabs and make sure it was set. + foreach ($saved as $property => $value) { + $this->assertEqual($edited_qt->$property, $value, t('Quicktabs property %property properly saved.', array('%property' => $property))); + } + + // Delete the Quicktabs instance through the UI. + $this->drupalPost('admin/structure/quicktabs/manage/'. $quicktabs->machine_name .'/delete', array(), t('Delete')); + // Reset static vars because ctools will have cached the original $quicktabs object + drupal_static_reset(); + // Check that the quicktabs object is no longer in the database. + $this->assertNull(quicktabs_load($quicktabs->machine_name), t('Quicktabs instance not found in database')); + } + +} + diff --git a/src/developerportal/all/modules/custom/fhir_blocks/fhir_blocks.info b/src/developerportal/all/modules/custom/fhir_blocks/fhir_blocks.info new file mode 100755 index 0000000..31825c7 --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_blocks/fhir_blocks.info @@ -0,0 +1,5 @@ +name = FHIR Blocks +description = Provides default blocks for the FHIR developer portal +core = 7.x +package = FHIR Custom +version = 1.x-1.0 \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_blocks/fhir_blocks.module b/src/developerportal/all/modules/custom/fhir_blocks/fhir_blocks.module new file mode 100755 index 0000000..ab93de1 --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_blocks/fhir_blocks.module @@ -0,0 +1,117 @@ + t('Fhir Get Started'), + ); + $blocks['fhir_apis_sandox'] = array( + 'info' => t('Fhir Apis and Sandbox'), + ); + $blocks['fhir_app_gallery'] = array( + 'info' => t('Fhir App Gallery'), + ); + $blocks['fhir_copyright'] = array( + 'info' => t('Fhir Copyright'), + ); + $blocks['fhir_social_bottom'] = array( + 'info' => t('Fhir Social Bottom'), + ); + $blocks['fhir_logo_caption'] = array( + 'info' => t('Fhir Logo Caption'), + ); + return $blocks; +} + +/** + * Implements hook_block_view(). + */ +function fhir_blocks_block_view($delta = ''){ + $block = array(); + switch ($delta) { + case 'fhir_get_started': + $block['subject'] = NULL; + $block['content'] = array( + '#markup' => theme('fhir_get_started'), + ); + break; + + case 'fhir_apis_sandox': + $block['subject'] = NULL; + $block['content'] = array( + '#markup' => theme('fhir_apis_sandox'), + ); + break; + + case 'fhir_app_gallery': + $block['subject'] = NULL; + $block['content'] = array( + '#markup' => theme('fhir_app_gallery'), + ); + break; + + case 'fhir_copyright': + $block['subject'] = NULL; + $block['content'] = array( + '#markup' => theme('fhir_copyright'), + ); + break; + + case 'fhir_social_bottom': + $block['subject'] = NULL; + $block['content'] = array( + '#markup' => theme('fhir_social_bottom'), + ); + break; + + case 'fhir_logo_caption': + $block['subject'] = NULL; + $block['content'] = array( + '#markup' => theme('fhir_logo_caption'), + ); + break; + } + + return $block; +} + +/** + * Implements hook_theme(). + */ +function fhir_blocks_theme($existing, $type, $theme, $path){ + $template_path = drupal_get_path('module', 'fhir_blocks') . '/templates'; + $items = array(); + $items['fhir_get_started'] = array( + 'template' => 'fhir_get_started', + 'path' => $template_path, + ); + $items['fhir_apis_sandox'] = array( + 'template' => 'fhir_apis_sandox', + 'path' => $template_path, + ); + $items['fhir_app_gallery'] = array( + 'template' => 'fhir_app_gallery', + 'path' => $template_path, + ); + $items['fhir_copyright'] = array( + 'template' => 'fhir_copyright', + 'path' => $template_path, + ); + $items['fhir_social_bottom'] = array( + 'template' => 'fhir_social_bottom', + 'path' => $template_path, + ); + $items['fhir_logo_caption'] = array( + 'template' => 'fhir_logo_caption', + 'path' => $template_path, + ); + return $items; +} diff --git a/src/developerportal/all/modules/custom/fhir_blocks/templates/fhir_apis_sandox.tpl.php b/src/developerportal/all/modules/custom/fhir_blocks/templates/fhir_apis_sandox.tpl.php new file mode 100755 index 0000000..94e6412 --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_blocks/templates/fhir_apis_sandox.tpl.php @@ -0,0 +1,7 @@ + diff --git a/src/developerportal/all/modules/custom/fhir_blocks/templates/fhir_app_gallery.tpl.php b/src/developerportal/all/modules/custom/fhir_blocks/templates/fhir_app_gallery.tpl.php new file mode 100755 index 0000000..5a22ba3 --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_blocks/templates/fhir_app_gallery.tpl.php @@ -0,0 +1,7 @@ + diff --git a/src/developerportal/all/modules/custom/fhir_blocks/templates/fhir_copyright.tpl.php b/src/developerportal/all/modules/custom/fhir_blocks/templates/fhir_copyright.tpl.php new file mode 100755 index 0000000..862ab1a --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_blocks/templates/fhir_copyright.tpl.php @@ -0,0 +1,35 @@ +
      +
      +
      + + + +
      + +
      + + + +
      +
      + +
      © 2016 Apigee Corp. All Rights Reserved.
      +
      + + diff --git a/src/developerportal/all/modules/custom/fhir_blocks/templates/fhir_get_started.tpl.php b/src/developerportal/all/modules/custom/fhir_blocks/templates/fhir_get_started.tpl.php new file mode 100755 index 0000000..1e340b3 --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_blocks/templates/fhir_get_started.tpl.php @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_blocks/templates/fhir_logo_caption.tpl.php b/src/developerportal/all/modules/custom/fhir_blocks/templates/fhir_logo_caption.tpl.php new file mode 100755 index 0000000..299452d --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_blocks/templates/fhir_logo_caption.tpl.php @@ -0,0 +1,6 @@ +
      + + Health + APIx + +
      \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_blocks/templates/fhir_social_bottom.tpl.php b/src/developerportal/all/modules/custom/fhir_blocks/templates/fhir_social_bottom.tpl.php new file mode 100755 index 0000000..41b231d --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_blocks/templates/fhir_social_bottom.tpl.php @@ -0,0 +1,8 @@ +
      + +
      \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_install/fhir_install.info b/src/developerportal/all/modules/custom/fhir_install/fhir_install.info new file mode 100755 index 0000000..9801cca --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_install/fhir_install.info @@ -0,0 +1,5 @@ +name = FHIR Install +description = Performs installation related tasks for FHIR customizations +core = 7.x +version = 7.x-1.0 +packge = FHIR Custom \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_install/fhir_install.install b/src/developerportal/all/modules/custom/fhir_install/fhir_install.install new file mode 100755 index 0000000..6ccf4a3 --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_install/fhir_install.install @@ -0,0 +1,100 @@ +condition('title', 'Events'); + $query->condition('type', 'page'); + $query->fields('n', array('nid')); + $events_nid = $query->execute()->fetchField(); + $path = array('source' => "node/$events_nid", 'alias' => 'events'); + path_save($path); + + $query = db_select('node', 'n'); + $query->condition('title', 'Community'); + $query->condition('type', 'page'); + $query->fields('n', array('nid')); + $community_nid = $query->execute()->fetchField(); + $path = array('source' => "node/$community_nid", 'alias' => 'apix-community'); + path_save($path); + + // Disable the default apigee menu items and enable the custom ones. + $community_menu = array( + 'link_path' => 'node/' . $community_nid, + 'link_title' => "Community", + 'router_path' => 'node/%', + 'menu_name' => 'main-menu', + 'weight' => '-30', + 'options' => array( + 'attributes' => array( + 'title' => 'Community', + ), + ), + ); + menu_link_save($community_menu); + + $events_menu = array( + 'link_path' => 'node/' . $events_nid, + 'link_title' => "Events", + 'router_path' => 'node/%', + 'menu_name' => 'main-menu', + 'weight' => '-20', + 'options' => array( + 'attributes' => array( + 'title' => 'Events', + ), + ), + ); + menu_link_save($events_menu); + + $path = drupal_get_normal_path('patient/apis/get'); + + $apis_menu = array( + 'link_path' => $path, + 'link_title' => "APIs", + 'router_path' => $path, + 'menu_name' => 'main-menu', + 'weight' => '-50', + 'options' => array( + 'attributes' => array( + 'title' => 'APIs', + ), + ), + ); + menu_link_save($apis_menu); + + $contact_menu = array( + 'link_path' => 'contact', + 'link_title' => "Contact Us", + 'router_path' => 'contact', + 'menu_name' => 'main-menu', + 'weight' => '5', + 'options' => array( + 'attributes' => array( + 'title' => 'Contact Us', + ), + ), + ); + menu_link_save($contact_menu); + + module_disable(array('devconnect_blog')); + + $links = menu_load_links('main-menu'); + foreach ($links as $item) { + if ($item['link_path'] == 'blog' || $item['link_path'] == 'apis' || $item['link_path'] == 'forum' || $item['link_path'] == 'user/me/apps' || $item['link_path'] == 'faq-page') { + $item['hidden'] = 1; + menu_link_save($item); + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_install/fhir_install.module b/src/developerportal/all/modules/custom/fhir_install/fhir_install.module new file mode 100755 index 0000000..e9e28b3 --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_install/fhir_install.module @@ -0,0 +1,11 @@ +" . print_r($data, 1)); + $data['subject'] = NULL; +} diff --git a/src/developerportal/all/modules/custom/fhir_swagger/fhir_swagger.info b/src/developerportal/all/modules/custom/fhir_swagger/fhir_swagger.info new file mode 100755 index 0000000..ee9902b --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/fhir_swagger.info @@ -0,0 +1,7 @@ +name = FHIR Swagger +description = Import swagger files, render and publish them. +package = FHIR +version = 7.x-1.0 +core = 7.x +files[] = fhir_swagger.module +files[] = fhir_swagger.install_callbacks.inc diff --git a/src/developerportal/all/modules/custom/fhir_swagger/fhir_swagger.install_callbacks.inc b/src/developerportal/all/modules/custom/fhir_swagger/fhir_swagger.install_callbacks.inc new file mode 100755 index 0000000..0dc93ae --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/fhir_swagger.install_callbacks.inc @@ -0,0 +1,120 @@ +load($model_machine_name); + $update = TRUE; + } + catch (Apigee\Exceptions\ResponseException $e) { + $update = FALSE; + } + + // If the model loaded, then no reason to modify it, just return. + if ($update) { + return; + } + + $model->setName($model_machine_name); + $model->setDisplayName($model_display_name); + $model->setDescription($model_description); + try { + $model->save($update); + + } + catch (Apigee\Exceptions\ResponseException $e) { + $message = $e->getResponse(); + $message_obj = @json_decode($message, TRUE); + if (is_array($message_obj) && array_key_exists('message', $message_obj)) { + $err_msg = $message_obj['message']; + } + else { + $err_msg = $e->getMessage(); + } + $msg_args = array('%model' => $model_display_name, '!error_message' => $err_msg); + + drupal_set_message(t('Error creating %model: !error_message', $msg_args), 'error'); + watchdog('apigee', 'Error creating %model: !error_message', $msg_args, WATCHDOG_ERROR); + + } + catch (Exception $e) { + $msg_args = array('%model' => $model_display_name, '!error_message' => $e->getMessage()); + + drupal_set_message(t('Error creating %model: !error_message', $msg_args), 'error'); + watchdog('apigee', 'Error creating %model: !error_message', $msg_args, WATCHDOG_ERROR); + } +} + +/** + * Batch Operation Callback. + */ +function custom_apigee_batch_smartdocs_import_model($model_machine_name, $model_import_file, $document_format, $content_type) { + + + // Create SmartDocs model. + $model = new Apigee\SmartDocs\Model(devconnect_default_org_config()); + try { + $model->load($model_machine_name); + } + catch (Apigee\Exceptions\ResponseException $e) { + $message = $e->getResponse(); + $message_obj = @json_decode($message, TRUE); + if (is_array($message_obj) && array_key_exists('message', $message_obj)) { + $err_msg = $message_obj['message']; + } + else { + $err_msg = $e->getMessage(); + } + $msg_args = array('%model' => $model_machine_name, '!error_message' => $err_msg); + drupal_set_message(t('Error importing %model: !error_message', $msg_args), 'error'); + watchdog('apigee', 'Error importing %model: !error_message', $msg_args, WATCHDOG_ERROR); + } + catch (Exception $e) { + $msg_args = array('%model' => $model_machine_name, '!error_message' => $e->getMessage()); + drupal_set_message(t('Error importing %model: !error_message', $msg_args), 'error'); + watchdog('apigee', 'Error importing %model: !error_message', $msg_args, WATCHDOG_ERROR); + } + if ($model->getLatestRevisionNumber() <= 0) { + try { + // Import the model using the Swagger file. + $file_contents = file_get_contents($model_import_file); + $model->importFile($file_contents, $document_format, $content_type); + drupal_set_message('Sample model %model imported into SmartDocs.', array('%model' => $model->getDisplayName()), 'status'); + } + catch (Apigee\Exceptions\ResponseException $e) { + $message = $e->getResponse(); + $message_obj = @json_decode($message, TRUE); + if (is_array($message_obj) && array_key_exists('message', $message_obj)) { + $err_msg = $message_obj['message']; + } + else { + $err_msg = $e->getMessage(); + } + drupal_set_message(t('Error importing %model: !error_message.', array('%model' => $model_machine_name, '!error_message' => $err_msg)), 'error'); + watchdog('apigee', 'Error importing %model: !error_message.', array('%model' => $model_machine_name, '!error_message' => $err_msg), WATCHDOG_ERROR); + } + catch (Exception $e) { + drupal_set_message(t('Error importing %model: !error_message.', array('%model' => $model_machine_name, '!error_message' => $e->getMessage())), 'error'); + watchdog('apigee', 'Error importing %model: !error_message.', array('%model' => $model_machine_name, '!error_message' => $e->getMessage()), WATCHDOG_ERROR); + } + } +} diff --git a/src/developerportal/all/modules/custom/fhir_swagger/fhir_swagger.module b/src/developerportal/all/modules/custom/fhir_swagger/fhir_swagger.module new file mode 100755 index 0000000..5134771 --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/fhir_swagger.module @@ -0,0 +1,720 @@ + 'Create and import SmartDocs models', + 'page callback' => 'custom_apigee_smartdocs_import_model_content', + 'access arguments' => array('access content'), + ); + + + $items['swagger/publish'] = array( + 'title' => 'Render and publish models', + 'page callback' => 'custom_apigee_smartdocs_render_model_content', + 'access arguments' => array('access content'), + ); + + return $items; + +} + +/** + * Create model and import Swagger file to load content. + */ +function custom_apigee_smartdocs_import_model_content() { + + global $install_state; + _custom_apigee_manage_memory(); + + + // Create SmartDocs model and Import swagger file model. #################################### + + /*$model_display_name = 'Pet Store Example API'; + $model_description = 'Manage inventory and users through an example REST API patterned after the classic pet store demo.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_SAMPLE_PETSTORE_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/petstore.swagger.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_SAMPLE_PETSTORE_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + + $model_display_name = 'Weather Example API'; + $model_description = 'Get weather reports for any location using the Yahoo Weather API.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_SAMPLE_WEATHER_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/weather.xml'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_SAMPLE_WEATHER_MODEL, + $model_import_file, + 'wadl', + 'application/xml', + ), + ); + */ + + $model_display_name = 'Authorization API'; + $model_description = 'OAuth API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_OAUTH_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/OAuth-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_OAUTH_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + $model_display_name = 'Patient API'; + $model_description = 'Patient resource API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_PATIENT_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/Patient-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_PATIENT_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + $model_display_name = 'AllergyIntolerance API'; + $model_description = 'FHIR AllergyIntolerance resource API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_ALLERGYINTOLERANCE_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/AllergyIntolerance-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_ALLERGYINTOLERANCE_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + $model_display_name = 'CarePlan API'; + $model_description = 'FHIR CarePlan resource API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_CAREPLAN_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/CarePlan-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_CAREPLAN_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + $model_display_name = 'Condition API'; + $model_description = 'FHIR Condition resource API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_CONDITION_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/Condition-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_CONDITION_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + $model_display_name = 'Coverage API'; + $model_description = 'FHIR Coverage resource API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_COVERAGE_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/Coverage-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_COVERAGE_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + $model_display_name = 'DiagnosticOrder API'; + $model_description = 'FHIR DiagnosticOrder resource API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_DIAGONESTICORDER_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/DiagnosticOrder-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_DIAGONESTICORDER_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + + $model_display_name = 'DiagnosticReport API'; + $model_description = 'FHIR DiagnosticReport resource API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_DIAGONESTICREPORT_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/DiagnosticReport-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_DIAGONESTICREPORT_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + $model_display_name = 'DocumentReference API'; + $model_description = 'FHIR DocumentReference resource API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_DOCUMENTREFERENCE_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/DocumentReference-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_DOCUMENTREFERENCE_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + $model_display_name = 'Encounter API'; + $model_description = 'Encounter API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_ENCOUNTER_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/Encounter-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_ENCOUNTER_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + $model_display_name = 'Immunization API'; + $model_description = 'FHIR Immunization resource API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_IMMUNIZATION_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/Immunization-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_IMMUNIZATION_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + $model_display_name = 'MedicationAdministration API'; + $model_description = 'FHIR MedicationAdministration resource API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_MEDICATIONADMINISTRATION_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/MedicationAdministration-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_MEDICATIONADMINISTRATION_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + $model_display_name = 'MedicationDispense API'; + $model_description = 'FHIR MedicationDispense resource API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_MEDICATIONDISPENSE_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/MedicationDispense-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_MEDICATIONDISPENSE_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + $model_display_name = 'MedicationOrder API'; + $model_description = 'FHIR MedicationOrder resource API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_MEDICATIONORDER_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/MedicationOrder-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_MEDICATIONORDER_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + $model_display_name = 'MedicationStatement API'; + $model_description = 'FHIR MedicationStatement resource API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_MEDICATIONSTATEMENT_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/MedicationStatement-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_MEDICATIONSTATEMENT_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + $model_display_name = 'Observation API'; + $model_description = 'FHIR Observation resource API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_OBSERVATION_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/Observation-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_OBSERVATION_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + $model_display_name = 'Practitioner API'; + $model_description = 'FHIR Practitioner resource API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_PRACTIOTIONER_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/Practitioner-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_PRACTIOTIONER_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + $model_display_name = 'Procedure API'; + $model_description = 'FHIR Procedure resource API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_PROCEDURE_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/Procedure-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_PROCEDURE_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + $model_display_name = 'FHIR server Base Path API'; + $model_description = 'FHIR Base Path API Documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_BASEPATH_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/BasePath-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_BASEPATH_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + $model_display_name = 'Schedule API'; + $model_description = 'FHIR Schedule resource API documentation.'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_create_model', + array( + SMARTDOCS_SCHEDULE_MODEL, + $model_display_name, + $model_description, + ), + ); + + $model_import_file = drupal_get_path('module', 'fhir_swagger') . '/swaggers/Schedule-api.json'; + $operations[] = array( + 'custom_apigee_batch_smartdocs_import_model', + array( + SMARTDOCS_SCHEDULE_MODEL, + $model_import_file, + 'swagger', + 'application/json', + ), + ); + + // Create SmartDocs model and Import swagger file model -Completed ########################################### + + + + $batch = array( + 'operations' => $operations, + 'title' => t('Creating and importing SmartDocs models'), + 'init_message' => t('SmartDocs model creation has started...'), + 'file' => drupal_get_path('module', 'fhir_swagger') . '/fhir_swagger.install_callbacks.inc', + 'error_message' => t('batch process failed'), + ); + + batch_set($batch); + batch_process('node/1'); + + //return $batch; +} + +/** + * Renders and publishes SmartDocs nodes. + * + * @return mixed + * The batch API array. + */ +function custom_apigee_smartdocs_render_model_content() { + + global $install_state; + _apigee_manage_memory(); + drupal_set_message('Rendering SmartDocs documentation pages.', 'status'); + require_once drupal_get_path('module', 'smartdocs') . '/batch/smartdocs.render.inc'; + + // Get batches to render model nodes. ################################################################# + //$batch_pet = custom_get_smartdocs_render_batch(SMARTDOCS_SAMPLE_PETSTORE_MODEL); + //$batch_weather = custom_get_smartdocs_render_batch(SMARTDOCS_SAMPLE_WEATHER_MODEL); + $batch_oauth = custom_get_smartdocs_render_batch(SMARTDOCS_OAUTH_MODEL); + $batch_patient = custom_get_smartdocs_render_batch(SMARTDOCS_PATIENT_MODEL); + $batch_allergyintolerance = custom_get_smartdocs_render_batch(SMARTDOCS_ALLERGYINTOLERANCE_MODEL); + $batch_carePlan = custom_get_smartdocs_render_batch(SMARTDOCS_CAREPLAN_MODEL); + $batch_condition = custom_get_smartdocs_render_batch(SMARTDOCS_CONDITION_MODEL); + $batch_coverage = custom_get_smartdocs_render_batch(SMARTDOCS_COVERAGE_MODEL); + $batch_diagnosticorder = custom_get_smartdocs_render_batch(SMARTDOCS_DIAGONESTICORDER_MODEL); + $batch_diagnosticreport = custom_get_smartdocs_render_batch(SMARTDOCS_DIAGONESTICREPORT_MODEL); + $batch_documentreference = custom_get_smartdocs_render_batch(SMARTDOCS_DOCUMENTREFERENCE_MODEL); + $batch_encounter = custom_get_smartdocs_render_batch(SMARTDOCS_ENCOUNTER_MODEL); + $batch_immunization = custom_get_smartdocs_render_batch(SMARTDOCS_IMMUNIZATION_MODEL); + $batch_medicationadministration = custom_get_smartdocs_render_batch(SMARTDOCS_MEDICATIONADMINISTRATION_MODEL); + $batch_medicationdispense = custom_get_smartdocs_render_batch(SMARTDOCS_MEDICATIONDISPENSE_MODEL); + $batch_medicationorder = custom_get_smartdocs_render_batch(SMARTDOCS_MEDICATIONORDER_MODEL); + $batch_medicationstatement = custom_get_smartdocs_render_batch(SMARTDOCS_MEDICATIONSTATEMENT_MODEL); + $batch_observation = custom_get_smartdocs_render_batch(SMARTDOCS_OBSERVATION_MODEL); + $batch_practitioner = custom_get_smartdocs_render_batch(SMARTDOCS_PRACTIOTIONER_MODEL); + $batch_procedure = custom_get_smartdocs_render_batch(SMARTDOCS_PROCEDURE_MODEL); + $batch_basePath = custom_get_smartdocs_render_batch(SMARTDOCS_BASEPATH_MODEL); + $batch_schedule = custom_get_smartdocs_render_batch(SMARTDOCS_SCHEDULE_MODEL); + + + $operations = array(); + /*if ($batch_weather != NULL) { + $operations = array_merge($operations, $batch_weather['operations']); + } + if ($batch_pet != NULL) { + $operations = array_merge($operations, $batch_pet['operations']); + }*/ + if ($batch_oauth != NULL) { + $operations = array_merge($operations, $batch_oauth['operations']); + } + if ($batch_patient != NULL) { + $operations = array_merge($operations, $batch_patient['operations']); + } + if ($batch_allergyintolerance != NULL) { + $operations = array_merge($operations, $batch_allergyintolerance['operations']); + } + if ($batch_carePlan != NULL) { + $operations = array_merge($operations, $batch_carePlan['operations']); + } + if ($batch_condition != NULL) { + $operations = array_merge($operations, $batch_condition['operations']); + } + if ($batch_coverage != NULL) { + $operations = array_merge($operations, $batch_coverage['operations']); + } + if ($batch_diagnosticorder != NULL) { + $operations = array_merge($operations, $batch_diagnosticorder['operations']); + } + if ($batch_diagnosticreport != NULL) { + $operations = array_merge($operations, $batch_diagnosticreport['operations']); + } + if ($batch_documentreference != NULL) { + $operations = array_merge($operations, $batch_documentreference['operations']); + } + if ($batch_encounter != NULL) { + $operations = array_merge($operations, $batch_encounter['operations']); + } + if ($batch_immunization != NULL) { + $operations = array_merge($operations, $batch_immunization['operations']); + } + if ($batch_medicationadministration != NULL) { + $operations = array_merge($operations, $batch_medicationadministration['operations']); + } + if ($batch_medicationdispense != NULL) { + $operations = array_merge($operations, $batch_medicationdispense['operations']); + } + if ($batch_medicationorder != NULL) { + $operations = array_merge($operations, $batch_medicationorder['operations']); + } + if ($batch_medicationstatement != NULL) { + $operations = array_merge($operations, $batch_medicationstatement['operations']); + } + if ($batch_observation != NULL) { + $operations = array_merge($operations, $batch_observation['operations']); + } + if ($batch_practitioner != NULL) { + $operations = array_merge($operations, $batch_practitioner['operations']); + } + if ($batch_procedure != NULL) { + $operations = array_merge($operations, $batch_procedure['operations']); + } + if ($batch_basePath != NULL) { + $operations = array_merge($operations, $batch_basePath['operations']); + } + if ($batch_schedule != NULL) { + $operations = array_merge($operations, $batch_schedule['operations']); + } + // Get batches to render model nodes complete. ############################################################# + // Merge batches to return. + $batch = array( + 'operations' => $operations, + 'title' => t('Rendering and Publishing SmartDocs documentation pages'), + 'init_message' => t('SmartDocs rendering has started...'), + 'progress_message' => t('Processed @current out of @total.'), + 'error_message' => t('Rendering SmartDocs nodes has encountered an error.'), + 'file' => drupal_get_path('module', 'smartdocs') . '/batch/smartdocs.render.inc', + ); + + batch_set($batch); + batch_process('node/1'); + return $batch; +} + + +/** + * Get batch for rendering all nodes for a model. + * + * @return array + * The batch for Drupal batch API. + */ +function custom_get_smartdocs_render_batch($model_machine_name) { + try { + $model = new Apigee\SmartDocs\Model(devconnect_default_org_config()); + $model->load($model_machine_name); + $revision = new Apigee\SmartDocs\Revision($model->getConfig(), $model->getUuid()); + $rev = max($model->getLatestRevisionNumber(), 1); + $revision->load($rev); + } + catch (Apigee\Exceptions\ResponseException $e) { + $message = $e->getResponse(); + $message_object = @json_decode($message, TRUE); + if (is_array($message_object) && array_key_exists('message', $message_object)) { + $err_msg = $message_object['message']; + } + else { + $err_msg = $e->getMessage(); + } + $msg_args = array('%model' => $model_machine_name, '!error_message' => $err_msg); + drupal_set_message(t('Error rendering SmartDocs methods for %model: !error_message', $msg_args), 'error'); + watchdog('apigee', 'Error rendering SmartDocs methods for %model: !error_message', $msg_args, WATCHDOG_ERROR); + return NULL; + } + catch (Exception $e) { + $msg_args = array('%model' => $model_machine_name, '!error_message' => $e->getMessage()); + drupal_set_message(t('Error rendering SmartDocs methods for %model: !error_message', $msg_args), 'error'); + watchdog('apigee', 'Error rendering SmartDocs methods for %model: !error_message', $msg_args, WATCHDOG_ERROR); + return NULL; + } + + $selected = array(); + foreach ($revision->getResources() as $resource) { + foreach ($resource->getMethods() as $method) { + $selected[$method->getUuid()] = $method->getUuid(); + } + } + $batch = smartdocs_render($model, $revision, $selected, array('publish' => 'publish'), TRUE); + + return $batch; +} + +/** + * Boosts PHP's memory and execution time for large-capacity batch processes. + */ +function _custom_apigee_manage_memory() { + ini_set('memory_limit', '2048M'); + ini_set('max_execution_time', 6000); +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/AllergyIntolerance-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/AllergyIntolerance-api.json new file mode 100755 index 0000000..6655f26 --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/AllergyIntolerance-api.json @@ -0,0 +1,1283 @@ +{ + "swagger": "2.0", + "info": { + "version": "1.0.0", + "title": "AllergyIntolerance API", + "description": "FHIR AllergyIntolerance resource API documentation" + }, + "host": "fhirsandbox-prod.apigee.net", + "basePath": "/fhir/v1/AllergyIntolerance", + "schemes": [ + "https" + ], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "security": [{ + "outhB2C": [ + "patient/Allergyintolerance.read" + ] + }], + "paths": { + "": { + "get": { + "description": "Returns AllergyIntolerances based on filter criteria OR Provides provision for pagination (stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).

      FHIR documentation for AllergyIntolerance.

      ", + "operationId": "AllergyIntolerances Search", + "security": [{ + "outhB2C": [ + "patient/Alleryintolerance.read" + ] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }, { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "_id", + "in": "query", + "description": "The logical resource id associated with the AllergyIntolerance.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}" + }, { + "name": "_elements", + "in": "query", + "description": "Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type": "string" + }, { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "_profile", + "in": "query", + "description": "This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_tag", + "in": "query", + "description": "This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_security", + "in": "query", + "description": "This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_count", + "in": "query", + "description": "The number of resources that should be returned in a single page.", + "type": "integer" + }, { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the AllergyIntolerance resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the AllergyIntolerance resource.", + "type": "string" + }, { + "name": "_include", + "in": "query", + "description": "This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, { + "name": "_revinclude", + "in": "query", + "description": "This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, { + "name": "_sort", + "in": "query", + "description": "Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "_sort:asc", + "in": "query", + "description": "Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "_sort:desc", + "in": "query", + "description": "Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "category", + "in": "query", + "description": "food | medication | environment - Category of Substance. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "criticality", + "in": "query", + "description": "low | high | unassessible - Estimated potential clinical harm. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "date", + "in": "query", + "description": "Recorded date/time. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "date", + "in": "query", + "description": "Recorded date/time. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "identifier", + "in": "query", + "description": "External Ids for AllergyIntolerance. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "last-date", + "in": "query", + "description": "Date(/time) of last known occurence of a reaction. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string" + }, { + "name": "last-date", + "in": "query", + "description": "Date(/time) of last known occurence of a reaction. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string" + }, { + "name": "manifestation", + "in": "query", + "description": "Clinical symptoms/signs associated with the Event. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "onset", + "in": "query", + "description": "Date(/time) when manifestations showed. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string" + }, { + "name": "onset", + "in": "query", + "description": "Date(/time) when manifestations showed. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string" + }, { + "name": "patient", + "in": "query", + "description": "Who the sensitivity is for (Patient).", + "type": "string" + }, { + "name": "recorder", + "in": "query", + "description": "Who recorded the sensitivity (Patient,Practitioner).", + "type": "string" + }, { + "name": "reporter", + "in": "query", + "description": "Source of the information about the allergy (Patient,Practitioner,RelatedPerson).", + "type": "string" + }, { + "name": "route", + "in": "query", + "description": "How the subject was exposed to the substance. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "severity", + "in": "query", + "description": "mild | moderate | severe (of event as a whole). Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "status", + "in": "query", + "description": "unconfirmed | confirmed | resolved | refuted | entered-in-error. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "substance", + "in": "query", + "description": "Substance, (or class) considered to be responsible for risk. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "type", + "in": "query", + "description": "immune | non-immune - Underlying mechanism (if known). Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "stateid", + "in": "query", + "description": "Unique id associated with a page.", + "type": "string" + }, { + "name": "page", + "in": "query", + "description": "AllergyIntolerance resource offset.", + "type": "number" + }, { + "name": "page_size", + "in": "query", + "description": "The number of AllergyIntolerance resources requested in a page.", + "type": "number" + }, { + "name": "_pretty", + "in": "query", + "description": "Set true to get prettified data.", + "type": "boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Allergy bundle" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/_search": { + "post": { + "description": "This interaction searches a set of AllergyIntolerances based on some filter criteria. Search interactions take a series of parameters of name'='value pairs encoded as an application/x-www-form-urlencoded submission for a POST.

      FHIR documentation for AllergyIntolerance.

      ", + "operationId": "AllergyIntolerances Search using POST", + "security": [{ + "outhB2C": [ + "patient/Allergyintolerance.read" + ] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default":"application/json+fhir;charset=UTF-8", + "type": "string" + }, { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "Content-Type", + "in": "header", + "required": true, + "description": "Specifies the format of data in body", + "type": "string", + "default": "application/x-www-form-urlencoded" + }, { + "name": "_id", + "in": "query", + "description": "The logical resource id associated with the AllergyIntolerance.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}" + }, { + "name": "_elements", + "in": "query", + "description": "Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type": "string" + }, { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "_profile", + "in": "query", + "description": "This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_tag", + "in": "query", + "description": "This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_security", + "in": "query", + "description": "This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_count", + "in": "query", + "description": "The number of resources that should be returned in a single page.", + "type": "integer" + }, { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the AllergyIntolerance resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the AllergyIntolerance resource.", + "type": "string" + }, { + "name": "_include", + "in": "query", + "description": "This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, { + "name": "_revinclude", + "in": "query", + "description": "This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, { + "name": "_sort", + "in": "query", + "description": "Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "_sort:asc", + "in": "query", + "description": "Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "_sort:desc", + "in": "query", + "description": "Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "category", + "in": "query", + "description": "food | medication | environment - Category of Substance. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "criticality", + "in": "query", + "description": "low | high | unassessible - Estimated potential clinical harm. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "date", + "in": "query", + "description": "Recorded date/time. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "date", + "in": "query", + "description": "Recorded date/time. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "identifier", + "in": "query", + "description": "External Ids for AllergyIntolerance. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "last-date", + "in": "query", + "description": "Date(/time) of last known occurence of a reaction. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string" + }, { + "name": "last-date", + "in": "query", + "description": "Date(/time) of last known occurence of a reaction. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string" + }, { + "name": "manifestation", + "in": "query", + "description": "Clinical symptoms/signs associated with the Event. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "onset", + "in": "query", + "description": "Date(/time) when manifestations showed. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string" + }, { + "name": "onset", + "in": "query", + "description": "Date(/time) when manifestations showed. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string" + }, { + "name": "patient", + "in": "query", + "description": "Who the sensitivity is for (Patient).", + "type": "string" + }, { + "name": "recorder", + "in": "query", + "description": "Who recorded the sensitivity (Patient,Practitioner).", + "type": "string" + }, { + "name": "reporter", + "in": "query", + "description": "Source of the information about the allergy (Patient,Practitioner,RelatedPerson).", + "type": "string" + }, { + "name": "route", + "in": "query", + "description": "How the subject was exposed to the substance. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "severity", + "in": "query", + "description": "mild | moderate | severe (of event as a whole). Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "status", + "in": "query", + "description": "unconfirmed | confirmed | resolved | refuted | entered-in-error. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "substance", + "in": "query", + "description": "Substance, (or class) considered to be responsible for risk. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "type", + "in": "query", + "description": "immune | non-immune - Underlying mechanism (if known). Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "_id", + "in": "formData", + "description": "The logical resource id associated with the AllergyIntolerance.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}" + }, { + "name": "_elements", + "in": "formData", + "description": "Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type": "string" + }, { + "name": "_lastUpdated", + "in": "formData", + "description": "The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "_lastUpdated", + "in": "formData", + "description": "The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "_profile", + "in": "formData", + "description": "This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_tag", + "in": "formData", + "description": "This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_security", + "in": "formData", + "description": "This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_count", + "in": "formData", + "description": "The number of resources that should be returned in a single page.", + "type": "integer" + }, { + "name": "_summary", + "in": "formData", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "formData", + "description": "Used to search the entire content of the AllergyIntolerance resource.", + "type": "string" + }, { + "name": "_text", + "in": "formData", + "description": "Used to search on the narrative of the AllergyIntolerance resource.", + "type": "string" + }, { + "name": "_include", + "in": "formData", + "description": "This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, { + "name": "_revinclude", + "in": "formData", + "description": "This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, { + "name": "_sort", + "in": "formData", + "description": "Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "_sort:asc", + "in": "formData", + "description": "Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "_sort:desc", + "in": "formData", + "description": "Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "category", + "in": "formData", + "description": "food | medication | environment - Category of Substance. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "criticality", + "in": "formData", + "description": "low | high | unassessible - Estimated potential clinical harm. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "date", + "in": "formData", + "description": "Recorded date/time. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "date", + "in": "formData", + "description": "Recorded date/time. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "identifier", + "in": "formData", + "description": "External Ids for AllergyIntolerance. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "last-date", + "in": "formData", + "description": "Date(/time) of last known occurence of a reaction. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string" + }, { + "name": "last-date", + "in": "formData", + "description": "Date(/time) of last known occurence of a reaction. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string" + }, { + "name": "manifestation", + "in": "formData", + "description": "Clinical symptoms/signs associated with the Event. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "onset", + "in": "formData", + "description": "Date(/time) when manifestations showed. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string" + }, { + "name": "onset", + "in": "formData", + "description": "Date(/time) when manifestations showed. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string" + }, { + "name": "patient", + "in": "formData", + "description": "Who the sensitivity is for (Patient).", + "type": "string" + }, { + "name": "recorder", + "in": "formData", + "description": "Who recorded the sensitivity (Patient,Practitioner).", + "type": "string" + }, { + "name": "reporter", + "in": "formData", + "description": "Source of the information about the allergy (Patient,Practitioner,RelatedPerson).", + "type": "string" + }, { + "name": "route", + "in": "formData", + "description": "How the subject was exposed to the substance. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "severity", + "in": "formData", + "description": "mild | moderate | severe (of event as a whole). Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "status", + "in": "formData", + "description": "unconfirmed | confirmed | resolved | refuted | entered-in-error. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "substance", + "in": "formData", + "description": "Substance, (or class) considered to be responsible for risk. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "type", + "in": "formData", + "description": "immune | non-immune - Underlying mechanism (if known). Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }], + "responses": { + "200": { + "description": "Allergy Bundle" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/{id}": { + "get": { + "description": "Returns details of allergies having id given in path.

      FHIR documentation for AllergyIntolerance.

      ", + "operationId": "Read AllergyIntolerance", + "security": [{ + "outhB2C": [ + "patient/Allergyintolerance.read" + ] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "id", + "description": "The logical resource id associated with the AllergyIntolerance.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default":"application/json+fhir;charset=UTF-8", + "type": "string" + }], + "responses": { + "200": { + "description": "Allergy instance" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/$meta": { + "get": { + "description": "Retrieves a summary of the profiles, tags, and security labels for Allergies.

      FHIR documentation for AllergyIntolerance.

      ", + "operationId": "AllergyIntolerances Metadata", + "security": [{ + "outhB2C": [ + "patient/Allergyintolerance.read" + ] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default":"application/json+fhir;charset=UTF-8", + "type": "string" + }], + "responses": { + "200": { + "description": "List of all tags, profiles and security labels used for Allergies." + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/{id}/$meta": { + "get": { + "description": "Retrieves a summary of the profiles, tags, and security labels for given AllergyIntolerance resource.

      FHIR documentation for AllergyIntolerance.

      ", + "operationId": "AllergyIntolerance Metadata", + "security": [{ + "outhB2C": [ + "patient/Allergyintolerance.read" + ] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "id", + "description": "The logical resource id associated with the AllergyIntolerance.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default":"application/json+fhir;charset=UTF-8", + "type": "string" + }], + "responses": { + "200": { + "description": "List of all tags, profiles and security labels affixed to the nominated resource." + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/{id}/_history/{vid}/$meta": { + "get": { + "description": "Retrieves a summary of the profiles, tags, and security labels for given version of the AllergyIntolerance.

      FHIR documentation for AllergyIntolerance.

      ", + "operationId": "AllergyIntolerance Version based Metadata", + "security": [{ + "outhB2C": [ + "patient/Allergyintolerance.read" + ] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "id", + "description": "IThe logical resource id associated with the AllergyIntolerance.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, { + "name": "vid", + "description": "Version Id of patient", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default":"application/json+fhir;charset=UTF-8", + "type": "string" + }], + "responses": { + "200": { + "description": "List of all tags, profiles and security labels affixed to the nominated version of the resource." + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/_history": { + "get": { + "description": "It retrieves the history of all resources of AllergyIntolerance.

      FHIR documentation for AllergyIntolerance.

      ", + "operationId": "AllergyIntolerances History", + "security": [{ + "outhB2C": [ + "patient/Allergyintolerance.read" + ] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "_count", + "in": "query", + "description": "Number of records needed in response.", + "type": "integer" + }, { + "name": "_since", + "in": "query", + "description": "Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default":"application/json+fhir;charset=UTF-8", + "type": "string" + }], + "responses": { + "200": { + "description": "Allergy instance" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/{id}/_history": { + "get": { + "description": "It retrieves the history of a particular AllergyIntolerance identified by the given id in path.

      FHIR documentation for AllergyIntolerance.

      ", + "operationId": "AllergyIntolerance History", + "security": [{ + "outhB2C": [ + "patient/Allergyintolerance.read" + ] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "_count", + "in": "query", + "description": "Number of records needed in response.", + "type": "integer" + }, { + "name": "_since", + "in": "query", + "description": "Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "id", + "description": "The logical resource id associated with the AllergyIntolerance.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default":"application/json+fhir;charset=UTF-8", + "type": "string" + }], + "responses": { + "200": { + "description": "Allergy instance" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/{id}/_history/{vid}": { + "get": { + "description": "This interaction preforms a version specific read of AllergyIntolerance resource.

      FHIR documentation for AllergyIntolerance.

      ", + "operationId": "AllergyIntolerance Version Read", + "security": [{ + "outhB2C": [ + "patient/Allergyintolerance.read" + ] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "id", + "description": "The logical resource id associated with the AllergyIntolerance.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, { + "name": "vid", + "description": "Version Id of allergy", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default":"application/json+fhir;charset=UTF-8", + "type": "string" + }], + "responses": { + "200": { + "description": "Allergy instance" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/{id}/{type}": { + "get": { + "description": "Search the specified resource type in AllergyIntolerance compartment.

      FHIR documentation for AllergyIntolerance.

      ", + "operationId": "Compartment Search", + "security": [{ + "outhB2C": [ + "patient/Allergyintolerance.read" + ] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "id", + "description": "The logical resource id associated with the AllergyIntolerance.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, { + "name": "type", + "description": "Type of Resource", + "type": "string", + "required": true, + "in": "path" + }, { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default":"application/json+fhir;charset=UTF-8", + "type": "string" + }, { + "name": "_id", + "in": "query", + "description": "The logical resource id associated with the AllergyIntolerance.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}" + }, { + "name": "_elements", + "in": "query", + "description": "Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type": "string" + }, { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "_profile", + "in": "query", + "description": "This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_tag", + "in": "query", + "description": "This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_security", + "in": "query", + "description": "This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_count", + "in": "query", + "description": "The number of resources that should be returned in a single page.", + "type": "integer" + }, { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the AllergyIntolerance resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the AllergyIntolerance resource.", + "type": "string" + }, { + "name": "_include", + "in": "query", + "description": "This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, { + "name": "_revinclude", + "in": "query", + "description": "This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, { + "name": "_sort", + "in": "query", + "description": "Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "_sort:asc", + "in": "query", + "description": "Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "_sort:desc", + "in": "query", + "description": "Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "category", + "in": "query", + "description": "food | medication | environment - Category of Substance. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "criticality", + "in": "query", + "description": "low | high | unassessible - Estimated potential clinical harm. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "date", + "in": "query", + "description": "Recorded date/time. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "date", + "in": "query", + "description": "Recorded date/time. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "identifier", + "in": "query", + "description": "External Ids for AllergyIntolerance. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "last-date", + "in": "query", + "description": "Date(/time) of last known occurence of a reaction. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string" + }, { + "name": "last-date", + "in": "query", + "description": "Date(/time) of last known occurence of a reaction. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string" + }, { + "name": "manifestation", + "in": "query", + "description": "Clinical symptoms/signs associated with the Event. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "onset", + "in": "query", + "description": "Date(/time) when manifestations showed. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string" + }, { + "name": "onset", + "in": "query", + "description": "Date(/time) when manifestations showed. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string" + }, { + "name": "patient", + "in": "query", + "description": "Who the sensitivity is for (Patient).", + "type": "string" + }, { + "name": "recorder", + "in": "query", + "description": "Who recorded the sensitivity (Patient,Practitioner).", + "type": "string" + }, { + "name": "reporter", + "in": "query", + "description": "Source of the information about the allergy (Patient,Practitioner,RelatedPerson).", + "type": "string" + }, { + "name": "route", + "in": "query", + "description": "How the subject was exposed to the substance. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "severity", + "in": "query", + "description": "mild | moderate | severe (of event as a whole). Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "status", + "in": "query", + "description": "unconfirmed | confirmed | resolved | refuted | entered-in-error. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "substance", + "in": "query", + "description": "Substance, (or class) considered to be responsible for risk. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "type", + "in": "query", + "description": "immune | non-immune - Underlying mechanism (if known). Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }], + "responses": { + "200": { + "description": "The set of resources associated with a particular allergy." + }, + "default": { + "description": "unexpected error" + } + } + } + } + }, + "securityDefinitions": { + "outhB2C": { + "type": "oauth2", + "description": "Security scheme for B2C flow using authorization code flow.", + "scopes": { + "patient/Allergyintolerance.read": "Read permissions for AllergyIntolerance demographics." + }, + "flow": "Authorization_code", + "authorizationUrl": "https://fhirsandbox-prod.apigee.net/oauth/v2/authorize?scope=patient/Allergyintolerance.read&state=uyrjiqa23nv8650ndj", + "tokenUrl": "https://fhirsandbox-prod.apigee.net/oauth/v2/accesstoken" + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/BasePath-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/BasePath-api.json new file mode 100755 index 0000000..dea6563 --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/BasePath-api.json @@ -0,0 +1,542 @@ +{ + "swagger": "2.0", + "info": { + "version": "1.0.0", + "title": "FHIR server Base Path API", + "description": "FHIR Base Path API Documentation" + }, + "host": "fhirsandbox-prod.apigee.net", + "basePath": "/fhir/v1", + "schemes": [ + "https" + ], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "paths": { + "/metadata": { + "get": { + "description": "Retrieves the server's conformance statement that defines how it supports resources and operations.", + "operationId": "Conformance Statement", + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "Authorization", + "in": "header", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "required": false, + "default": "Bearer [access_token]", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }, { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }], + "responses": { + "200": { + "description": "Conformance resource" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/_history": { + "get": { + "description": "It retrieves the history of all resources supported by the system.", + "operationId": "Resources History", + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "_count", + "in": "query", + "description": "The number of resources needed in a page.", + "type": "integer" + }, { + "name": "_since", + "in": "query", + "description": "Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type": "string" + }, { + "name": "Authorization", + "in": "header", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "required": false, + "default": "Bearer [access_token]", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }], + "responses": { + "200": { + "description": "A Bundle with type set to history containing the specified version history, sorted with oldest versions last, and including deleted resources." + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/$meta": { + "get": { + "description": "Retrieves a summary of the profiles, tags, and security labels used by the system.", + "operationId": "Resources Metadata", + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "Authorization", + "in": "header", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "required": false, + "default": "Bearer [access_token]", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }], + "responses": { + "200": { + "description": "Retrieves a summary of the profiles, tags, and security labels used by the system." + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/Composition": { + "get": { + "description": "It generates a fully bundled document from composition.", + "operationId": "Compositions Document", + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "Authorization", + "in": "header", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "required": false, + "default": "Bearer [access_token]", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }, + { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }], + "responses": { + "200": { + "description": " A fully bundled document from a composition." + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/Composition/{id}": { + "get": { + "description": "It generates a document from a specific composition.", + "operationId": "Composition Document", + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "Authorization", + "in": "header", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "required": false, + "default": "Bearer [access_token]", + "type": "string" + }, { + "name": "id", + "in": "path", + "description": "The logical resource id associated with the Composition.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }, + { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }], + "responses": { + "200": { + "description": " A document from a composition." + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/Binary": { + "get": { + "description": "Returns all Binary resources.", + "operationId": "Binary Objects Read", + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "Authorization", + "in": "header", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "required": false, + "default": "Bearer [access_token]", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }, { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, + { + "name": "contenttype", + "description": "MimeType of the binary content. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "in": "query", + "type": "string" + }, { + "name": "_id", + "in": "query", + "description": "The logical resource id associated with the Binary Data.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}" + }, { + "name": "_elements", + "in": "query", + "description": "Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type": "string" + }, { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select binary data based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <=, < and != may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "_lastUpdated", + "in": "query", + "description": "Use two _lastUpdated parameters to provide a range. The search parameter _lastUpdated can be used to select binary data resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <=, < and != may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "_profile", + "in": "query", + "description": "This parameter searches on the profile element in the meta element of the binary data. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_tag", + "in": "query", + "description": "This parameter searches on the tags element in the meta element of the binary data. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_security", + "in": "query", + "description": "This parameter searches on the security element in the meta element of the binary data. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_count", + "in": "query", + "description": "The number of binary data resources that should be returned in a single page.", + "type": "integer" + }, { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Binary resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Binary resource.", + "type": "string" + }, { + "name": "_include", + "in": "query", + "description": "This parameter can be used to fetch a particular binary data, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes i.e. binary data 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, { + "name": "_revinclude", + "in": "query", + "description": "This parameter can be used to fetch a particular binary data, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes i.e. binary data 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, { + "name": "_sort", + "in": "query", + "description": "_sort is used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "_sort:asc", + "in": "query", + "description": "Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "_sort:desc", + "in": "query", + "description": "_sort is used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }], + "responses": { + "200": { + "description": "Returns binary data such as such as images and other media, documents (CDA, PDF, Word etc.), plain text, XML." + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/Binary/{id}": { + "get": { + "description": "Returns Binary resource having id given in path.", + "operationId": "Binary Object Read", + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "Authorization", + "in": "header", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "required": false, + "default": "Bearer [access_token]", + "type": "string" + }, { + "name": "id", + "in": "path", + "description": "The logical resource id associated with the Binary Data.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }, { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }], + "responses": { + "200": { + "description": "Returns binary data such as such as images and other media, documents (CDA, PDF, Word etc.), plain text, XML." + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/Binary/{id}/_history/{vid}": { + "get": { + "description": "Returns the given version of the document as a sequence of bytes.", + "operationId": "Binary Object Version Read", + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "Authorization", + "in": "header", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "required": false, + "default": "Bearer [access_token]", + "type": "string" + }, { + "name": "id", + "in": "path", + "description": "The logical resource id associated with the Binary Data.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}" + }, { + "name": "vid", + "in": "path", + "description": "The version id associated with the binary data.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }, { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }], + "responses": { + "200": { + "description": "Returns binary data such as such as images and other media, documents (CDA, PDF, Word etc.), plain text, XML." + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "": { + "get": { + "description": "Used to search all resources OR for pagination (stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).", + "operationId": "Search all resources.", + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "Authorization", + "in": "header", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "required": false, + "default": "Bearer [access_token]", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }, { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name":"stateid", + "in":"query", + "description":"Unique id associated with a page.", + "type":"string" + }, + { + "name":"page", + "in":"query", + "description":"Resource offset.", + "type":"number" + }, + { + "name":"page_size", + "in":"query", + "description":"The number of resources requested in a page.", + "type":"number" + }, + { + "name":"_pretty", + "in":"query", + "description":"Set true to get prettified data.", + "type":"boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + }] + }, + "options": { + "description": "Retrieves the server's conformance statement that defines how it supports resources and operations.", + "operationId": "Conformance Statement using OPTIONS", + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "Authorization", + "in": "header", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "required": false, + "default": "Bearer [access_token]", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }, { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }], + "responses": { + "200": { + "description": "Conformance resource" + }, + "default": { + "description": "unexpected error" + } + } + } + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/CarePlan-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/CarePlan-api.json new file mode 100755 index 0000000..cb51b0a --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/CarePlan-api.json @@ -0,0 +1,1209 @@ +{ + "swagger": "2.0", + "info": { + "version": "1.0.0", + "title": "CarePlan API", + "description": "FHIR CarePlan resource API documentation" + }, + "host": "fhirsandbox-prod.apigee.net", + "basePath": "/fhir/v1/CarePlan", + "schemes": [ + "https" + ], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "security": [{ + "outhB2C": ["patient/Careplan.read"] + }], + "paths": { + "": { + "get": { + "description": "Returns CarePlans based on filter criteria OR Provides provision for pagination (stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).

      FHIR documentation for CarePlan.

      ", + "operationId": "CarePlans Search", + "security": [{ + "outhB2C": ["patient/Careplan.read"] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }, { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "_id", + "in": "query", + "description": "The logical resource id associated with the CarePlan.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}" + }, { + "name": "_elements", + "in": "query", + "description": "Used to specify set of elements be returned as part of a CarePlan. The _elements parameter consists of a comma separated list of base element names.", + "type": "string" + }, { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select CarePlans based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select CarePlans based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "_profile", + "in": "query", + "description": "This parameter searches on the profile element in the meta element of the CarePlan. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_tag", + "in": "query", + "description": "This parameter searches on the tags element in the meta element of the CarePlan. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_security", + "in": "query", + "description": "This parameter searches on the security element in the meta element of the CarePlan. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_count", + "in": "query", + "description": "The number of CarePlans that should be returned in a single page.", + "type": "integer" + }, { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the CarePlan resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the CarePlan resource.", + "type": "string" + }, { + "name": "_include", + "in": "query", + "description": "This parameter can be used to fetch a particular CarePlan, and any CarePlans that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source CarePlan from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target CarePlan (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, { + "name": "_revinclude", + "in": "query", + "description": "This parameter can be used to fetch a particular CarePlan, and any CarePlans that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source CarePlan from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target CarePlan (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, { + "name": "_sort", + "in": "query", + "description": "Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "_sort:asc", + "in": "query", + "description": "Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "_sort:desc", + "in": "query", + "description": "Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "activitycode", + "in": "query", + "description": "Detail type of activity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "activitydate", + "in": "query", + "description": "Specified date occurs within period specified by CarePlan.activity.timingSchedule. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "activitydate", + "in": "query", + "description": "Specified date occurs within period specified by CarePlan.activity.timingSchedule. Two dates can be used to specify an interval. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "activityreference", + "in": "query", + "description": "Activity details defined in specific CarePlan (Supply, ReferralRequest, ProcedureRequest, Appointment, CommunicationRequest, MedicationPrescription, Order, VisionPrescription, ProcessRequest, DeviceUseRequest, NutritionOrder, DiagnosticOrder).", + "type": "string" + }, { + "name": "condition", + "in": "query", + "description": "Health issues this plan addresses (Condition).", + "type": "string" + }, { + "name": "date", + "in": "query", + "description": "Time period plan covers. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "date", + "in": "query", + "description": "Time period plan covers. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "goal", + "in": "query", + "description": "Desired outcome of plan (Goal).", + "type": "string" + }, { + "name": "participant", + "in": "query", + "description": "Who is involved (Organization, Patient, Practitioner, RelatedPerson).", + "type": "string" + }, { + "name": "patient", + "in": "query", + "description": "Who care plan is for (Patient).", + "type": "string" + }, { + "name": "performer", + "in": "query", + "description": "Matches if the practitioner is listed as a performer in any of the simple activities. (For performers of the detailed activities, chain through the activitydetail search parameter)", + "type": "string" + }, { + "name": "related", + "in": "query", + "description": "A combination of the type of relationship and the related plan.Value should be in the form: [relationship-type]$[related-plan].", + "type": "string" + }, { + "name": "relatedcode", + "in": "query", + "description": "includes | replaces | fulfills. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "relatedplan", + "in": "query", + "description": "Plan relationship exists with", + "type": "string" + }, { + "name": "subject", + "in": "query", + "description": "Who care plan is for", + "type": "string" + }, { + "name": "stateid", + "in": "query", + "description": "Unique id associated with a page.", + "type": "string" + }, { + "name": "page", + "in": "query", + "description": "CarePlan resource offset.", + "type": "number" + }, { + "name": "page_size", + "in": "query", + "description": "The number of CarePlan resources requested in a page.", + "type": "number" + }, { + "name": "_pretty", + "in": "query", + "description": "Set true to get prettified data.", + "type": "boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "CarePlan bundle" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/_search": { + "post": { + "description": "This interaction searches a set of CarePlans based on some filter criteria. Search interactions take a series of parameters of name'='value pairs encoded as an application/x-www-form-urlencoded submission for a POST.

      FHIR documentation for CarePlan.

      ", + "operationId": "CarePlans Search using POST", + "security": [{ + "outhB2C": ["patient/Careplan.read"] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }, { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "Content-Type", + "in": "header", + "required": true, + "description": "Specifies the format of data in body", + "type": "string", + "default": "application/x-www-form-urlencoded" + }, { + "name": "_id", + "in": "query", + "description": "The logical resource id associated with the CarePlan.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}" + }, { + "name": "_elements", + "in": "query", + "description": "Used to specify set of elements be returned as part of a CarePlan. The _elements parameter consists of a comma separated list of base element names.", + "type": "string" + }, { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select CarePlans based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select CarePlans based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "_profile", + "in": "query", + "description": "This parameter searches on the profile element in the meta element of the CarePlan. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_tag", + "in": "query", + "description": "This parameter searches on the tags element in the meta element of the CarePlan. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_security", + "in": "query", + "description": "This parameter searches on the security element in the meta element of the CarePlan. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_count", + "in": "query", + "description": "The number of CarePlans that should be returned in a single page.", + "type": "integer" + }, { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the CarePlan resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the CarePlan resource.", + "type": "string" + }, { + "name": "_include", + "in": "query", + "description": "This parameter can be used to fetch a particular CarePlan, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, { + "name": "_revinclude", + "in": "query", + "description": "This parameter can be used to fetch a particular CarePlan, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, { + "name": "_sort", + "in": "query", + "description": "Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "_sort:asc", + "in": "query", + "description": "Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "_sort:desc", + "in": "query", + "description": "Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "activitycode", + "in": "query", + "description": "Detail type of activity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "activitydate", + "in": "query", + "description": "Specified date occurs within period specified by CarePlan.activity.timingSchedule. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "activitydate", + "in": "query", + "description": "Specified date occurs within period specified by CarePlan.activity.timingSchedule. Two dates can be used to specify an interval. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "activityreference", + "in": "query", + "description": "Activity details defined in specific CarePlan (Supply, ReferralRequest, ProcedureRequest, Appointment, CommunicationRequest, MedicationPrescription, Order, VisionPrescription, ProcessRequest, DeviceUseRequest, NutritionOrder, DiagnosticOrder).", + "type": "string" + }, { + "name": "condition", + "in": "query", + "description": "Health issues this plan addresses (Condition).", + "type": "string" + }, { + "name": "date", + "in": "query", + "description": "Time period plan covers. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "date", + "in": "query", + "description": "Time period plan covers. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "goal", + "in": "query", + "description": "Desired outcome of plan (Goal).", + "type": "string" + }, { + "name": "participant", + "in": "query", + "description": "Who is involved (Organization, Patient, Practitioner, RelatedPerson).", + "type": "string" + }, { + "name": "patient", + "in": "query", + "description": "Who care plan is for (Patient).", + "type": "string" + }, { + "name": "performer", + "in": "query", + "description": "Matches if the practitioner is listed as a performer in any of the simple activities. (For performers of the detailed activities, chain through the activitydetail search parameter)", + "type": "string" + }, { + "name": "related", + "in": "query", + "description": "A combination of the type of relationship and the related plan.Value should be in the form: [relationship-type]$[related-plan].", + "type": "string" + }, { + "name": "relatedcode", + "in": "query", + "description": "includes | replaces | fulfills. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "relatedplan", + "in": "query", + "description": "Plan relationship exists with", + "type": "string" + }, { + "name": "subject", + "in": "query", + "description": "Who care plan is for", + "type": "string" + }, { + "name": "_id", + "in": "formData", + "description": "The logical resource id associated with the CarePlan.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}" + }, { + "name": "_elements", + "in": "formData", + "description": "Used to specify set of elements be returned as part of a CarePlan. The _elements parameter consists of a comma separated list of base element names.", + "type": "string" + }, { + "name": "_lastUpdated", + "in": "formData", + "description": "The search parameter _lastUpdated can be used to select CarePlans based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "_lastUpdated", + "in": "formData", + "description": "The search parameter _lastUpdated can be used to select CarePlans based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "_profile", + "in": "formData", + "description": "This parameter searches on the profile element in the meta element of the CarePlan. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_tag", + "in": "formData", + "description": "This parameter searches on the tags element in the meta element of the CarePlan. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_security", + "in": "formData", + "description": "This parameter searches on the security element in the meta element of the CarePlan. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_count", + "in": "formData", + "description": "The number of CarePlans that should be returned in a single page.", + "type": "integer" + }, { + "name": "_summary", + "in": "formData", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "formData", + "description": "Used to search the entire content of the CarePlan resource.", + "type": "string" + }, { + "name": "_text", + "in": "formData", + "description": "Used to search on the narrative of the CarePlan resource.", + "type": "string" + }, { + "name": "_include", + "in": "formData", + "description": "This parameter can be used to fetch a particular CarePlan, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, { + "name": "_revinclude", + "in": "formData", + "description": "This parameter can be used to fetch a particular CarePlan, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, { + "name": "_sort", + "in": "formData", + "description": "Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "_sort:asc", + "in": "formData", + "description": "Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "_sort:desc", + "in": "formData", + "description": "Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "activitycode", + "in": "formData", + "description": "Detail type of activity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "activitydate", + "in": "formData", + "description": "Specified date occurs within period specified by CarePlan.activity.timingSchedule. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "activitydate", + "in": "formData", + "description": "Specified date occurs within period specified by CarePlan.activity.timingSchedule. Two dates can be used to specify an interval. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "activityreference", + "in": "formData", + "description": "Activity details defined in specific CarePlan (Supply, ReferralRequest, ProcedureRequest, Appointment, CommunicationRequest, MedicationPrescription, Order, VisionPrescription, ProcessRequest, DeviceUseRequest, NutritionOrder, DiagnosticOrder).", + "type": "string" + }, { + "name": "condition", + "in": "formData", + "description": "Health issues this plan addresses (Condition).", + "type": "string" + }, { + "name": "date", + "in": "formData", + "description": "Time period plan covers. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "date", + "in": "formData", + "description": "Time period plan covers. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "goal", + "in": "formData", + "description": "Desired outcome of plan (Goal).", + "type": "string" + }, { + "name": "participant", + "in": "formData", + "description": "Who is involved (Organization, Patient, Practitioner, RelatedPerson).", + "type": "string" + }, { + "name": "patient", + "in": "formData", + "description": "Who care plan is for (Patient).", + "type": "string" + }, { + "name": "performer", + "in": "formData", + "description": "Matches if the practitioner is listed as a performer in any of the simple activities. (For performers of the detailed activities, chain through the activitydetail search parameter)", + "type": "string" + }, { + "name": "related", + "in": "formData", + "description": "A combination of the type of relationship and the related plan.Value should be in the form: [relationship-type]$[related-plan].", + "type": "string" + }, { + "name": "relatedcode", + "in": "formData", + "description": "includes | replaces | fulfills. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "relatedplan", + "in": "formData", + "description": "Plan relationship exists with", + "type": "string" + }, { + "name": "subject", + "in": "formData", + "description": "Who care plan is for", + "type": "string" + }], + "responses": { + "200": { + "description": "CarePlan Bundle" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/{id}": { + "get": { + "description": "Returns details of CarePlan having id given in path.

      FHIR documentation for CarePlan.

      ", + "operationId": "Read CarePlan", + "security": [{ + "outhB2C": ["patient/Careplan.read"] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "id", + "description": "The logical resource id associated with the CarePlan.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }], + "responses": { + "200": { + "description": "CarePlan instance" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/$meta": { + "get": { + "description": "Retrieves a summary of the profiles, tags, and security labels for CarePlan.

      FHIR documentation for CarePlan.

      ", + "operationId": "CarePlans Metadata", + "security": [{ + "outhB2C": ["patient/Careplan.read"] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }], + "responses": { + "200": { + "description": "List of all tags, profiles and security labels used for CarePlan." + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/{id}/$meta": { + "get": { + "description": "Retrieves a summary of the profiles, tags, and security labels for given CarePlan resource.

      FHIR documentation for CarePlan.

      ", + "operationId": "CarePlan Metadata", + "security": [{ + "outhB2C": ["patient/Careplan.read"] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "id", + "description": "The logical resource id associated with the CarePlan.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }], + "responses": { + "200": { + "description": "List of all tags, profiles and security labels affixed to the nominated CarePlan." + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/{id}/_history/{vid}/$meta": { + "get": { + "description": "Retrieves a summary of the profiles, tags, and security labels for given version of the CarePlan.

      FHIR documentation for CarePlan.

      ", + "operationId": "CarePlan Version based Metadata", + "security": [{ + "outhB2C": ["patient/Careplan.read"] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "id", + "description": "The logical resource id associated with the CarePlan.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, { + "name": "vid", + "description": "Version Id of CarePlan", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }], + "responses": { + "200": { + "description": "List of all tags, profiles and security labels affixed to the nominated version of the CarePlan." + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/_history": { + "get": { + "description": "It retrieves the history of all CarePlans.

      FHIR documentation for CarePlan.

      ", + "operationId": "CarePlans History", + "security": [{ + "outhB2C": ["patient/Careplan.read"] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "_count", + "in": "query", + "description": "Number of records needed in response.", + "type": "integer" + }, { + "name": "_since", + "in": "query", + "description": "Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }], + "responses": { + "200": { + "description": "CarePlan instance" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/{id}/_history": { + "get": { + "description": "It retrieves the history of a particular CarePlan identified by the given id in path.

      FHIR documentation for CarePlan.

      ", + "operationId": "CarePlan History", + "security": [{ + "outhB2C": ["patient/Careplan.read"] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "_count", + "in": "query", + "description": "Number of records needed in response.", + "type": "integer" + }, { + "name": "_since", + "in": "query", + "description": "Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "id", + "description": "The logical resource id associated with the CarePlan.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }], + "responses": { + "200": { + "description": "CarePlan instance" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/{id}/_history/{vid}": { + "get": { + "description": "This interaction preforms a version specific read of CarePlan resource.

      FHIR documentation for CarePlan.

      ", + "operationId": "CarePlan Version Read", + "security": [{ + "outhB2C": ["patient/Careplan.read"] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "id", + "description": "The logical resource id associated with the CarePlan.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, { + "name": "vid", + "description": "Version Id of CarePlan", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }], + "responses": { + "200": { + "description": "CarePlan instance" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/{id}/{type}": { + "get": { + "description": "Search the specified resource type in CarePlan compartment.

      FHIR documentation for CarePlan.

      ", + "operationId": "Compartment Search", + "security": [{ + "outhB2C": ["patient/Careplan.read"] + }], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [{ + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, { + "name": "id", + "description": "The logical resource id associated with the CarePlan.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, { + "name": "type", + "description": "Type of Resource", + "type": "string", + "required": true, + "in": "path" + }, { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }, { + "name": "_id", + "in": "query", + "description": "The logical resource id associated with the CarePlan.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}" + }, { + "name": "_elements", + "in": "query", + "description": "Used to specify set of elements be returned as part of a CarePlan. The _elements parameter consists of a comma separated list of base element names.", + "type": "string" + }, { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select CarePlans based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select CarePlans based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "_profile", + "in": "query", + "description": "This parameter searches on the profile element in the meta element of the CarePlan. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_tag", + "in": "query", + "description": "This parameter searches on the tags element in the meta element of the CarePlan. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_security", + "in": "query", + "description": "This parameter searches on the security element in the meta element of the CarePlan. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, { + "name": "_count", + "in": "query", + "description": "The number of CarePlans that should be returned in a single page.", + "type": "integer" + }, { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the CarePlan resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the CarePlan resource.", + "type": "string" + }, { + "name": "_include", + "in": "query", + "description": "This parameter can be used to fetch a particular CarePlan, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, { + "name": "_revinclude", + "in": "query", + "description": "This parameter can be used to fetch a particular CarePlan, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, { + "name": "_sort", + "in": "query", + "description": "Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "_sort:asc", + "in": "query", + "description": "Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "_sort:desc", + "in": "query", + "description": "Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, { + "name": "activitycode", + "in": "query", + "description": "Detail type of activity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "activitydate", + "in": "query", + "description": "Specified date occurs within period specified by CarePlan.activity.timingSchedule. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "activitydate", + "in": "query", + "description": "Specified date occurs within period specified by CarePlan.activity.timingSchedule. Two dates can be used to specify an interval. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "activityreference", + "in": "query", + "description": "Activity details defined in specific resource (Supply, ReferralRequest, ProcedureRequest, Appointment, CommunicationRequest, MedicationPrescription, Order, VisionPrescription, ProcessRequest, DeviceUseRequest, NutritionOrder, DiagnosticOrder).", + "type": "string" + }, { + "name": "condition", + "in": "query", + "description": "Health issues this plan addresses (Condition).", + "type": "string" + }, { + "name": "date", + "in": "query", + "description": "Time period plan covers. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "date", + "in": "query", + "description": "Time period plan covers. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, { + "name": "goal", + "in": "query", + "description": "Desired outcome of plan (Goal).", + "type": "string" + }, { + "name": "participant", + "in": "query", + "description": "Who is involved (Organization, Patient, Practitioner, RelatedPerson).", + "type": "string" + }, { + "name": "patient", + "in": "query", + "description": "Who care plan is for (Patient).", + "type": "string" + }, { + "name": "performer", + "in": "query", + "description": "Matches if the practitioner is listed as a performer in any of the simple activities. (For performers of the detailed activities, chain through the activitydetail search parameter)", + "type": "string" + }, { + "name": "related", + "in": "query", + "description": "A combination of the type of relationship and the related plan.Value should be in the form: [relationship-type]$[related-plan].", + "type": "string" + }, { + "name": "relatedcode", + "in": "query", + "description": "includes | replaces | fulfills. Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, { + "name": "relatedplan", + "in": "query", + "description": "Plan relationship exists with", + "type": "string" + }, { + "name": "subject", + "in": "query", + "description": "Who care plan is for", + "type": "string" + }], + "responses": { + "200": { + "description": "The set of resources associated with a particular CarePlan." + }, + "default": { + "description": "unexpected error" + } + } + } + } + }, + "securityDefinitions": { + "outhB2C": { + "type": "oauth2", + "description": "Security scheme for B2C flow using authorization code flow.", + "scopes": { + "patient/Careplan.read": "Read permissions for CarePlan demographics." + }, + "flow": "Authorization_code", + "authorizationUrl": "https://fhirsandbox-prod.apigee.net/oauth/v2/authorize?scope=patient/Careplan.read&state=uyrjiqa23nv8650ndj", + "tokenUrl": "https://fhirsandbox-prod.apigee.net/oauth/v2/accesstoken" + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Condition-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Condition-api.json new file mode 100755 index 0000000..2364f23 --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Condition-api.json @@ -0,0 +1,1446 @@ +{ + "swagger":"2.0", + "info":{ + "version":"1.0.0", + "title":"Condition API", + "description":"FHIR Condition resource API documentation" + }, + "host":"fhirsandbox-prod.apigee.net", + "basePath":"/fhir/v1/Condition", + "schemes":[ + "https" + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "security":[ + { + "outhB2C":[ + "patient/Condition.read" + ] + } + ], + "paths":{ + "":{ + "get":{ + "description":"Returns Conditions based on filter criteria OR Provides provision for pagination (stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).

      FHIR documentation for Condition.

      ", + "operationId":"Conditions Search", + "security":[ + { + "outhB2C":[ + "patient/Condition.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "in":"header", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Condition.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + },{ + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Condition resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Condition resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"asserter", + "in":"query", + "description":"Person who asserts this condition (Patient,Practitioner).", + "type":"string" + }, + { + "name":"body-site", + "in":"query", + "description":"Anatomical location, if relevant. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"category", + "in":"query", + "description":"The category of the condition. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"clinicalstatus", + "in":"query", + "description":"The clinical status of the condition. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"Code for the condition. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"date-recorded", + "in":"query", + "description":"A date, when the Condition statement was documented. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date-recorded", + "in":"query", + "description":"A date, when the Condition statement was documented. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"encounter", + "in":"query", + "description":"Encounter when condition first asserted (Encounter).", + "type":"string" + }, + { + "name":"evidence", + "in":"query", + "description":"Manifestation/symptom. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"A unique identifier of the condition record. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"onset", + "in":"query", + "description":"When the Condition started (if started on a date). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"onset", + "in":"query", + "description":"When the Condition started (if started on a date). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"onset-info", + "in":"query", + "description":"Other onsets (boolean, age, range, string).", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"Who has the condition? (Patient).", + "type":"string" + }, + { + "name":"severity", + "in":"query", + "description":"The severity of the condition. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"stage", + "in":"query", + "description":"Simple summary (disease specific). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"stateid", + "in":"query", + "description":"Unique id associated with a page.", + "type":"string" + }, + { + "name":"page", + "in":"query", + "description":"Condition resource offset.", + "type":"number" + }, + { + "name":"page_size", + "in":"query", + "description":"The number of Condition resources requested in a page.", + "type":"number" + }, + { + "name":"_pretty", + "in":"query", + "description":"Set true to get prettified data.", + "type":"boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + } + ], + "responses":{ + "200":{ + "description":"Condition bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_search":{ + "post":{ + "description":"This interaction searches a set of Conditions based on some filter criteria. Search interactions take a series of parameters of name'='value pairs encoded as an application/x-www-form-urlencoded submission for a POST.

      FHIR documentation for Condition.

      ", + "operationId":"Conditions Search using POST", + "security":[ + { + "outhB2C":[ + "patient/Condition.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Content-Type", + "in":"header", + "required":true, + "description":"Specifies the format of data in body", + "type":"string", + "default":"application/x-www-form-urlencoded" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Condition.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + },{ + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Condition resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Condition resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"asserter", + "in":"query", + "description":"Person who asserts this condition (Patient,Practitioner).", + "type":"string" + }, + { + "name":"body-site", + "in":"query", + "description":"Anatomical location, if relevant. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"category", + "in":"query", + "description":"The category of the condition. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"clinicalstatus", + "in":"query", + "description":"The clinical status of the condition. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"Code for the condition. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"date-recorded", + "in":"query", + "description":"A date, when the Condition statement was documented. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date-recorded", + "in":"query", + "description":"A date, when the Condition statement was documented. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"encounter", + "in":"query", + "description":"Encounter when condition first asserted (Encounter).", + "type":"string" + }, + { + "name":"evidence", + "in":"query", + "description":"Manifestation/symptom. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"A unique identifier of the condition record. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"onset", + "in":"query", + "description":"When the Condition started (if started on a date). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"onset", + "in":"query", + "description":"When the Condition started (if started on a date). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"onset-info", + "in":"query", + "description":"Other onsets (boolean, age, range, string).", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"Who has the condition? (Patient).", + "type":"string" + }, + { + "name":"severity", + "in":"query", + "description":"The severity of the condition. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"stage", + "in":"query", + "description":"Simple summary (disease specific). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"_id", + "in":"formData", + "description":"The logical resource id associated with the Condition.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"formData", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"formData", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"formData", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"formData", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"formData", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + },{ + "name": "_summary", + "in": "formData", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "formData", + "description": "Used to search the entire content of the Condition resource.", + "type": "string" + }, { + "name": "_text", + "in": "formData", + "description": "Used to search on the narrative of the Condition resource.", + "type": "string" + }, + { + "name":"_include", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"formData", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"formData", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"formData", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"asserter", + "in":"formData", + "description":"Person who asserts this condition (Patient,Practitioner).", + "type":"string" + }, + { + "name":"body-site", + "in":"formData", + "description":"Anatomical location, if relevant. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"category", + "in":"formData", + "description":"The category of the condition. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"clinicalstatus", + "in":"formData", + "description":"The clinical status of the condition. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"code", + "in":"formData", + "description":"Code for the condition. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"date-recorded", + "in":"formData", + "description":"A date, when the Condition statement was documented. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date-recorded", + "in":"formData", + "description":"A date, when the Condition statement was documented. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"encounter", + "in":"formData", + "description":"Encounter when condition first asserted (Encounter).", + "type":"string" + }, + { + "name":"evidence", + "in":"formData", + "description":"Manifestation/symptom. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"identifier", + "in":"formData", + "description":"A unique identifier of the condition record. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"onset", + "in":"formData", + "description":"When the Condition started (if started on a date). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"onset", + "in":"formData", + "description":"When the Condition started (if started on a date). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"onset-info", + "in":"formData", + "description":"Other onsets (boolean, age, range, string).", + "type":"string" + }, + { + "name":"patient", + "in":"formData", + "description":"Who has the condition? (Patient).", + "type":"string" + }, + { + "name":"severity", + "in":"formData", + "description":"The severity of the condition. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"stage", + "in":"formData", + "description":"Simple summary (disease specific). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Condition Bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}":{ + "get":{ + "description":"Returns details of condition having id given in path.

      FHIR documentation for Condition.

      ", + "operationId":"Read Condition", + "security":[ + { + "outhB2C":[ + "patient/Condition.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Condition.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Condition instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for Condition.

      FHIR documentation for Condition.

      ", + "operationId":"Conditions Metadata", + "security":[ + { + "outhB2C":[ + "patient/Condition.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels used for Condition." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given Condition resource.

      FHIR documentation for Condition.

      ", + "operationId":"Condition Metadata", + "security":[ + { + "outhB2C":[ + "patient/Condition.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Condition.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given version of the Condition.

      FHIR documentation for Condition.

      ", + "operationId":"Condition Version based Metadata", + "security":[ + { + "outhB2C":[ + "patient/Condition.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Condition.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of Condition", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated version of the resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_history":{ + "get":{ + "description":"It retrieves the history of all resources of Condition.

      FHIR documentation for Condition.

      ", + "operationId":"Conditions History", + "security":[ + { + "outhB2C":[ + "patient/Condition.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Condition instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history":{ + "get":{ + "description":"It retrieves the history of a particular Condition identified by the given id in path.

      FHIR documentation for Condition.

      ", + "operationId":"Condition History", + "security":[ + { + "outhB2C":[ + "patient/Condition.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"id", + "description":"The logical resource id associated with the Condition.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Condition instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}":{ + "get":{ + "description":"This interaction preforms a version specific read of Condition resource.

      FHIR documentation for Condition.

      ", + "operationId":"Condition Version Read", + "security":[ + { + "outhB2C":[ + "patient/Condition.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Condition.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of Condition", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Condition instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/{type}":{ + "get":{ + "description":"Search the specified resource type in Condition compartment.

      FHIR documentation for Condition.

      ", + "operationId":"Compartment Search", + "security":[ + { + "outhB2C":[ + "patient/Condition.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Condition.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"type", + "description":"Type of Resource", + "type":"string", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Condition.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + },{ + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Condition resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Condition resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"asserter", + "in":"query", + "description":"Person who asserts this condition (Patient,Practitioner).", + "type":"string" + }, + { + "name":"body-site", + "in":"query", + "description":"Anatomical location, if relevant. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"category", + "in":"query", + "description":"The category of the condition. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"clinicalstatus", + "in":"query", + "description":"The clinical status of the condition. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"Code for the condition. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"date-recorded", + "in":"query", + "description":"A date, when the Condition statement was documented. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date-recorded", + "in":"query", + "description":"A date, when the Condition statement was documented. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"encounter", + "in":"query", + "description":"Encounter when condition first asserted (Encounter).", + "type":"string" + }, + { + "name":"evidence", + "in":"query", + "description":"Manifestation/symptom. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"A unique identifier of the condition record. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"onset", + "in":"query", + "description":"When the Condition started (if started on a date). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"onset", + "in":"query", + "description":"When the Condition started (if started on a date). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"onset-info", + "in":"query", + "description":"Other onsets (boolean, age, range, string).", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"Who has the condition? (Patient).", + "type":"string" + }, + { + "name":"severity", + "in":"query", + "description":"The severity of the condition. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"stage", + "in":"query", + "description":"Simple summary (disease specific). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"The set of resources associated with a particular Condition." + }, + "default":{ + "description":"unexpected error" + } + } + } + } + }, + "securityDefinitions":{ + "outhB2C":{ + "type":"oauth2", + "description":"Security scheme for B2C flow using authorization code flow.", + "scopes":{ + "patient/Condition.read":"Read permissions for Condition demographics." + }, + "flow":"Authorization_code", + "authorizationUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/authorize?scope=patient/Condition.read&state=uyrjiqa23nv8650ndj", + "tokenUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/accesstoken" + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Coverage-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Coverage-api.json new file mode 100755 index 0000000..0c0a380 --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Coverage-api.json @@ -0,0 +1,1251 @@ + +{ + "swagger":"2.0", + "info":{ + "version":"1.0.0", + "title":"Coverage API", + "description":"FHIR Coverage resource API documentation" + }, + "host":"fhirsandbox-prod.apigee.net", + "basePath":"/fhir/v1/Coverage", + "schemes":[ + "https" + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "security":[ + { + "outhB2C":[ + "patient/Coverage.read" + ] + } + ], + "paths":{ + "":{ + "get":{ + "description":"Search Coverage based on some filter criteria OR Provides provision for pagination (stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).

      FHIR documentation for Coverage.

      ", + "operationId":"Coverages Search", + "security":[ + { + "outhB2C":[ + "patient/Coverage.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Coverage.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name":"_summary", + "in":"query", + "description":"Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type":"string" + }, + { + "name":"_content", + "in":"query", + "description":"Used to search the entire content of the Coverage resource.", + "type":"string" + }, + { + "name":"_text", + "in":"query", + "description":"Used to search on the narrative of the Coverage resource.", + "type":"string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"dependent", + "in":"query", + "description":"A unique identifier for a dependent under the coverage.", + "type":"integer" + }, + { + "name":"identifier", + "in":"query", + "description":"A Coverage Identifier. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"group", + "in":"query", + "description":"Used to identify a class of coverage or employer group.", + "type":"string" + }, + { + "name":"issuer", + "in":"query", + "description":"The identity of the insurer organization.", + "type":"string" + }, + { + "name":"plan", + "in":"query", + "description":"A plan or policy identifier.", + "type":"string" + }, + { + "name":"sequence", + "in":"query", + "description":"An optional counter for a particular instance of the identified coverage which increments upon each renewal.", + "type":"integer" + }, + { + "name":"subplan", + "in":"query", + "description":"Sub-plan identifier.", + "type":"string" + }, + { + "name":"type", + "in":"query", + "description":"The type of coverage Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"number" + }, + { + "name":"stateid", + "in":"query", + "description":"Unique id associated with a page.", + "type":"string" + }, + { + "name":"page", + "in":"query", + "description":"MedicationDispense resource offset.", + "type":"number" + }, + { + "name":"page_size", + "in":"query", + "description":"The number of Coverage resources requested in a page.", + "type":"number" + }, + { + "name":"_pretty", + "in":"query", + "description":"Set true to get prettified data.", + "type":"boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + } + ], + "responses":{ + "200":{ + "description":"Coverage bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_search":{ + "post":{ + "description":"This interaction searches a set of Coverage based on some filter criteria. Search interactions take a series of parameters of name'='value pairs encoded as an application/x-www-form-urlencoded submission for a POST.

      FHIR documentation for Coverage.

      ", + "operationId":"Coverages Search using POST", + "security":[ + { + "outhB2C":[ + "patient/Coverage.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Content-Type", + "in":"header", + "required":true, + "description":"Specifies the format of data in body", + "type":"string", + "default":"application/x-www-form-urlencoded" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Coverage.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name":"_summary", + "in":"query", + "description":"Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type":"string" + }, + { + "name":"_content", + "in":"query", + "description":"Used to search the entire content of the Coverage resource.", + "type":"string" + }, + { + "name":"_text", + "in":"query", + "description":"Used to search on the narrative of the Coverage resource.", + "type":"string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"dependent", + "in":"query", + "description":"A unique identifier for a dependent under the coverage.", + "type":"integer" + }, + { + "name":"identifier", + "in":"query", + "description":"A Coverage Identifier. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"group", + "in":"query", + "description":"Used to identify a class of coverage or employer group.", + "type":"string" + }, + { + "name":"issuer", + "in":"query", + "description":"The identity of the insurer organization.", + "type":"string" + }, + { + "name":"plan", + "in":"query", + "description":"A plan or policy identifier.", + "type":"string" + }, + { + "name":"sequence", + "in":"query", + "description":"An optional counter for a particular instance of the identified coverage which increments upon each renewal.", + "type":"integer" + }, + { + "name":"subplan", + "in":"query", + "description":"Sub-plan identifier.", + "type":"string" + }, + { + "name":"type", + "in":"query", + "description":"The type of coverage Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"number" + }, + { + "name":"_id", + "in":"formData", + "description":"The logical resource id associated with the Coverage.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"formData", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"formData", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"formData", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"formData", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"formData", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name":"_summary", + "in":"formData", + "description":"Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type":"string" + }, + { + "name":"_content", + "in":"formData", + "description":"Used to search the entire content of the Coverage resource.", + "type":"string" + }, + { + "name":"_text", + "in":"formData", + "description":"Used to search on the narrative of the Coverage resource.", + "type":"string" + }, + { + "name":"_include", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"formData", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"formData", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"formData", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"dependent", + "in":"formData", + "description":"A unique identifier for a dependent under the coverage.", + "type":"integer" + }, + { + "name":"identifier", + "in":"formData", + "description":"A Coverage Identifier. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"group", + "in":"formData", + "description":"Used to identify a class of coverage or employer group.", + "type":"string" + }, + { + "name":"issuer", + "in":"formData", + "description":"The identity of the insurer organization.", + "type":"string" + }, + { + "name":"plan", + "in":"formData", + "description":"A plan or policy identifier.", + "type":"string" + }, + { + "name":"sequence", + "in":"formData", + "description":"An optional counter for a particular instance of the identified coverage which increments upon each renewal.", + "type":"integer" + }, + { + "name":"subplan", + "in":"formData", + "description":"Sub-plan identifier.", + "type":"string" + }, + { + "name":"type", + "in":"formData", + "description":"The type of coverage Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"number" + } + ], + "responses":{ + "200":{ + "description":"Coverage Bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}":{ + "get":{ + "description":"Returns details of Coverage having id given in path.

      FHIR documentation for Coverage.

      ", + "operationId":"Read Coverage", + "security":[ + { + "outhB2C":[ + "patient/Coverage.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Coverage.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Coverage instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for Coverage.

      FHIR documentation for Coverage.

      ", + "operationId":"Coverages Metadata", + "security":[ + { + "outhB2C":[ + "patient/Coverage.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels used for Coverage." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given Coverage.

      FHIR documentation for Coverage.

      ", + "operationId":"Coverage Metadata", + "security":[ + { + "outhB2C":[ + "patient/Coverage.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Coverage.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given version of the Coverage.

      FHIR documentation for Coverage.

      ", + "operationId":"Coverage Version based Metadata", + "security":[ + { + "outhB2C":[ + "patient/Coverage.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Coverage.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of Coverage", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated version of the resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_history":{ + "get":{ + "description":"It retrieves the history of all resources of Coverage.

      FHIR documentation for Coverage.

      ", + "operationId":"Coverages History", + "security":[ + { + "outhB2C":[ + "patient/Coverage.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Coverage instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history":{ + "get":{ + "description":"It retrieves the history of a particular Coverage identified by the given id in path.

      FHIR documentation for Coverage.

      ", + "operationId":"Coverage History", + "security":[ + { + "outhB2C":[ + "patient/Coverage.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"id", + "description":"The logical resource id associated with the Coverage.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Coverage instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}":{ + "get":{ + "description":"This interaction preforms a version specific read of Coverage resource.

      FHIR documentation for Coverage.

      ", + "operationId":"Coverage Version Read", + "security":[ + { + "outhB2C":[ + "patient/Coverage.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Coverage.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of Coverage", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Coverage instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/{type}":{ + "get":{ + "description":"Search the specified resource type in Coverage compartment.

      FHIR documentation for Coverage.

      ", + "operationId":"Compartment Search", + "security":[ + { + "outhB2C":[ + "patient/Coverage.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Coverage.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"type", + "description":"Type of Resource", + "type":"string", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Coverage.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name":"_summary", + "in":"query", + "description":"Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type":"string" + }, + { + "name":"_content", + "in":"query", + "description":"Used to search the entire content of the Coverage resource.", + "type":"string" + }, + { + "name":"_text", + "in":"query", + "description":"Used to search on the narrative of the Coverage resource.", + "type":"string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"dependent", + "in":"query", + "description":"A unique identifier for a dependent under the coverage.", + "type":"integer" + }, + { + "name":"identifier", + "in":"query", + "description":"A Coverage Identifier. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"group", + "in":"query", + "description":"Used to identify a class of coverage or employer group.", + "type":"string" + }, + { + "name":"issuer", + "in":"query", + "description":"The identity of the insurer organization.", + "type":"string" + }, + { + "name":"plan", + "in":"query", + "description":"A plan or policy identifier.", + "type":"string" + }, + { + "name":"sequence", + "in":"query", + "description":"An optional counter for a particular instance of the identified coverage which increments upon each renewal.", + "type":"integer" + }, + { + "name":"subplan", + "in":"query", + "description":"Sub-plan identifier.", + "type":"string" + }, + { + "name":"type", + "in":"query", + "description":"The type of coverage Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"number" + } + ], + "responses":{ + "200":{ + "description":"The set of resources associated with a particular Coverage." + }, + "default":{ + "description":"unexpected error" + } + } + } + } + }, + "securityDefinitions":{ + "outhB2C":{ + "type":"oauth2", + "description":"Security scheme for B2C flow using authorization code flow.", + "scopes":{ + "patient/Coverage.read":"Read permissions for Coverage demographics." + }, + "flow":"Authorization_code", + "authorizationUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/authorize?scope=patient/Coverage.read&state=uyrjiqa23nv8650ndj", + "tokenUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/accesstoken" + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/DiagnosticOrder-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/DiagnosticOrder-api.json new file mode 100755 index 0000000..824ae5c --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/DiagnosticOrder-api.json @@ -0,0 +1,1522 @@ +{ + "swagger":"2.0", + "info":{ + "version":"1.0.0", + "title":"DiagnosticOrder API", + "description":"FHIR DiagnosticOrder resource API documentation" + }, + "host":"fhirsandbox-prod.apigee.net", + "basePath":"/fhir/v1/DiagnosticOrder", + "schemes":[ + "https" + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "security":[ + { + "outhB2C":[ + "patient/Diagnosticorder.read" + ] + } + ], + "paths":{ + "":{ + "get":{ + "description":"Returns DiagnosticOrders based on filter criteria OR Provides provision for pagination (stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).

      FHIR documentation for DiagnosticOrder.

      ", + "operationId":"DiagnosticOrders Search", + "security":[ + { + "outhB2C":[ + "patient/Diagnosticorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the DiagnosticOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the DiagnosticOrder resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the DiagnosticOrder resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"actor", + "in":"query", + "description":"Who recorded or did this (Device, Practitioner).", + "type":"string" + }, + { + "name":"bodysite", + "in":"query", + "description":"Location of requested test (if applicable). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"Code to indicate the item (test or panel) being ordered. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"encounter", + "in":"query", + "description":"The encounter that this diagnostic order is associated with (Encounter).", + "type":"string" + }, + { + "name":"event-date", + "in":"query", + "description":"The date at which the event happened. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"event-date", + "in":"query", + "description":" The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"event-status", + "in":"query", + "description":"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"event-status-date", + "in":"query", + "description":"A combination of past-status and date. Value should be in the form: [status]$[date]", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"Identifiers assigned to this order. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"item-date", + "in":"query", + "description":"The date at which the event happened. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"item-date", + "in":"query", + "description":"The date at which the event happened. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"item-past-status", + "in":"query", + "description":"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"item-status", + "in":"query", + "description":"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"item-status-date", + "in":"query", + "description":"A combination of item-past-status and item-date. Value should be in the form: [status]$[date]", + "type":"string" + }, + { + "name":"orderer", + "in":"query", + "description":"Who ordered the test (Practitioner).", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"Who and/or what test is about (Patient).", + "type":"string" + }, + { + "name":"specimen", + "in":"query", + "description":"If the whole order relates to specific specimens (Specimen).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"subject", + "in":"query", + "description":"Who and/or what test is about (Device, Location, Patient, Group).", + "type":"string" + }, + { + "name":"stateid", + "in":"query", + "description":"Unique id associated with a page.", + "type":"string" + }, + { + "name":"page", + "in":"query", + "description":"DiagnosticOrder resource offset.", + "type":"number" + }, + { + "name":"page_size", + "in":"query", + "description":"The number of DiagnosticOrder resources requested in a page.", + "type":"number" + }, + { + "name":"_pretty", + "in":"query", + "description":"Set true to get prettified data.", + "type":"boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + } + ], + "responses":{ + "200":{ + "description":"DiagnosticOrder bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_search":{ + "post":{ + "description":"This interaction searches a set of DiagnosticOrders based on some filter criteria. Search interactions take a series of parameters of name'='value pairs encoded as an application/x-www-form-urlencoded submission for a POST.

      FHIR documentation for DiagnosticOrder.

      ", + "operationId":"DiagnosticOrders Search using POST", + "security":[ + { + "outhB2C":[ + "patient/Diagnosticorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Content-Type", + "in":"header", + "required":true, + "description":"Specifies the format of data in body", + "type":"string", + "default":"application/x-www-form-urlencoded" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the DiagnosticOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the DiagnosticOrder resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the DiagnosticOrder resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"actor", + "in":"query", + "description":"Who recorded or did this (Device, Practitioner).", + "type":"string" + }, + { + "name":"bodysite", + "in":"query", + "description":"Location of requested test (if applicable). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"Code to indicate the item (test or panel) being ordered. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"encounter", + "in":"query", + "description":"The encounter that this diagnostic order is associated with (Encounter).", + "type":"string" + }, + { + "name":"event-date", + "in":"query", + "description":"The date at which the event happened. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"event-date", + "in":"query", + "description":" The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"event-status", + "in":"query", + "description":"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"event-status-date", + "in":"query", + "description":"A combination of past-status and date. Value should be in the form: [status]$[date]", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"Identifiers assigned to this order. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"item-date", + "in":"query", + "description":"The date at which the event happened. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"item-date", + "in":"query", + "description":"The date at which the event happened. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"item-past-status", + "in":"query", + "description":"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"item-status", + "in":"query", + "description":"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"item-status-date", + "in":"query", + "description":"A combination of item-past-status and item-date. Value should be in the form: [status]$[date]", + "type":"string" + }, + { + "name":"orderer", + "in":"query", + "description":"Who ordered the test (Practitioner).", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"Who and/or what test is about (Patient).", + "type":"string" + }, + { + "name":"specimen", + "in":"query", + "description":"If the whole order relates to specific specimens (Specimen).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"subject", + "in":"query", + "description":"Who and/or what test is about (Device, Location, Patient, Group).", + "type":"string" + }, + { + "name":"_id", + "in":"formData", + "description":"The logical resource id associated with the DiagnosticOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"formData", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"formData", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"formData", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"formData", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"formData", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "formData", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "formData", + "description": "Used to search the entire content of the DiagnosticOrder resource.", + "type": "string" + }, { + "name": "_text", + "in": "formData", + "description": "Used to search on the narrative of the DiagnosticOrder resource.", + "type": "string" + }, + { + "name":"_include", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"formData", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"formData", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"formData", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"actor", + "in":"formData", + "description":"Who recorded or did this (Device, Practitioner).", + "type":"string" + }, + { + "name":"bodysite", + "in":"formData", + "description":"Location of requested test (if applicable). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"code", + "in":"formData", + "description":"Code to indicate the item (test or panel) being ordered. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"encounter", + "in":"formData", + "description":"The encounter that this diagnostic order is associated with (Encounter).", + "type":"string" + }, + { + "name":"event-date", + "in":"formData", + "description":"The date at which the event happened. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"event-date", + "in":"formData", + "description":" The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"event-status", + "in":"formData", + "description":"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"event-status-date", + "in":"formData", + "description":"A combination of past-status and date. Value should be in the form: [status]$[date]", + "type":"string" + }, + { + "name":"identifier", + "in":"formData", + "description":"Identifiers assigned to this order. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"item-date", + "in":"formData", + "description":"The date at which the event happened. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"item-date", + "in":"formData", + "description":"The date at which the event happened. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"item-past-status", + "in":"formData", + "description":"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"item-status", + "in":"formData", + "description":"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"item-status-date", + "in":"formData", + "description":"A combination of item-past-status and item-date. Value should be in the form: [status]$[date]", + "type":"string" + }, + { + "name":"orderer", + "in":"formData", + "description":"Who ordered the test (Practitioner).", + "type":"string" + }, + { + "name":"patient", + "in":"formData", + "description":"Who and/or what test is about (Patient).", + "type":"string" + }, + { + "name":"specimen", + "in":"formData", + "description":"If the whole order relates to specific specimens (Specimen).", + "type":"string" + }, + { + "name":"status", + "in":"formData", + "description":"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"subject", + "in":"formData", + "description":"Who and/or what test is about (Device, Location, Patient, Group).", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"DiagnosticOrder Bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}":{ + "get":{ + "description":"Returns details of DiagnosticOrder having id given in path.

      FHIR documentation for DiagnosticOrder.

      ", + "operationId":"Read DiagnosticOrder", + "security":[ + { + "outhB2C":[ + "patient/Diagnosticorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the DiagnosticOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"DiagnosticOrder instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for DiagnosticOrder.

      FHIR documentation for DiagnosticOrder.

      ", + "operationId":"DiagnosticOrders Metadata", + "security":[ + { + "outhB2C":[ + "patient/Diagnosticorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels used for DiagnosticOrder." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given DiagnosticOrder resource.

      FHIR documentation for DiagnosticOrder.

      ", + "operationId":"DiagnosticOrder Metadata", + "security":[ + { + "outhB2C":[ + "patient/Diagnosticorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the DiagnosticOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given version of the DiagnosticOrder.

      FHIR documentation for DiagnosticOrder.

      ", + "operationId":"DiagnosticOrder Version based Metadata", + "security":[ + { + "outhB2C":[ + "patient/Diagnosticorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the DiagnosticOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of DiagnosticOrder", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated version of the resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_history":{ + "get":{ + "description":"It retrieves the history of all resources of DiagnosticOrder.

      FHIR documentation for DiagnosticOrder.

      ", + "operationId":"DiagnosticOrders History", + "security":[ + { + "outhB2C":[ + "patient/Diagnosticorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"DiagnosticOrder instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history":{ + "get":{ + "description":"It retrieves the history of a particular DiagnosticOrder identified by the given id in path.

      FHIR documentation for DiagnosticOrder.

      ", + "operationId":"DiagnosticOrder History", + "security":[ + { + "outhB2C":[ + "patient/Diagnosticorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"id", + "description":"The logical resource id associated with the DiagnosticOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"DiagnosticOrder instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}":{ + "get":{ + "description":"This interaction preforms a version specific read of DiagnosticOrder resource.

      FHIR documentation for DiagnosticOrder.

      ", + "operationId":"DiagnosticOrder Version Read", + "security":[ + { + "outhB2C":[ + "patient/Diagnosticorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the DiagnosticOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of DiagnosticOrder", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"DiagnosticOrder instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/{type}":{ + "get":{ + "description":"Search the specified resource type in DiagnosticOrder compartment.

      FHIR documentation for DiagnosticOrder.

      ", + "operationId":"Compartment Search", + "security":[ + { + "outhB2C":[ + "patient/Diagnosticorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the DiagnosticOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"type", + "description":"Type of Resource", + "type":"string", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the DiagnosticOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the DiagnosticOrder resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the DiagnosticOrder resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"actor", + "in":"query", + "description":"Who recorded or did this (Device, Practitioner).", + "type":"string" + }, + { + "name":"bodysite", + "in":"query", + "description":"Location of requested test (if applicable). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"Code to indicate the item (test or panel) being ordered. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"encounter", + "in":"query", + "description":"The encounter that this diagnostic order is associated with (Encounter).", + "type":"string" + }, + { + "name":"event-date", + "in":"query", + "description":"The date at which the event happened. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"event-date", + "in":"query", + "description":" The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"event-status", + "in":"query", + "description":"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"event-status-date", + "in":"query", + "description":"A combination of past-status and date. Value should be in the form: [status]$[date]", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"Identifiers assigned to this order. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"item-date", + "in":"query", + "description":"The date at which the event happened. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"item-date", + "in":"query", + "description":"The date at which the event happened. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"item-past-status", + "in":"query", + "description":"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"item-status", + "in":"query", + "description":"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"item-status-date", + "in":"query", + "description":"A combination of item-past-status and item-date. Value should be in the form: [status]$[date]", + "type":"string" + }, + { + "name":"orderer", + "in":"query", + "description":"Who ordered the test (Practitioner).", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"Who and/or what test is about (Patient).", + "type":"string" + }, + { + "name":"specimen", + "in":"query", + "description":"If the whole order relates to specific specimens (Specimen).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"subject", + "in":"query", + "description":"Who and/or what test is about (Device, Location, Patient, Group).", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"The set of resources associated with a particular DiagnosticOrder." + }, + "default":{ + "description":"unexpected error" + } + } + } + } + }, + "securityDefinitions":{ + "outhB2C":{ + "type":"oauth2", + "description":"Security scheme for B2C flow using authorization code flow.", + "scopes":{ + "patient/Diagnosticorder.read":"Read permissions for DiagnosticOrder demographics." + }, + "flow":"Authorization_code", + "authorizationUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/authorize?scope=patient/Diagnosticorder.read&state=uyrjiqa23nv8650ndj", + "tokenUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/accesstoken" + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/DiagnosticReport-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/DiagnosticReport-api.json new file mode 100755 index 0000000..1bddddf --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/DiagnosticReport-api.json @@ -0,0 +1,1451 @@ +{ + "swagger": "2.0", + "info": { + "version": "1.0.0", + "title": "DiagnosticReport API", + "description": "FHIR DiagnosticReport resource API documentation" + }, + "host": "fhirsandbox-prod.apigee.net", + "basePath": "/fhir/v1/DiagnosticReport", + "schemes": [ + "https" + ], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "security": [ + { + "outhB2C": ["patient/Diagnosticreport.read"] + } + ], + "paths": { + "": { + "get": { + "description": "Returns DiagnosticReports based on filter criteria OR Provides provision for pagination (stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).

      FHIR documentation for DiagnosticReport.

      ", + "operationId": "DiagnosticReports Search", + "security": [ + { + "outhB2C": ["patient/Diagnosticreport.read"] + } + ], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [ + { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token]." , + "type": "string" + }, + { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }, + { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, + { + "name": "_id", + "in": "query", + "description": "The logical resource id associated with the DiagnosticReport.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}" + }, + { + "name": "_elements", + "in": "query", + "description": "Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type": "string" + }, + { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "_profile", + "in": "query", + "description": "This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, + { + "name": "_tag", + "in": "query", + "description": "This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, + { + "name": "_security", + "in": "query", + "description": "This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, + { + "name": "_count", + "in": "query", + "description": "The number of resources that should be returned in a single page.", + "type": "integer" + },{ + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the DiagnosticReport resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the DiagnosticReport resource.", + "type": "string" + }, + { + "name": "_include", + "in": "query", + "description": "This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, + { + "name": "_revinclude", + "in": "query", + "description": "This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, + { + "name": "_sort", + "in": "query", + "description": "Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, + { + "name": "_sort:asc", + "in": "query", + "description": "Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, + { + "name": "_sort:desc", + "in": "query", + "description": "Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, + { + "name": "category", + "in": "query", + "description": "Which diagnostic discipline/department created the report.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "code", + "in": "query", + "description": "The code for the report as a whole, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "date", + "in": "query", + "description": "The clinically relevant time of the report. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "date", + "in": "query", + "description": "The clinically relevant time of the report.The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "diagnosis", + "in": "query", + "description": "A coded diagnosis on the report.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "encounter", + "in": "query", + "description": "The Encounter when the order was made (Encounter).", + "type": "string" + }, + { + "name": "identifier", + "in": "query", + "description": "An identifier for the report.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "image", + "in": "query", + "description": "Reference to the image source (Media).", + "type": "string" + }, + { + "name": "issued", + "in": "query", + "description": "When the report was issued. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "issued", + "in": "query", + "description": "When the report was issued. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "patient", + "in": "query", + "description": "The subject of the report if a patient (Patient).", + "type": "string" + }, + { + "name": "performer", + "in": "query", + "description": "Who was the source of the report (Organization, Practitioner).", + "type": "string" + }, + { + "name": "request", + "in": "query", + "description": "Reference to the test or procedure request.", + "type": "string" + }, + { + "name": "result", + "in": "query", + "description": "Link to an atomic result (Observation resource).", + "type": "string" + }, + { + "name": "specimen", + "in": "query", + "description": "The specimen details (Specimen).", + "type": "string" + }, + { + "name": "status", + "in": "query", + "description": "The status of the report.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "subject", + "in": "query", + "description": "The subject of the report (Device, Location, Patient, Group).", + "type": "string" + }, + { + "name": "stateid", + "in": "query", + "description": "Unique id associated with a page.", + "type": "string" + }, + { + "name": "page", + "in": "query", + "description": "DiagnosticReport resource offset.", + "type": "number" + }, + { + "name": "page_size", + "in": "query", + "description": "The number of DiagnosticReports resources requested in a page.", + "type": "number" + }, + { + "name": "_pretty", + "in": "query", + "description": "Set true to get prettified data.", + "type": "boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "DiagnosticReport bundle" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/_search": { + "post": { + "description": "This interaction searches a set of DiagnosticReports based on some filter criteria. Search interactions take a series of parameters of name'='value pairs encoded as an application/x-www-form-urlencoded submission for a POST.

      FHIR documentation for DiagnosticReport.

      ", + "operationId": "DiagnosticReports Search using POST", + "security": [ + { + "outhB2C": ["patient/Diagnosticreport.read"] + } + ], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [ + { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, + { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }, + { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, + { + "name": "Content-Type", + "in": "header", + "required": true, + "description": "Specifies the format of data in body", + "type": "string", + "default": "application/x-www-form-urlencoded" + }, + { + "name": "_id", + "in": "query", + "description": "The logical resource id associated with the DiagnosticReport.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}" + }, + { + "name": "_elements", + "in": "query", + "description": "Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type": "string" + }, + { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "_profile", + "in": "query", + "description": "This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, + { + "name": "_tag", + "in": "query", + "description": "This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, + { + "name": "_security", + "in": "query", + "description": "This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, + { + "name": "_count", + "in": "query", + "description": "The number of resources that should be returned in a single page.", + "type": "integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the DiagnosticReport resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the DiagnosticReport resource.", + "type": "string" + }, + { + "name": "_include", + "in": "query", + "description": "This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, + { + "name": "_revinclude", + "in": "query", + "description": "This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, + { + "name": "_sort", + "in": "query", + "description": "Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, + { + "name": "_sort:asc", + "in": "query", + "description": "Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, + { + "name": "_sort:desc", + "in": "query", + "description": "Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, + { + "name": "category", + "in": "query", + "description": "Which diagnostic discipline/department created the report.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "code", + "in": "query", + "description": "The code for the report as a whole, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "date", + "in": "query", + "description": "The clinically relevant time of the report. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "date", + "in": "query", + "description": "The clinically relevant time of the report.The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "diagnosis", + "in": "query", + "description": "A coded diagnosis on the report.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "encounter", + "in": "query", + "description": "The Encounter when the order was made (Encounter).", + "type": "string" + }, + { + "name": "identifier", + "in": "query", + "description": "An identifier for the report.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "image", + "in": "query", + "description": "Reference to the image source (Media).", + "type": "string" + }, + { + "name": "issued", + "in": "query", + "description": "When the report was issued. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "issued", + "in": "query", + "description": "When the report was issued. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "patient", + "in": "query", + "description": "The subject of the report if a patient (Patient).", + "type": "string" + }, + { + "name": "performer", + "in": "query", + "description": "Who was the source of the report (Organization, Practitioner).", + "type": "string" + }, + { + "name": "request", + "in": "query", + "description": "Reference to the test or procedure request.", + "type": "string" + }, + { + "name": "result", + "in": "query", + "description": "Link to an atomic result (Observation resource).", + "type": "string" + }, + { + "name": "specimen", + "in": "query", + "description": "The specimen details (Specimen).", + "type": "string" + }, + { + "name": "status", + "in": "query", + "description": "The status of the report.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "subject", + "in": "query", + "description": "The subject of the report (Device, Location, Patient, Group).", + "type": "string" + }, + { + "name": "_id", + "in": "formData", + "description": "The logical resource id associated with the DiagnosticReport.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}" + }, + { + "name": "_elements", + "in": "formData", + "description": "Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type": "string" + }, + { + "name": "_lastUpdated", + "in": "formData", + "description": "The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "_lastUpdated", + "in": "formData", + "description": "The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "_profile", + "in": "formData", + "description": "This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, + { + "name": "_tag", + "in": "formData", + "description": "This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, + { + "name": "_security", + "in": "formData", + "description": "This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, + { + "name": "_count", + "in": "formData", + "description": "The number of resources that should be returned in a single page.", + "type": "integer" + }, + { + "name": "_summary", + "in": "formData", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "formData", + "description": "Used to search the entire content of the DiagnosticReport resource.", + "type": "string" + }, { + "name": "_text", + "in": "formData", + "description": "Used to search on the narrative of the DiagnosticReport resource.", + "type": "string" + }, + { + "name": "_include", + "in": "formData", + "description": "This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, + { + "name": "_revinclude", + "in": "formData", + "description": "This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, + { + "name": "_sort", + "in": "formData", + "description": "Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, + { + "name": "_sort:asc", + "in": "formData", + "description": "Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, + { + "name": "_sort:desc", + "in": "formData", + "description": "Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, + { + "name": "category", + "in": "formData", + "description": "Which diagnostic discipline/department created the report.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "code", + "in": "formData", + "description": "The code for the report as a whole, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "date", + "in": "formData", + "description": "The clinically relevant time of the report. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "date", + "in": "formData", + "description": "The clinically relevant time of the report.The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "diagnosis", + "in": "formData", + "description": "A coded diagnosis on the report.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "encounter", + "in": "formData", + "description": "The Encounter when the order was made (Encounter).", + "type": "string" + }, + { + "name": "identifier", + "in": "formData", + "description": "An identifier for the report.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "image", + "in": "formData", + "description": "Reference to the image source (Media).", + "type": "string" + }, + { + "name": "issued", + "in": "formData", + "description": "When the report was issued. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "issued", + "in": "formData", + "description": "When the report was issued. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "patient", + "in": "formData", + "description": "The subject of the report if a patient (Patient).", + "type": "string" + }, + { + "name": "performer", + "in": "formData", + "description": "Who was the source of the report (Organization, Practitioner).", + "type": "string" + }, + { + "name": "request", + "in": "formData", + "description": "Reference to the test or procedure request.", + "type": "string" + }, + { + "name": "result", + "in": "formData", + "description": "Link to an atomic result (Observation resource).", + "type": "string" + }, + { + "name": "specimen", + "in": "formData", + "description": "The specimen details (Specimen).", + "type": "string" + }, + { + "name": "status", + "in": "formData", + "description": "The status of the report.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "subject", + "in": "formData", + "description": "The subject of the report (Device, Location, Patient, Group).", + "type": "string" + } + ], + "responses": { + "200": { + "description": "DiagnosticReport Bundle" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/{id}": { + "get": { + "description": "Returns details of DiagnosticReport having id given in path.

      FHIR documentation for DiagnosticReport.

      ", + "operationId": "Read DiagnosticReport", + "security": [ + { + "outhB2C": ["patient/Diagnosticreport.read"] + } + ], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [ + { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, + { + "name": "id", + "description": "The logical resource id associated with the DiagnosticReport.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, + { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, + { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + } + ], + "responses": { + "200": { + "description": "DiagnosticReport instance" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/$meta": { + "get": { + "description": "Retrieves a summary of the profiles, tags, and security labels for DiagnosticReport.

      FHIR documentation for DiagnosticReport.

      ", + "operationId": "DiagnosticReports Metadata", + "security": [ + { + "outhB2C": ["patient/Diagnosticreport.read"] + } + ], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [ + { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, + { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + } + ], + "responses": { + "200": { + "description": "List of all tags, profiles and security labels used for DiagnosticReport." + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/{id}/$meta": { + "get": { + "description": "Retrieves a summary of the profiles, tags, and security labels for given DiagnosticReport resource.

      FHIR documentation for DiagnosticReport.

      ", + "operationId": "DiagnosticReport Metadata", + "security": [ + { + "outhB2C": ["patient/Diagnosticreport.read"] + } + ], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [ + { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, + { + "name": "id", + "description": "The logical resource id associated with the DiagnosticReport.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, + { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, + { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + } + ], + "responses": { + "200": { + "description": "List of all tags, profiles and security labels affixed to the nominated resource." + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/{id}/_history/{vid}/$meta": { + "get": { + "description": "Retrieves a summary of the profiles, tags, and security labels for given version of the DiagnosticReport.

      FHIR documentation for DiagnosticReport.

      ", + "operationId": "DiagnosticReport Version based Metadata", + "security": [ + { + "outhB2C": ["patient/Diagnosticreport.read"] + } + ], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [ + { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, + { + "name": "id", + "description": "The logical resource id associated with the DiagnosticReport.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, + { + "name": "vid", + "description": "Version Id of DiagnosticReport.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, + { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, + { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + } + ], + "responses": { + "200": { + "description": "List of all tags, profiles and security labels affixed to the nominated version of the resource." + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/_history": { + "get": { + "description": "It retrieves the history of all resources of DiagnosticReport.

      FHIR documentation for DiagnosticReport.

      ", + "operationId": "DiagnosticReports History", + "security": [ + { + "outhB2C": ["patient/Diagnosticreport.read"] + } + ], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [ + { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, + { + "name": "_count", + "in": "query", + "description": "Number of records needed in response.", + "type": "integer" + }, + { + "name": "_since", + "in": "query", + "description": "Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, + { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + } + ], + "responses": { + "200": { + "description": "DiagnosticReport instance" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/{id}/_history": { + "get": { + "description": "It retrieves the history of a particular DiagnosticReport identified by the given id in path.

      FHIR documentation for DiagnosticReport.

      ", + "operationId": "DiagnosticReport History", + "security": [ + { + "outhB2C": ["patient/Diagnosticreport.read"] + } + ], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [ + { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, + { + "name": "_count", + "in": "query", + "description": "Number of records needed in response.", + "type": "integer" + }, + { + "name": "_since", + "in": "query", + "description": "Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "id", + "description": "The logical resource id associated with the DiagnosticReport.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, + { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, + { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + } + ], + "responses": { + "200": { + "description": "DiagnosticReport instance" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/{id}/_history/{vid}": { + "get": { + "description": "This interaction preforms a version specific read of DiagnosticReport resource.

      FHIR documentation for DiagnosticReport.

      ", + "operationId": "DiagnosticReport Version Read", + "security": [ + { + "outhB2C": ["patient/Diagnosticreport.read"] + } + ], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [ + { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, + { + "name": "id", + "description": "The logical resource id associated with the DiagnosticReport.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, + { + "name": "vid", + "description": "Version Id of DiagnosticReport", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, + { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, + { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + } + ], + "responses": { + "200": { + "description": "DiagnosticReport instance" + }, + "default": { + "description": "unexpected error" + } + } + } + }, + "/{id}/{type}": { + "get": { + "description": "Search the specified resource type in DiagnosticReport compartment.

      FHIR documentation for DiagnosticReport.

      ", + "operationId": "Compartment Search", + "security": [ + { + "outhB2C": ["patient/Diagnosticreport.read"] + } + ], + "produces": [ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters": [ + { + "name": "_format", + "in": "query", + "description": "Format of data to be returned.", + "type": "string" + }, + { + "name": "id", + "description": "The logical resource id associated with the DiagnosticReport.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}", + "required": true, + "in": "path" + }, + { + "name": "type", + "description": "Type of Resource", + "type": "string", + "required": true, + "in": "path" + }, + { + "name": "Authorization", + "in": "header", + "required":false, + "default": "Bearer [access_token]", + "description": "Specify access token for API in the given format: Bearer [access_token].", + "type": "string" + }, + { + "name": "Accept", + "description": "The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in": "header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type": "string" + }, + { + "name": "_id", + "in": "query", + "description": "The logical resource id associated with the DiagnosticReport.", + "type": "string", + "pattern": "[a-z0-9\\-\\.]{1,64}" + }, + { + "name": "_elements", + "in": "query", + "description": "Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type": "string" + }, + { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "_lastUpdated", + "in": "query", + "description": "The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "_profile", + "in": "query", + "description": "This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, + { + "name": "_tag", + "in": "query", + "description": "This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, + { + "name": "_security", + "in": "query", + "description": "This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type": "string" + }, + { + "name": "_count", + "in": "query", + "description": "The number of resources that should be returned in a single page.", + "type": "integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the DiagnosticReport resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the DiagnosticReport resource.", + "type": "string" + }, + { + "name": "_include", + "in": "query", + "description": "This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, + { + "name": "_revinclude", + "in": "query", + "description": "This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type": "string" + }, + { + "name": "_sort", + "in": "query", + "description": "Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, + { + "name": "_sort:asc", + "in": "query", + "description": "Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, + { + "name": "_sort:desc", + "in": "query", + "description": "Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type": "string" + }, + { + "name": "category", + "in": "query", + "description": "Which diagnostic discipline/department created the report.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "code", + "in": "query", + "description": "The code for the report as a whole, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "date", + "in": "query", + "description": "The clinically relevant time of the report. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "date", + "in": "query", + "description": "The clinically relevant time of the report.The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "diagnosis", + "in": "query", + "description": "A coded diagnosis on the report.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "encounter", + "in": "query", + "description": "The Encounter when the order was made (Encounter).", + "type": "string" + }, + { + "name": "identifier", + "in": "query", + "description": "An identifier for the report.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "image", + "in": "query", + "description": "Reference to the image source (Media).", + "type": "string" + }, + { + "name": "issued", + "in": "query", + "description": "When the report was issued. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "issued", + "in": "query", + "description": "When the report was issued. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type": "string", + "pattern": "([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name": "patient", + "in": "query", + "description": "The subject of the report if a patient (Patient).", + "type": "string" + }, + { + "name": "performer", + "in": "query", + "description": "Who was the source of the report (Organization, Practitioner).", + "type": "string" + }, + { + "name": "request", + "in": "query", + "description": "Reference to the test or procedure request.", + "type": "string" + }, + { + "name": "result", + "in": "query", + "description": "Link to an atomic result (Observation resource).", + "type": "string" + }, + { + "name": "specimen", + "in": "query", + "description": "The specimen details (Specimen).", + "type": "string" + }, + { + "name": "status", + "in": "query", + "description": "The status of the report.Value can have following formats: [code] or [system]|[code] or |[code].", + "type": "string" + }, + { + "name": "subject", + "in": "query", + "description": "The subject of the report (Device, Location, Patient, Group).", + "type": "string" + } + ], + "responses": { + "200": { + "description": "The set of resources associated with a particular DiagnosticReport." + }, + "default": { + "description": "unexpected error" + } + } + } + } + }, + "securityDefinitions": { + "outhB2C": { + "type": "oauth2", + "description": "Security scheme for B2C flow using authorization code flow.", + "scopes": { + "patient/Diagnosticreport.read": "Read permissions for DiagnosticReport demographics." + }, + "flow": "Authorization_code", + "authorizationUrl": "https://fhirsandbox-prod.apigee.net/oauth/v2/authorize?scope=patient/Diagnosticreport.read&state=uyrjiqa23nv8650ndj", + "tokenUrl": "https://fhirsandbox-prod.apigee.net/oauth/v2/accesstoken" + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/DocumentReference-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/DocumentReference-api.json new file mode 100755 index 0000000..c29a17d --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/DocumentReference-api.json @@ -0,0 +1,1774 @@ +{ + "swagger":"2.0", + "info":{ + "version":"1.0.0", + "title":"DocumentReference API", + "description":"FHIR DocumentReference resource API documentation" + }, + "host":"fhirsandbox-prod.apigee.net", + "basePath":"/fhir/v1/DocumentReference", + "schemes":[ + "https" + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "security":[ + { + "outhB2C":[ + "patient/Documentreference.read" + ] + } + ], + "paths":{ + "":{ + "get":{ + "description":"Returns DocumentReferences based on filter criteria OR Provides provision for pagination (stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).

      FHIR documentation for DocumentReference.

      ", + "operationId":"DocumentReferences Search", + "security":[ + { + "outhB2C":[ + "patient/Documentreference.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the DocumentReference.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the DocumentReference resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the DocumentReference resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"authenticator", + "in":"query", + "description":"Who/What authenticated the document (Organization, Practitioner).", + "type":"string" + }, + { + "name":"author", + "in":"query", + "description":"Who and/or what authored the document (Device, Patient, Organization, Practitioner, RelatedPerson).", + "type":"string" + }, + { + "name":"class", + "in":"query", + "description":"Categorization of Document. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"created", + "in":"query", + "description":"Document creation time. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"created", + "in":"query", + "description":"Document creation time. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"custodian", + "in":"query", + "description":"Org which maintains the document (Organization).", + "type":"string" + }, + { + "name":"description", + "in":"query", + "description":"Human-readable description (title).", + "type":"string" + }, + { + "name":"encounter", + "in":"query", + "description":"Context of the document content", + "type":"string" + }, + { + "name":"event", + "in":"query", + "description":"Main Clinical Acts Documented. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"facility", + "in":"query", + "description":"Kind of facility where patient was seen. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"format", + "in":"query", + "description":"Format/content rules for the document. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"Master Version Specific Identifier. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"indexed", + "in":"query", + "description":"When this document reference created. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"indexed", + "in":"query", + "description":"When this document reference created. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"language", + "in":"query", + "description":"Human language of the content (BCP-47). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"location", + "in":"query", + "description":"Uri where the data can be found.", + "type":"string", + "pattern":"/^([a-z][a-z0-9+.-]*):(?:\\/\\/((?:(?=((?:[a-z0-9-._~!$&'()*+,;=:]|%[0-9A-F]{2})*))(\\3)@)?(?=(\\[[0-9A-F:.]{2,}\\]|(?:[a-z0-9-._~!$&'()*+,;=]|%[0-9A-F]{2})*))\\5(?::(?=(\\d*))\\6)?)(\\/(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/]|%[0-9A-F]{2})*))\\8)?|(\\/?(?!\\/)(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/]|%[0-9A-F]{2})*))\\10)?)(?:\\?(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/?]|%[0-9A-F]{2})*))\\11)?(?:#(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/?]|%[0-9A-F]{2})*))\\12)?$/i" + }, + { + "name":"patient", + "in":"query", + "description":"Who|what is the subject of the document (Patient).", + "type":"string" + }, + { + "name":"period", + "in":"query", + "description":"Time of service that is being documented. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"period", + "in":"query", + "description":"Time of service that is being documented. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"related-id", + "in":"query", + "description":"Identifer of related objects or events.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"related-ref", + "in":"query", + "description":"Related Resource.", + "type":"string" + }, + { + "name":"relatesto", + "in":"query", + "description":"Target of the relationship (DocumentReference).", + "type":"string" + }, + { + "name":"relation", + "in":"query", + "description":"replaces | transforms | signs | appends. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"relationship", + "in":"query", + "description":"Combination of relation and relatesTo. Value should be in the form: [relation]$[relatesTo]", + "type":"string" + }, + { + "name":"securitylabel", + "in":"query", + "description":"Document security-tags . Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"setting", + "in":"query", + "description":"Additional details about where the content was created . Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"current | superseded | entered in error. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"subject", + "in":"query", + "description":"Who|what is the subject of the document (Device, Patient, Practitioner, Group).", + "type":"string" + }, + { + "name":"type", + "in":"query", + "description":"Kind of document. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"stateid", + "in":"query", + "description":"Unique id associated with a page.", + "type":"string" + }, + { + "name":"page", + "in":"query", + "description":"DocumentReference resource offset.", + "type":"number" + }, + { + "name":"page_size", + "in":"query", + "description":"The number of DocumentReference resources requested in a page.", + "type":"number" + }, + { + "name":"_pretty", + "in":"query", + "description":"Set true to get prettified data.", + "type":"boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + } + ], + "responses":{ + "200":{ + "description":"DocumentReference bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_search":{ + "post":{ + "description":"This interaction searches a set of DocumentReferences based on some filter criteria. Search interactions take a series of parameters of name'='value pairs encoded as an application/x-www-form-urlencoded submission for a POST.

      FHIR documentation for DocumentReference.

      ", + "operationId":"DocumentReferences Search using POST", + "security":[ + { + "outhB2C":[ + "patient/Documentreference.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Content-Type", + "in":"header", + "required":true, + "description":"Specifies the format of data in body", + "type":"string", + "default":"application/x-www-form-urlencoded" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the DocumentReference.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the DocumentReference resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the DocumentReference resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"authenticator", + "in":"query", + "description":"Who/What authenticated the document (Organization, Practitioner).", + "type":"string" + }, + { + "name":"author", + "in":"query", + "description":"Who and/or what authored the document (Device, Patient, Organization, Practitioner, RelatedPerson).", + "type":"string" + }, + { + "name":"class", + "in":"query", + "description":"Categorization of Document. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"created", + "in":"query", + "description":"Document creation time. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"created", + "in":"query", + "description":"Document creation time. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"custodian", + "in":"query", + "description":"Org which maintains the document (Organization).", + "type":"string" + }, + { + "name":"description", + "in":"query", + "description":"Human-readable description (title).", + "type":"string" + }, + { + "name":"encounter", + "in":"query", + "description":"Context of the document content", + "type":"string" + }, + { + "name":"event", + "in":"query", + "description":"Main Clinical Acts Documented. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"facility", + "in":"query", + "description":"Kind of facility where patient was seen. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"format", + "in":"query", + "description":"Format/content rules for the document. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"Master Version Specific Identifier. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"indexed", + "in":"query", + "description":"When this document reference created. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"indexed", + "in":"query", + "description":"When this document reference created. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"language", + "in":"query", + "description":"Human language of the content (BCP-47). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"location", + "in":"query", + "description":"Uri where the data can be found.", + "type":"string", + "pattern":"/^([a-z][a-z0-9+.-]*):(?:\\/\\/((?:(?=((?:[a-z0-9-._~!$&'()*+,;=:]|%[0-9A-F]{2})*))(\\3)@)?(?=(\\[[0-9A-F:.]{2,}\\]|(?:[a-z0-9-._~!$&'()*+,;=]|%[0-9A-F]{2})*))\\5(?::(?=(\\d*))\\6)?)(\\/(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/]|%[0-9A-F]{2})*))\\8)?|(\\/?(?!\\/)(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/]|%[0-9A-F]{2})*))\\10)?)(?:\\?(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/?]|%[0-9A-F]{2})*))\\11)?(?:#(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/?]|%[0-9A-F]{2})*))\\12)?$/i" + }, + { + "name":"patient", + "in":"query", + "description":"Who|what is the subject of the document (Patient).", + "type":"string" + }, + { + "name":"period", + "in":"query", + "description":"Time of service that is being documented. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"period", + "in":"query", + "description":"Time of service that is being documented. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"related-id", + "in":"query", + "description":"Identifer of related objects or events.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"related-ref", + "in":"query", + "description":"Related Resource.", + "type":"string" + }, + { + "name":"relatesto", + "in":"query", + "description":"Target of the relationship (DocumentReference).", + "type":"string" + }, + { + "name":"relation", + "in":"query", + "description":"replaces | transforms | signs | appends. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"relationship", + "in":"query", + "description":"Combination of relation and relatesTo. Value should be in the form: [relation]$[relatesTo]", + "type":"string" + }, + { + "name":"securitylabel", + "in":"query", + "description":"Document security-tags . Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"setting", + "in":"query", + "description":"Additional details about where the content was created . Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"current | superseded | entered in error. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"subject", + "in":"query", + "description":"Who|what is the subject of the document (Device, Patient, Practitioner, Group).", + "type":"string" + }, + { + "name":"type", + "in":"query", + "description":"Kind of document. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"_id", + "in":"formData", + "description":"The logical resource id associated with the DocumentReference.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"formData", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"formData", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"formData", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"formData", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"formData", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "formData", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "formData", + "description": "Used to search the entire content of the DocumentReference resource.", + "type": "string" + }, { + "name": "_text", + "in": "formData", + "description": "Used to search on the narrative of the DocumentReference resource.", + "type": "string" + }, + { + "name":"_include", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"formData", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"formData", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"formData", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"authenticator", + "in":"formData", + "description":"Who/What authenticated the document (Organization, Practitioner).", + "type":"string" + }, + { + "name":"author", + "in":"formData", + "description":"Who and/or what authored the document (Device, Patient, Organization, Practitioner, RelatedPerson).", + "type":"string" + }, + { + "name":"class", + "in":"formData", + "description":"Categorization of Document. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"created", + "in":"formData", + "description":"Document creation time. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"created", + "in":"formData", + "description":"Document creation time. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"custodian", + "in":"formData", + "description":"Org which maintains the document (Organization).", + "type":"string" + }, + { + "name":"description", + "in":"formData", + "description":"Human-readable description (title).", + "type":"string" + }, + { + "name":"encounter", + "in":"formData", + "description":"Context of the document content", + "type":"string" + }, + { + "name":"event", + "in":"formData", + "description":"Main Clinical Acts Documented. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"facility", + "in":"formData", + "description":"Kind of facility where patient was seen. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"format", + "in":"formData", + "description":"Format/content rules for the document. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"identifier", + "in":"formData", + "description":"Master Version Specific Identifier. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"indexed", + "in":"formData", + "description":"When this document reference created. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"indexed", + "in":"formData", + "description":"When this document reference created. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"language", + "in":"formData", + "description":"Human language of the content (BCP-47). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"location", + "in":"formData", + "description":"Uri where the data can be found.", + "type":"string", + "pattern":"/^([a-z][a-z0-9+.-]*):(?:\\/\\/((?:(?=((?:[a-z0-9-._~!$&'()*+,;=:]|%[0-9A-F]{2})*))(\\3)@)?(?=(\\[[0-9A-F:.]{2,}\\]|(?:[a-z0-9-._~!$&'()*+,;=]|%[0-9A-F]{2})*))\\5(?::(?=(\\d*))\\6)?)(\\/(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/]|%[0-9A-F]{2})*))\\8)?|(\\/?(?!\\/)(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/]|%[0-9A-F]{2})*))\\10)?)(?:\\?(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/?]|%[0-9A-F]{2})*))\\11)?(?:#(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/?]|%[0-9A-F]{2})*))\\12)?$/i" + }, + { + "name":"patient", + "in":"formData", + "description":"Who|what is the subject of the document (Patient).", + "type":"string" + }, + { + "name":"period", + "in":"formData", + "description":"Time of service that is being documented. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"period", + "in":"formData", + "description":"Time of service that is being documented. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"related-id", + "in":"formData", + "description":"Identifer of related objects or events.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"related-ref", + "in":"formData", + "description":"Related Resource.", + "type":"string" + }, + { + "name":"relatesto", + "in":"formData", + "description":"Target of the relationship (DocumentReference).", + "type":"string" + }, + { + "name":"relation", + "in":"formData", + "description":"replaces | transforms | signs | appends. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"relationship", + "in":"formData", + "description":"Combination of relation and relatesTo. Value should be in the form: [relation]$[relatesTo]", + "type":"string" + }, + { + "name":"securitylabel", + "in":"formData", + "description":"Document security-tags . Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"setting", + "in":"formData", + "description":"Additional details about where the content was created . Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"status", + "in":"formData", + "description":"current | superseded | entered in error. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"subject", + "in":"formData", + "description":"Who|what is the subject of the document (Device, Patient, Practitioner, Group).", + "type":"string" + }, + { + "name":"type", + "in":"formData", + "description":"Kind of document. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"DocumentReference Bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}":{ + "get":{ + "description":"Returns details of DocumentReferences having id given in path.

      FHIR documentation for DocumentReference.

      ", + "operationId":"Read DocumentReference", + "security":[ + { + "outhB2C":[ + "patient/Documentreference.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the DocumentReference.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"DocumentReference instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for DocumentReference.

      FHIR documentation for DocumentReference.

      ", + "operationId":"DocumentReferences Metadata", + "security":[ + { + "outhB2C":[ + "patient/Documentreference.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags used for DocumentReference." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given DocumentReference resource.

      FHIR documentation for DocumentReference.

      ", + "operationId":"DocumentReference Metadata", + "security":[ + { + "outhB2C":[ + "patient/Documentreference.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the DocumentReference.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given version of the DocumentReference.

      FHIR documentation for DocumentReference.

      ", + "operationId":"DocumentReference Version based Metadata", + "security":[ + { + "outhB2C":[ + "patient/Documentreference.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the DocumentReference.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of DocumentReference.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated version of the resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_history":{ + "get":{ + "description":"It retrieves the history of all resources of DocumentReference.

      FHIR documentation for DocumentReference.

      ", + "operationId":"DocumentReferences History", + "security":[ + { + "outhB2C":[ + "patient/Documentreference.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"DocumentReference instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history":{ + "get":{ + "description":"It retrieves the history of a particular DocumentReference identified by the given id in path.

      FHIR documentation for DocumentReference.

      ", + "operationId":"DocumentReference History", + "security":[ + { + "outhB2C":[ + "patient/Documentreference.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"id", + "description":"The logical resource id associated with the DocumentReference.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"DocumentReference instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}":{ + "get":{ + "description":"This interaction preforms a version specific read of DocumentReference resource.

      FHIR documentation for DocumentReference.

      ", + "operationId":"DocumentReference Version Read", + "security":[ + { + "outhB2C":[ + "patient/Documentreference.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the DocumentReference.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of DocumentReference", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"DocumentReference instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/{type}":{ + "get":{ + "description":"Search the specified resource type in DocumentReference compartment.

      FHIR documentation for DocumentReference.

      ", + "operationId":"Compartment Search", + "security":[ + { + "outhB2C":[ + "patient/Documentreference.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the DocumentReference.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"type", + "description":"Type of Resource", + "type":"string", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the DocumentReference.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the DocumentReference resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the DocumentReference resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"authenticator", + "in":"query", + "description":"Who/What authenticated the document (Organization, Practitioner).", + "type":"string" + }, + { + "name":"author", + "in":"query", + "description":"Who and/or what authored the document (Device, Patient, Organization, Practitioner, RelatedPerson).", + "type":"string" + }, + { + "name":"class", + "in":"query", + "description":"Categorization of Document. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"created", + "in":"query", + "description":"Document creation time. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"created", + "in":"query", + "description":"Document creation time. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"custodian", + "in":"query", + "description":"Org which maintains the document (Organization).", + "type":"string" + }, + { + "name":"description", + "in":"query", + "description":"Human-readable description (title).", + "type":"string" + }, + { + "name":"encounter", + "in":"query", + "description":"Context of the document content", + "type":"string" + }, + { + "name":"event", + "in":"query", + "description":"Main Clinical Acts Documented. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"facility", + "in":"query", + "description":"Kind of facility where patient was seen. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"format", + "in":"query", + "description":"Format/content rules for the document. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"Master Version Specific Identifier. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"indexed", + "in":"query", + "description":"When this document reference created. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"indexed", + "in":"query", + "description":"When this document reference created. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"language", + "in":"query", + "description":"Human language of the content (BCP-47). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"location", + "in":"query", + "description":"Uri where the data can be found.", + "type":"string", + "pattern":"/^([a-z][a-z0-9+.-]*):(?:\\/\\/((?:(?=((?:[a-z0-9-._~!$&'()*+,;=:]|%[0-9A-F]{2})*))(\\3)@)?(?=(\\[[0-9A-F:.]{2,}\\]|(?:[a-z0-9-._~!$&'()*+,;=]|%[0-9A-F]{2})*))\\5(?::(?=(\\d*))\\6)?)(\\/(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/]|%[0-9A-F]{2})*))\\8)?|(\\/?(?!\\/)(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/]|%[0-9A-F]{2})*))\\10)?)(?:\\?(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/?]|%[0-9A-F]{2})*))\\11)?(?:#(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/?]|%[0-9A-F]{2})*))\\12)?$/i" + }, + { + "name":"patient", + "in":"query", + "description":"Who|what is the subject of the document (Patient).", + "type":"string" + }, + { + "name":"period", + "in":"query", + "description":"Time of service that is being documented. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"period", + "in":"query", + "description":"Time of service that is being documented. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"related-id", + "in":"query", + "description":"Identifer of related objects or events.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"related-ref", + "in":"query", + "description":"Related Resource.", + "type":"string" + }, + { + "name":"relatesto", + "in":"query", + "description":"Target of the relationship (DocumentReference).", + "type":"string" + }, + { + "name":"relation", + "in":"query", + "description":"replaces | transforms | signs | appends. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"relationship", + "in":"query", + "description":"Combination of relation and relatesTo. Value should be in the form: [relation]$[relatesTo]", + "type":"string" + }, + { + "name":"securitylabel", + "in":"query", + "description":"Document security-tags . Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"setting", + "in":"query", + "description":"Additional details about where the content was created . Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"current | superseded | entered in error. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"subject", + "in":"query", + "description":"Who|what is the subject of the document (Device, Patient, Practitioner, Group).", + "type":"string" + }, + { + "name":"type", + "in":"query", + "description":"Kind of document. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"The set of resources associated with a particular DocumentReference." + }, + "default":{ + "description":"unexpected error" + } + } + } + } + }, + "securityDefinitions":{ + "outhB2C":{ + "type":"oauth2", + "description":"Security scheme for B2C flow using authorization code flow.", + "scopes":{ + "patient/Documentreference.read":"Read permissions for DocumentReference demographics." + }, + "flow":"Authorization_code", + "authorizationUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/authorize?scope=patient/Documentreference.read&state=uyrjiqa23nv8650ndj", + "tokenUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/accesstoken" + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Encounter-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Encounter-api.json new file mode 100755 index 0000000..e8e853c --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Encounter-api.json @@ -0,0 +1,1651 @@ +{ + "swagger":"2.0", + "info":{ + "version":"1.0.0", + "title":"Encounter API", + "description":"Encounter API documentation" + }, + "host":"fhirsandbox-prod.apigee.net", + "basePath":"/fhir/v1/Encounter", + "schemes":[ + "https" + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "security":[ + { + "outhB2C":[ + "patient/Encounter.read" + ] + } + ], + "paths":{ + "":{ + "get":{ + "description":"Returns Encounters based on filter criteria OR Provides provision for pagination (stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).

      FHIR documentation for Encounter.

      ", + "operationId":"Encounters Search", + "security":[ + { + "outhB2C":[ + "patient/Encounter.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Encounter.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Encounter resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Encounter resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"appointment", + "in":"query", + "description":"The appointment that scheduled this encounter.", + "type":"string" + }, + { + "name":"condition", + "in":"query", + "description":"Reason the encounter takes place (resource).", + "type":"string" + }, + { + "name":"date", + "in":"query", + "description":"A date within the period the Encounter lasted. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"query", + "description":"A date within the period the Encounter lasted. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"episodeofcare", + "in":"query", + "description":"An episode of care that this encounter should be recorded against (EpisodeOfCare).", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"Identifier(s) by which this encounter is known. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"incomingreferral", + "in":"query", + "description":"Incoming Referral Request (ReferralRequest).", + "type":"string" + }, + { + "name":"indication", + "in":"query", + "description":"Reason the encounter takes place (resource).", + "type":"string" + }, + { + "name":"length", + "in":"query", + "description":"Length of encounter in days.", + "type":"integer" + }, + { + "name":"location", + "in":"query", + "description":"Location the encounter takes place (Location).", + "type":"string" + }, + { + "name":"location-period", + "in":"query", + "description":"Time period during which the patient was present at the location. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"location-period", + "in":"query", + "description":"Time period during which the patient was present at the location. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"part-of", + "in":"query", + "description":"Another Encounter this encounter is part of (Encounter).", + "type":"string" + }, + { + "name":"participant", + "in":"query", + "description":"Persons involved in the encounter other than the patient (Practitioner, RelatedPerson).", + "type":"string" + }, + { + "name":"participant-type", + "in":"query", + "description":"Role of participant in encounter. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The patient present at the encounter (Patient).", + "type":"string" + }, + { + "name":"practitioner", + "in":"query", + "description":"Persons involved in the encounter other than the patient (Practitioner).", + "type":"string" + }, + { + "name":"procedure", + "in":"query", + "description":"The patient present at the encounter (Patient).", + "type":"string" + }, + { + "name":"reason", + "in":"query", + "description":"Reason the encounter takes place (code). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"special-arrangement", + "in":"query", + "description":"Wheelchair, translator, stretcher, etc. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"planned | arrived | in-progress | onleave | finished | cancelled. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"type", + "in":"query", + "description":"Specific type of encounter. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"stateid", + "in":"query", + "description":"Unique id associated with a page.", + "type":"string" + }, + { + "name":"page", + "in":"query", + "description":"Encounter resource offset.", + "type":"number" + }, + { + "name":"page_size", + "in":"query", + "description":"The number of Encounter resources requested in a page.", + "type":"number" + }, + { + "name":"_pretty", + "in":"query", + "description":"Set true to get prettified data.", + "type":"boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + } + ], + "responses":{ + "200":{ + "description":"Encounter bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_search":{ + "post":{ + "description":"This interaction searches a set of Encounters based on some filter criteria. Search interactions take a series of parameters of name'='value pairs encoded as an application/x-www-form-urlencoded submission for a POST.

      FHIR documentation for Encounter.

      ", + "operationId":"Encounters Search using POST", + "security":[ + { + "outhB2C":[ + "patient/Encounter.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Content-Type", + "in":"header", + "required":true, + "description":"Specifies the format of data in body.", + "type":"string", + "default":"application/x-www-form-urlencoded" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Encounter.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Encounter resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Encounter resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"appointment", + "in":"query", + "description":"The appointment that scheduled this encounter.", + "type":"string" + }, + { + "name":"condition", + "in":"query", + "description":"Reason the encounter takes place (resource).", + "type":"string" + }, + { + "name":"date", + "in":"query", + "description":"A date within the period the Encounter lasted. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"query", + "description":"A date within the period the Encounter lasted. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"episodeofcare", + "in":"query", + "description":"An episode of care that this encounter should be recorded against (EpisodeOfCare).", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"Identifier(s) by which this encounter is known. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"incomingreferral", + "in":"query", + "description":"Incoming Referral Request (ReferralRequest).", + "type":"string" + }, + { + "name":"indication", + "in":"query", + "description":"Reason the encounter takes place (resource).", + "type":"string" + }, + { + "name":"length", + "in":"query", + "description":"Length of encounter in days.", + "type":"integer" + }, + { + "name":"location", + "in":"query", + "description":"Location the encounter takes place (Location).", + "type":"string" + }, + { + "name":"location-period", + "in":"query", + "description":"Time period during which the patient was present at the location. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"location-period", + "in":"query", + "description":"Time period during which the patient was present at the location. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"part-of", + "in":"query", + "description":"Another Encounter this encounter is part of (Encounter).", + "type":"string" + }, + { + "name":"participant", + "in":"query", + "description":"Persons involved in the encounter other than the patient (Practitioner, RelatedPerson).", + "type":"string" + }, + { + "name":"participant-type", + "in":"query", + "description":"Role of participant in encounter. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The patient present at the encounter (Patient).", + "type":"string" + }, + { + "name":"practitioner", + "in":"query", + "description":"Persons involved in the encounter other than the patient (Practitioner).", + "type":"string" + }, + { + "name":"procedure", + "in":"query", + "description":"The patient present at the encounter (Patient).", + "type":"string" + }, + { + "name":"reason", + "in":"query", + "description":"Reason the encounter takes place (code). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"special-arrangement", + "in":"query", + "description":"Wheelchair, translator, stretcher, etc. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"planned | arrived | in-progress | onleave | finished | cancelled. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"type", + "in":"query", + "description":"Specific type of encounter. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"_id", + "in":"formData", + "description":"The logical resource id associated with the Encounter.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"formData", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"formData", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"formData", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"formData", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"formData", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "formData", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "formData", + "description": "Used to search the entire content of the Encounter resource.", + "type": "string" + }, { + "name": "_text", + "in": "formData", + "description": "Used to search on the narrative of the Encounter resource.", + "type": "string" + }, + { + "name":"_include", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"formData", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"formData", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"formData", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"appointment", + "in":"formData", + "description":"The appointment that scheduled this encounter.", + "type":"string" + }, + { + "name":"condition", + "in":"formData", + "description":"Reason the encounter takes place (resource).", + "type":"string" + }, + { + "name":"date", + "in":"formData", + "description":"A date within the period the Encounter lasted. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"formData", + "description":"A date within the period the Encounter lasted. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"episodeofcare", + "in":"formData", + "description":"An episode of care that this encounter should be recorded against (EpisodeOfCare).", + "type":"string" + }, + { + "name":"identifier", + "in":"formData", + "description":"Identifier(s) by which this encounter is known. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"incomingreferral", + "in":"formData", + "description":"Incoming Referral Request (ReferralRequest).", + "type":"string" + }, + { + "name":"indication", + "in":"formData", + "description":"Reason the encounter takes place (resource).", + "type":"string" + }, + { + "name":"length", + "in":"formData", + "description":"Length of encounter in days.", + "type":"integer" + }, + { + "name":"location", + "in":"formData", + "description":"Location the encounter takes place (Location).", + "type":"string" + }, + { + "name":"location-period", + "in":"formData", + "description":"Time period during which the patient was present at the location. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"location-period", + "in":"formData", + "description":"Time period during which the patient was present at the location. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"part-of", + "in":"formData", + "description":"Another Encounter this encounter is part of (Encounter).", + "type":"string" + }, + { + "name":"participant", + "in":"formData", + "description":"Persons involved in the encounter other than the patient (Practitioner, RelatedPerson).", + "type":"string" + }, + { + "name":"participant-type", + "in":"formData", + "description":"Role of participant in encounter. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"patient", + "in":"formData", + "description":"The patient present at the encounter (Patient).", + "type":"string" + }, + { + "name":"practitioner", + "in":"formData", + "description":"Persons involved in the encounter other than the patient (Practitioner).", + "type":"string" + }, + { + "name":"procedure", + "in":"formData", + "description":"The patient present at the encounter (Patient).", + "type":"string" + }, + { + "name":"reason", + "in":"formData", + "description":"Reason the encounter takes place (code). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"special-arrangement", + "in":"formData", + "description":"Wheelchair, translator, stretcher, etc. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"status", + "in":"formData", + "description":"planned | arrived | in-progress | onleave | finished | cancelled. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"type", + "in":"formData", + "description":"Specific type of encounter. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Encounter Bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}":{ + "get":{ + "description":"Returns details of encounters having id given in path.

      FHIR documentation for Encounter.

      ", + "operationId":"Read Encounter", + "security":[ + { + "outhB2C":[ + "patient/Encounter.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Encounter.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Encounter instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for Encounter.

      FHIR documentation for Encounter.

      ", + "operationId":"Encounters Metadata", + "security":[ + { + "outhB2C":[ + "patient/Encounter.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels used for Encounter." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given Encounter.

      FHIR documentation for Encounter.

      ", + "operationId":"Encounter Metadata", + "security":[ + { + "outhB2C":[ + "patient/Encounter.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Encounter.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given version of the Encounter.

      FHIR documentation for Encounter.

      ", + "operationId":"Encounter Version based Metadata", + "security":[ + { + "outhB2C":[ + "patient/Encounter.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Encounter.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of Encounter.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated version of the resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_history":{ + "get":{ + "description":"It retrieves the history of all resources of Encounter.

      FHIR documentation for Encounter.

      ", + "operationId":"Encounters History", + "security":[ + { + "outhB2C":[ + "patient/Encounter.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Encounter instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history":{ + "get":{ + "description":"It retrieves the history of a particular Encounter identified by the given id in path.

      FHIR documentation for Encounter.

      ", + "operationId":"Encounter History", + "security":[ + { + "outhB2C":[ + "patient/Encounter.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"id", + "description":"The logical resource id associated with the Encounter.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Encounter instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}":{ + "get":{ + "description":"This interaction preforms a version specific read of Encounter resource.

      FHIR documentation for Encounter.

      ", + "operationId":"Encounter Version Read", + "security":[ + { + "outhB2C":[ + "patient/Encounter.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Encounter.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of encounter", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Encounter instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/{type}":{ + "get":{ + "description":"Search the specified resource type in Encounter compartment.

      FHIR documentation for Encounter.

      ", + "operationId":"Compartment Search", + "security":[ + { + "outhB2C":[ + "patient/Encounter.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Encounter.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"type", + "description":"Type of Resource", + "type":"string", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Encounter.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Encounter resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Encounter resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"appointment", + "in":"query", + "description":"The appointment that scheduled this encounter.", + "type":"string" + }, + { + "name":"condition", + "in":"query", + "description":"Reason the encounter takes place (resource).", + "type":"string" + }, + { + "name":"date", + "in":"query", + "description":"A date within the period the Encounter lasted. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"query", + "description":"A date within the period the Encounter lasted. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"episodeofcare", + "in":"query", + "description":"An episode of care that this encounter should be recorded against (EpisodeOfCare).", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"Identifier(s) by which this encounter is known. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"incomingreferral", + "in":"query", + "description":"Incoming Referral Request (ReferralRequest).", + "type":"string" + }, + { + "name":"indication", + "in":"query", + "description":"Reason the encounter takes place (resource).", + "type":"string" + }, + { + "name":"length", + "in":"query", + "description":"Length of encounter in days.", + "type":"integer" + }, + { + "name":"location", + "in":"query", + "description":"Location the encounter takes place (Location).", + "type":"string" + }, + { + "name":"location-period", + "in":"query", + "description":"Time period during which the patient was present at the location. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"location-period", + "in":"query", + "description":"Time period during which the patient was present at the location. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"part-of", + "in":"query", + "description":"Another Encounter this encounter is part of (Encounter).", + "type":"string" + }, + { + "name":"participant", + "in":"query", + "description":"Persons involved in the encounter other than the patient (Practitioner, RelatedPerson).", + "type":"string" + }, + { + "name":"participant-type", + "in":"query", + "description":"Role of participant in encounter. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The patient present at the encounter (Patient).", + "type":"string" + }, + { + "name":"practitioner", + "in":"query", + "description":"Persons involved in the encounter other than the patient (Practitioner).", + "type":"string" + }, + { + "name":"procedure", + "in":"query", + "description":"The patient present at the encounter (Patient).", + "type":"string" + }, + { + "name":"reason", + "in":"query", + "description":"Reason the encounter takes place (code). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"special-arrangement", + "in":"query", + "description":"Wheelchair, translator, stretcher, etc. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"planned | arrived | in-progress | onleave | finished | cancelled. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"type", + "in":"query", + "description":"Specific type of encounter. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"The set of resources associated with a particular encounter." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/$everything":{ + "get":{ + "description":"Returns all the information related to a specific Encounter resource.

      FHIR documentation for Encounter.

      ", + "operationId":"Fetch Encounter Record", + "security":[ + { + "outhB2C":[ + "patient/Encounter.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Encounter.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags affixed to the nominated version of the resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + } + }, + "securityDefinitions":{ + "outhB2C":{ + "type":"oauth2", + "description":"Security scheme for B2C flow using authorization code flow.", + "scopes":{ + "patient/Encounter.read":"Read permissions for Encounter demographics." + }, + "flow":"Authorization_code", + "authorizationUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/authorize?scope=patient/Encounter.read&state=uyrjiqa23nv8650ndj", + "tokenUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/accesstoken" + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Immunization-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Immunization-api.json new file mode 100755 index 0000000..8ce87d9 --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Immunization-api.json @@ -0,0 +1,1498 @@ +{ + "swagger":"2.0", + "info":{ + "version":"1.0.0", + "title":"Immunization API", + "description":"FHIR Immunization resource API documentation" + }, + "host":"fhirsandbox-prod.apigee.net", + "basePath":"/fhir/v1/Immunization", + "schemes":[ + "https" + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "security":[ + { + "outhB2C":[ + "patient/Immunization.read" + ] + } + ], + "paths":{ + "":{ + "get":{ + "description":"Returns Immunizations based on filter criteria OR Provides provision for pagination (stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).

      FHIR documentation for Immunization.

      ", + "operationId":"Immunizations Search", + "security":[ + { + "outhB2C":[ + "patient/Immunization.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Immunization.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Immunization resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Immunization resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"date", + "in":"query", + "description":"Vaccination (non)-Administration Date. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"query", + "description":"Vaccination (non)-Administration Date. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"dose-sequence", + "in":"query", + "description":"What dose number within series?", + "type":"number" + }, + { + "name":"identifier", + "in":"query", + "description":"Business identifier. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"location", + "in":"query", + "description":"The service delivery location or facility in which the vaccine was / was to be administered (Location).", + "type":"string" + }, + { + "name":"lot-number", + "in":"query", + "description":"Vaccine Lot Number.", + "type":"string" + }, + { + "name":"manufacturer", + "in":"query", + "description":"Vaccine Manufacturer (Organization).", + "type":"string" + }, + { + "name":"notgiven", + "in":"query", + "description":"Administrations which were not given. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The patient for the vaccination record (Patient).", + "type":"string" + }, + { + "name":"performer", + "in":"query", + "description":"The practitioner who administered the vaccination (Practitioner).", + "type":"string" + }, + { + "name":"reaction", + "in":"query", + "description":"Additional information on reaction (Observation).", + "type":"string" + }, + { + "name":"reaction-date", + "in":"query", + "description":"When did reaction start? The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"reaction-date", + "in":"query", + "description":"When did reaction start? The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"reason", + "in":"query", + "description":"Why immunization occurred. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"reason-not-given", + "in":"query", + "description":"Explanation of reason vaccination was not administered. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"requester", + "in":"query", + "description":"The practitioner who ordered the vaccination (Practitioner).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"Immunization event status. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"vaccine-code", + "in":"query", + "description":"Vaccine Product Administered. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"stateid", + "in":"query", + "description":"Unique id associated with a page.", + "type":"string" + }, + { + "name":"page", + "in":"query", + "description":"Immunization resource offset.", + "type":"number" + }, + { + "name":"page_size", + "in":"query", + "description":"The number of Immunization resources requested in a page.", + "type":"number" + }, + { + "name":"_pretty", + "in":"query", + "description":"Set true to get prettified data.", + "type":"boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + } + ], + "responses":{ + "200":{ + "description":"Immunization bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_search":{ + "post":{ + "description":"This interaction searches a set of Immunizations based on some filter criteria. Search interactions take a series of parameters of name'='value pairs encoded as an application/x-www-form-urlencoded submission for a POST.

      FHIR documentation for Immunization.

      ", + "operationId":"Immunizations Search using POST", + "security":[ + { + "outhB2C":[ + "patient/Immunization.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Content-Type", + "in":"header", + "required":true, + "description":"Specifies the format of data in body", + "type":"string", + "default":"application/x-www-form-urlencoded" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Immunization.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Immunization resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Immunization resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"date", + "in":"query", + "description":"Vaccination (non)-Administration Date. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"query", + "description":"Vaccination (non)-Administration Date. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"dose-sequence", + "in":"query", + "description":"What dose number within series?", + "type":"number" + }, + { + "name":"identifier", + "in":"query", + "description":"Business identifier. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"location", + "in":"query", + "description":"The service delivery location or facility in which the vaccine was / was to be administered (Location).", + "type":"string" + }, + { + "name":"lot-number", + "in":"query", + "description":"Vaccine Lot Number.", + "type":"string" + }, + { + "name":"manufacturer", + "in":"query", + "description":"Vaccine Manufacturer (Organization).", + "type":"string" + }, + { + "name":"notgiven", + "in":"query", + "description":"Administrations which were not given. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The patient for the vaccination record (Patient).", + "type":"string" + }, + { + "name":"performer", + "in":"query", + "description":"The practitioner who administered the vaccination (Practitioner).", + "type":"string" + }, + { + "name":"reaction", + "in":"query", + "description":"Additional information on reaction (Observation).", + "type":"string" + }, + { + "name":"reaction-date", + "in":"query", + "description":"When did reaction start? The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"reaction-date", + "in":"query", + "description":"When did reaction start? The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"reason", + "in":"query", + "description":"Why immunization occurred. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"reason-not-given", + "in":"query", + "description":"Explanation of reason vaccination was not administered. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"requester", + "in":"query", + "description":"The practitioner who ordered the vaccination (Practitioner).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"Immunization event status. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"vaccine-code", + "in":"query", + "description":"Vaccine Product Administered. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"_id", + "in":"formData", + "description":"The logical resource id associated with the Immunization.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"formData", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"formData", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"formData", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"formData", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"formData", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "formData", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "formData", + "description": "Used to search the entire content of the Immunization resource.", + "type": "string" + }, { + "name": "_text", + "in": "formData", + "description": "Used to search on the narrative of the Immunization resource.", + "type": "string" + }, + { + "name":"_include", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"formData", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"formData", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"formData", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"date", + "in":"formData", + "description":"Vaccination (non)-Administration Date. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"formData", + "description":"Vaccination (non)-Administration Date. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"dose-sequence", + "in":"formData", + "description":"What dose number within series?", + "type":"number" + }, + { + "name":"identifier", + "in":"formData", + "description":"Business identifier. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"location", + "in":"formData", + "description":"The service delivery location or facility in which the vaccine was / was to be administered (Location).", + "type":"string" + }, + { + "name":"lot-number", + "in":"formData", + "description":"Vaccine Lot Number.", + "type":"string" + }, + { + "name":"manufacturer", + "in":"formData", + "description":"Vaccine Manufacturer (Organization).", + "type":"string" + }, + { + "name":"notgiven", + "in":"formData", + "description":"Administrations which were not given. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"patient", + "in":"formData", + "description":"The patient for the vaccination record (Patient).", + "type":"string" + }, + { + "name":"performer", + "in":"formData", + "description":"The practitioner who administered the vaccination (Practitioner).", + "type":"string" + }, + { + "name":"reaction", + "in":"formData", + "description":"Additional information on reaction (Observation).", + "type":"string" + }, + { + "name":"reaction-date", + "in":"formData", + "description":"When did reaction start? The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"reaction-date", + "in":"formData", + "description":"When did reaction start? The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"reason", + "in":"formData", + "description":"Why immunization occurred. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"reason-not-given", + "in":"formData", + "description":"Explanation of reason vaccination was not administered. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"requester", + "in":"formData", + "description":"The practitioner who ordered the vaccination (Practitioner).", + "type":"string" + }, + { + "name":"status", + "in":"formData", + "description":"Immunization event status. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"vaccine-code", + "in":"formData", + "description":"Vaccine Product Administered. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Immunization Bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}":{ + "get":{ + "description":"Returns details of Immunization having id given in path.

      FHIR documentation for Immunization.

      ", + "operationId":"Read Immunization", + "security":[ + { + "outhB2C":[ + "patient/Immunization.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Immunization.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Immunization instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for Immunization.

      FHIR documentation for Immunization.

      ", + "operationId":"Immunizations Metadata", + "security":[ + { + "outhB2C":[ + "patient/Immunization.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels used for Immunization." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given Immunization.

      FHIR documentation for Immunization.

      ", + "operationId":"Immunization Metadata", + "security":[ + { + "outhB2C":[ + "patient/Immunization.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Immunization.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given version of the Immunization.

      FHIR documentation for Immunization.

      ", + "operationId":"Immunization Version based Metadata", + "security":[ + { + "outhB2C":[ + "patient/Immunization.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Immunization.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of immunization", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated version of the resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_history":{ + "get":{ + "description":"It retrieves the history of all resources of Immunization.

      FHIR documentation for Immunization.

      ", + "operationId":"Immunizations History", + "security":[ + { + "outhB2C":[ + "patient/Immunization.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Immunization instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history":{ + "get":{ + "description":"It retrieves the history of a particular Immunization identified by the given id in path.

      FHIR documentation for Immunization.

      ", + "operationId":"Immunization History", + "security":[ + { + "outhB2C":[ + "patient/Immunization.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"id", + "description":"The logical resource id associated with the Immunization.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Immunization instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}":{ + "get":{ + "description":"This interaction preforms a version specific read of Immunization resource.

      FHIR documentation for Immunization.

      ", + "operationId":"Immunization Version Read", + "security":[ + { + "outhB2C":[ + "patient/Immunization.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Immunization.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of Immunization", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Immunization instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/{type}":{ + "get":{ + "description":"Search the specified resource type in Immunization compartment.

      FHIR documentation for Immunization.

      ", + "operationId":"Compartment Search", + "security":[ + { + "outhB2C":[ + "patient/Immunization.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Immunization.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"type", + "description":"Type of Resource", + "type":"string", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Immunization.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Immunization resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Immunization resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"date", + "in":"query", + "description":"Vaccination (non)-Administration Date. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"query", + "description":"Vaccination (non)-Administration Date. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"dose-sequence", + "in":"query", + "description":"What dose number within series?", + "type":"number" + }, + { + "name":"identifier", + "in":"query", + "description":"Business identifier. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"location", + "in":"query", + "description":"The service delivery location or facility in which the vaccine was / was to be administered (Location).", + "type":"string" + }, + { + "name":"lot-number", + "in":"query", + "description":"Vaccine Lot Number.", + "type":"string" + }, + { + "name":"manufacturer", + "in":"query", + "description":"Vaccine Manufacturer (Organization).", + "type":"string" + }, + { + "name":"notgiven", + "in":"query", + "description":"Administrations which were not given. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The patient for the vaccination record (Patient).", + "type":"string" + }, + { + "name":"performer", + "in":"query", + "description":"The practitioner who administered the vaccination (Practitioner).", + "type":"string" + }, + { + "name":"reaction", + "in":"query", + "description":"Additional information on reaction (Observation).", + "type":"string" + }, + { + "name":"reaction-date", + "in":"query", + "description":"When did reaction start? The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"reaction-date", + "in":"query", + "description":"When did reaction start? The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"reason", + "in":"query", + "description":"Why immunization occurred. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"reason-not-given", + "in":"query", + "description":"Explanation of reason vaccination was not administered. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"requester", + "in":"query", + "description":"The practitioner who ordered the vaccination (Practitioner).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"Immunization event status. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"vaccine-code", + "in":"query", + "description":"Vaccine Product Administered. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"The set of resources associated with a particular Immunization." + }, + "default":{ + "description":"unexpected error" + } + } + } + } + }, + "securityDefinitions":{ + "outhB2C":{ + "type":"oauth2", + "description":"Security scheme for B2C flow using authorization code flow.", + "scopes":{ + "patient/Immunization.read":"Read permissions for Immunization demographics." + }, + "flow":"Authorization_code", + "authorizationUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/authorize?scope=patient/Immunization.read&state=uyrjiqa23nv8650ndj", + "tokenUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/accesstoken" + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/MedicationAdministration-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/MedicationAdministration-api.json new file mode 100755 index 0000000..4ab29da --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/MedicationAdministration-api.json @@ -0,0 +1,1346 @@ +{ + "swagger":"2.0", + "info":{ + "version":"1.0.0", + "title":"MedicationAdministration API", + "description":"FHIR MedicationAdministration resource API documentation" + }, + "host":"fhirsandbox-prod.apigee.net", + "basePath":"/fhir/v1/MedicationAdministration", + "schemes":[ + "https" + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "security":[ + { + "outhB2C":[ + "patient/Medicationadministration.read" + ] + } + ], + "paths":{ + "":{ + "get":{ + "description":"Returns MedicationAdministrations based on filter criteria OR Provides provision for pagination (stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).

      FHIR documentation for MedicationAdministration.

      ", + "operationId":"MedicationAdministrations Search", + "security":[ + { + "outhB2C":[ + "patient/Medicationadministration.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the MedicationAdministration.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select MedicationAdministrations based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select MedicationAdministration based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the MedicationAdministration. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the MedicationAdministration. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the MedicationAdministration. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of MedicationAdministrations that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the MedicationAdministration resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the MedicationAdministration resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular MedicationAdministration, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes i.e. MedicationAdministration 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular MedicationAdministration, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"Return administrations of this medication code. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"device", + "in":"query", + "description":"Return administrations with this administration device identity (Device).", + "type":"string" + }, + { + "name":"effectivetime", + "in":"query", + "description":"Date administration happened (or did not happen). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"effectivetime", + "in":"query", + "description":"Date administration happened (or did not happen). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"encounter", + "in":"query", + "description":"Return administrations that share this encounter (Encounter).", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"Return administrations with this external identity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"medication", + "in":"query", + "description":"Return administrations of this medication (Medication).", + "type":"string" + }, + { + "name":"notgiven", + "in":"query", + "description":"Administrations that were not made. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The identity of a patient to list administrations for (Patient).", + "type":"string" + }, + { + "name":"practitioner", + "in":"query", + "description":"Who administered substance (Practitioner)?", + "type":"string" + }, + { + "name":"prescription", + "in":"query", + "description":"The identity of a prescription to list administrations from (MedicationPrescription).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"MedicationAdministration event status (for example one of active/paused/completed/nullified). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"stateid", + "in":"query", + "description":"Unique id associated with a page.", + "type":"string" + }, + { + "name":"page", + "in":"query", + "description":"MedicationAdministration resource offset.", + "type":"number" + }, + { + "name":"page_size", + "in":"query", + "description":"The number of MedicationAdministration resources requested in a page.", + "type":"number" + }, + { + "name":"_pretty", + "in":"query", + "description":"Set true to get prettified data.", + "type":"boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + } + ], + "responses":{ + "200":{ + "description":"MedicationAdministration bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_search":{ + "post":{ + "description":"This interaction searches a set of MedicationAdministrations based on some filter criteria. Search interactions take a series of parameters of name'='value pairs encoded as an application/x-www-form-urlencoded submission for a POST.

      FHIR documentation for MedicationAdministration.

      ", + "operationId":"MedicationAdministrations Search using POST", + "security":[ + { + "outhB2C":[ + "patient/Medicationadministration.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Content-Type", + "in":"header", + "required":true, + "description":"Specifies the format of data in body", + "type":"string", + "default":"application/x-www-form-urlencoded" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the MedicationAdministration.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the MedicationAdministration resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the MedicationAdministration resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"Return administrations of this medication code. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"device", + "in":"query", + "description":"Return administrations with this administration device identity (Device).", + "type":"string" + }, + { + "name":"effectivetime", + "in":"query", + "description":"Date administration happened (or did not happen). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"effectivetime", + "in":"query", + "description":"Date administration happened (or did not happen). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"encounter", + "in":"query", + "description":"Return administrations that share this encounter (Encounter).", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"Return administrations with this external identity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"medication", + "in":"query", + "description":"Return administrations of this medication (Medication).", + "type":"string" + }, + { + "name":"notgiven", + "in":"query", + "description":"Administrations that were not made. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The identity of a patient to list administrations for (Patient).", + "type":"string" + }, + { + "name":"practitioner", + "in":"query", + "description":"Who administered substance (Practitioner)?", + "type":"string" + }, + { + "name":"prescription", + "in":"query", + "description":"The identity of a prescription to list administrations from (MedicationPrescription).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"MedicationAdministration event status (for example one of active/paused/completed/nullified). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"_id", + "in":"formData", + "description":"The logical resource id associated with the MedicationAdministration.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"formData", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"formData", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"formData", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"formData", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"formData", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "formData", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "formData", + "description": "Used to search the entire content of the MedicationAdministration resource.", + "type": "string" + }, { + "name": "_text", + "in": "formData", + "description": "Used to search on the narrative of the MedicationAdministration resource.", + "type": "string" + }, + { + "name":"_include", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"formData", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"formData", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"formData", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"code", + "in":"formData", + "description":"Return administrations of this medication code. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"device", + "in":"formData", + "description":"Return administrations with this administration device identity (Device).", + "type":"string" + }, + { + "name":"effectivetime", + "in":"formData", + "description":"Date administration happened (or did not happen). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"effectivetime", + "in":"formData", + "description":"Date administration happened (or did not happen). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"encounter", + "in":"formData", + "description":"Return administrations that share this encounter (Encounter).", + "type":"string" + }, + { + "name":"identifier", + "in":"formData", + "description":"Return administrations with this external identity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"medication", + "in":"formData", + "description":"Return administrations of this medication (Medication).", + "type":"string" + }, + { + "name":"notgiven", + "in":"formData", + "description":"Administrations that were not made. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"patient", + "in":"formData", + "description":"The identity of a patient to list administrations for (Patient).", + "type":"string" + }, + { + "name":"practitioner", + "in":"formData", + "description":"Who administered substance (Practitioner)?", + "type":"string" + }, + { + "name":"prescription", + "in":"formData", + "description":"The identity of a prescription to list administrations from (MedicationPrescription).", + "type":"string" + }, + { + "name":"status", + "in":"formData", + "description":"MedicationAdministration event status (for example one of active/paused/completed/nullified). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationAdministration Bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}":{ + "get":{ + "description":"Returns details of MedicationAdministration having id given in path.

      FHIR documentation for MedicationAdministration.

      ", + "operationId":"Read MedicationAdministration", + "security":[ + { + "outhB2C":[ + "patient/Medicationadministration.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationAdministration.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationAdministration instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for MedicationAdministration.

      FHIR documentation for MedicationAdministration.

      ", + "operationId":"MedicationAdministrations Metadata", + "security":[ + { + "outhB2C":[ + "patient/Medicationadministration.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels used for MedicationAdministration." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given MedicationAdministration.

      FHIR documentation for MedicationAdministration.

      ", + "operationId":"MedicationAdministration Metadata", + "security":[ + { + "outhB2C":[ + "patient/Medicationadministration.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationAdministration.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given version of the MedicationAdministration.

      FHIR documentation for MedicationAdministration.

      ", + "operationId":"MedicationAdministration Version based Metadata", + "security":[ + { + "outhB2C":[ + "patient/Medicationadministration.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationAdministration.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of MedicationAdministration.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated version of the resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_history":{ + "get":{ + "description":"It retrieves the history of all resources of MedicationAdministration.

      FHIR documentation for MedicationAdministration.

      ", + "operationId":"MedicationAdministrations History", + "security":[ + { + "outhB2C":[ + "patient/Medicationadministration.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationAdministration instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history":{ + "get":{ + "description":"It retrieves the history of a particular MedicationAdministration identified by the given id in path.

      FHIR documentation for MedicationAdministration.

      ", + "operationId":"MedicationAdministration History", + "security":[ + { + "outhB2C":[ + "patient/Medicationadministration.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationAdministration.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationAdministration instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}":{ + "get":{ + "description":"This interaction preforms a version specific read of MedicationAdministration resource.

      FHIR documentation for MedicationAdministration.

      ", + "operationId":"MedicationAdministration Version Read", + "security":[ + { + "outhB2C":[ + "patient/Medicationadministration.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationAdministration.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of MedicationAdministration", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationAdministration instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/{type}":{ + "get":{ + "description":"Search the specified resource type in MedicationAdministration compartment.

      FHIR documentation for MedicationAdministration.

      ", + "operationId":"Compartment Search", + "security":[ + { + "outhB2C":[ + "patient/Medicationadministration.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationAdministration.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"type", + "description":"Type of Resource", + "type":"string", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the MedicationAdministration.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the MedicationAdministration resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the MedicationAdministration resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"Return administrations of this medication code. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"device", + "in":"query", + "description":"Return administrations with this administration device identity (Device).", + "type":"string" + }, + { + "name":"effectivetime", + "in":"query", + "description":"Date administration happened (or did not happen). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"effectivetime", + "in":"query", + "description":"Date administration happened (or did not happen). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"encounter", + "in":"query", + "description":"Return administrations that share this encounter (Encounter).", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"Return administrations with this external identity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"medication", + "in":"query", + "description":"Return administrations of this medication (Medication).", + "type":"string" + }, + { + "name":"notgiven", + "in":"query", + "description":"Administrations that were not made. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The identity of a patient to list administrations for (Patient).", + "type":"string" + }, + { + "name":"practitioner", + "in":"query", + "description":"Who administered substance (Practitioner)?", + "type":"string" + }, + { + "name":"prescription", + "in":"query", + "description":"The identity of a prescription to list administrations from (MedicationPrescription).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"MedicationAdministration event status (for example one of active/paused/completed/nullified). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"The set of resources associated with a particular MedicationAdministration." + }, + "default":{ + "description":"unexpected error" + } + } + } + } + }, + "securityDefinitions":{ + "outhB2C":{ + "type":"oauth2", + "description":"Security scheme for B2C flow using authorization code flow.", + "scopes":{ + "patient/Medicationadministration.read":"Read permissions for MedicationAdministration demographics." + }, + "flow":"Authorization_code", + "authorizationUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/authorize?scope=patient/Medicationadministration.read&state=uyrjiqa23nv8650ndj", + "tokenUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/accesstoken" + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/MedicationDispense-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/MedicationDispense-api.json new file mode 100755 index 0000000..dc3ae0f --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/MedicationDispense-api.json @@ -0,0 +1,1426 @@ +{ + "swagger":"2.0", + "info":{ + "version":"1.0.0", + "title":"MedicationDispense API", + "description":"FHIR MedicationDispense resource API documentation" + }, + "host":"fhirsandbox-prod.apigee.net", + "basePath":"/fhir/v1/MedicationDispense", + "schemes":[ + "https" + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "security":[ + { + "outhB2C":[ + "patient/Medicationdispense.read" + ] + } + ], + "paths":{ + "":{ + "get":{ + "description":"Returns MedicationDispenses based on filter criteria OR Provides provision for pagination (stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).

      FHIR documentation for MedicationDispense.

      ", + "operationId":"MedicationDispenses Search", + "security":[ + { + "outhB2C":[ + "patient/Medicationdispense.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the MedicationDispense.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the MedicationDispense resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the MedicationDispense resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"Returns dispenses of this medicine code. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"destination", + "in":"query", + "description":"Return dispenses that should be sent to a specific destination (Location).", + "type":"string" + }, + { + "name":"dispenser", + "in":"query", + "description":"Return all dispenses performed by a specific individual (Practitioner).", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"Return dispenses with this external identity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"medication", + "in":"query", + "description":"Returns dispenses of this medicine (Medication).", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The identity of a patient to list dispenses for (Patient).", + "type":"string" + }, + { + "name":"prescription", + "in":"query", + "description":"The identity of a prescription to list dispenses from (MedicationPrescription).", + "type":"string" + }, + { + "name":"receiver", + "in":"query", + "description":"Who collected the medication (Patient, Practitioner).", + "type":"string" + }, + { + "name":"responsibleparty", + "in":"query", + "description":"Return all dispenses with the specified responsible party (Practitioner).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"Status of the dispense. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"type", + "in":"query", + "description":"Return all dispenses of a specific type. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"whenhandedover", + "in":"query", + "description":"Date when medication handed over to patient (outpatient setting), or supplied to ward or clinic (inpatient setting). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"whenhandedover", + "in":"query", + "description":"Date when medication handed over to patient (outpatient setting), or supplied to ward or clinic (inpatient setting). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"whenprepared", + "in":"query", + "description":"Date when medication prepared. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"whenprepared", + "in":"query", + "description":"Date when medication prepared. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"stateid", + "in":"query", + "description":"Unique id associated with a page.", + "type":"string" + }, + { + "name":"page", + "in":"query", + "description":"MedicationDispense resource offset.", + "type":"number" + }, + { + "name":"page_size", + "in":"query", + "description":"The number of MedicationDispense resources requested in a page.", + "type":"number" + }, + { + "name":"_pretty", + "in":"query", + "description":"Set true to get prettified data.", + "type":"boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + } + ], + "responses":{ + "200":{ + "description":"MedicationDispense bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_search":{ + "post":{ + "description":"This interaction searches a set of MedicationDispenses based on some filter criteria. Search interactions take a series of parameters of name'='value pairs encoded as an application/x-www-form-urlencoded submission for a POST.

      FHIR documentation for MedicationDispense.

      ", + "operationId":"MedicationDispenses Search using POST", + "security":[ + { + "outhB2C":[ + "patient/Medicationdispense.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Content-Type", + "in":"header", + "required":true, + "description":"Specifies the format of data in body", + "type":"string", + "default":"application/x-www-form-urlencoded" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the MedicationDispense.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the MedicationDispense resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the MedicationDispense resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"Returns dispenses of this medicine code. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"destination", + "in":"query", + "description":"Return dispenses that should be sent to a specific destination (Location).", + "type":"string" + }, + { + "name":"dispenser", + "in":"query", + "description":"Return all dispenses performed by a specific individual (Practitioner).", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"Return dispenses with this external identity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"medication", + "in":"query", + "description":"Returns dispenses of this medicine (Medication).", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The identity of a patient to list dispenses for (Patient).", + "type":"string" + }, + { + "name":"prescription", + "in":"query", + "description":"The identity of a prescription to list dispenses from (MedicationPrescription).", + "type":"string" + }, + { + "name":"receiver", + "in":"query", + "description":"Who collected the medication (Patient, Practitioner).", + "type":"string" + }, + { + "name":"responsibleparty", + "in":"query", + "description":"Return all dispenses with the specified responsible party (Practitioner).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"Status of the dispense. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"type", + "in":"query", + "description":"Return all dispenses of a specific type. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"whenhandedover", + "in":"query", + "description":"Date when medication handed over to patient (outpatient setting), or supplied to ward or clinic (inpatient setting). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"whenhandedover", + "in":"query", + "description":"Date when medication handed over to patient (outpatient setting), or supplied to ward or clinic (inpatient setting). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"whenprepared", + "in":"query", + "description":"Date when medication prepared. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"whenprepared", + "in":"query", + "description":"Date when medication prepared. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_id", + "in":"formData", + "description":"The logical resource id associated with the MedicationDispense.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"formData", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"formData", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"formData", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"formData", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"formData", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "formData", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "formData", + "description": "Used to search the entire content of the MedicationDispense resource.", + "type": "string" + }, { + "name": "_text", + "in": "formData", + "description": "Used to search on the narrative of the MedicationDispense resource.", + "type": "string" + }, + { + "name":"_include", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"formData", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"formData", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"formData", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"code", + "in":"formData", + "description":"Returns dispenses of this medicine code. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"destination", + "in":"formData", + "description":"Return dispenses that should be sent to a specific destination (Location).", + "type":"string" + }, + { + "name":"dispenser", + "in":"formData", + "description":"Return all dispenses performed by a specific individual (Practitioner).", + "type":"string" + }, + { + "name":"identifier", + "in":"formData", + "description":"Return dispenses with this external identity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"medication", + "in":"formData", + "description":"Returns dispenses of this medicine (Medication).", + "type":"string" + }, + { + "name":"patient", + "in":"formData", + "description":"The identity of a patient to list dispenses for (Patient).", + "type":"string" + }, + { + "name":"prescription", + "in":"formData", + "description":"The identity of a prescription to list dispenses from (MedicationPrescription).", + "type":"string" + }, + { + "name":"receiver", + "in":"formData", + "description":"Who collected the medication (Patient, Practitioner).", + "type":"string" + }, + { + "name":"responsibleparty", + "in":"formData", + "description":"Return all dispenses with the specified responsible party (Practitioner).", + "type":"string" + }, + { + "name":"status", + "in":"formData", + "description":"Status of the dispense. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"type", + "in":"formData", + "description":"Return all dispenses of a specific type. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"whenhandedover", + "in":"formData", + "description":"Date when medication handed over to patient (outpatient setting), or supplied to ward or clinic (inpatient setting). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"whenhandedover", + "in":"formData", + "description":"Date when medication handed over to patient (outpatient setting), or supplied to ward or clinic (inpatient setting). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"whenprepared", + "in":"formData", + "description":"Date when medication prepared. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"whenprepared", + "in":"formData", + "description":"Date when medication prepared. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + } + ], + "responses":{ + "200":{ + "description":"MedicationDispense Bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}":{ + "get":{ + "description":"Returns details of MedicationDispense having id given in path.

      FHIR documentation for MedicationDispense.

      ", + "operationId":"Read MedicationDispense", + "security":[ + { + "outhB2C":[ + "patient/Medicationdispense.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationDispense.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationDispense instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for MedicationDispense.

      FHIR documentation for MedicationDispense.

      ", + "operationId":"MedicationDispenses Metadata", + "security":[ + { + "outhB2C":[ + "patient/Medicationdispense.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels used for MedicationDispense." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given MedicationDispense.

      FHIR documentation for MedicationDispense.

      ", + "operationId":"MedicationDispense Metadata", + "security":[ + { + "outhB2C":[ + "patient/Medicationdispense.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationDispense.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given version of the MedicationDispense.

      FHIR documentation for MedicationDispense.

      ", + "operationId":"MedicationDispense Version based Metadata", + "security":[ + { + "outhB2C":[ + "patient/Medicationdispense.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationDispense.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of MedicationDispense.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated version of the resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_history":{ + "get":{ + "description":"It retrieves the history of all resources of MedicationDispense.

      FHIR documentation for MedicationDispense.

      ", + "operationId":"MedicationDispenses History", + "security":[ + { + "outhB2C":[ + "patient/Medicationdispense.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationDispense instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history":{ + "get":{ + "description":"It retrieves the history of a particular MedicationDispense identified by the given id in path.

      FHIR documentation for MedicationDispense.

      ", + "operationId":"MedicationDispense History", + "security":[ + { + "outhB2C":[ + "patient/Medicationdispense.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationDispense.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationDispense instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}":{ + "get":{ + "description":"This interaction preforms a version specific read of MedicationDispense resource.

      FHIR documentation for MedicationDispense.

      ", + "operationId":"MedicationDispense Version Read", + "security":[ + { + "outhB2C":[ + "patient/Medicationdispense.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationDispense.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of MedicationDispense", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationDispense instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/{type}":{ + "get":{ + "description":"Search the specified resource type in MedicationDispense compartment.

      FHIR documentation for MedicationDispense.

      ", + "operationId":"Compartment Search", + "security":[ + { + "outhB2C":[ + "patient/Medicationdispense.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationDispense.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"type", + "description":"Type of Resource", + "type":"string", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the MedicationDispense.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the MedicationDispense resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the MedicationDispense resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"Returns dispenses of this medicine code. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"destination", + "in":"query", + "description":"Return dispenses that should be sent to a specific destination (Location).", + "type":"string" + }, + { + "name":"dispenser", + "in":"query", + "description":"Return all dispenses performed by a specific individual (Practitioner).", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"Return dispenses with this external identity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"medication", + "in":"query", + "description":"Returns dispenses of this medicine (Medication).", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The identity of a patient to list dispenses for (Patient).", + "type":"string" + }, + { + "name":"prescription", + "in":"query", + "description":"The identity of a prescription to list dispenses from (MedicationPrescription).", + "type":"string" + }, + { + "name":"receiver", + "in":"query", + "description":"Who collected the medication (Patient, Practitioner).", + "type":"string" + }, + { + "name":"responsibleparty", + "in":"query", + "description":"Return all dispenses with the specified responsible party (Practitioner).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"Status of the dispense. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"type", + "in":"query", + "description":"Return all dispenses of a specific type. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"whenhandedover", + "in":"query", + "description":"Date when medication handed over to patient (outpatient setting), or supplied to ward or clinic (inpatient setting). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"whenhandedover", + "in":"query", + "description":"Date when medication handed over to patient (outpatient setting), or supplied to ward or clinic (inpatient setting). The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"whenprepared", + "in":"query", + "description":"Date when medication prepared. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"whenprepared", + "in":"query", + "description":"Date when medication prepared. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + } + ], + "responses":{ + "200":{ + "description":"The set of resources associated with a particular MedicationDispense." + }, + "default":{ + "description":"unexpected error" + } + } + } + } + }, + "securityDefinitions":{ + "outhB2C":{ + "type":"oauth2", + "description":"Security scheme for B2C flow using authorization code flow.", + "scopes":{ + "patient/Medicationdispense.read":"Read permissions for MedicationDispense demographics." + }, + "flow":"Authorization_code", + "authorizationUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/authorize?scope=patient/Medicationdispense.read&state=uyrjiqa23nv8650ndj", + "tokenUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/accesstoken" + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/MedicationOrder-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/MedicationOrder-api.json new file mode 100755 index 0000000..90f3e1e --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/MedicationOrder-api.json @@ -0,0 +1,1274 @@ +{ + "swagger":"2.0", + "info":{ + "version":"1.0.0", + "title":"MedicationOrder API", + "description":"FHIR MedicationOrder resource API documentation" + }, + "host":"fhirsandbox-prod.apigee.net", + "basePath":"/fhir/v1/MedicationOrder", + "schemes":[ + "https" + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "security":[ + { + "outhB2C":[ + "patient/Medicationorder.read" + ] + } + ], + "paths":{ + "":{ + "get":{ + "description":"Returns MedicationOrder based on filter criteria OR Provides provision for pagination (stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).

      FHIR documentation for MedicationOrder.

      ", + "operationId":"MedicationOrders Search", + "security":[ + { + "outhB2C":[ + "patient/Medicationorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "in":"header", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the MedicationOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the MedicationOrder resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the MedicationOrder resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"Return administrations of this medication code. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"datewritten", + "in":"query", + "description":"Return prescriptions written on this date. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"datewritten", + "in":"query", + "description":"Return prescriptions written on this date. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"encounter", + "in":"query", + "description":"Return prescriptions with this encounter identity (Encounter).", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"Return prescriptions with this external identity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"medication", + "in":"query", + "description":"Code for medicine or text in medicine name (Medication).", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The identity of a patient to list dispenses for (Patient).", + "type":"string" + }, + { + "name":"prescriber", + "in":"query", + "description":"Who ordered the medication(s) (Practitioner).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"Status of the prescription. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"stateid", + "in":"query", + "description":"Unique id associated with a page.", + "type":"string" + }, + { + "name":"page", + "in":"query", + "description":"MedicationOrder resource offset.", + "type":"number" + }, + { + "name":"page_size", + "in":"query", + "description":"The number of MedicationOrder resources requested in a page.", + "type":"number" + }, + { + "name":"_pretty", + "in":"query", + "description":"Set true to get prettified data.", + "type":"boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + } + ], + "responses":{ + "200":{ + "description":"MedicationOrder bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_search":{ + "post":{ + "description":"This interaction searches a set of MedicationOrders based on some filter criteria. Search interactions take a series of parameters of name'='value pairs encoded as an application/x-www-form-urlencoded submission for a POST.

      FHIR documentation for MedicationOrder.

      ", + "operationId":"MedicationOrders Search using POST", + "security":[ + { + "outhB2C":[ + "patient/Medicationorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Content-Type", + "in":"header", + "required":true, + "description":"Specifies the format of data in body", + "type":"string", + "default":"application/x-www-form-urlencoded" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the MedicationOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the MedicationOrder resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the MedicationOrder resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"Return administrations of this medication code. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"datewritten", + "in":"query", + "description":"Return prescriptions written on this date. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"datewritten", + "in":"query", + "description":"Return prescriptions written on this date. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"encounter", + "in":"query", + "description":"Return prescriptions with this encounter identity (Encounter).", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"Return prescriptions with this external identity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"medication", + "in":"query", + "description":"Code for medicine or text in medicine name (Medication).", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The identity of a patient to list dispenses for (Patient).", + "type":"string" + }, + { + "name":"prescriber", + "in":"query", + "description":"Who ordered the medication(s) (Practitioner).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"Status of the prescription. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"_id", + "in":"formData", + "description":"The logical resource id associated with the MedicationOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"formData", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"formData", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"formData", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"formData", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"formData", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "formData", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "formData", + "description": "Used to search the entire content of the MedicationOrder resource.", + "type": "string" + }, { + "name": "_text", + "in": "formData", + "description": "Used to search on the narrative of the MedicationOrder resource.", + "type": "string" + }, + { + "name":"_include", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"formData", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"formData", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"formData", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"code", + "in":"formData", + "description":"Return administrations of this medication code. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"datewritten", + "in":"formData", + "description":"Return prescriptions written on this date. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"datewritten", + "in":"formData", + "description":"Return prescriptions written on this date. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"encounter", + "in":"formData", + "description":"Return prescriptions with this encounter identity (Encounter).", + "type":"string" + }, + { + "name":"identifier", + "in":"formData", + "description":"Return prescriptions with this external identity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"medication", + "in":"formData", + "description":"Code for medicine or text in medicine name (Medication).", + "type":"string" + }, + { + "name":"patient", + "in":"formData", + "description":"The identity of a patient to list dispenses for (Patient).", + "type":"string" + }, + { + "name":"prescriber", + "in":"formData", + "description":"Who ordered the medication(s) (Practitioner).", + "type":"string" + }, + { + "name":"status", + "in":"formData", + "description":"Status of the prescription. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationOrder Bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}":{ + "get":{ + "description":"Returns details of MedicationOrder having id given in path.

      FHIR documentation for MedicationOrder.

      ", + "operationId":"Read MedicationOrder", + "security":[ + { + "outhB2C":[ + "patient/Medicationorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationOrder instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for MedicationOrder.

      FHIR documentation for MedicationOrder.

      ", + "operationId":"MedicationOrders Metadata", + "security":[ + { + "outhB2C":[ + "patient/Medicationorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels used for MedicationOrder." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given MedicationOrder.

      FHIR documentation for MedicationOrder.

      ", + "operationId":"MedicationOrder Metadata", + "security":[ + { + "outhB2C":[ + "patient/Medicationorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given version of the MedicationOrder.

      FHIR documentation for MedicationOrder.

      ", + "operationId":"MedicationOrder Version based Metadata", + "security":[ + { + "outhB2C":[ + "patient/Medicationorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of patient", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated version of the resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_history":{ + "get":{ + "description":"It retrieves the history of all resources of MedicationOrder.

      FHIR documentation for MedicationOrder.

      ", + "operationId":"MedicationOrders History", + "security":[ + { + "outhB2C":[ + "patient/Medicationorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationOrder instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history":{ + "get":{ + "description":"It retrieves the history of a particular MedicationOrder identified by the given id in path.

      FHIR documentation for MedicationOrder.

      ", + "operationId":"MedicationOrder History", + "security":[ + { + "outhB2C":[ + "patient/Medicationorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationOrder instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}":{ + "get":{ + "description":"This interaction preforms a version specific read of MedicationOrder resource.

      FHIR documentation for MedicationOrder.

      ", + "operationId":"MedicationOrder Version Read", + "security":[ + { + "outhB2C":[ + "patient/Medicationorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of MedicationOrder", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationOrder instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/{type}":{ + "get":{ + "description":"Search the specified resource type in MedicationOrder compartment.

      FHIR documentation for MedicationOrder.

      ", + "operationId":"Compartment Search", + "security":[ + { + "outhB2C":[ + "patient/Medicationorder.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"type", + "description":"Type of Resource", + "type":"string", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the MedicationOrder.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the MedicationOrder resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the MedicationOrder resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"Return administrations of this medication code. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"datewritten", + "in":"query", + "description":"Return prescriptions written on this date. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"datewritten", + "in":"query", + "description":"Return prescriptions written on this date. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"encounter", + "in":"query", + "description":"Return prescriptions with this encounter identity (Encounter).", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"Return prescriptions with this external identity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"medication", + "in":"query", + "description":"Code for medicine or text in medicine name (Medication).", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The identity of a patient to list dispenses for (Patient).", + "type":"string" + }, + { + "name":"prescriber", + "in":"query", + "description":"Who ordered the medication(s) (Practitioner).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"Status of the prescription. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"The set of resources associated with a particular MedicationOrder." + }, + "default":{ + "description":"unexpected error" + } + } + } + } + }, + "securityDefinitions":{ + "outhB2C":{ + "type":"oauth2", + "description":"Security scheme for B2C flow using authorization code flow.", + "scopes":{ + "patient/Medicationorder.read":"Read permissions for MedicationOrder demographics." + }, + "flow":"Authorization_code", + "authorizationUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/authorize?scope=patient/Medicationorder.read&state=uyrjiqa23nv8650ndj", + "tokenUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/accesstoken" + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/MedicationStatement-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/MedicationStatement-api.json new file mode 100755 index 0000000..3a64a0e --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/MedicationStatement-api.json @@ -0,0 +1,1250 @@ +{ + "swagger":"2.0", + "info":{ + "version":"1.0.0", + "title":"MedicationStatement API", + "description":"FHIR MedicationStatement resource API documentation" + }, + "host":"fhirsandbox-prod.apigee.net", + "basePath":"/fhir/v1/MedicationStatement", + "schemes":[ + "https" + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "security":[ + { + "outhB2C":[ + "patient/Medicationstatement.read" + ] + } + ], + "paths":{ + "":{ + "get":{ + "description":"Returns MedicationStatement based on filter criteria OR Provides provision for pagination (stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).

      FHIR documentation for MedicationStatement.

      ", + "operationId":"MedicationStatements Search", + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "security":[ + { + "outhB2C":[ + "patient/Medicationstatement.read" + ] + } + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the MedicationStatement.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the MedicationStatement resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the MedicationStatement resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"Return administrations of this medication code. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"effectivedate", + "in":"query", + "description":"Date when patient was taking (or not taking) the medication. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"effectivedate", + "in":"query", + "description":"Date when patient was taking (or not taking) the medication. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"identifier", + "in":"query", + "description":"Return administrations with this external identity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"medication", + "in":"query", + "description":"Code for medicine or text in medicine name (Medication).", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The identity of a patient to list administrations for (Patient).", + "type":"string" + }, + { + "name":"source", + "in":"query", + "description":"Who the information in the statement came from (Patient, Practitioner, RelatedPerson).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"Return statements that match the given status. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"stateid", + "in":"query", + "description":"Unique id associated with a page.", + "type":"string" + }, + { + "name":"page", + "in":"query", + "description":"MedicationStatement resource offset.", + "type":"number" + }, + { + "name":"page_size", + "in":"query", + "description":"The number of MedicationStatement resources requested in a page.", + "type":"number" + }, + { + "name":"_pretty", + "in":"query", + "description":"Set true to get prettified data.", + "type":"boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + } + ], + "responses":{ + "200":{ + "description":"MedicationStatement bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_search":{ + "post":{ + "description":"This interaction searches a set of MedicationStatements based on some filter criteria. Search interactions take a series of parameters of name'='value pairs encoded as an application/x-www-form-urlencoded submission for a POST.

      FHIR documentation for MedicationStatement.

      ", + "operationId":"MedicationStatements Search using POST", + "security":[ + { + "outhB2C":[ + "patient/Medicationstatement.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Content-Type", + "in":"header", + "required":true, + "description":"Specifies the format of data in body", + "type":"string", + "default":"application/x-www-form-urlencoded" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the MedicationStatement.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the MedicationStatement resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the MedicationStatement resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"Return administrations of this medication code. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"effectivedate", + "in":"query", + "description":"Date when patient was taking (or not taking) the medication. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"effectivedate", + "in":"query", + "description":"Date when patient was taking (or not taking) the medication. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"identifier", + "in":"query", + "description":"Return administrations with this external identity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"medication", + "in":"query", + "description":"Code for medicine or text in medicine name (Medication).", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The identity of a patient to list administrations for (Patient).", + "type":"string" + }, + { + "name":"source", + "in":"query", + "description":"Who the information in the statement came from (Patient, Practitioner, RelatedPerson).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"Return statements that match the given status. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"_id", + "in":"formData", + "description":"The logical resource id associated with the MedicationStatement.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"formData", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"formData", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"formData", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"formData", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"formData", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "formData", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "formData", + "description": "Used to search the entire content of the MedicationStatement resource.", + "type": "string" + }, { + "name": "_text", + "in": "formData", + "description": "Used to search on the narrative of the MedicationStatement resource.", + "type": "string" + }, + { + "name":"_include", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"formData", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"formData", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"formData", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"code", + "in":"formData", + "description":"Return administrations of this medication code. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"effectivedate", + "in":"formData", + "description":"Date when patient was taking (or not taking) the medication. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"effectivedate", + "in":"formData", + "description":"Date when patient was taking (or not taking) the medication. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"identifier", + "in":"formData", + "description":"Return administrations with this external identity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"medication", + "in":"formData", + "description":"Code for medicine or text in medicine name (Medication).", + "type":"string" + }, + { + "name":"patient", + "in":"formData", + "description":"The identity of a patient to list administrations for (Patient).", + "type":"string" + }, + { + "name":"source", + "in":"formData", + "description":"Who the information in the statement came from (Patient, Practitioner, RelatedPerson).", + "type":"string" + }, + { + "name":"status", + "in":"formData", + "description":"Return statements that match the given status. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationStatement Bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}":{ + "get":{ + "description":"Returns details of MedicationStatement having id given in path.

      FHIR documentation for MedicationStatement.

      ", + "operationId":"Read MedicationStatement", + "security":[ + { + "outhB2C":[ + "patient/Medicationstatement.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationStatement.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationStatement instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for MedicationStatement.

      FHIR documentation for MedicationStatement.

      ", + "operationId":"MedicationStatements Metadata", + "security":[ + { + "outhB2C":[ + "patient/Medicationstatement.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels used for MedicationStatement." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given MedicationStatement. resource.

      FHIR documentation for MedicationStatement.

      ", + "operationId":"MedicationStatement Metadata", + "security":[ + { + "outhB2C":[ + "patient/Medicationstatement.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationStatement.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given version of the MedicationStatement.

      FHIR documentation for MedicationStatement.

      ", + "operationId":"MedicationStatement Version based Metadata", + "security":[ + { + "outhB2C":[ + "patient/Medicationstatement.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationStatement.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of MedicationStatement.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated version of the resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_history":{ + "get":{ + "description":"It retrieves the history of all resources of MedicationStatement.

      FHIR documentation for MedicationStatement.

      ", + "operationId":"MedicationStatements History", + "security":[ + { + "outhB2C":[ + "patient/Medicationstatement.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationStatement instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history":{ + "get":{ + "description":"It retrieves the history of a particular MedicationStatement identified by the given id in path.

      FHIR documentation for MedicationStatement.

      ", + "operationId":"MedicationStatement History", + "security":[ + { + "outhB2C":[ + "patient/Medicationstatement.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationStatement.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationStatement instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}":{ + "get":{ + "description":"This interaction preforms a version specific read of MedicationStatement resource.

      FHIR documentation for MedicationStatement.

      ", + "operationId":"MedicationStatement Version Read", + "security":[ + { + "outhB2C":[ + "patient/Medicationstatement.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationStatement.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of MedicationStatement", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"MedicationStatement instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/{type}":{ + "get":{ + "description":"Search the specified resource type in MedicationStatement compartment.

      FHIR documentation for MedicationStatement.

      ", + "operationId":"Compartment Search", + "security":[ + { + "outhB2C":[ + "patient/Medicationstatement.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the MedicationStatement.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"type", + "description":"Type of Resource", + "type":"string", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the MedicationStatement.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the MedicationStatement resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the MedicationStatement resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"Return administrations of this medication code. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"effectivedate", + "in":"query", + "description":"Date when patient was taking (or not taking) the medication. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"effectivedate", + "in":"query", + "description":"Date when patient was taking (or not taking) the medication. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"identifier", + "in":"query", + "description":"Return administrations with this external identity. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"medication", + "in":"query", + "description":"Code for medicine or text in medicine name (Medication).", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The identity of a patient to list administrations for (Patient).", + "type":"string" + }, + { + "name":"source", + "in":"query", + "description":"Who the information in the statement came from (Patient, Practitioner, RelatedPerson).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"Return statements that match the given status. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"The set of resources associated with a particular MedicationStatement." + }, + "default":{ + "description":"unexpected error" + } + } + } + } + }, + "securityDefinitions":{ + "outhB2C":{ + "type":"oauth2", + "description":"Security scheme for B2C flow using authorization code flow.", + "scopes":{ + "patient/Medicationstatement.read":"Read permissions for MedicationStatement demographics." + }, + "flow":"Authorization_code", + "authorizationUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/authorize?scope=patient/Medicationstatement.read&state=uyrjiqa23nv8650ndj", + "tokenUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/accesstoken" + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/OAuth-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/OAuth-api.json new file mode 100755 index 0000000..1648e85 --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/OAuth-api.json @@ -0,0 +1,92 @@ +{ + "swagger":"2.0", + "info":{ + "version":"1.0.0", + "title":"Authorization API", + "description":"OAuth API documentation" + }, + "host":"fhirsandbox-prod.apigee.net", + "basePath":"/oauth/v2", + "schemes":[ + "https" + ], + "produces":[ + "application/json", + "application/xml" + ], + "consumes":[ + "application/x-www-form-urlencoded" + ], + "paths":{ + "/accesstoken?grant_type=client_credentials":{ + "post":{ + "description":"Generates access token using client credentials grant type.", + "operationId":"Client Credentials Grant Type", + "produces":[ + "application/json", + "application/xml" + ], + "consumes":[ + "application/x-www-form-urlencoded" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "description":"Base64 URL encoded clientid:clientsecret. For example: Basic Base64-encoding of Client ID and Client Secret", + "required":true, + "type":"string" + }, + { + "name":"Content-Type", + "in":"header", + "required":true, + "description":"Content-Type is used to declare the general type of POST data.", + "default":"application/x-www-form-urlencoded", + "type":"string" + }, + { + "name":"state", + "in":"header", + "required":false, + "default": "state", + "description":"A string that will be sent back with the response. Typically used to prevent cross-site request forgery attacks.", + "type":"string" + }, + { + "name":"scope", + "in":"query", + "description":"Allows to filter the list of API products with which the minted token can be used.", + "type":"string", + "enum":[ + "patient/patient.read", + "patient/medicationdispense.read", + "patient/practitioner.read", + "patient/procedure.read", + "patient/documentreference.read", + "patient/condition.read", + "patient/medicationstatement.read", + "patient/immunization.read", + "patient/allergyintolerance.read", + "patient/observation.read", + "patient/encounter.read", + "patient/medicationorder.read", + "patient/diagnosticreport.read", + "patient/diagnosticorder.read", + "patient/medicationadministration.read", + "patient/careplan.read" + ] + } + ], + "responses":{ + "200":{ + "description":"Contains token(s)" + }, + "default":{ + "description":"unexpected error" + } + } + } + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Observation-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Observation-api.json new file mode 100755 index 0000000..3de2b9c --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Observation-api.json @@ -0,0 +1,1882 @@ +{ + "swagger":"2.0", + "info":{ + "version":"1.0.0", + "title":"Observation API", + "description":"FHIR Observation resource API documentation" + }, + "host":"fhirsandbox-prod.apigee.net", + "basePath":"/fhir/v1/Observation", + "schemes":[ + "https" + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "security":[ + { + "outhB2C":[ + "patient/Observation.read" + ] + } + ], + "paths":{ + "":{ + "get":{ + "description":"Returns Observation based on filter criteria OR Provides provision for pagination (stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).

      FHIR documentation for Observation.

      ", + "operationId":"Observations Search", + "security":[ + { + "outhB2C":[ + "patient/Observation.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Observation.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Observations based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Observations based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the Observation. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the Observation. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the Observation. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of Observations that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Observation resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Observation resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular Observation, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular Observation, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"category", + "in":"query", + "description":"The classification of the type of observation. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"The code of the observation type. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"code-value-concept", + "in":"query", + "description":"Combination of code and concept. Value should be in the form: [code]$[concept].", + "type":"string" + }, + { + "name":"code-value-date", + "in":"query", + "description":"Combination of code and date. Value should be in the form: [code]$[date].", + "type":"string" + }, + { + "name":"code-value-quantity", + "in":"query", + "description":"Combination of code and quantity. Value should be in the form: [code]$[quantity].", + "type":"string" + }, + { + "name":"code-value-string", + "in":"query", + "description":"Combination of code and string. Value should be in the form: [code]$[string].", + "type":"string" + }, + { + "name":"component-code", + "in":"query", + "description":"The component code of the observation type. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"component-code-value-concept", + "in":"query", + "description":"Combination of component code and concept. Value should be in the form: [code]$[concept].", + "type":"string" + }, + { + "name":"component-code-value-date", + "in":"query", + "description":"Combination of component code and date. Value should be in the form: [code]$[date].", + "type":"string" + }, + { + "name":"component-code-value-quantity", + "in":"query", + "description":"Combination of component code and quantity. Value should be in the form: [code]$[quantity].", + "type":"string" + }, + { + "name":"component-code-value-string", + "in":"query", + "description":"Combination of component code and string. Value should be in the form: [code]$[string].", + "type":"string" + }, + { + "name":"component-data-absent-reason", + "in":"query", + "description":"The reason why the expected value in the element Observation.value[x] is missing. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"component-value-concept", + "in":"query", + "description":"The value of the component observation, if the value is a CodeableConcept.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"component-value-quantity", + "in":"query", + "description":"The value of the component observation, if the value is a Quantity, or a SampledData.Value can have following formats: [prefix][number]|[system]|[code]", + "type":"string" + }, + { + "name":"component-value-string", + "in":"query", + "description":"The value of the component observation, if the value is a string, and also searches in CodeableConcept.text", + "type":"string" + }, + { + "name":"data-absent-reason", + "in":"query", + "description":"The reason why the expected value in the element Observation.value[x] is missing.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"date", + "in":"query", + "description":"Obtained date/time. If the obtained element is a period, a date that falls in the period. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"query", + "description":"Obtained date/time. If the obtained element is a period, a date that falls in the period. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"device", + "in":"query", + "description":"The Device that generated the observation data (Device, DeviceMetric).", + "type":"string" + }, + { + "name":"encounter", + "in":"query", + "description":"Healthcare event related to the observation (Encounter).", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"The unique Id for a particular observation. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The subject that the observation is about (Patient).", + "type":"string" + }, + { + "name":"performer", + "in":"query", + "description":"Who performed the observation (Patient, Organization, Practitioner, RelatedPerson).", + "type":"string" + }, + { + "name":"related", + "in":"query", + "description":"Related Observations - search on related-type and related-target together. Value should be in the form: [related-type]$[related-target].", + "type":"string" + }, + { + "name":"related-target", + "in":"query", + "description":"Observation that is related to this one (Observation).", + "type":"string" + }, + { + "name":"related-type", + "in":"query", + "description":"has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"specimen", + "in":"query", + "description":"Specimen used for this observation (Specimen).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"The status of the observation. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"subject", + "in":"query", + "description":"The subject that the observation is about (Device, Location, Patient, Group).", + "type":"string" + }, + { + "name":"value-concept", + "in":"query", + "description":"The value of the observation, if the value is a CodeableConcept. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"value-date", + "in":"query", + "description":"The value of the observation, if the value is a Period. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"value-date", + "in":"query", + "description":"The value of the observation, if the value is a Period. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"value-quantity", + "in":"query", + "description":"The value of the observation, if the value is a Quantity, or a SampledData. Value must be in the following format: [comparator][number]|[system]|[code].The default comparator is =.", + "type":"string" + }, + { + "name":"value-string", + "in":"query", + "description":"The value of the observation, if the value is a string, and also searches in CodeableConcept.text.", + "type":"string" + }, + { + "name":"stateid", + "in":"query", + "description":"Unique id associated with a page.", + "type":"string" + }, + { + "name":"page", + "in":"query", + "description":"Observation resource offset.", + "type":"number" + }, + { + "name":"page_size", + "in":"query", + "description":"The number of Observation resources requested in a page.", + "type":"number" + }, + { + "name":"_pretty", + "in":"query", + "description":"Set true to get prettified data.", + "type":"boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + } + ], + "responses":{ + "200":{ + "description":"Observation bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_search":{ + "post":{ + "description":"This interaction searches a set of Observations based on some filter criteria. Search interactions take a series of parameters of name'='value pairs encoded as an application/x-www-form-urlencoded submission for a POST.

      FHIR documentation for Observation.

      ", + "operationId":"Observations Search using POST", + "security":[ + { + "outhB2C":[ + "patient/Observation.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Content-Type", + "in":"header", + "required":true, + "description":"Specifies the format of data in body", + "type":"string", + "default":"application/x-www-form-urlencoded" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Observation.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Observations based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Observations based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the Observation. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the Observation. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the Observation. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of Observations that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Observation resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Observation resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular Observation, and any Observations that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular Observation, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"category", + "in":"query", + "description":"The classification of the type of observation. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"The code of the observation type. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"code-value-concept", + "in":"query", + "description":"Combination of code and concept. Value should be in the form: [code]$[concept].", + "type":"string" + }, + { + "name":"code-value-date", + "in":"query", + "description":"Combination of code and date. Value should be in the form: [code]$[date].", + "type":"string" + }, + { + "name":"code-value-quantity", + "in":"query", + "description":"Combination of code and quantity. Value should be in the form: [code]$[quantity].", + "type":"string" + }, + { + "name":"code-value-string", + "in":"query", + "description":"Combination of code and string. Value should be in the form: [code]$[string].", + "type":"string" + }, + { + "name":"component-code", + "in":"query", + "description":"The component code of the observation type. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"component-code-value-concept", + "in":"query", + "description":"Combination of component code and concept. Value should be in the form: [code]$[concept].", + "type":"string" + }, + { + "name":"component-code-value-date", + "in":"query", + "description":"Combination of component code and date. Value should be in the form: [code]$[date].", + "type":"string" + }, + { + "name":"component-code-value-quantity", + "in":"query", + "description":"Combination of component code and quantity. Value should be in the form: [code]$[quantity].", + "type":"string" + }, + { + "name":"component-code-value-string", + "in":"query", + "description":"Combination of component code and string. Value should be in the form: [code]$[string].", + "type":"string" + }, + { + "name":"component-data-absent-reason", + "in":"query", + "description":"The reason why the expected value in the element Observation.value[x] is missing. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"component-value-concept", + "in":"query", + "description":"The value of the component observation, if the value is a CodeableConcept.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"component-value-quantity", + "in":"query", + "description":"The value of the component observation, if the value is a Quantity, or a SampledData.Value can have following formats: [prefix][number]|[system]|[code]", + "type":"string" + }, + { + "name":"component-value-string", + "in":"query", + "description":"The value of the component observation, if the value is a string, and also searches in CodeableConcept.text", + "type":"string" + }, + { + "name":"data-absent-reason", + "in":"query", + "description":"The reason why the expected value in the element Observation.value[x] is missing.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"date", + "in":"query", + "description":"Obtained date/time. If the obtained element is a period, a date that falls in the period. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"query", + "description":"Obtained date/time. If the obtained element is a period, a date that falls in the period. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"device", + "in":"query", + "description":"The Device that generated the observation data (Device, DeviceMetric).", + "type":"string" + }, + { + "name":"encounter", + "in":"query", + "description":"Healthcare event related to the observation (Encounter).", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"The unique Id for a particular observation. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The subject that the observation is about (Patient).", + "type":"string" + }, + { + "name":"performer", + "in":"query", + "description":"Who performed the observation (Patient, Organization, Practitioner, RelatedPerson).", + "type":"string" + }, + { + "name":"related", + "in":"query", + "description":"Related Observations - search on related-type and related-target together. Value should be in the form: [related-type]$[related-target].", + "type":"string" + }, + { + "name":"related-target", + "in":"query", + "description":"Observation that is related to this one (Observation).", + "type":"string" + }, + { + "name":"related-type", + "in":"query", + "description":"has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"specimen", + "in":"query", + "description":"Specimen used for this observation (Specimen).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"The status of the observation. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"subject", + "in":"query", + "description":"The subject that the observation is about (Device, Location, Patient, Group).", + "type":"string" + }, + { + "name":"value-concept", + "in":"query", + "description":"The value of the observation, if the value is a CodeableConcept. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"value-date", + "in":"query", + "description":"The value of the observation, if the value is a Period. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"value-date", + "in":"query", + "description":"The value of the observation, if the value is a Period. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"value-quantity", + "in":"query", + "description":"The value of the observation, if the value is a Quantity, or a SampledData. Value must be in the following format: [comparator][number]|[system]|[code].The default comparator is =.", + "type":"string" + }, + { + "name":"value-string", + "in":"query", + "description":"The value of the observation, if the value is a string, and also searches in CodeableConcept.text.", + "type":"string" + }, + { + "name":"_id", + "in":"formData", + "description":"The logical resource id associated with the Observation.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"formData", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select Observations based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select Observations based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"formData", + "description":"This parameter searches on the profile element in the meta element of the Observation. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"formData", + "description":"This parameter searches on the tags element in the meta element of the Observation. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"formData", + "description":"This parameter searches on the security element in the meta element of the Observation. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"formData", + "description":"The number of Observations that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "formData", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "formData", + "description": "Used to search the entire content of the Observation resource.", + "type": "string" + }, { + "name": "_text", + "in": "formData", + "description": "Used to search on the narrative of the Observation resource.", + "type": "string" + }, + { + "name":"_include", + "in":"formData", + "description":"This parameter can be used to fetch a particular Observation, and any Observations that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"formData", + "description":"This parameter can be used to fetch a particular Observation, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"formData", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"formData", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"formData", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"category", + "in":"formData", + "description":"The classification of the type of observation. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"code", + "in":"formData", + "description":"The code of the observation type. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"code-value-concept", + "in":"formData", + "description":"Combination of code and concept. Value should be in the form: [code]$[concept].", + "type":"string" + }, + { + "name":"code-value-date", + "in":"formData", + "description":"Combination of code and date. Value should be in the form: [code]$[date].", + "type":"string" + }, + { + "name":"code-value-quantity", + "in":"formData", + "description":"Combination of code and quantity. Value should be in the form: [code]$[quantity].", + "type":"string" + }, + { + "name":"code-value-string", + "in":"formData", + "description":"Combination of code and string. Value should be in the form: [code]$[string].", + "type":"string" + }, + { + "name":"component-code", + "in":"formData", + "description":"The component code of the observation type. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"component-code-value-concept", + "in":"formData", + "description":"Combination of component code and concept. Value should be in the form: [code]$[concept].", + "type":"string" + }, + { + "name":"component-code-value-date", + "in":"formData", + "description":"Combination of component code and date. Value should be in the form: [code]$[date].", + "type":"string" + }, + { + "name":"component-code-value-quantity", + "in":"formData", + "description":"Combination of component code and quantity. Value should be in the form: [code]$[quantity].", + "type":"string" + }, + { + "name":"component-code-value-string", + "in":"formData", + "description":"Combination of component code and string. Value should be in the form: [code]$[string].", + "type":"string" + }, + { + "name":"component-data-absent-reason", + "in":"formData", + "description":"The reason why the expected value in the element Observation.value[x] is missing. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"component-value-concept", + "in":"formData", + "description":"The value of the component observation, if the value is a CodeableConcept.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"component-value-quantity", + "in":"formData", + "description":"The value of the component observation, if the value is a Quantity, or a SampledData.Value can have following formats: [prefix][number]|[system]|[code]", + "type":"string" + }, + { + "name":"component-value-string", + "in":"formData", + "description":"The value of the component observation, if the value is a string, and also searches in CodeableConcept.text", + "type":"string" + }, + { + "name":"data-absent-reason", + "in":"formData", + "description":"The reason why the expected value in the element Observation.value[x] is missing.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"date", + "in":"formData", + "description":"Obtained date/time. If the obtained element is a period, a date that falls in the period. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"formData", + "description":"Obtained date/time. If the obtained element is a period, a date that falls in the period. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"device", + "in":"formData", + "description":"The Device that generated the observation data (Device, DeviceMetric).", + "type":"string" + }, + { + "name":"encounter", + "in":"formData", + "description":"Healthcare event related to the observation (Encounter).", + "type":"string" + }, + { + "name":"identifier", + "in":"formData", + "description":"The unique Id for a particular observation. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"patient", + "in":"formData", + "description":"The subject that the observation is about (Patient).", + "type":"string" + }, + { + "name":"performer", + "in":"formData", + "description":"Who performed the observation (Patient, Organization, Practitioner, RelatedPerson).", + "type":"string" + }, + { + "name":"related", + "in":"formData", + "description":"Related Observations - search on related-type and related-target together. Value should be in the form: [related-type]$[related-target].", + "type":"string" + }, + { + "name":"related-target", + "in":"formData", + "description":"Observation that is related to this one (Observation).", + "type":"string" + }, + { + "name":"related-type", + "in":"formData", + "description":"has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"specimen", + "in":"formData", + "description":"Specimen used for this observation (Specimen).", + "type":"string" + }, + { + "name":"status", + "in":"formData", + "description":"The status of the observation. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"subject", + "in":"formData", + "description":"The subject that the observation is about (Device, Location, Patient, Group).", + "type":"string" + }, + { + "name":"value-concept", + "in":"formData", + "description":"The value of the observation, if the value is a CodeableConcept. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"value-date", + "in":"formData", + "description":"The value of the observation, if the value is a Period. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"value-date", + "in":"formData", + "description":"The value of the observation, if the value is a Period. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"value-quantity", + "in":"formData", + "description":"The value of the observation, if the value is a Quantity, or a SampledData. Value must be in the following format: [comparator][number]|[system]|[code].The default comparator is =.", + "type":"string" + }, + { + "name":"value-string", + "in":"formData", + "description":"The value of the observation, if the value is a string, and also searches in CodeableConcept.text.", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Observation Bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}":{ + "get":{ + "description":"Returns details of observations having id given in path.

      FHIR documentation for Observation.

      ", + "operationId":"Read Observation", + "security":[ + { + "outhB2C":[ + "patient/Observation.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Observation.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Observation instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for Observation.

      FHIR documentation for Observation.

      ", + "operationId":"Observations Metadata", + "security":[ + { + "outhB2C":[ + "patient/Observation.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels used for Observation." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given Observation. Observation resource.

      FHIR documentation for Observation.

      ", + "operationId":"Observation Metadata", + "security":[ + { + "outhB2C":[ + "patient/Observation.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Observation.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated Observation." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given version of the Observation.

      FHIR documentation for Observation.

      ", + "operationId":"Observation Version based Metadata", + "security":[ + { + "outhB2C":[ + "patient/Observation.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Observation.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of observation.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated version of the resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_history":{ + "get":{ + "description":"It retrieves the history of all resources of Observation.

      FHIR documentation for Observation.

      ", + "operationId":"Observations History", + "security":[ + { + "outhB2C":[ + "patient/Observation.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Only include Observation versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Observation instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history":{ + "get":{ + "description":"It retrieves the history of a particular Observation identified by the given id in path.

      FHIR documentation for Observation.

      ", + "operationId":"Observation History", + "security":[ + { + "outhB2C":[ + "patient/Observation.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Only include Observation versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"id", + "description":"The logical resource id associated with the Observation.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Observation instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}":{ + "get":{ + "description":"This interaction preforms a version specific read of Observation resource.

      FHIR documentation for Observation.

      ", + "operationId":"Observation Version Read", + "security":[ + { + "outhB2C":[ + "patient/Observation.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Observation.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of observation", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Observation instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/{type}":{ + "get":{ + "description":"Search the specified resource type in Observation compartment.

      FHIR documentation for Observation.

      ", + "operationId":"Compartment Search", + "security":[ + { + "outhB2C":[ + "patient/Observation.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Observation.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"type", + "description":"Type of Observation", + "type":"string", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Observation.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Observations based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Observations based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the Observation. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the Observation. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the Observation. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of Observations that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Observation resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Observation resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular Observation, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular Observation, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"category", + "in":"query", + "description":"The classification of the type of observation. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"The code of the observation type. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"code-value-concept", + "in":"query", + "description":"Combination of code and concept. Value should be in the form: [code]$[concept].", + "type":"string" + }, + { + "name":"code-value-date", + "in":"query", + "description":"Combination of code and date. Value should be in the form: [code]$[date].", + "type":"string" + }, + { + "name":"code-value-quantity", + "in":"query", + "description":"Combination of code and quantity. Value should be in the form: [code]$[quantity].", + "type":"string" + }, + { + "name":"code-value-string", + "in":"query", + "description":"Combination of code and string. Value should be in the form: [code]$[string].", + "type":"string" + }, + { + "name":"component-code", + "in":"query", + "description":"The component code of the observation type. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"component-code-value-concept", + "in":"query", + "description":"Combination of component code and concept. Value should be in the form: [code]$[concept].", + "type":"string" + }, + { + "name":"component-code-value-date", + "in":"query", + "description":"Combination of component code and date. Value should be in the form: [code]$[date].", + "type":"string" + }, + { + "name":"component-code-value-quantity", + "in":"query", + "description":"Combination of component code and quantity. Value should be in the form: [code]$[quantity].", + "type":"string" + }, + { + "name":"component-code-value-string", + "in":"query", + "description":"Combination of component code and string. Value should be in the form: [code]$[string].", + "type":"string" + }, + { + "name":"component-data-absent-reason", + "in":"query", + "description":"The reason why the expected value in the element Observation.value[x] is missing. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"component-value-concept", + "in":"query", + "description":"The value of the component observation, if the value is a CodeableConcept.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"component-value-quantity", + "in":"query", + "description":"The value of the component observation, if the value is a Quantity, or a SampledData.Value can have following formats: [prefix][number]|[system]|[code]", + "type":"string" + }, + { + "name":"component-value-string", + "in":"query", + "description":"The value of the component observation, if the value is a string, and also searches in CodeableConcept.text", + "type":"string" + }, + { + "name":"data-absent-reason", + "in":"query", + "description":"The reason why the expected value in the element Observation.value[x] is missing.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"date", + "in":"query", + "description":"Obtained date/time. If the obtained element is a period, a date that falls in the period. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"query", + "description":"Obtained date/time. If the obtained element is a period, a date that falls in the period. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"device", + "in":"query", + "description":"The Device that generated the observation data (Device, DeviceMetric).", + "type":"string" + }, + { + "name":"encounter", + "in":"query", + "description":"Healthcare event related to the observation (Encounter).", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"The unique Id for a particular observation. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The subject that the observation is about (Patient).", + "type":"string" + }, + { + "name":"performer", + "in":"query", + "description":"Who performed the observation (Patient, Organization, Practitioner, RelatedPerson).", + "type":"string" + }, + { + "name":"related", + "in":"query", + "description":"Related Observations - search on related-type and related-target together. Value should be in the form: [related-type]$[related-target].", + "type":"string" + }, + { + "name":"related-target", + "in":"query", + "description":"Observation that is related to this one (Observation).", + "type":"string" + }, + { + "name":"related-type", + "in":"query", + "description":"has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"specimen", + "in":"query", + "description":"Specimen used for this observation (Specimen).", + "type":"string" + }, + { + "name":"status", + "in":"query", + "description":"The status of the observation. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"subject", + "in":"query", + "description":"The subject that the observation is about (Device, Location, Patient, Group).", + "type":"string" + }, + { + "name":"value-concept", + "in":"query", + "description":"The value of the observation, if the value is a CodeableConcept. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"value-date", + "in":"query", + "description":"The value of the observation, if the value is a Period. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"value-date", + "in":"query", + "description":"The value of the observation, if the value is a Period. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"value-quantity", + "in":"query", + "description":"The value of the observation, if the value is a Quantity, or a SampledData. Value must be in the following format: [comparator][number]|[system]|[code].The default comparator is =.", + "type":"string" + }, + { + "name":"value-string", + "in":"query", + "description":"The value of the observation, if the value is a string, and also searches in CodeableConcept.text.", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"The set of resources associated with a particular observation." + }, + "default":{ + "description":"unexpected error" + } + } + } + } + }, + "securityDefinitions":{ + "outhB2C":{ + "type":"oauth2", + "description":"Security scheme for B2C flow using authorization code flow.", + "scopes":{ + "patient/Observation.read":"Read permissions for Observation demographics." + }, + "flow":"Authorization_code", + "authorizationUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/authorize?scope=patient/Observation.read&state=uyrjiqa23nv8650ndj", + "tokenUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/accesstoken" + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Patient-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Patient-api.json new file mode 100755 index 0000000..9dc7299 --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Patient-api.json @@ -0,0 +1,1848 @@ +{ + "swagger":"2.0", + "info":{ + "version":"1.0.0", + "title":"Patient API", + "description":"Patient resource API documentation" + }, + "host":"fhirsandbox-prod.apigee.net", + "basePath":"/fhir/v1/Patient", + "schemes":[ + "https" + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "security":[ + { + "outhB2C":[ + "patient/Patient.read" + ] + } + ], + "paths":{ + "":{ + "get":{ + "description":"Returns Patient based on filter criteria OR Provides provision for pagination (stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).

      FHIR documentation for Patient.

      ", + "operationId":"Patients Search", + "security":[ + { + "outhB2C":[ + "patient/Patient.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Patient.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Patients based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"Use two _lastUpdated parameters to provide a range. The search parameter _lastUpdated can be used to select Patients based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the Patient. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the patient. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the Patient. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of Patients that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Patient resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Patient resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular Patient, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes i.e. Patient 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular Patient, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes i.e. Patient 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"active", + "in":"query", + "description":"Whether the patient record is active.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"address", + "in":"query", + "description":"An address in any kind of address/part of the patient.", + "type":"string" + }, + { + "name":"address-city", + "in":"query", + "description":"A city specified in an address", + "type":"string" + }, + { + "name":"address-country", + "in":"query", + "description":"A country specified in an address", + "type":"string" + }, + { + "name":"address-postalcode", + "in":"query", + "description":"A postalCode specified in an address", + "type":"string" + }, + { + "name":"address-state", + "in":"query", + "description":"A state specified in an address", + "type":"string" + }, + { + "name":"address-use", + "in":"query", + "description":"A use code specified in an address.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"animal-breed", + "in":"query", + "description":"The breed for animal patients. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"animal-species", + "in":"query", + "description":"The species for animal patients. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"birthdate", + "in":"query", + "description":"The patient's date of birth. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"birthdate", + "in":"query", + "description":"The patient's date of birth. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"careprovider", + "in":"query", + "description":"Patient's nominated care provider, could be a care manager, not the organization that manages the record.", + "type":"string" + }, + { + "name":"deathdate", + "in":"query", + "description":"The date of death has been provided and satisfies this search value. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"deathdate", + "in":"query", + "description":"The date of death has been provided and satisfies this search value. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <=, < and != may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"deceased", + "in":"query", + "description":"This patient has been marked as deceased, or as a death date entered. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"email", + "in":"query", + "description":"A value in an email contact. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"family", + "in":"query", + "description":"A portion of the family name of the patient", + "type":"string" + }, + { + "name":"gender", + "in":"query", + "description":"Gender of the patient. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"given", + "in":"query", + "description":"A portion of the given name of the patient", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"A patient identifier. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"language", + "in":"query", + "description":"Language code (irrespective of use value). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"link", + "in":"query", + "description":"All patients linked to the given patient", + "type":"string" + }, + { + "name":"name", + "in":"query", + "description":"A portion of either family or given name of the patient", + "type":"string" + }, + { + "name":"organization", + "in":"query", + "description":"The organization at which this person is a patient.", + "type":"string" + }, + { + "name":"phone", + "in":"query", + "description":"A value in a phone contact. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"phonetic", + "in":"query", + "description":"A portion of either family or given name using some kind of phonetic matching algorithm", + "type":"string" + }, + { + "name":"telecom", + "in":"query", + "description":"The value in any kind of telecom details of the patient.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"stateid", + "in":"query", + "description":"Unique id associated with a page.", + "type":"string" + }, + { + "name":"page", + "in":"query", + "description":"Patient resource offset.", + "type":"number" + }, + { + "name":"page_size", + "in":"query", + "description":"The number of Patient resources requested in a page.", + "type":"number" + }, + { + "name":"_pretty", + "in":"query", + "description":"Set true to get prettified data.", + "type":"boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + } + ], + "responses":{ + "200":{ + "description":"Patient bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_search":{ + "post":{ + "description":"This interaction searches a set of resources based on some filter criteria. Search interactions take a series of parameters of name'='value pairs encoded as an application/x-www-form-urlencoded submission for a POST.

      FHIR documentation for Patient.

      ", + "operationId":"Patients Search using POST", + "security":[ + { + "outhB2C":[ + "patient/Patient.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Content-Type", + "in":"header", + "required":true, + "description":"Specifies the format of data in request.", + "type":"string", + "default":"application/x-www-form-urlencoded" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Patient.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Patients based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Patients based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the Patient. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the patient. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the Patient. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of Patients that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Patient resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Patient resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular Patient, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes i.e. Patient 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular Patient, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes i.e. Patient 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"active", + "in":"query", + "description":"Whether the patient record is active.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"address", + "in":"query", + "description":"An address in any kind of address/part of the patient.", + "type":"string" + }, + { + "name":"address-city", + "in":"query", + "description":"A city specified in an address", + "type":"string" + }, + { + "name":"address-country", + "in":"query", + "description":"A country specified in an address", + "type":"string" + }, + { + "name":"address-postalcode", + "in":"query", + "description":"A postalCode specified in an address", + "type":"string" + }, + { + "name":"address-state", + "in":"query", + "description":"A state specified in an address", + "type":"string" + }, + { + "name":"address-use", + "in":"query", + "description":"A use code specified in an address.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"animal-breed", + "in":"query", + "description":"The breed for animal patients. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"animal-species", + "in":"query", + "description":"The species for animal patients. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"birthdate", + "in":"query", + "description":"The patient's date of birth. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"birthdate", + "in":"query", + "description":"The patient's date of birth. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"careprovider", + "in":"query", + "description":"Patient's nominated care provider, could be a care manager, not the organization that manages the record.", + "type":"string" + }, + { + "name":"deathdate", + "in":"query", + "description":"The date of death has been provided and satisfies this search value. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"deathdate", + "in":"query", + "description":"The date of death has been provided and satisfies this search value. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <=, < and != may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"deceased", + "in":"query", + "description":"This patient has been marked as deceased, or as a death date entered. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"email", + "in":"query", + "description":"A value in an email contact. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"family", + "in":"query", + "description":"A portion of the family name of the patient", + "type":"string" + }, + { + "name":"gender", + "in":"query", + "description":"Gender of the patient. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"given", + "in":"query", + "description":"A portion of the given name of the patient", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"A patient identifier. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"language", + "in":"query", + "description":"Language code (irrespective of use value). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"link", + "in":"query", + "description":"All patients linked to the given patient", + "type":"string" + }, + { + "name":"name", + "in":"query", + "description":"A portion of either family or given name of the patient", + "type":"string" + }, + { + "name":"organization", + "in":"query", + "description":"The organization at which this person is a patient.", + "type":"string" + }, + { + "name":"phone", + "in":"query", + "description":"A value in a phone contact. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"phonetic", + "in":"query", + "description":"A portion of either family or given name using some kind of phonetic matching algorithm", + "type":"string" + }, + { + "name":"telecom", + "in":"query", + "description":"The value in any kind of telecom details of the patient.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"_id", + "in":"formData", + "description":"The logical resource id associated with the Patient.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"formData", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select Patients based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select Patients based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"formData", + "description":"This parameter searches on the profile element in the meta element of the Patient. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"formData", + "description":"This parameter searches on the tags element in the meta element of the patient. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"formData", + "description":"This parameter searches on the security element in the meta element of the Patient. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"formData", + "description":"The number of Patients that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "formData", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "formData", + "description": "Used to search the entire content of the Patient resource.", + "type": "string" + }, { + "name": "_text", + "in": "formData", + "description": "Used to search on the narrative of the Patient resource.", + "type": "string" + }, + { + "name":"_include", + "in":"formData", + "description":"This parameter can be used to fetch a particular Patient, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes i.e. Patient 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"formData", + "description":"This parameter can be used to fetch a particular Patient, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes i.e. Patient 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"formData", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"formData", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"formData", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"active", + "in":"formData", + "description":"Whether the patient record is active.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"address", + "in":"formData", + "description":"An address in any kind of address/part of the patient.", + "type":"string" + }, + { + "name":"address-city", + "in":"formData", + "description":"A city specified in an address", + "type":"string" + }, + { + "name":"address-country", + "in":"formData", + "description":"A country specified in an address", + "type":"string" + }, + { + "name":"address-postalcode", + "in":"formData", + "description":"A postalCode specified in an address", + "type":"string" + }, + { + "name":"address-state", + "in":"formData", + "description":"A state specified in an address", + "type":"string" + }, + { + "name":"address-use", + "in":"formData", + "description":"A use code specified in an address.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"animal-breed", + "in":"formData", + "description":"The breed for animal patients. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"animal-species", + "in":"formData", + "description":"The species for animal patients. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"birthdate", + "in":"formData", + "description":"The patient's date of birth. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"birthdate", + "in":"formData", + "description":"The patient's date of birth. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"careprovider", + "in":"formData", + "description":"Patient's nominated care provider, could be a care manager, not the organization that manages the record.", + "type":"string" + }, + { + "name":"deathdate", + "in":"formData", + "description":"The date of death has been provided and satisfies this search value. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"deathdate", + "in":"formData", + "description":"The date of death has been provided and satisfies this search value. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <=, < and != may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"deceased", + "in":"formData", + "description":"This patient has been marked as deceased, or as a death date entered. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"email", + "in":"formData", + "description":"A value in an email contact. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"family", + "in":"formData", + "description":"A portion of the family name of the patient", + "type":"string" + }, + { + "name":"gender", + "in":"formData", + "description":"Gender of the patient. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"given", + "in":"formData", + "description":"A portion of the given name of the patient", + "type":"string" + }, + { + "name":"identifier", + "in":"formData", + "description":"A patient identifier. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"language", + "in":"formData", + "description":"Language code (irrespective of use value). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"link", + "in":"formData", + "description":"All patients linked to the given patient", + "type":"string" + }, + { + "name":"name", + "in":"formData", + "description":"A portion of either family or given name of the patient", + "type":"string" + }, + { + "name":"organization", + "in":"formData", + "description":"The organization at which this person is a patient.", + "type":"string" + }, + { + "name":"phone", + "in":"formData", + "description":"A value in a phone contact. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"phonetic", + "in":"formData", + "description":"A portion of either family or given name using some kind of phonetic matching algorithm", + "type":"string" + }, + { + "name":"telecom", + "in":"formData", + "description":"The value in any kind of telecom details of the patient.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Patient Bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}":{ + "get":{ + "description":"Returns details of patient having the id given in path.

      FHIR documentation for Patient.

      ", + "operationId":"Read Patient", + "security":[ + { + "outhB2C":[ + "patient/Patient.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Patient.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Patient instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_history":{ + "get":{ + "description":"It retrieves the history of all resources of Patient.

      FHIR documentation for Patient.

      ", + "operationId":"Patients History", + "security":[ + { + "outhB2C":[ + "patient/Patient.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Patient instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history":{ + "get":{ + "description":"It retrieves the history of a particular Patient identified by the given id in path.

      FHIR documentation for Patient.

      ", + "operationId":"Patient History", + "security":[ + { + "outhB2C":[ + "patient/Patient.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"id", + "description":"The logical resource id associated with the Patient.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Patient instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}":{ + "get":{ + "description":"This interaction preforms a version specific read of Patient resource.

      FHIR documentation for Patient.

      ", + "operationId":"Patient Version Read", + "security":[ + { + "outhB2C":[ + "patient/Patient.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Patient.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of patient", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Patient instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/{type}":{ + "get":{ + "description":"Search the specified resource type in Patient compartment.

      FHIR documentation for Patient.

      ", + "operationId":"Compartment Search", + "security":[ + { + "outhB2C":[ + "patient/Patient.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Patient.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"type", + "description":"Type of Resource", + "type":"string", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Patient.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Patients based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Patients based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the Patient. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the patient. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the Patient. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of Patients that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Patient resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Patient resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular Patient, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes i.e. Patient 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular Patient, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes i.e. Patient 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"active", + "in":"query", + "description":"Whether the patient record is active.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"address", + "in":"query", + "description":"An address in any kind of address/part of the patient.", + "type":"string" + }, + { + "name":"address-city", + "in":"query", + "description":"A city specified in an address", + "type":"string" + }, + { + "name":"address-country", + "in":"query", + "description":"A country specified in an address", + "type":"string" + }, + { + "name":"address-postalcode", + "in":"query", + "description":"A postalCode specified in an address", + "type":"string" + }, + { + "name":"address-state", + "in":"query", + "description":"A state specified in an address", + "type":"string" + }, + { + "name":"address-use", + "in":"query", + "description":"A use code specified in an address.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"animal-breed", + "in":"query", + "description":"The breed for animal patients. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"animal-species", + "in":"query", + "description":"The species for animal patients. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"birthdate", + "in":"query", + "description":"The patient's date of birth. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"birthdate", + "in":"query", + "description":"The patient's date of birth. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"careprovider", + "in":"query", + "description":"Patient's nominated care provider, could be a care manager, not the organization that manages the record.", + "type":"string" + }, + { + "name":"deathdate", + "in":"query", + "description":"The date of death has been provided and satisfies this search value. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"deathdate", + "in":"query", + "description":"The date of death has been provided and satisfies this search value. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <=, < and != may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"deceased", + "in":"query", + "description":"This patient has been marked as deceased, or as a death date entered. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"email", + "in":"query", + "description":"A value in an email contact. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"family", + "in":"query", + "description":"A portion of the family name of the patient", + "type":"string" + }, + { + "name":"gender", + "in":"query", + "description":"Gender of the patient. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"given", + "in":"query", + "description":"A portion of the given name of the patient", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"A patient identifier. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"language", + "in":"query", + "description":"Language code (irrespective of use value). Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"link", + "in":"query", + "description":"All patients linked to the given patient", + "type":"string" + }, + { + "name":"name", + "in":"query", + "description":"A portion of either family or given name of the patient", + "type":"string" + }, + { + "name":"organization", + "in":"query", + "description":"The organization at which this person is a patient.", + "type":"string" + }, + { + "name":"phone", + "in":"query", + "description":"A value in a phone contact. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"phonetic", + "in":"query", + "description":"A portion of either family or given name using some kind of phonetic matching algorithm", + "type":"string" + }, + { + "name":"telecom", + "in":"query", + "description":"The value in any kind of telecom details of the patient.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"The set of resources associated with a particular patient." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for Patient.

      FHIR documentation for Patient.

      ", + "operationId":"Patients Metadata", + "security":[ + { + "outhB2C":[ + "patient/Patient.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels used for Patient." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given Patient resource.

      FHIR documentation for Patient.

      ", + "operationId":"Patient Metadata", + "security":[ + { + "outhB2C":[ + "patient/Patient.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Patient.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given version of the Patient.

      FHIR documentation for Patient.

      ", + "operationId":"Patient Version based Metadata", + "security":[ + { + "outhB2C":[ + "patient/Patient.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Patient.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of patient", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated version of the resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/$everything":{ + "get":{ + "description":"Returns all the information related to Patient resource.

      FHIR documentation for Patient.

      ", + "operationId":"Fetch Patients Record", + "security":[ + { + "outhB2C":[ + "patient/Patient.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"start", + "in":"query", + "description":"The start date of care dates range. All records relating to care provided in a given date range will be returned. If no date is provided, all records are in scope.", + "type":"string", + "pattern":"[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1]))?)?" + }, + { + "name":"end", + "in":"query", + "description":"The end date of care dates range. All records relating to care provided in a given date range will be returned. If no date is provided, all records are in scope.", + "type":"string", + "pattern":"[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1]))?)?" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Return all the information related to patient described in the resource on which this operation is invoked." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/$everything":{ + "get":{ + "description":"Returns all the information related to a specific Patient resource.

      FHIR documentation for Patient.

      ", + "operationId":"Fetch Patient Record", + "security":[ + { + "outhB2C":[ + "patient/Patient.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"start", + "in":"query", + "description":"The start date of care dates range. All records relating to care provided in a given date range will be returned. If no date is provided, all records are in scope.", + "type":"string", + "pattern":"[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1]))?)?" + }, + { + "name":"end", + "in":"query", + "description":"The end date of care dates range. All records relating to care provided in a given date range will be returned. If no date is provided, all records are in scope.", + "type":"string", + "pattern":"[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1]))?)?" + }, + { + "name":"id", + "description":"The logical resource id associated with the Patient.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags affixed to the nominated version of the resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + } + }, + "securityDefinitions":{ + "outhB2C":{ + "type":"oauth2", + "description":"Security scheme for B2C flow using authorization code flow.", + "scopes":{ + "patient/Patient.read":"Read permissions for Patient demographics." + }, + "flow":"Authorization_code", + "authorizationUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/authorize?scope=patient/Patient.read&state=uyrjiqa23nv8650ndj", + "tokenUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/accesstoken" + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Practitioner-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Practitioner-api.json new file mode 100755 index 0000000..9251124 --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Practitioner-api.json @@ -0,0 +1,1533 @@ +{ + "swagger":"2.0", + "info":{ + "version":"1.0.0", + "title":"Practitioner API", + "description":"FHIR Practitioner resource API documentation" + }, + "host":"fhirsandbox-prod.apigee.net", + "basePath":"/fhir/v1/Practitioner", + "schemes":[ + "https" + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "consumes":[ + "application/x-www-form-urlencoded" + ], + "security":[ + { + "outhB2C":[ + "patient/Practitioner.read" + ] + } + ], + "paths":{ + "":{ + "get":{ + "description":"Returns Practitioner based on filter criteria OR Provides provision for pagination (stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).

      FHIR documentation for Practitioner.

      ", + "operationId":"Practitioners Search", + "security":[ + { + "outhB2C":[ + "patient/Practitioner.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Practitioner.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Practitioners based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Practitioners based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the Practitioner. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the Practitioner. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the Practitioner. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of Practitioners that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Practitioner resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Practitioner resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular Practitioner, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular Practitioner, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"address", + "in":"query", + "description":"An address in any kind of address/part", + "type":"string" + }, + { + "name":"address-city", + "in":"query", + "description":"A city specified in an address", + "type":"string" + }, + { + "name":"address-country", + "in":"query", + "description":"A country specified in an address", + "type":"string" + }, + { + "name":"address-postalcode", + "in":"query", + "description":"A postalCode specified in an address", + "type":"string" + }, + { + "name":"address-state", + "in":"query", + "description":"A state specified in an address", + "type":"string" + }, + { + "name":"address-use", + "in":"query", + "description":"A use code specified in an address.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"communication", + "in":"query", + "description":"One of the languages that the practitioner can communicate with. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"email", + "in":"query", + "description":"A value in an email contact. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"family", + "in":"query", + "description":"A portion of the family name.", + "type":"string" + }, + { + "name":"gender", + "in":"query", + "description":"Gender of the practitioner. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"given", + "in":"query", + "description":"A portion of the given name.", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"A practitioner's Identifier. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"location", + "in":"query", + "description":"One of the locations at which this practitioner provides care.", + "type":"string" + }, + { + "name":"name", + "in":"query", + "description":"A portion of either family or given name.", + "type":"string" + }, + { + "name":"organization", + "in":"query", + "description":"The identity of the organization the practitioner represents / acts on behalf of.", + "type":"string" + }, + { + "name":"phone", + "in":"query", + "description":"A value in a phone contact. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"phonetic", + "in":"query", + "description":"A portion of either family or given name using some kind of phonetic matching algorithm.", + "type":"string" + }, + { + "name":"role", + "in":"query", + "description":"The practitioner can perform this role at for the organization. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"specialty", + "in":"query", + "description":"The practitioner has this specailty at an organization. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"telecom", + "in":"query", + "description":"The value in any kind of contact.", + "type":"string" + }, + { + "name":"stateid", + "in":"query", + "description":"Unique id associated with a page.", + "type":"string" + }, + { + "name":"page", + "in":"query", + "description":"Practitioner resource offset.", + "type":"number" + }, + { + "name":"page_size", + "in":"query", + "description":"The number of Practitioner resources requested in a page.", + "type":"number" + }, + { + "name":"_pretty", + "in":"query", + "description":"Set true to get prettified data.", + "type":"boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + } + ], + "responses":{ + "200":{ + "description":"Practitioner bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_search":{ + "post":{ + "description":"This interaction searches a set of Practitioners based on some filter criteria. Search interactions take a series of parameters of name'='value pairs encoded as an application/x-www-form-urlencoded submission for a POST.

      FHIR documentation for Practitioner.

      ", + "operationId":"Practitioners Search using POST", + "security":[ + { + "outhB2C":[ + "patient/Practitioner.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Content-Type", + "in":"header", + "required":true, + "description":"Specifies the format of data in body", + "type":"string", + "default":"application/x-www-form-urlencoded" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Practitioner.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Practitioners based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Practitioners based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the Practitioner. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the Practitioner. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the Practitioner. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of Practitioners that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Practitioner resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Practitioner resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular Practitioner, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular Practitioner, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"address", + "in":"query", + "description":"An address in any kind of address/part", + "type":"string" + }, + { + "name":"address-city", + "in":"query", + "description":"A city specified in an address", + "type":"string" + }, + { + "name":"address-country", + "in":"query", + "description":"A country specified in an address", + "type":"string" + }, + { + "name":"address-postalcode", + "in":"query", + "description":"A postalCode specified in an address", + "type":"string" + }, + { + "name":"address-state", + "in":"query", + "description":"A state specified in an address", + "type":"string" + }, + { + "name":"address-use", + "in":"query", + "description":"A use code specified in an address.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"communication", + "in":"query", + "description":"One of the languages that the practitioner can communicate with. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"email", + "in":"query", + "description":"A value in an email contact. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"family", + "in":"query", + "description":"A portion of the family name.", + "type":"string" + }, + { + "name":"gender", + "in":"query", + "description":"Gender of the practitioner. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"given", + "in":"query", + "description":"A portion of the given name.", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"A practitioner's Identifier. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"location", + "in":"query", + "description":"One of the locations at which this practitioner provides care.", + "type":"string" + }, + { + "name":"name", + "in":"query", + "description":"A portion of either family or given name.", + "type":"string" + }, + { + "name":"organization", + "in":"query", + "description":"The identity of the organization the practitioner represents / acts on behalf of.", + "type":"string" + }, + { + "name":"phone", + "in":"query", + "description":"A value in a phone contact. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"phonetic", + "in":"query", + "description":"A portion of either family or given name using some kind of phonetic matching algorithm.", + "type":"string" + }, + { + "name":"role", + "in":"query", + "description":"The practitioner can perform this role at for the organization. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"specialty", + "in":"query", + "description":"The practitioner has this specailty at an organization. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"telecom", + "in":"query", + "description":"The value in any kind of contact.", + "type":"string" + }, + { + "name":"_id", + "in":"formData", + "description":"The logical resource id associated with the Practitioner.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"formData", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select Practitioners based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select Practitioners based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"formData", + "description":"This parameter searches on the profile element in the meta element of the Practitioner. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"formData", + "description":"This parameter searches on the tags element in the meta element of the Practitioner. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"formData", + "description":"This parameter searches on the security element in the meta element of the Practitioner. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"formData", + "description":"The number of Practitioners that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "formData", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "formData", + "description": "Used to search the entire content of the Practitioner resource.", + "type": "string" + }, { + "name": "_text", + "in": "formData", + "description": "Used to search on the narrative of the Practitioner resource.", + "type": "string" + }, + { + "name":"_include", + "in":"formData", + "description":"This parameter can be used to fetch a particular Practitioner, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"formData", + "description":"This parameter can be used to fetch a particular Practitioner, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"formData", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"formData", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"formData", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"address", + "in":"formData", + "description":"An address in any kind of address/part", + "type":"string" + }, + { + "name":"address-city", + "in":"formData", + "description":"A city specified in an address", + "type":"string" + }, + { + "name":"address-country", + "in":"formData", + "description":"A country specified in an address", + "type":"string" + }, + { + "name":"address-postalcode", + "in":"formData", + "description":"A postalCode specified in an address", + "type":"string" + }, + { + "name":"address-state", + "in":"formData", + "description":"A state specified in an address", + "type":"string" + }, + { + "name":"address-use", + "in":"formData", + "description":"A use code specified in an address.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"communication", + "in":"formData", + "description":"One of the languages that the practitioner can communicate with. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"email", + "in":"formData", + "description":"A value in an email contact. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"family", + "in":"formData", + "description":"A portion of the family name.", + "type":"string" + }, + { + "name":"gender", + "in":"formData", + "description":"Gender of the practitioner. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"given", + "in":"formData", + "description":"A portion of the given name.", + "type":"string" + }, + { + "name":"identifier", + "in":"formData", + "description":"A practitioner's Identifier. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"location", + "in":"formData", + "description":"One of the locations at which this practitioner provides care.", + "type":"string" + }, + { + "name":"name", + "in":"formData", + "description":"A portion of either family or given name.", + "type":"string" + }, + { + "name":"organization", + "in":"formData", + "description":"The identity of the organization the practitioner represents / acts on behalf of.", + "type":"string" + }, + { + "name":"phone", + "in":"formData", + "description":"A value in a phone contact. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"phonetic", + "in":"formData", + "description":"A portion of either family or given name using some kind of phonetic matching algorithm.", + "type":"string" + }, + { + "name":"role", + "in":"formData", + "description":"The practitioner can perform this role at for the organization. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"specialty", + "in":"formData", + "description":"The practitioner has this specailty at an organization. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"telecom", + "in":"formData", + "description":"The value in any kind of contact.", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Practitioner Bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}":{ + "get":{ + "description":"Returns details of Practitioner having id given in path.

      FHIR documentation for Practitioner.

      ", + "operationId":"Read Practitioner", + "security":[ + { + "outhB2C":[ + "patient/Practitioner.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Practitioner.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Practitioner instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for Practitioner.

      FHIR documentation for Practitioner.

      ", + "operationId":"Practitioners Metadata", + "security":[ + { + "outhB2C":[ + "patient/Practitioner.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels used for Practitioner." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given Practitioner.

      FHIR documentation for Practitioner.

      ", + "operationId":"Practitioner Metadata", + "security":[ + { + "outhB2C":[ + "patient/Practitioner.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Practitioner.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated Practitioner." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given version of the Practitioner.

      FHIR documentation for Practitioner.

      ", + "operationId":"Practitioner Version based Metadata", + "security":[ + { + "outhB2C":[ + "patient/Practitioner.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Practitioner.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of Practitioner.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated version of the Practitioner." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_history":{ + "get":{ + "description":"It retrieves the history of all resources of Practitioners.

      FHIR documentation for Practitioner.

      ", + "operationId":"Practitioners History", + "security":[ + { + "outhB2C":[ + "patient/Practitioner.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Only include Practitioner versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Practitioner instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history":{ + "get":{ + "description":"It retrieves the history of a particular Practitioner identified by the given id in path.

      FHIR documentation for Practitioner.

      ", + "operationId":"Practitioner History", + "security":[ + { + "outhB2C":[ + "patient/Practitioner.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Only include Practitioner versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"id", + "description":"The logical resource id associated with the Practitioner.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Practitioner instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}":{ + "get":{ + "description":"This interaction preforms a version specific read of Practitioner resource.

      FHIR documentation for Practitioner.

      ", + "operationId":"Practitioner Version Read", + "security":[ + { + "outhB2C":[ + "patient/Practitioner.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Practitioner.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of Practitioner", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Practitioner instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/{type}":{ + "get":{ + "description":"Search the specified resource type in Practitioner compartment.

      FHIR documentation for Practitioner.

      ", + "operationId":"Compartment Search", + "security":[ + { + "outhB2C":[ + "patient/Practitioner.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Practitioner.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"type", + "description":"Type of Practitioner", + "type":"string", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Practitioner.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Practitioners based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Practitioners based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the Practitioner. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the Practitioner. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the Practitioner. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of Practitioners that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Practitioner resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Practitioner resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular Practitioner, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular Practitioner, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"address", + "in":"query", + "description":"An address in any kind of address/part", + "type":"string" + }, + { + "name":"address-city", + "in":"query", + "description":"A city specified in an address", + "type":"string" + }, + { + "name":"address-country", + "in":"query", + "description":"A country specified in an address", + "type":"string" + }, + { + "name":"address-postalcode", + "in":"query", + "description":"A postalCode specified in an address", + "type":"string" + }, + { + "name":"address-state", + "in":"query", + "description":"A state specified in an address", + "type":"string" + }, + { + "name":"address-use", + "in":"query", + "description":"A use code specified in an address.Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"communication", + "in":"query", + "description":"One of the languages that the practitioner can communicate with. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"email", + "in":"query", + "description":"A value in an email contact. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"family", + "in":"query", + "description":"A portion of the family name.", + "type":"string" + }, + { + "name":"gender", + "in":"query", + "description":"Gender of the practitioner. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"given", + "in":"query", + "description":"A portion of the given name.", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"A practitioner's Identifier. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"location", + "in":"query", + "description":"One of the locations at which this practitioner provides care.", + "type":"string" + }, + { + "name":"name", + "in":"query", + "description":"A portion of either family or given name.", + "type":"string" + }, + { + "name":"organization", + "in":"query", + "description":"The identity of the organization the practitioner represents / acts on behalf of.", + "type":"string" + }, + { + "name":"phone", + "in":"query", + "description":"A value in a phone contact. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"phonetic", + "in":"query", + "description":"A portion of either family or given name using some kind of phonetic matching algorithm.", + "type":"string" + }, + { + "name":"role", + "in":"query", + "description":"The practitioner can perform this role at for the organization. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"specialty", + "in":"query", + "description":"The practitioner has this specailty at an organization. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"telecom", + "in":"query", + "description":"The value in any kind of contact.", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"The set of resources associated with a particular Practitioner." + }, + "default":{ + "description":"unexpected error" + } + } + } + } + }, + "securityDefinitions":{ + "outhB2C":{ + "type":"oauth2", + "description":"Security scheme for B2C flow using authorization code flow.", + "scopes":{ + "patient/Practitioner.read":"Read permissions for Practitioner demographics." + }, + "flow":"Authorization_code", + "authorizationUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/authorize?scope=patient/Practitioner.read&state=uyrjiqa23nv8650ndj", + "tokenUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/accesstoken" + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Procedure-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Procedure-api.json new file mode 100755 index 0000000..2d9fdc1 --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Procedure-api.json @@ -0,0 +1,1274 @@ +{ + "swagger":"2.0", + "info":{ + "version":"1.0.0", + "title":"Procedure API", + "description":"FHIR Procedure resource API documentation" + }, + "host":"fhirsandbox-prod.apigee.net", + "basePath":"/fhir/v1/Procedure", + "schemes":[ + "https" + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "security":[ + { + "outhB2C":[ + "patient/Procedure.read" + ] + } + ], + "paths":{ + "":{ + "get":{ + "description":"Returns Procedure based on filter criteria OR Provides provision for pagination(stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).

      FHIR documentation for Procedure.

      ", + "operationId":"Procedures Search", + "security":[ + { + "outhB2C":[ + "patient/Procedure.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Procedure.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Procedures based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Procedures based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the Procedure. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the Procedure. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the Procedure. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of Procedures that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Procedure resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Procedure resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular Procedure, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes i.e. Procedure 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular Procedure, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes i.e. Procedure 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"A code to identify a procedure. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"date", + "in":"query", + "description":"The date the procedure was performed on. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <=, and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"query", + "description":"The date the procedure was performed on. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <=, and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"encounter", + "in":"query", + "description":"The encounter when procedure performed.", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"A unique identifier for a procedure. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"location", + "in":"query", + "description":"Where the procedure happened.", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The identity of a patient to list procedures for.", + "type":"string" + }, + { + "name":"performer", + "in":"query", + "description":"The reference to the practitioner.", + "type":"string" + }, + { + "name":"subject", + "in":"query", + "description":"Search by Subject.", + "type":"string" + }, + { + "name":"stateid", + "in":"query", + "description":"Unique id associated with a page.", + "type":"string" + }, + { + "name":"page", + "in":"query", + "description":"Procedure resource offset.", + "type":"number" + }, + { + "name":"page_size", + "in":"query", + "description":"The number of Procedure resources requested in a page.", + "type":"number" + }, + { + "name":"_pretty", + "in":"query", + "description":"Set true to get prettified data.", + "type":"boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + } + ], + "responses":{ + "200":{ + "description":"Procedure bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_search":{ + "post":{ + "description":"This interaction searches a set of Procedures based on some filter criteria. Search interactions take a series of parameters of name'='value pairs encoded as an application/x-www-form-urlencoded submission for a POST.

      FHIR documentation for Procedure.

      ", + "operationId":"Procedures Search using POST", + "security":[ + { + "outhB2C":[ + "patient/Procedure.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Content-Type", + "in":"header", + "required":true, + "description":"Specifies the format of data in body", + "type":"string", + "default":"application/x-www-form-urlencoded" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Procedure.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Procedures based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select Procedures based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the Procedure. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the Procedure. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the Procedure. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of Procedures that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Procedure resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Procedure resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular Procedure, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_id", + "in":"formData", + "description":"The logical resource id associated with the Procedure.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"formData", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"formData", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"formData", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"formData", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "formData", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "formData", + "description": "Used to search the entire content of the Procedure resource.", + "type": "string" + }, { + "name": "_text", + "in": "formData", + "description": "Used to search on the narrative of the Procedure resource.", + "type": "string" + }, + { + "name":"_include", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"formData", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"formData", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"formData", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_elements", + "in":"formData", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"A code to identify a procedure. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"date", + "in":"query", + "description":"The date the procedure was performed on. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <=, and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"query", + "description":"The date the procedure was performed on. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <=, and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"encounter", + "in":"query", + "description":"The encounter when procedure performed.", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"A unique identifier for a procedure. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"location", + "in":"query", + "description":"Where the procedure happened.", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The identity of a patient to list procedures for.", + "type":"string" + }, + { + "name":"performer", + "in":"query", + "description":"The reference to the practitioner.", + "type":"string" + }, + { + "name":"subject", + "in":"query", + "description":"Search by Subject.", + "type":"string" + }, + { + "name":"code", + "in":"formData", + "description":"A code to identify a procedure. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"date", + "in":"formData", + "description":"The date the procedure was performed on. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <=, and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"formData", + "description":"The date the procedure was performed on. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <=, and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"encounter", + "in":"formData", + "description":"The encounter when procedure performed.", + "type":"string" + }, + { + "name":"identifier", + "in":"formData", + "description":"A unique identifier for a procedure. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"location", + "in":"formData", + "description":"Where the procedure happened.", + "type":"string" + }, + { + "name":"patient", + "in":"formData", + "description":"The identity of a patient to list procedures for.", + "type":"string" + }, + { + "name":"performer", + "in":"formData", + "description":"The reference to the practitioner.", + "type":"string" + }, + { + "name":"subject", + "in":"formData", + "description":"Search by Subject.", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Procedure Bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}":{ + "get":{ + "description":"Returns details of Procedure having id given in path.

      FHIR documentation for Procedure.

      ", + "operationId":"Read Procedure", + "security":[ + { + "outhB2C":[ + "patient/Procedure.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Procedure.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Procedure instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for Procedure.

      FHIR documentation for Procedure.

      ", + "operationId":"Procedures Metadata", + "security":[ + { + "outhB2C":[ + "patient/Procedure.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels used for Procedure." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given Procedure resource.

      FHIR documentation for Procedure.

      ", + "operationId":"Procedure Metadata", + "security":[ + { + "outhB2C":[ + "patient/Procedure.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Procedure.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given version of the Procedure.

      FHIR documentation for Procedure.

      ", + "operationId":"Procedure Version based Metadata", + "security":[ + { + "outhB2C":[ + "patient/Procedure.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Procedure.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of Procedure.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated version of the resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_history":{ + "get":{ + "description":"It retrieves the history of all resources of Procedure.

      FHIR documentation for Procedure.

      ", + "operationId":"Procedures History", + "security":[ + { + "outhB2C":[ + "patient/Procedure.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Procedure instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history":{ + "get":{ + "description":"It retrieves the history of a particular Procedure identified by the given id in path.

      FHIR documentation for Procedure.

      ", + "operationId":"Procedure History", + "security":[ + { + "outhB2C":[ + "patient/Procedure.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"id", + "description":"The logical resource id associated with the Procedure.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Procedure instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}":{ + "get":{ + "description":"This interaction preforms a version specific read of Procedure resource.

      FHIR documentation for Procedure.

      ", + "operationId":"Procedure Version Read", + "security":[ + { + "outhB2C":[ + "patient/Procedure.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Procedure.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of Procedure", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Procedure instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/{type}":{ + "get":{ + "description":"Search the specified resource type in Procedure compartment.

      FHIR documentation for Procedure.

      ", + "operationId":"Compartment Search", + "security":[ + { + "outhB2C":[ + "patient/Procedure.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Procedure.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"type", + "description":"Type of Resource", + "type":"string", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Procedure.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name": "_summary", + "in": "query", + "description": "Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type": "string" + }, { + "name": "_content", + "in": "query", + "description": "Used to search the entire content of the Procedure resource.", + "type": "string" + }, { + "name": "_text", + "in": "query", + "description": "Used to search on the narrative of the Procedure resource.", + "type": "string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"code", + "in":"query", + "description":"A code to identify a procedure. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"date", + "in":"query", + "description":"The date the procedure was performed on. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <=, and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"query", + "description":"The date the procedure was performed on. The date parameter format is yyyy-mm-ddThh:nn:ss(TZ). Two dates can be used to specify an interval. The prefixes >, >=, <=, and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"encounter", + "in":"query", + "description":"The encounter when procedure performed.", + "type":"string" + }, + { + "name":"identifier", + "in":"query", + "description":"A unique identifier for a procedure. Value can have following formats: [code] or [system]|[code] or |[code].", + "type":"string" + }, + { + "name":"location", + "in":"query", + "description":"Where the procedure happened.", + "type":"string" + }, + { + "name":"patient", + "in":"query", + "description":"The identity of a patient to list procedures for.", + "type":"string" + }, + { + "name":"performer", + "in":"query", + "description":"The reference to the practitioner.", + "type":"string" + }, + { + "name":"subject", + "in":"query", + "description":"Search by Subject.", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"The set of resources associated with a particular Procedure." + }, + "default":{ + "description":"unexpected error" + } + } + } + } + }, + "securityDefinitions":{ + "outhB2C":{ + "type":"oauth2", + "description":"Security scheme for B2C flow using authorization code flow.", + "scopes":{ + "patient/Procedure.read":"Read permissions for Procedure demographics." + }, + "flow":"Authorization_code", + "authorizationUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/authorize?scope=patient/Procedure.read&state=uyrjiqa23nv8650ndj", + "tokenUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/accesstoken" + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Schedule-api.json b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Schedule-api.json new file mode 100755 index 0000000..2a14e6d --- /dev/null +++ b/src/developerportal/all/modules/custom/fhir_swagger/swaggers/Schedule-api.json @@ -0,0 +1,1186 @@ +{ + "swagger":"2.0", + "info":{ + "version":"1.0.0", + "title":"Schedule API", + "description":"FHIR Schedule resource API documentation" + }, + "host":"fhirsandbox-prod.apigee.net", + "basePath":"/fhir/v1/Schedule", + "schemes":[ + "https" + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "security":[ + { + "outhB2C":[ + "patient/Schedule.read" + ] + } + ], + "paths":{ + "":{ + "get":{ + "description":"Returns Schedule based on filter criteria OR Provides provision for pagination (stateid, page, page_size, _pretty & _bundletype are query parameters used for Paging).

      FHIR documentation for Schedule.

      ", + "operationId":"Schedules Search", + "security":[ + { + "outhB2C":[ + "patient/Schedule.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Schedule.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name":"_summary", + "in":"query", + "description":"Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type":"string" + }, + { + "name":"_content", + "in":"query", + "description":"Used to search the entire content of the Schedule resource.", + "type":"string" + }, + { + "name":"_text", + "in":"query", + "description":"Used to search on the narrative of the Schedule resource.", + "type":"string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"date", + "in":"query", + "description":"Search for Schedule resources that have a period that contains this date specified. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"query", + "description":"Search for Schedule resources that have a period that contains this date specified. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"identifier", + "in":"query", + "description":"A Schedule Identifier. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"actor", + "in":"query", + "description":"The individual(HealthcareService, Practitioner, Location, ...) to find a Schedule for.", + "type":"string" + }, + { + "name":"type", + "in":"query", + "description":"The type of appointments that can be booked into associated slot(s). Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"number" + }, + { + "name":"stateid", + "in":"query", + "description":"Unique id associated with a page.", + "type":"string" + }, + { + "name":"page", + "in":"query", + "description":"Immunization resource offset.", + "type":"number" + }, + { + "name":"page_size", + "in":"query", + "description":"The number of Immunization resources requested in a page.", + "type":"number" + }, + { + "name":"_pretty", + "in":"query", + "description":"Set true to get prettified data.", + "type":"boolean" + }, { + "name": "_bundletype", + "in": "query", + "description": "Indicates the purpose of a bundle. Values can be one of: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection.", + "type": "string" + } + ], + "responses":{ + "200":{ + "description":"Schedule bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_search":{ + "post":{ + "description":"This interaction searches a set of Schedule based on some filter criteria. Search interactions take a series of parameters of name'='value pairs encoded as an application/x-www-form-urlencoded submission for a POST.

      FHIR documentation for Schedule.

      ", + "operationId":"Schedules Search using POST", + "security":[ + { + "outhB2C":[ + "patient/Schedule.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Content-Type", + "in":"header", + "required":true, + "description":"Specifies the format of data in body", + "type":"string", + "default":"application/x-www-form-urlencoded" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Schedule.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name":"_summary", + "in":"query", + "description":"Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type":"string" + }, + { + "name":"_content", + "in":"query", + "description":"Used to search the entire content of the Schedule resource.", + "type":"string" + }, + { + "name":"_text", + "in":"query", + "description":"Used to search on the narrative of the Schedule resource.", + "type":"string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"date", + "in":"query", + "description":"Search for Schedule resources that have a period that contains this date specified. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"query", + "description":"Search for Schedule resources that have a period that contains this date specified. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"identifier", + "in":"query", + "description":"A Schedule Identifier. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"actor", + "in":"query", + "description":"The individual(HealthcareService, Practitioner, Location, ...) to find a Schedule for.", + "type":"string" + }, + { + "name":"type", + "in":"query", + "description":"The type of appointments that can be booked into associated slot(s). Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"number" + }, + { + "name":"_id", + "in":"formData", + "description":"The logical resource id associated with the Schedule.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"formData", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"formData", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"formData", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"formData", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"formData", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"formData", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name":"_summary", + "in":"formData", + "description":"Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type":"string" + }, + { + "name":"_content", + "in":"formData", + "description":"Used to search the entire content of the Schedule resource.", + "type":"string" + }, + { + "name":"_text", + "in":"formData", + "description":"Used to search on the narrative of the Schedule resource.", + "type":"string" + }, + { + "name":"_include", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"formData", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"formData", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"formData", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"formData", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"date", + "in":"formData", + "description":"Search for Schedule resources that have a period that contains this date specified. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"formData", + "description":"Search for Schedule resources that have a period that contains this date specified. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"identifier", + "in":"formData", + "description":"A Schedule Identifier. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"actor", + "in":"formData", + "description":"The individual(HealthcareService, Practitioner, Location, ...) to find a Schedule for.", + "type":"string" + }, + { + "name":"type", + "in":"formData", + "description":"The type of appointments that can be booked into associated slot(s). Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"number" + } + ], + "responses":{ + "200":{ + "description":"Schedule Bundle" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}":{ + "get":{ + "description":"Returns details of Schedule having id given in path.

      FHIR documentation for Schedule.

      ", + "operationId":"Read Schedule", + "security":[ + { + "outhB2C":[ + "patient/Schedule.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Schedule.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Schedule instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for Schedule.

      FHIR documentation for Schedule.

      ", + "operationId":"Schedules Metadata", + "security":[ + { + "outhB2C":[ + "patient/Schedule.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels used for Schedule." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given Schedule.

      FHIR documentation for Schedule.

      ", + "operationId":"Schedule Metadata", + "security":[ + { + "outhB2C":[ + "patient/Schedule.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Schedule.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}/$meta":{ + "get":{ + "description":"Retrieves a summary of the profiles, tags, and security labels for given version of the Schedule.

      FHIR documentation for Schedule.

      ", + "operationId":"Schedule Version based Metadata", + "security":[ + { + "outhB2C":[ + "patient/Schedule.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Schedule.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of Schedule", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"List of all tags, profiles and security labels affixed to the nominated version of the resource." + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/_history":{ + "get":{ + "description":"It retrieves the history of all resources of Schedule.

      FHIR documentation for Schedule.

      ", + "operationId":"Schedules History", + "security":[ + { + "outhB2C":[ + "patient/Schedule.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Schedule instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history":{ + "get":{ + "description":"It retrieves the history of a particular Schedule identified by the given id in path.

      FHIR documentation for Schedule.

      ", + "operationId":"Schedule History", + "security":[ + { + "outhB2C":[ + "patient/Schedule.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"Number of records needed in response.", + "type":"integer" + }, + { + "name":"_since", + "in":"query", + "description":"Specify an instant to only include resource versions that were created at or after the given instant in time. An instant in time is known at least to the second and always includes a time zone.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"id", + "description":"The logical resource id associated with the Schedule.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Schedule instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/_history/{vid}":{ + "get":{ + "description":"This interaction preforms a version specific read of Schedule resource.

      FHIR documentation for Schedule.

      ", + "operationId":"Schedule Version Read", + "security":[ + { + "outhB2C":[ + "patient/Schedule.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Schedule.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"vid", + "description":"Version Id of Schedule", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"Schedule instance" + }, + "default":{ + "description":"unexpected error" + } + } + } + }, + "/{id}/{type}":{ + "get":{ + "description":"Search the specified resource type in Schedule compartment.

      FHIR documentation for Schedule.

      ", + "operationId":"Compartment Search", + "security":[ + { + "outhB2C":[ + "patient/Schedule.read" + ] + } + ], + "produces":[ + "application/json+fhir;charset=UTF-8", + "application/xml+fhir;charset=UTF-8" + ], + "parameters":[ + { + "name":"_format", + "in":"query", + "description":"Format of data to be returned.", + "type":"string" + }, + { + "name":"id", + "description":"The logical resource id associated with the Schedule.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}", + "required":true, + "in":"path" + }, + { + "name":"type", + "description":"Type of Resource", + "type":"string", + "required":true, + "in":"path" + }, + { + "name":"Authorization", + "in":"header", + "required":false, + "default": "Bearer [access_token]", + "description":"Specify access token for API in the given format: Bearer [access_token].", + "type":"string" + }, + { + "name":"Accept", + "description":"The Accept request-header field can be used to specify certain media types which are acceptable for the response.", + "in":"header", + "required":false, + "default": "application/json+fhir;charset=UTF-8", + "type":"string" + }, + { + "name":"_id", + "in":"query", + "description":"The logical resource id associated with the Schedule.", + "type":"string", + "pattern":"[a-z0-9\\-\\.]{1,64}" + }, + { + "name":"_elements", + "in":"query", + "description":"Used to specify set of elements be returned as part of a resource. The _elements parameter consists of a comma separated list of base element names.", + "type":"string" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_lastUpdated", + "in":"query", + "description":"The search parameter _lastUpdated can be used to select resources based on the last time they were changed. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"_profile", + "in":"query", + "description":"This parameter searches on the profile element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_tag", + "in":"query", + "description":"This parameter searches on the tags element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_security", + "in":"query", + "description":"This parameter searches on the security element in the meta element of the resource. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"_count", + "in":"query", + "description":"The number of resources that should be returned in a single page.", + "type":"integer" + }, + { + "name":"_summary", + "in":"query", + "description":"Used to request the server to return a subset of the resource. It can contain one of the following values: true, false, text, data or count.", + "type":"string" + }, + { + "name":"_content", + "in":"query", + "description":"Used to search the entire content of the Schedule resource.", + "type":"string" + }, + { + "name":"_text", + "in":"query", + "description":"Used to search on the narrative of the Schedule resource.", + "type":"string" + }, + { + "name":"_include", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that it references. Parameter values for _include have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_revinclude", + "in":"query", + "description":"This parameter can be used to fetch a particular resource, and any resources that refer to it. It can have a value of one of the possible search parameters. Parameter values for _revinclude have 3 parts, separated by a : separator. 1. The name of the source resource from which the join comes. 2. The name of the search parameter which must be of type reference. 3.(Optional) A specific of type of target resource (for when the search parameter refers to multiple possible target types)", + "type":"string" + }, + { + "name":"_sort", + "in":"query", + "description":"Used to order the results in default(ascending) order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:asc", + "in":"query", + "description":"Used to order the results in ascending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"_sort:desc", + "in":"query", + "description":"Used to order the results in descending order. The value can be one of the possible search parameters. The _sort parameter can repeat to indicate sort order, with the repeats indicating a lower sort priority sequentially.", + "type":"string" + }, + { + "name":"date", + "in":"query", + "description":"Search for Schedule resources that have a period that contains this date specified. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"date", + "in":"query", + "description":"Search for Schedule resources that have a period that contains this date specified. The parameter format is yyyy-mm-ddThh:nn:ss(TZ). The prefixes >, >=, <= and < may be used on the parameter value.", + "type":"string", + "pattern":"([1-9][0-9]{3}|0[0-9]{3})(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?" + }, + { + "name":"identifier", + "in":"query", + "description":"A Schedule Identifier. Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"string" + }, + { + "name":"actor", + "in":"query", + "description":"The individual(HealthcareService, Practitioner, Location, ...) to find a Schedule for.", + "type":"string" + }, + { + "name":"type", + "in":"query", + "description":"The type of appointments that can be booked into associated slot(s). Value can have following formats: [code] or [namespace]|[code] or |[code].", + "type":"number" + } + ], + "responses":{ + "200":{ + "description":"The set of resources associated with a particular Schedule." + }, + "default":{ + "description":"unexpected error" + } + } + } + } + }, + "securityDefinitions":{ + "outhB2C":{ + "type":"oauth2", + "description":"Security scheme for B2C flow using authorization code flow.", + "scopes":{ + "patient/Schedule.read":"Read permissions for Schedule demographics." + }, + "flow":"Authorization_code", + "authorizationUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/authorize?scope=patient/Schedule.read&state=uyrjiqa23nv8650ndj", + "tokenUrl":"https://fhirsandbox-prod.apigee.net/oauth/v2/accesstoken" + } + } +} \ No newline at end of file diff --git a/src/developerportal/all/modules/features/fhir_custom/fhir_custom.context.inc b/src/developerportal/all/modules/features/fhir_custom/fhir_custom.context.inc new file mode 100755 index 0000000..f557b51 --- /dev/null +++ b/src/developerportal/all/modules/features/fhir_custom/fhir_custom.context.inc @@ -0,0 +1,147 @@ +disabled = FALSE; /* Edit this to true to make a default context disabled initially */ + $context->api_version = 3; + $context->name = 'custom_blog'; + $context->description = 'This is the customized context for the blogs page'; + $context->tag = ''; + $context->conditions = array( + 'path' => array( + 'values' => array( + 'blogs' => 'blogs', + 'blogs/*' => 'blogs/*', + ), + ), + ); + $context->reactions = array( + 'block' => array( + 'blocks' => array( + 'views-blog-latest' => array( + 'module' => 'views', + 'delta' => 'blog-latest', + 'region' => 'sidebar_second', + 'weight' => '-10', + ), + 'views-blog-popular' => array( + 'module' => 'views', + 'delta' => 'blog-popular', + 'region' => 'sidebar_second', + 'weight' => '-9', + ), + ), + ), + ); + $context->condition_mode = 0; + + // Translatables + // Included for use with string extractors like potx. + t('This is the customized context for the blogs page'); + $export['custom_blog'] = $context; + + $context = new stdClass(); + $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */ + $context->api_version = 3; + $context->name = 'custom_home'; + $context->description = 'This the custom context for the home page'; + $context->tag = ''; + $context->conditions = array( + 'path' => array( + 'values' => array( + 'home' => 'home', + ), + ), + ); + $context->reactions = array( + 'block' => array( + 'blocks' => array( + 'fhir_blocks-fhir_get_started' => array( + 'module' => 'fhir_blocks', + 'delta' => 'fhir_get_started', + 'region' => 'content', + 'weight' => '-7', + ), + 'fhir_blocks-fhir_apis_sandox' => array( + 'module' => 'fhir_blocks', + 'delta' => 'fhir_apis_sandox', + 'region' => 'content', + 'weight' => '-6', + ), + 'fhir_blocks-fhir_app_gallery' => array( + 'module' => 'fhir_blocks', + 'delta' => 'fhir_app_gallery', + 'region' => 'content', + 'weight' => '-5', + ), + 'views-slideshow-block' => array( + 'module' => 'views', + 'delta' => 'slideshow-block', + 'region' => 'homepage_header', + 'weight' => '-10', + ), + ), + ), + ); + $context->condition_mode = 0; + + // Translatables + // Included for use with string extractors like potx. + t('This the custom context for the home page'); + $export['custom_home'] = $context; + + $context = new stdClass(); + $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */ + $context->api_version = 3; + $context->name = 'custom_sitewide'; + $context->description = 'This is the custom sitewide context'; + $context->tag = ''; + $context->conditions = array( + 'sitewide' => array( + 'values' => array( + 1 => 1, + ), + ), + ); + $context->reactions = array( + 'block' => array( + 'blocks' => array( + 'fhir_blocks-fhir_copyright' => array( + 'module' => 'fhir_blocks', + 'delta' => 'fhir_copyright', + 'region' => 'footer', + 'weight' => '-10', + ), + 'fhir_blocks-fhir_social_bottom' => array( + 'module' => 'fhir_blocks', + 'delta' => 'fhir_social_bottom', + 'region' => 'footer', + 'weight' => '-9', + ), + 'fhir_blocks-fhir_logo_caption' => array( + 'module' => 'fhir_blocks', + 'delta' => 'fhir_logo_caption', + 'region' => 'logo_right', + 'weight' => '-10', + ), + ), + ), + ); + $context->condition_mode = 0; + + // Translatables + // Included for use with string extractors like potx. + t('This is the custom sitewide context'); + $export['custom_sitewide'] = $context; + + return $export; +} diff --git a/src/developerportal/all/modules/features/fhir_custom/fhir_custom.features.fe_block_boxes.inc b/src/developerportal/all/modules/features/fhir_custom/fhir_custom.features.fe_block_boxes.inc new file mode 100755 index 0000000..58925ef --- /dev/null +++ b/src/developerportal/all/modules/features/fhir_custom/fhir_custom.features.fe_block_boxes.inc @@ -0,0 +1,114 @@ +info = 'Clean Code'; + $fe_block_boxes->format = 'full_html'; + $fe_block_boxes->machine_name = 'clean_code'; + $fe_block_boxes->body = ' +'; + + $export['clean_code'] = $fe_block_boxes; + + $fe_block_boxes = new stdClass(); + $fe_block_boxes->info = 'Copyright'; + $fe_block_boxes->format = 'full_html'; + $fe_block_boxes->machine_name = 'copyright'; + $fe_block_boxes->body = '
      +
      +
      + + + +
      + +
      + + + +
      +
      + +
      © 2015 Apigee Corp. All Rights Reserved.
      +
      +'; + + $export['copyright'] = $fe_block_boxes; + + $fe_block_boxes = new stdClass(); + $fe_block_boxes->info = 'GETTING STARTED'; + $fe_block_boxes->format = 'full_html'; + $fe_block_boxes->machine_name = 'getting_started'; + $fe_block_boxes->body = ' +'; + + $export['getting_started'] = $fe_block_boxes; + + $fe_block_boxes = new stdClass(); + $fe_block_boxes->info = 'Key Features'; + $fe_block_boxes->format = 'full_html'; + $fe_block_boxes->machine_name = 'key_features'; + $fe_block_boxes->body = ' +'; + + $export['key_features'] = $fe_block_boxes; + + $fe_block_boxes = new stdClass(); + $fe_block_boxes->info = 'Socials Bottom'; + $fe_block_boxes->format = 'full_html'; + $fe_block_boxes->machine_name = 'socials_bottom'; + $fe_block_boxes->body = '
      + +
      +'; + + $export['socials_bottom'] = $fe_block_boxes; + + return $export; +} diff --git a/src/developerportal/all/modules/features/fhir_custom/fhir_custom.features.fe_block_settings.inc b/src/developerportal/all/modules/features/fhir_custom/fhir_custom.features.fe_block_settings.inc new file mode 100755 index 0000000..63ae12f --- /dev/null +++ b/src/developerportal/all/modules/features/fhir_custom/fhir_custom.features.fe_block_settings.inc @@ -0,0 +1,49 @@ + -1, + 'css_class' => '', + 'custom' => 0, + 'delta' => 'slideshow-block', + 'module' => 'views', + 'node_types' => array(), + 'pages' => '', + 'roles' => array(), + 'themes' => array( + 'adminimal' => array( + 'region' => '', + 'status' => 0, + 'theme' => 'adminimal', + 'weight' => 0, + ), + 'apigee_responsive' => array( + 'region' => '', + 'status' => 0, + 'theme' => 'apigee_responsive', + 'weight' => 0, + ), + 'fhir_responsive' => array( + 'region' => '', + 'status' => 0, + 'theme' => 'fhir_responsive', + 'weight' => 0, + ), + ), + 'title' => '', + 'visibility' => 0, + ); + + return $export; +} diff --git a/src/developerportal/all/modules/features/fhir_custom/fhir_custom.features.field_base.inc b/src/developerportal/all/modules/features/fhir_custom/fhir_custom.features.field_base.inc new file mode 100755 index 0000000..7474efa --- /dev/null +++ b/src/developerportal/all/modules/features/fhir_custom/fhir_custom.features.field_base.inc @@ -0,0 +1,359 @@ + 1, + 'cardinality' => 1, + 'deleted' => 0, + 'entity_types' => array( + 0 => 'node', + ), + 'field_name' => 'body', + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'locked' => 0, + 'module' => 'text', + 'settings' => array(), + 'translatable' => 0, + 'type' => 'text_with_summary', + ); + + // Exported field_base: 'field_app_categories'. + $field_bases['field_app_categories'] = array( + 'active' => 1, + 'cardinality' => 1, + 'deleted' => 0, + 'entity_types' => array(), + 'field_name' => 'field_app_categories', + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'app_categories', + 'parent' => 0, + ), + ), + ), + 'translatable' => 0, + 'type' => 'taxonomy_term_reference', + ); + + // Exported field_base: 'field_app_image'. + $field_bases['field_app_image'] = array( + 'active' => 1, + 'cardinality' => -1, + 'deleted' => 0, + 'entity_types' => array(), + 'field_name' => 'field_app_image', + 'indexes' => array( + 'fid' => array( + 0 => 'fid', + ), + ), + 'locked' => 0, + 'module' => 'image', + 'settings' => array( + 'default_image' => 0, + 'uri_scheme' => 'public', + ), + 'translatable' => 0, + 'type' => 'image', + ); + + // Exported field_base: 'field_app_tags'. + $field_bases['field_app_tags'] = array( + 'active' => 1, + 'cardinality' => -1, + 'deleted' => 0, + 'entity_types' => array(), + 'field_name' => 'field_app_tags', + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'app_gallery_tags', + 'parent' => 0, + ), + ), + ), + 'translatable' => 0, + 'type' => 'taxonomy_term_reference', + ); + + // Exported field_base: 'field_app_video'. + $field_bases['field_app_video'] = array( + 'active' => 1, + 'cardinality' => 5, + 'deleted' => 0, + 'entity_types' => array(), + 'field_name' => 'field_app_video', + 'indexes' => array( + 'fid' => array( + 0 => 'fid', + ), + ), + 'locked' => 0, + 'module' => 'image', + 'settings' => array( + 'default_image' => 0, + 'uri_scheme' => 'public', + ), + 'translatable' => 0, + 'type' => 'image', + ); + + // Exported field_base: 'field_author_name'. + $field_bases['field_author_name'] = array( + 'active' => 1, + 'cardinality' => 5, + 'deleted' => 0, + 'entity_types' => array(), + 'field_name' => 'field_author_name', + 'indexes' => array(), + 'locked' => 0, + 'module' => 'link', + 'settings' => array( + 'attributes' => array( + 'class' => '', + 'rel' => '', + 'target' => 'default', + ), + 'display' => array( + 'url_cutoff' => 80, + ), + 'enable_tokens' => 1, + 'title' => 'optional', + 'title_maxlength' => 128, + 'title_value' => '', + 'url' => 0, + ), + 'translatable' => 0, + 'type' => 'link_field', + ); + + // Exported field_base: 'field_categories'. + $field_bases['field_categories'] = array( + 'active' => 1, + 'cardinality' => -1, + 'deleted' => 0, + 'entity_types' => array(), + 'field_name' => 'field_categories', + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'blog_categories', + 'parent' => 0, + ), + ), + ), + 'translatable' => 0, + 'type' => 'taxonomy_term_reference', + ); + + // Exported field_base: 'field_content_tag'. + $field_bases['field_content_tag'] = array( + 'active' => 1, + 'cardinality' => 1, + 'deleted' => 0, + 'entity_types' => array(), + 'field_name' => 'field_content_tag', + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'content_type_tag', + 'parent' => 0, + ), + ), + ), + 'translatable' => 0, + 'type' => 'taxonomy_term_reference', + ); + + // Exported field_base: 'field_keywords'. + $field_bases['field_keywords'] = array( + 'active' => 1, + 'cardinality' => -1, + 'deleted' => 0, + 'entity_types' => array(), + 'field_name' => 'field_keywords', + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'blog', + 'parent' => 0, + ), + ), + ), + 'translatable' => 0, + 'type' => 'taxonomy_term_reference', + ); + + // Exported field_base: 'field_media'. + $field_bases['field_media'] = array( + 'active' => 1, + 'cardinality' => 1, + 'deleted' => 0, + 'entity_types' => array(), + 'field_name' => 'field_media', + 'indexes' => array( + 'fid' => array( + 0 => 'fid', + ), + ), + 'locked' => 0, + 'module' => 'file', + 'settings' => array( + 'display_default' => 0, + 'display_field' => 0, + 'uri_scheme' => 'public', + ), + 'translatable' => 0, + 'type' => 'file', + ); + + // Exported field_base: 'field_one_liner'. + $field_bases['field_one_liner'] = array( + 'active' => 1, + 'cardinality' => 1, + 'deleted' => 0, + 'entity_types' => array(), + 'field_name' => 'field_one_liner', + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'locked' => 0, + 'module' => 'text', + 'settings' => array( + 'max_length' => 75, + ), + 'translatable' => 0, + 'type' => 'text', + ); + + // Exported field_base: 'field_slides_image'. + $field_bases['field_slides_image'] = array( + 'active' => 1, + 'cardinality' => 1, + 'deleted' => 0, + 'entity_types' => array(), + 'field_name' => 'field_slides_image', + 'indexes' => array( + 'fid' => array( + 0 => 'fid', + ), + ), + 'locked' => 0, + 'module' => 'image', + 'settings' => array( + 'default_image' => 0, + 'uri_scheme' => 'public', + ), + 'translatable' => 0, + 'type' => 'image', + ); + + // Exported field_base: 'field_tags'. + $field_bases['field_tags'] = array( + 'active' => 1, + 'cardinality' => -1, + 'deleted' => 0, + 'entity_types' => array(), + 'field_name' => 'field_tags', + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'tags', + 'parent' => 0, + ), + ), + ), + 'translatable' => 0, + 'type' => 'taxonomy_term_reference', + ); + + // Exported field_base: 'field_website'. + $field_bases['field_website'] = array( + 'active' => 1, + 'cardinality' => 1, + 'deleted' => 0, + 'entity_types' => array(), + 'field_name' => 'field_website', + 'indexes' => array(), + 'locked' => 0, + 'module' => 'link', + 'settings' => array( + 'attributes' => array( + 'class' => '', + 'rel' => '', + 'target' => 'default', + ), + 'display' => array( + 'url_cutoff' => 80, + ), + 'enable_tokens' => 1, + 'title' => 'optional', + 'title_maxlength' => 128, + 'title_value' => '', + 'url' => 0, + ), + 'translatable' => 0, + 'type' => 'link_field', + ); + + return $field_bases; +} diff --git a/src/developerportal/all/modules/features/fhir_custom/fhir_custom.features.field_instance.inc b/src/developerportal/all/modules/features/fhir_custom/fhir_custom.features.field_instance.inc new file mode 100755 index 0000000..54b4483 --- /dev/null +++ b/src/developerportal/all/modules/features/fhir_custom/fhir_custom.features.field_instance.inc @@ -0,0 +1,1444 @@ + 'apps', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => 'Add short description about the App', + 'display' => array( + 'default' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 1, + ), + 'dexp_portfolio' => array( + 'label' => 'above', + 'module' => 'text', + 'settings' => array( + 'trim_length' => 600, + ), + 'type' => 'text_summary_or_trimmed', + 'weight' => 5, + ), + 'full' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 4, + ), + 'index_blog' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'large_image' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'slider' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'teaser' => array( + 'label' => 'hidden', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 11, + ), + 'time_line' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'body', + 'label' => 'Description', + 'required' => 1, + 'settings' => array( + 'display_summary' => 1, + 'text_processing' => 1, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'text', + 'settings' => array( + 'rows' => 5, + 'summary_rows' => 5, + ), + 'type' => 'text_textarea_with_summary', + 'weight' => 3, + ), + ); + + // Exported field_instance: 'node-apps-field_app_categories'. + $field_instances['node-apps-field_app_categories'] = array( + 'bundle' => 'apps', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => 2, + ), + 'dexp_portfolio' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => 3, + ), + 'full' => array( + 'label' => 'inline', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 14, + ), + 'index_blog' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'large_image' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'slider' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 14, + ), + 'time_line' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_app_categories', + 'label' => 'Categories', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_buttons', + 'weight' => 8, + ), + ); + + // Exported field_instance: 'node-apps-field_app_image'. + $field_instances['node-apps-field_app_image'] = array( + 'bundle' => 'apps', + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'image', + 'settings' => array( + 'image_link' => 'content', + 'image_style' => '', + ), + 'type' => 'image', + 'weight' => 0, + ), + 'dexp_portfolio' => array( + 'label' => 'hidden', + 'module' => 'image', + 'settings' => array( + 'image_link' => 'content', + 'image_style' => '265x190', + ), + 'type' => 'image', + 'weight' => 0, + ), + 'full' => array( + 'label' => 'hidden', + 'module' => 'image', + 'settings' => array( + 'image_link' => '', + 'image_style' => '', + ), + 'type' => 'image', + 'weight' => 0, + ), + 'index_blog' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'large_image' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'slider' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'teaser' => array( + 'label' => 'hidden', + 'module' => 'image', + 'settings' => array( + 'image_link' => 'content', + 'image_style' => '265x190', + ), + 'type' => 'image', + 'weight' => 0, + ), + 'time_line' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_app_image', + 'label' => 'App Images', + 'required' => 0, + 'settings' => array( + 'alt_field' => 0, + 'default_image' => 0, + 'file_directory' => 'AppsMedia', + 'file_extensions' => 'png gif jpg jpeg', + 'max_filesize' => '', + 'max_resolution' => '', + 'min_resolution' => '', + 'title_field' => 0, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'media', + 'settings' => array( + 'allowed_schemes' => array( + 'public' => 'public', + 'vimeo' => 0, + 'youtube' => 0, + ), + 'allowed_types' => array( + 'audio' => 0, + 'default' => 0, + 'image' => 'image', + 'video' => 0, + ), + 'browser_plugins' => array(), + 'progress_indicator' => 'throbber', + ), + 'type' => 'media_generic', + 'weight' => 4, + ), + ); + + // Exported field_instance: 'node-apps-field_app_tags'. + $field_instances['node-apps-field_app_tags'] = array( + 'bundle' => 'apps', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => 3, + ), + 'dexp_portfolio' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 14, + ), + 'full' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 15, + ), + 'index_blog' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'large_image' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'slider' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 15, + ), + 'time_line' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_app_tags', + 'label' => 'Tags', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_buttons', + 'weight' => 9, + ), + ); + + // Exported field_instance: 'node-apps-field_app_video'. + $field_instances['node-apps-field_app_video'] = array( + 'bundle' => 'apps', + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'image', + 'settings' => array( + 'image_link' => '', + 'image_style' => '', + ), + 'type' => 'image', + 'weight' => 6, + ), + 'dexp_portfolio' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 12, + ), + 'full' => array( + 'label' => 'above', + 'module' => 'file_entity', + 'settings' => array( + 'file_view_mode' => 'default', + ), + 'type' => 'file_rendered', + 'weight' => 1, + ), + 'index_blog' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'large_image' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'slider' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 13, + ), + 'time_line' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_app_video', + 'label' => 'App Video', + 'required' => 0, + 'settings' => array( + 'alt_field' => 0, + 'default_image' => 0, + 'file_directory' => 'AppsMedia', + 'file_extensions' => 'wmv 3gp mp4 flv', + 'max_filesize' => '', + 'max_resolution' => '', + 'min_resolution' => '', + 'title_field' => 0, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'media', + 'settings' => array( + 'allowed_schemes' => array( + 'public' => 'public', + 'vimeo' => 'vimeo', + 'youtube' => 'youtube', + ), + 'allowed_types' => array( + 'audio' => 0, + 'default' => 0, + 'image' => 0, + 'video' => 'video', + ), + 'browser_plugins' => array(), + 'progress_indicator' => 'throbber', + ), + 'type' => 'media_generic', + 'weight' => 5, + ), + ); + + // Exported field_instance: 'node-apps-field_author_name'. + $field_instances['node-apps-field_author_name'] = array( + 'bundle' => 'apps', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'link', + 'settings' => array(), + 'type' => 'link_default', + 'weight' => 7, + ), + 'dexp_portfolio' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 13, + ), + 'full' => array( + 'label' => 'inline', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 13, + ), + 'index_blog' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'large_image' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'slider' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 12, + ), + 'time_line' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_author_name', + 'label' => 'Author Name', + 'required' => 0, + 'settings' => array( + 'absolute_url' => 1, + 'attributes' => array( + 'class' => '', + 'configurable_class' => 0, + 'configurable_title' => 0, + 'rel' => 'nofollow', + 'target' => 'default', + 'title' => '', + ), + 'display' => array( + 'url_cutoff' => 80, + ), + 'enable_tokens' => 1, + 'rel_remove' => 'default', + 'title' => 'required', + 'title_label_use_field_label' => 0, + 'title_maxlength' => 128, + 'title_value' => '', + 'url' => 0, + 'user_register_form' => FALSE, + 'validate_url' => 1, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'link', + 'settings' => array(), + 'type' => 'link_field', + 'weight' => 6, + ), + ); + + // Exported field_instance: 'node-apps-field_one_liner'. + $field_instances['node-apps-field_one_liner'] = array( + 'bundle' => 'apps', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 9, + ), + 'dexp_portfolio' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 2, + ), + 'full' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 12, + ), + 'index_blog' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'large_image' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'slider' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'teaser' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 2, + ), + 'time_line' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_one_liner', + 'label' => 'One Liner', + 'required' => 0, + 'settings' => array( + 'text_processing' => 0, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'text', + 'settings' => array( + 'size' => 75, + ), + 'type' => 'text_textfield', + 'weight' => 2, + ), + ); + + // Exported field_instance: 'node-apps-field_website'. + $field_instances['node-apps-field_website'] = array( + 'bundle' => 'apps', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'link', + 'settings' => array(), + 'type' => 'link_default', + 'weight' => 8, + ), + 'dexp_portfolio' => array( + 'label' => 'hidden', + 'module' => 'link', + 'settings' => array(), + 'type' => 'link_default', + 'weight' => 4, + ), + 'full' => array( + 'label' => 'inline', + 'module' => 'link', + 'settings' => array(), + 'type' => 'link_url', + 'weight' => 3, + ), + 'index_blog' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'large_image' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'slider' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'teaser' => array( + 'label' => 'hidden', + 'module' => 'link', + 'settings' => array(), + 'type' => 'link_url', + 'weight' => 3, + ), + 'time_line' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_website', + 'label' => 'Website', + 'required' => 0, + 'settings' => array( + 'absolute_url' => 1, + 'attributes' => array( + 'class' => '', + 'configurable_class' => 0, + 'configurable_title' => 0, + 'rel' => 'nofollow', + 'target' => 'default', + 'title' => '', + ), + 'display' => array( + 'url_cutoff' => 80, + ), + 'enable_tokens' => 1, + 'rel_remove' => 'default', + 'title' => 'none', + 'title_label_use_field_label' => 0, + 'title_maxlength' => 128, + 'title_value' => '', + 'url' => 0, + 'user_register_form' => FALSE, + 'validate_url' => 1, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'link', + 'settings' => array(), + 'type' => 'link_field', + 'weight' => 7, + ), + ); + + // Exported field_instance: 'node-article-body'. + $field_instances['node-article-body'] = array( + 'bundle' => 'article', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 0, + ), + 'dexp_portfolio' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array( + 'trim_length' => 400, + ), + 'type' => 'text_summary_or_trimmed', + 'weight' => 0, + ), + 'full' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 0, + ), + 'index_blog' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array( + 'trim_length' => 400, + ), + 'type' => 'text_trimmed', + 'weight' => 3, + ), + 'large_image' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array( + 'trim_length' => 400, + ), + 'type' => 'text_trimmed', + 'weight' => 2, + ), + 'slider' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array( + 'trim_length' => 190, + ), + 'type' => 'text_trimmed', + 'weight' => 1, + ), + 'teaser' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array( + 'trim_length' => 400, + ), + 'type' => 'text_summary_or_trimmed', + 'weight' => 0, + ), + 'time_line' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array( + 'trim_length' => 300, + ), + 'type' => 'text_trimmed', + 'weight' => 2, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'body', + 'label' => 'Body', + 'required' => FALSE, + 'settings' => array( + 'display_summary' => TRUE, + 'text_processing' => 1, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'module' => 'text', + 'settings' => array( + 'rows' => 20, + 'summary_rows' => 5, + ), + 'type' => 'text_textarea_with_summary', + 'weight' => 1, + ), + ); + + // Exported field_instance: 'node-article-field_categories'. + $field_instances['node-article-field_categories'] = array( + 'bundle' => 'article', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => 11, + ), + 'dexp_portfolio' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 4, + ), + 'full' => array( + 'label' => 'above', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => 11, + ), + 'index_blog' => array( + 'label' => 'hidden', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => 1, + ), + 'large_image' => array( + 'label' => 'hidden', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => 1, + ), + 'slider' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 2, + ), + 'teaser' => array( + 'label' => 'hidden', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 2, + ), + 'time_line' => array( + 'label' => 'hidden', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => 1, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_categories', + 'label' => 'Categories', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => 2, + ), + ); + + // Exported field_instance: 'node-article-field_content_tag'. + $field_instances['node-article-field_content_tag'] = array( + 'bundle' => 'article', + 'default_value' => array( + 0 => array( + 'tid' => 2, + 'vid' => 2, + 'name' => 'blog', + 'description' => NULL, + 'format' => NULL, + 'weight' => 0, + 'vocabulary_machine_name' => 'content_type_tag', + ), + ), + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 1, + ), + 'dexp_portfolio' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 2, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 4, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_content_tag', + 'label' => 'Content Tag', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => 33, + ), + ); + + // Exported field_instance: 'node-article-field_keywords'. + $field_instances['node-article-field_keywords'] = array( + 'bundle' => 'article', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => 3, + ), + 'dexp_portfolio' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 1, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 5, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_keywords', + 'label' => 'Keywords', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => 5, + ), + ); + + // Exported field_instance: 'node-article-field_media'. + $field_instances['node-article-field_media'] = array( + 'bundle' => 'article', + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'hidden', + 'module' => 'file', + 'settings' => array( + 'file_view_mode' => 'media_large', + ), + 'type' => 'file_default', + 'weight' => 12, + ), + 'dexp_portfolio' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 3, + ), + 'full' => array( + 'label' => 'hidden', + 'module' => 'file', + 'settings' => array( + 'file_view_mode' => 'media_large', + ), + 'type' => 'file_default', + 'weight' => 12, + ), + 'index_blog' => array( + 'label' => 'hidden', + 'module' => 'file', + 'settings' => array( + 'file_view_mode' => 'media_preview', + ), + 'type' => 'file_default', + 'weight' => 0, + ), + 'large_image' => array( + 'label' => 'hidden', + 'module' => 'file', + 'settings' => array( + 'file_view_mode' => 'media_large', + ), + 'type' => 'file_default', + 'weight' => 0, + ), + 'slider' => array( + 'label' => 'hidden', + 'module' => 'file', + 'settings' => array( + 'file_view_mode' => 'media_link', + ), + 'type' => 'file_default', + 'weight' => 0, + ), + 'teaser' => array( + 'label' => 'hidden', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 1, + ), + 'time_line' => array( + 'label' => 'hidden', + 'module' => 'file', + 'settings' => array( + 'file_view_mode' => 'default', + ), + 'type' => 'file_default', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_media', + 'label' => 'Media', + 'required' => 0, + 'settings' => array( + 'description_field' => 0, + 'file_directory' => '', + 'file_extensions' => 'jpg jpeg gif png mp3 mov m4v mp4 mpeg avi ogg oga ogv wmv ico', + 'max_filesize' => '', + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'media', + 'settings' => array( + 'allowed_schemes' => array( + 'public' => 'public', + 'vimeo' => 'vimeo', + ), + 'allowed_types' => array( + 'audio' => 0, + 'default' => 0, + 'image' => 'image', + 'video' => 'video', + ), + 'browser_plugins' => array(), + 'progress_indicator' => 'throbber', + ), + 'type' => 'media_generic', + 'weight' => 6, + ), + ); + + // Exported field_instance: 'node-article-field_tags'. + $field_instances['node-article-field_tags'] = array( + 'bundle' => 'article', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => 'Enter a comma-separated list of words to describe your content.', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => 10, + ), + 'dexp_portfolio' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 5, + ), + 'full' => array( + 'label' => 'above', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => 10, + ), + 'index_blog' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 2, + ), + 'large_image' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 3, + ), + 'slider' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 3, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 3, + ), + 'time_line' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 3, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_tags', + 'label' => 'Tags', + 'required' => FALSE, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => 3, + ), + ); + + // Exported field_instance: 'node-page-body'. + $field_instances['node-page-body'] = array( + 'bundle' => 'page', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 0, + ), + 'dexp_portfolio' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'full' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 0, + ), + 'index_blog' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'large_image' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'slider' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'teaser' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array( + 'trim_length' => 600, + ), + 'type' => 'text_summary_or_trimmed', + 'weight' => 0, + ), + 'time_line' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'body', + 'label' => 'Body', + 'required' => FALSE, + 'settings' => array( + 'display_summary' => TRUE, + 'text_processing' => 1, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'module' => 'text', + 'settings' => array( + 'rows' => 20, + 'summary_rows' => 5, + ), + 'type' => 'text_textarea_with_summary', + 'weight' => -4, + ), + ); + + // Exported field_instance: 'node-slides-body'. + $field_instances['node-slides-body'] = array( + 'bundle' => 'slides', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 0, + ), + 'teaser' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array( + 'trim_length' => 600, + ), + 'type' => 'text_summary_or_trimmed', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'body', + 'label' => 'Caption', + 'required' => 0, + 'settings' => array( + 'display_summary' => 0, + 'text_processing' => 1, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'text', + 'settings' => array( + 'rows' => 20, + 'summary_rows' => 5, + ), + 'type' => 'text_textarea_with_summary', + 'weight' => 41, + ), + ); + + // Exported field_instance: 'node-slides-field_slides_image'. + $field_instances['node-slides-field_slides_image'] = array( + 'bundle' => 'slides', + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'image', + 'settings' => array( + 'image_link' => '', + 'image_style' => '', + ), + 'type' => 'image', + 'weight' => 2, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_slides_image', + 'label' => 'Image', + 'required' => 1, + 'settings' => array( + 'alt_field' => 0, + 'default_image' => 0, + 'file_directory' => 'slides', + 'file_extensions' => 'png gif jpg jpeg', + 'max_filesize' => '', + 'max_resolution' => '', + 'min_resolution' => '', + 'title_field' => 0, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'image', + 'settings' => array( + 'preview_image_style' => 'thumbnail', + 'progress_indicator' => 'throbber', + ), + 'type' => 'image_image', + 'weight' => 43, + ), + ); + + // Exported field_instance: 'node-webform-body'. + $field_instances['node-webform-body'] = array( + 'bundle' => 'webform', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 0, + ), + 'dexp_portfolio' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'index_blog' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'large_image' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'slider' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + 'teaser' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array( + 'trim_length' => 600, + ), + 'type' => 'text_summary_or_trimmed', + 'weight' => 0, + ), + 'time_line' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'body', + 'label' => 'Body', + 'required' => FALSE, + 'settings' => array( + 'display_summary' => TRUE, + 'text_processing' => 1, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'module' => 'text', + 'settings' => array( + 'rows' => 20, + 'summary_rows' => 5, + ), + 'type' => 'text_textarea_with_summary', + 'weight' => 31, + ), + ); + + // Translatables + // Included for use with string extractors like potx. + t('Add short description about the App'); + t('App Images'); + t('App Video'); + t('Author Name'); + t('Body'); + t('Caption'); + t('Categories'); + t('Content Tag'); + t('Description'); + t('Enter a comma-separated list of words to describe your content.'); + t('Image'); + t('Keywords'); + t('Media'); + t('One Liner'); + t('Tags'); + t('Website'); + + return $field_instances; +} diff --git a/src/developerportal/all/modules/features/fhir_custom/fhir_custom.features.filter.inc b/src/developerportal/all/modules/features/fhir_custom/fhir_custom.features.filter.inc new file mode 100755 index 0000000..c07710a --- /dev/null +++ b/src/developerportal/all/modules/features/fhir_custom/fhir_custom.features.filter.inc @@ -0,0 +1,78 @@ + 'filtered_html', + 'name' => 'Filtered HTML', + 'cache' => 1, + 'status' => 1, + 'weight' => 0, + 'filters' => array( + 'filter_html' => array( + 'weight' => -10, + 'status' => 1, + 'settings' => array( + 'allowed_html' => '