001package org.hl7.fhir.r4.model.codesystems; 002 003 004 005 006/* 007 Copyright (c) 2011+, HL7, Inc. 008 All rights reserved. 009 010 Redistribution and use in source and binary forms, with or without modification, 011 are permitted provided that the following conditions are met: 012 013 * Redistributions of source code must retain the above copyright notice, this 014 list of conditions and the following disclaimer. 015 * Redistributions in binary form must reproduce the above copyright notice, 016 this list of conditions and the following disclaimer in the documentation 017 and/or other materials provided with the distribution. 018 * Neither the name of HL7 nor the names of its contributors may be used to 019 endorse or promote products derived from this software without specific 020 prior written permission. 021 022 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 023 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 024 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 025 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 026 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 027 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 028 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 029 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 030 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 031 POSSIBILITY OF SUCH DAMAGE. 032 033*/ 034 035// Generated on Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0 036 037 038import org.hl7.fhir.exceptions.FHIRException; 039 040public enum GuideParameterCode { 041 042 /** 043 * If the value of this string 0..* parameter is one of the metadata fields then all conformance resources will have any specified [Resource].[field] overwritten with the ImplementationGuide.[field], where field is one of: version, date, status, publisher, contact, copyright, experimental, jurisdiction, useContext. 044 */ 045 APPLY, 046 /** 047 * The value of this string 0..* parameter is a subfolder of the build context's location that is to be scanned to load resources. Scope is (if present) a particular resource type. 048 */ 049 PATHRESOURCE, 050 /** 051 * The value of this string 0..1 parameter is a subfolder of the build context's location that contains files that are part of the html content processed by the builder. 052 */ 053 PATHPAGES, 054 /** 055 * The value of this string 0..1 parameter is a subfolder of the build context's location that is used as the terminology cache. If this is not present, the terminology cache is on the local system, not under version control. 056 */ 057 PATHTXCACHE, 058 /** 059 * The value of this string 0..* parameter is a parameter (name=value) when expanding value sets for this implementation guide. This is particularly used to specify the versions of published terminologies such as SNOMED CT. 060 */ 061 EXPANSIONPARAMETER, 062 /** 063 * The value of this string 0..1 parameter is either "warning" or "error" (default = "error"). If the value is "warning" then IG build tools allow the IG to be considered successfully build even when there is no internal broken links. 064 */ 065 RULEBROKENLINKS, 066 /** 067 * The value of this boolean 0..1 parameter specifies whether the IG publisher creates examples in XML format. If not present, the Publication Tool decides whether to generate XML. 068 */ 069 GENERATEXML, 070 /** 071 * The value of this boolean 0..1 parameter specifies whether the IG publisher creates examples in JSON format. If not present, the Publication Tool decides whether to generate JSON. 072 */ 073 GENERATEJSON, 074 /** 075 * The value of this boolean 0..1 parameter specifies whether the IG publisher creates examples in Turtle format. If not present, the Publication Tool decides whether to generate Turtle. 076 */ 077 GENERATETURTLE, 078 /** 079 * The value of this string singleton parameter is the name of the file to use as the builder template for each generated page (see templating). 080 */ 081 HTMLTEMPLATE, 082 /** 083 * added to help the parsers 084 */ 085 NULL; 086 public static GuideParameterCode fromCode(String codeString) throws FHIRException { 087 if (codeString == null || "".equals(codeString)) 088 return null; 089 if ("apply".equals(codeString)) 090 return APPLY; 091 if ("path-resource".equals(codeString)) 092 return PATHRESOURCE; 093 if ("path-pages".equals(codeString)) 094 return PATHPAGES; 095 if ("path-tx-cache".equals(codeString)) 096 return PATHTXCACHE; 097 if ("expansion-parameter".equals(codeString)) 098 return EXPANSIONPARAMETER; 099 if ("rule-broken-links".equals(codeString)) 100 return RULEBROKENLINKS; 101 if ("generate-xml".equals(codeString)) 102 return GENERATEXML; 103 if ("generate-json".equals(codeString)) 104 return GENERATEJSON; 105 if ("generate-turtle".equals(codeString)) 106 return GENERATETURTLE; 107 if ("html-template".equals(codeString)) 108 return HTMLTEMPLATE; 109 throw new FHIRException("Unknown GuideParameterCode code '"+codeString+"'"); 110 } 111 public String toCode() { 112 switch (this) { 113 case APPLY: return "apply"; 114 case PATHRESOURCE: return "path-resource"; 115 case PATHPAGES: return "path-pages"; 116 case PATHTXCACHE: return "path-tx-cache"; 117 case EXPANSIONPARAMETER: return "expansion-parameter"; 118 case RULEBROKENLINKS: return "rule-broken-links"; 119 case GENERATEXML: return "generate-xml"; 120 case GENERATEJSON: return "generate-json"; 121 case GENERATETURTLE: return "generate-turtle"; 122 case HTMLTEMPLATE: return "html-template"; 123 default: return "?"; 124 } 125 } 126 public String getSystem() { 127 return "http://hl7.org/fhir/guide-parameter-code"; 128 } 129 public String getDefinition() { 130 switch (this) { 131 case APPLY: return "If the value of this string 0..* parameter is one of the metadata fields then all conformance resources will have any specified [Resource].[field] overwritten with the ImplementationGuide.[field], where field is one of: version, date, status, publisher, contact, copyright, experimental, jurisdiction, useContext."; 132 case PATHRESOURCE: return "The value of this string 0..* parameter is a subfolder of the build context's location that is to be scanned to load resources. Scope is (if present) a particular resource type."; 133 case PATHPAGES: return "The value of this string 0..1 parameter is a subfolder of the build context's location that contains files that are part of the html content processed by the builder."; 134 case PATHTXCACHE: return "The value of this string 0..1 parameter is a subfolder of the build context's location that is used as the terminology cache. If this is not present, the terminology cache is on the local system, not under version control."; 135 case EXPANSIONPARAMETER: return "The value of this string 0..* parameter is a parameter (name=value) when expanding value sets for this implementation guide. This is particularly used to specify the versions of published terminologies such as SNOMED CT."; 136 case RULEBROKENLINKS: return "The value of this string 0..1 parameter is either \"warning\" or \"error\" (default = \"error\"). If the value is \"warning\" then IG build tools allow the IG to be considered successfully build even when there is no internal broken links."; 137 case GENERATEXML: return "The value of this boolean 0..1 parameter specifies whether the IG publisher creates examples in XML format. If not present, the Publication Tool decides whether to generate XML."; 138 case GENERATEJSON: return "The value of this boolean 0..1 parameter specifies whether the IG publisher creates examples in JSON format. If not present, the Publication Tool decides whether to generate JSON."; 139 case GENERATETURTLE: return "The value of this boolean 0..1 parameter specifies whether the IG publisher creates examples in Turtle format. If not present, the Publication Tool decides whether to generate Turtle."; 140 case HTMLTEMPLATE: return "The value of this string singleton parameter is the name of the file to use as the builder template for each generated page (see templating)."; 141 default: return "?"; 142 } 143 } 144 public String getDisplay() { 145 switch (this) { 146 case APPLY: return "Apply Metadata Value"; 147 case PATHRESOURCE: return "Resource Path"; 148 case PATHPAGES: return "Pages Path"; 149 case PATHTXCACHE: return "Terminology Cache Path"; 150 case EXPANSIONPARAMETER: return "Expansion Profile"; 151 case RULEBROKENLINKS: return "Broken Links Rule"; 152 case GENERATEXML: return "Generate XML"; 153 case GENERATEJSON: return "Generate JSON"; 154 case GENERATETURTLE: return "Generate Turtle"; 155 case HTMLTEMPLATE: return "HTML Template"; 156 default: return "?"; 157 } 158 } 159 160 161}