001package org.hl7.fhir.r5.model.codesystems; 002 003/* 004 * #%L 005 * org.hl7.fhir.r5 006 * %% 007 * Copyright (C) 2014 - 2019 Health Level 7 008 * %% 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 * #L% 021 */ 022 023/* 024 Copyright (c) 2011+, HL7, Inc. 025 All rights reserved. 026 027 Redistribution and use in source and binary forms, with or without modification, 028 are permitted provided that the following conditions are met: 029 030 * Redistributions of source code must retain the above copyright notice, this 031 list of conditions and the following disclaimer. 032 * Redistributions in binary form must reproduce the above copyright notice, 033 this list of conditions and the following disclaimer in the documentation 034 and/or other materials provided with the distribution. 035 * Neither the name of HL7 nor the names of its contributors may be used to 036 endorse or promote products derived from this software without specific 037 prior written permission. 038 039 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 040 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 041 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 042 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 043 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 044 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 045 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 046 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 047 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 048 POSSIBILITY OF SUCH DAMAGE. 049 050*/ 051 052// Generated on Thu, Oct 17, 2019 09:42+1100 for FHIR v4.1.0 053 054 055import org.hl7.fhir.exceptions.FHIRException; 056 057public enum TestscriptOperationCodes { 058 059 /** 060 * Read the current state of the resource. 061 */ 062 READ, 063 /** 064 * Read the state of a specific version of the resource. 065 */ 066 VREAD, 067 /** 068 * Update an existing resource by its id. 069 */ 070 UPDATE, 071 /** 072 * Update an existing resource by its id (or create it if it is new). 073 */ 074 UPDATECREATE, 075 /** 076 * Patch an existing resource by its id. 077 */ 078 PATCH, 079 /** 080 * Delete a resource. 081 */ 082 DELETE, 083 /** 084 * Conditionally delete a single resource based on search parameters. 085 */ 086 DELETECONDSINGLE, 087 /** 088 * Conditionally delete one or more resources based on search parameters. 089 */ 090 DELETECONDMULTIPLE, 091 /** 092 * Retrieve the change history for a particular resource or resource type. 093 */ 094 HISTORY, 095 /** 096 * Create a new resource with a server assigned id. 097 */ 098 CREATE, 099 /** 100 * Search based on some filter criteria. 101 */ 102 SEARCH, 103 /** 104 * Update, create or delete a set of resources as independent actions. 105 */ 106 BATCH, 107 /** 108 * Update, create or delete a set of resources as a single transaction. 109 */ 110 TRANSACTION, 111 /** 112 * Get a capability statement for the system. 113 */ 114 CAPABILITIES, 115 /** 116 * Realizes an ActivityDefinition in a specific context 117 */ 118 APPLY, 119 /** 120 * Closure Table Maintenance 121 */ 122 CLOSURE, 123 /** 124 * Finding Codes based on supplied properties 125 */ 126 FINDMATCHES, 127 /** 128 * Compare two systems CapabilityStatements 129 */ 130 CONFORMS, 131 /** 132 * Aggregates and returns the parameters and data requirements for a resource and all its dependencies as a single module definition 133 */ 134 DATAREQUIREMENTS, 135 /** 136 * Generate a Document 137 */ 138 DOCUMENT, 139 /** 140 * Request clinical decision support guidance based on a specific decision support module 141 */ 142 EVALUATE, 143 /** 144 * Invoke an eMeasure and obtain the results 145 */ 146 EVALUATEMEASURE, 147 /** 148 * Return all the related information as described in the Encounter or Patient 149 */ 150 EVERYTHING, 151 /** 152 * Value Set Expansion 153 */ 154 EXPAND, 155 /** 156 * Find a functional list 157 */ 158 FIND, 159 /** 160 * Invoke a GraphQL query 161 */ 162 GRAPHQL, 163 /** 164 * Test if a server implements a client's required operations 165 */ 166 IMPLEMENTS, 167 /** 168 * Last N Observations Query 169 */ 170 LASTN, 171 /** 172 * Concept Look Up and Decomposition 173 */ 174 LOOKUP, 175 /** 176 * Find patient matches using MPI based logic 177 */ 178 MATCH, 179 /** 180 * Access a list of profiles, tags, and security labels 181 */ 182 META, 183 /** 184 * Add profiles, tags, and security labels to a resource 185 */ 186 METAADD, 187 /** 188 * Delete profiles, tags, and security labels for a resource 189 */ 190 METADELETE, 191 /** 192 * Populate Questionnaire 193 */ 194 POPULATE, 195 /** 196 * Generate HTML for Questionnaire 197 */ 198 POPULATEHTML, 199 /** 200 * Generate a link to a Questionnaire completion webpage 201 */ 202 POPULATELINK, 203 /** 204 * Process a message according to the defined event 205 */ 206 PROCESSMESSAGE, 207 /** 208 * Build Questionnaire 209 */ 210 QUESTIONNAIRE, 211 /** 212 * Observation Statistics 213 */ 214 STATS, 215 /** 216 * Fetch a subset of the CapabilityStatement resource 217 */ 218 SUBSET, 219 /** 220 * CodeSystem Subsumption Testing 221 */ 222 SUBSUMES, 223 /** 224 * Model Instance Transformation 225 */ 226 TRANSFORM, 227 /** 228 * Concept Translation 229 */ 230 TRANSLATE, 231 /** 232 * Validate a resource 233 */ 234 VALIDATE, 235 /** 236 * ValueSet based Validation 237 */ 238 VALIDATECODE, 239 /** 240 * added to help the parsers 241 */ 242 NULL; 243 public static TestscriptOperationCodes fromCode(String codeString) throws FHIRException { 244 if (codeString == null || "".equals(codeString)) 245 return null; 246 if ("read".equals(codeString)) 247 return READ; 248 if ("vread".equals(codeString)) 249 return VREAD; 250 if ("update".equals(codeString)) 251 return UPDATE; 252 if ("updateCreate".equals(codeString)) 253 return UPDATECREATE; 254 if ("patch".equals(codeString)) 255 return PATCH; 256 if ("delete".equals(codeString)) 257 return DELETE; 258 if ("deleteCondSingle".equals(codeString)) 259 return DELETECONDSINGLE; 260 if ("deleteCondMultiple".equals(codeString)) 261 return DELETECONDMULTIPLE; 262 if ("history".equals(codeString)) 263 return HISTORY; 264 if ("create".equals(codeString)) 265 return CREATE; 266 if ("search".equals(codeString)) 267 return SEARCH; 268 if ("batch".equals(codeString)) 269 return BATCH; 270 if ("transaction".equals(codeString)) 271 return TRANSACTION; 272 if ("capabilities".equals(codeString)) 273 return CAPABILITIES; 274 if ("apply".equals(codeString)) 275 return APPLY; 276 if ("closure".equals(codeString)) 277 return CLOSURE; 278 if ("find-matches".equals(codeString)) 279 return FINDMATCHES; 280 if ("conforms".equals(codeString)) 281 return CONFORMS; 282 if ("data-requirements".equals(codeString)) 283 return DATAREQUIREMENTS; 284 if ("document".equals(codeString)) 285 return DOCUMENT; 286 if ("evaluate".equals(codeString)) 287 return EVALUATE; 288 if ("evaluate-measure".equals(codeString)) 289 return EVALUATEMEASURE; 290 if ("everything".equals(codeString)) 291 return EVERYTHING; 292 if ("expand".equals(codeString)) 293 return EXPAND; 294 if ("find".equals(codeString)) 295 return FIND; 296 if ("graphql".equals(codeString)) 297 return GRAPHQL; 298 if ("implements".equals(codeString)) 299 return IMPLEMENTS; 300 if ("lastn".equals(codeString)) 301 return LASTN; 302 if ("lookup".equals(codeString)) 303 return LOOKUP; 304 if ("match".equals(codeString)) 305 return MATCH; 306 if ("meta".equals(codeString)) 307 return META; 308 if ("meta-add".equals(codeString)) 309 return METAADD; 310 if ("meta-delete".equals(codeString)) 311 return METADELETE; 312 if ("populate".equals(codeString)) 313 return POPULATE; 314 if ("populatehtml".equals(codeString)) 315 return POPULATEHTML; 316 if ("populatelink".equals(codeString)) 317 return POPULATELINK; 318 if ("process-message".equals(codeString)) 319 return PROCESSMESSAGE; 320 if ("questionnaire".equals(codeString)) 321 return QUESTIONNAIRE; 322 if ("stats".equals(codeString)) 323 return STATS; 324 if ("subset".equals(codeString)) 325 return SUBSET; 326 if ("subsumes".equals(codeString)) 327 return SUBSUMES; 328 if ("transform".equals(codeString)) 329 return TRANSFORM; 330 if ("translate".equals(codeString)) 331 return TRANSLATE; 332 if ("validate".equals(codeString)) 333 return VALIDATE; 334 if ("validate-code".equals(codeString)) 335 return VALIDATECODE; 336 throw new FHIRException("Unknown TestscriptOperationCodes code '"+codeString+"'"); 337 } 338 public String toCode() { 339 switch (this) { 340 case READ: return "read"; 341 case VREAD: return "vread"; 342 case UPDATE: return "update"; 343 case UPDATECREATE: return "updateCreate"; 344 case PATCH: return "patch"; 345 case DELETE: return "delete"; 346 case DELETECONDSINGLE: return "deleteCondSingle"; 347 case DELETECONDMULTIPLE: return "deleteCondMultiple"; 348 case HISTORY: return "history"; 349 case CREATE: return "create"; 350 case SEARCH: return "search"; 351 case BATCH: return "batch"; 352 case TRANSACTION: return "transaction"; 353 case CAPABILITIES: return "capabilities"; 354 case APPLY: return "apply"; 355 case CLOSURE: return "closure"; 356 case FINDMATCHES: return "find-matches"; 357 case CONFORMS: return "conforms"; 358 case DATAREQUIREMENTS: return "data-requirements"; 359 case DOCUMENT: return "document"; 360 case EVALUATE: return "evaluate"; 361 case EVALUATEMEASURE: return "evaluate-measure"; 362 case EVERYTHING: return "everything"; 363 case EXPAND: return "expand"; 364 case FIND: return "find"; 365 case GRAPHQL: return "graphql"; 366 case IMPLEMENTS: return "implements"; 367 case LASTN: return "lastn"; 368 case LOOKUP: return "lookup"; 369 case MATCH: return "match"; 370 case META: return "meta"; 371 case METAADD: return "meta-add"; 372 case METADELETE: return "meta-delete"; 373 case POPULATE: return "populate"; 374 case POPULATEHTML: return "populatehtml"; 375 case POPULATELINK: return "populatelink"; 376 case PROCESSMESSAGE: return "process-message"; 377 case QUESTIONNAIRE: return "questionnaire"; 378 case STATS: return "stats"; 379 case SUBSET: return "subset"; 380 case SUBSUMES: return "subsumes"; 381 case TRANSFORM: return "transform"; 382 case TRANSLATE: return "translate"; 383 case VALIDATE: return "validate"; 384 case VALIDATECODE: return "validate-code"; 385 default: return "?"; 386 } 387 } 388 public String getSystem() { 389 return "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"; 390 } 391 public String getDefinition() { 392 switch (this) { 393 case READ: return "Read the current state of the resource."; 394 case VREAD: return "Read the state of a specific version of the resource."; 395 case UPDATE: return "Update an existing resource by its id."; 396 case UPDATECREATE: return "Update an existing resource by its id (or create it if it is new)."; 397 case PATCH: return "Patch an existing resource by its id."; 398 case DELETE: return "Delete a resource."; 399 case DELETECONDSINGLE: return "Conditionally delete a single resource based on search parameters."; 400 case DELETECONDMULTIPLE: return "Conditionally delete one or more resources based on search parameters."; 401 case HISTORY: return "Retrieve the change history for a particular resource or resource type."; 402 case CREATE: return "Create a new resource with a server assigned id."; 403 case SEARCH: return "Search based on some filter criteria."; 404 case BATCH: return "Update, create or delete a set of resources as independent actions."; 405 case TRANSACTION: return "Update, create or delete a set of resources as a single transaction."; 406 case CAPABILITIES: return "Get a capability statement for the system."; 407 case APPLY: return "Realizes an ActivityDefinition in a specific context"; 408 case CLOSURE: return "Closure Table Maintenance"; 409 case FINDMATCHES: return "Finding Codes based on supplied properties"; 410 case CONFORMS: return "Compare two systems CapabilityStatements"; 411 case DATAREQUIREMENTS: return "Aggregates and returns the parameters and data requirements for a resource and all its dependencies as a single module definition"; 412 case DOCUMENT: return "Generate a Document"; 413 case EVALUATE: return "Request clinical decision support guidance based on a specific decision support module"; 414 case EVALUATEMEASURE: return "Invoke an eMeasure and obtain the results"; 415 case EVERYTHING: return "Return all the related information as described in the Encounter or Patient"; 416 case EXPAND: return "Value Set Expansion"; 417 case FIND: return "Find a functional list"; 418 case GRAPHQL: return "Invoke a GraphQL query"; 419 case IMPLEMENTS: return "Test if a server implements a client's required operations"; 420 case LASTN: return "Last N Observations Query"; 421 case LOOKUP: return "Concept Look Up and Decomposition"; 422 case MATCH: return "Find patient matches using MPI based logic"; 423 case META: return "Access a list of profiles, tags, and security labels"; 424 case METAADD: return "Add profiles, tags, and security labels to a resource"; 425 case METADELETE: return "Delete profiles, tags, and security labels for a resource"; 426 case POPULATE: return "Populate Questionnaire"; 427 case POPULATEHTML: return "Generate HTML for Questionnaire"; 428 case POPULATELINK: return "Generate a link to a Questionnaire completion webpage"; 429 case PROCESSMESSAGE: return "Process a message according to the defined event"; 430 case QUESTIONNAIRE: return "Build Questionnaire"; 431 case STATS: return "Observation Statistics"; 432 case SUBSET: return "Fetch a subset of the CapabilityStatement resource"; 433 case SUBSUMES: return "CodeSystem Subsumption Testing"; 434 case TRANSFORM: return "Model Instance Transformation"; 435 case TRANSLATE: return "Concept Translation"; 436 case VALIDATE: return "Validate a resource"; 437 case VALIDATECODE: return "ValueSet based Validation"; 438 default: return "?"; 439 } 440 } 441 public String getDisplay() { 442 switch (this) { 443 case READ: return "Read"; 444 case VREAD: return "Version Read"; 445 case UPDATE: return "Update"; 446 case UPDATECREATE: return "Create using Update"; 447 case PATCH: return "Patch"; 448 case DELETE: return "Delete"; 449 case DELETECONDSINGLE: return "Conditional Delete Single"; 450 case DELETECONDMULTIPLE: return "Conditional Delete Multiple"; 451 case HISTORY: return "History"; 452 case CREATE: return "Create"; 453 case SEARCH: return "Search"; 454 case BATCH: return "Batch"; 455 case TRANSACTION: return "Transaction"; 456 case CAPABILITIES: return "Capabilities"; 457 case APPLY: return "$apply"; 458 case CLOSURE: return "$closure"; 459 case FINDMATCHES: return "$find-matches"; 460 case CONFORMS: return "$conforms"; 461 case DATAREQUIREMENTS: return "$data-requirements"; 462 case DOCUMENT: return "$document"; 463 case EVALUATE: return "$evaluate"; 464 case EVALUATEMEASURE: return "$evaluate-measure"; 465 case EVERYTHING: return "$everything"; 466 case EXPAND: return "$expand"; 467 case FIND: return "$find"; 468 case GRAPHQL: return "$graphql"; 469 case IMPLEMENTS: return "$implements"; 470 case LASTN: return "$lastn"; 471 case LOOKUP: return "$lookup"; 472 case MATCH: return "$match"; 473 case META: return "$meta"; 474 case METAADD: return "$meta-add"; 475 case METADELETE: return "$meta-delete"; 476 case POPULATE: return "$populate"; 477 case POPULATEHTML: return "$populatehtml"; 478 case POPULATELINK: return "$populatelink"; 479 case PROCESSMESSAGE: return "$process-message"; 480 case QUESTIONNAIRE: return "$questionnaire"; 481 case STATS: return "$stats"; 482 case SUBSET: return "$subset"; 483 case SUBSUMES: return "$subsumes"; 484 case TRANSFORM: return "$transform"; 485 case TRANSLATE: return "$translate"; 486 case VALIDATE: return "$validate"; 487 case VALIDATECODE: return "$validate-code"; 488 default: return "?"; 489 } 490 } 491 492 493} 494