Fix #761 - Restore codesystem package from DSTU3 and add unit tests to
verify existence
This commit is contained in:
parent
0959156a4a
commit
73382d85ca
|
@ -3127,7 +3127,7 @@ public class ResourceProviderR4Test extends BaseResourceProviderR4Test {
|
|||
@Test
|
||||
public void testSearchWithCountNotSet() throws Exception {
|
||||
mySearchCoordinatorSvcRaw.setSyncSizeForUnitTests(1);
|
||||
mySearchCoordinatorSvcRaw.setLoadingThrottleForUnitTests(100);
|
||||
mySearchCoordinatorSvcRaw.setLoadingThrottleForUnitTests(200);
|
||||
|
||||
for (int i =0; i < 10; i++) {
|
||||
Patient pat = new Patient();
|
||||
|
|
|
@ -0,0 +1,87 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AbstractTypes {
|
||||
|
||||
/**
|
||||
* A place holder that means any kind of data type
|
||||
*/
|
||||
TYPE,
|
||||
/**
|
||||
* A place holder that means any kind of resource
|
||||
*/
|
||||
ANY,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AbstractTypes fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("Type".equals(codeString))
|
||||
return TYPE;
|
||||
if ("Any".equals(codeString))
|
||||
return ANY;
|
||||
throw new FHIRException("Unknown AbstractTypes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case TYPE: return "Type";
|
||||
case ANY: return "Any";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/abstract-types";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case TYPE: return "A place holder that means any kind of data type";
|
||||
case ANY: return "A place holder that means any kind of resource";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case TYPE: return "Type";
|
||||
case ANY: return "Any";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AbstractTypesEnumFactory implements EnumFactory<AbstractTypes> {
|
||||
|
||||
public AbstractTypes fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("Type".equals(codeString))
|
||||
return AbstractTypes.TYPE;
|
||||
if ("Any".equals(codeString))
|
||||
return AbstractTypes.ANY;
|
||||
throw new IllegalArgumentException("Unknown AbstractTypes code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AbstractTypes code) {
|
||||
if (code == AbstractTypes.TYPE)
|
||||
return "Type";
|
||||
if (code == AbstractTypes.ANY)
|
||||
return "Any";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AbstractTypes code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AccountStatus {
|
||||
|
||||
/**
|
||||
* This account is active and may be used.
|
||||
*/
|
||||
ACTIVE,
|
||||
/**
|
||||
* This account is inactive and should not be used to track financial information.
|
||||
*/
|
||||
INACTIVE,
|
||||
/**
|
||||
* This instance should not have been part of this patient's medical record.
|
||||
*/
|
||||
ENTEREDINERROR,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AccountStatus fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("active".equals(codeString))
|
||||
return ACTIVE;
|
||||
if ("inactive".equals(codeString))
|
||||
return INACTIVE;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return ENTEREDINERROR;
|
||||
throw new FHIRException("Unknown AccountStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case ACTIVE: return "active";
|
||||
case INACTIVE: return "inactive";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/account-status";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case ACTIVE: return "This account is active and may be used.";
|
||||
case INACTIVE: return "This account is inactive and should not be used to track financial information.";
|
||||
case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case ACTIVE: return "Active";
|
||||
case INACTIVE: return "Inactive";
|
||||
case ENTEREDINERROR: return "Entered in error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AccountStatusEnumFactory implements EnumFactory<AccountStatus> {
|
||||
|
||||
public AccountStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("active".equals(codeString))
|
||||
return AccountStatus.ACTIVE;
|
||||
if ("inactive".equals(codeString))
|
||||
return AccountStatus.INACTIVE;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return AccountStatus.ENTEREDINERROR;
|
||||
throw new IllegalArgumentException("Unknown AccountStatus code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AccountStatus code) {
|
||||
if (code == AccountStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == AccountStatus.INACTIVE)
|
||||
return "inactive";
|
||||
if (code == AccountStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AccountStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum ActionCardinalityBehavior {
|
||||
|
||||
/**
|
||||
* The action may only be selected one time
|
||||
*/
|
||||
SINGLE,
|
||||
/**
|
||||
* The action may be selected multiple times
|
||||
*/
|
||||
MULTIPLE,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ActionCardinalityBehavior fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("single".equals(codeString))
|
||||
return SINGLE;
|
||||
if ("multiple".equals(codeString))
|
||||
return MULTIPLE;
|
||||
throw new FHIRException("Unknown ActionCardinalityBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case SINGLE: return "single";
|
||||
case MULTIPLE: return "multiple";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/action-cardinality-behavior";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case SINGLE: return "The action may only be selected one time";
|
||||
case MULTIPLE: return "The action may be selected multiple times";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case SINGLE: return "Single";
|
||||
case MULTIPLE: return "Multiple";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class ActionCardinalityBehaviorEnumFactory implements EnumFactory<ActionCardinalityBehavior> {
|
||||
|
||||
public ActionCardinalityBehavior fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("single".equals(codeString))
|
||||
return ActionCardinalityBehavior.SINGLE;
|
||||
if ("multiple".equals(codeString))
|
||||
return ActionCardinalityBehavior.MULTIPLE;
|
||||
throw new IllegalArgumentException("Unknown ActionCardinalityBehavior code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(ActionCardinalityBehavior code) {
|
||||
if (code == ActionCardinalityBehavior.SINGLE)
|
||||
return "single";
|
||||
if (code == ActionCardinalityBehavior.MULTIPLE)
|
||||
return "multiple";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(ActionCardinalityBehavior code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum ActionConditionKind {
|
||||
|
||||
/**
|
||||
* The condition describes whether or not a given action is applicable
|
||||
*/
|
||||
APPLICABILITY,
|
||||
/**
|
||||
* The condition is a starting condition for the action
|
||||
*/
|
||||
START,
|
||||
/**
|
||||
* The condition is a stop, or exit condition for the action
|
||||
*/
|
||||
STOP,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ActionConditionKind fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("applicability".equals(codeString))
|
||||
return APPLICABILITY;
|
||||
if ("start".equals(codeString))
|
||||
return START;
|
||||
if ("stop".equals(codeString))
|
||||
return STOP;
|
||||
throw new FHIRException("Unknown ActionConditionKind code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case APPLICABILITY: return "applicability";
|
||||
case START: return "start";
|
||||
case STOP: return "stop";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/action-condition-kind";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case APPLICABILITY: return "The condition describes whether or not a given action is applicable";
|
||||
case START: return "The condition is a starting condition for the action";
|
||||
case STOP: return "The condition is a stop, or exit condition for the action";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case APPLICABILITY: return "Applicability";
|
||||
case START: return "Start";
|
||||
case STOP: return "Stop";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class ActionConditionKindEnumFactory implements EnumFactory<ActionConditionKind> {
|
||||
|
||||
public ActionConditionKind fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("applicability".equals(codeString))
|
||||
return ActionConditionKind.APPLICABILITY;
|
||||
if ("start".equals(codeString))
|
||||
return ActionConditionKind.START;
|
||||
if ("stop".equals(codeString))
|
||||
return ActionConditionKind.STOP;
|
||||
throw new IllegalArgumentException("Unknown ActionConditionKind code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(ActionConditionKind code) {
|
||||
if (code == ActionConditionKind.APPLICABILITY)
|
||||
return "applicability";
|
||||
if (code == ActionConditionKind.START)
|
||||
return "start";
|
||||
if (code == ActionConditionKind.STOP)
|
||||
return "stop";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(ActionConditionKind code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum ActionGroupingBehavior {
|
||||
|
||||
/**
|
||||
* Any group marked with this behavior should be displayed as a visual group to the end user
|
||||
*/
|
||||
VISUALGROUP,
|
||||
/**
|
||||
* A group with this behavior logically groups its sub-elements, and may be shown as a visual group to the end user, but it is not required to do so
|
||||
*/
|
||||
LOGICALGROUP,
|
||||
/**
|
||||
* A group of related alternative actions is a sentence group if the target referenced by the action is the same in all the actions and each action simply constitutes a different variation on how to specify the details for the target. For example, two actions that could be in a SentenceGroup are "aspirin, 500 mg, 2 times per day" and "aspirin, 300 mg, 3 times per day". In both cases, aspirin is the target referenced by the action, and the two actions represent different options for how aspirin might be ordered for the patient. Note that a SentenceGroup would almost always have an associated selection behavior of "AtMostOne", unless it's a required action, in which case, it would be "ExactlyOne"
|
||||
*/
|
||||
SENTENCEGROUP,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ActionGroupingBehavior fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("visual-group".equals(codeString))
|
||||
return VISUALGROUP;
|
||||
if ("logical-group".equals(codeString))
|
||||
return LOGICALGROUP;
|
||||
if ("sentence-group".equals(codeString))
|
||||
return SENTENCEGROUP;
|
||||
throw new FHIRException("Unknown ActionGroupingBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case VISUALGROUP: return "visual-group";
|
||||
case LOGICALGROUP: return "logical-group";
|
||||
case SENTENCEGROUP: return "sentence-group";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/action-grouping-behavior";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case VISUALGROUP: return "Any group marked with this behavior should be displayed as a visual group to the end user";
|
||||
case LOGICALGROUP: return "A group with this behavior logically groups its sub-elements, and may be shown as a visual group to the end user, but it is not required to do so";
|
||||
case SENTENCEGROUP: return "A group of related alternative actions is a sentence group if the target referenced by the action is the same in all the actions and each action simply constitutes a different variation on how to specify the details for the target. For example, two actions that could be in a SentenceGroup are \"aspirin, 500 mg, 2 times per day\" and \"aspirin, 300 mg, 3 times per day\". In both cases, aspirin is the target referenced by the action, and the two actions represent different options for how aspirin might be ordered for the patient. Note that a SentenceGroup would almost always have an associated selection behavior of \"AtMostOne\", unless it's a required action, in which case, it would be \"ExactlyOne\"";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case VISUALGROUP: return "Visual Group";
|
||||
case LOGICALGROUP: return "Logical Group";
|
||||
case SENTENCEGROUP: return "Sentence Group";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class ActionGroupingBehaviorEnumFactory implements EnumFactory<ActionGroupingBehavior> {
|
||||
|
||||
public ActionGroupingBehavior fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("visual-group".equals(codeString))
|
||||
return ActionGroupingBehavior.VISUALGROUP;
|
||||
if ("logical-group".equals(codeString))
|
||||
return ActionGroupingBehavior.LOGICALGROUP;
|
||||
if ("sentence-group".equals(codeString))
|
||||
return ActionGroupingBehavior.SENTENCEGROUP;
|
||||
throw new IllegalArgumentException("Unknown ActionGroupingBehavior code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(ActionGroupingBehavior code) {
|
||||
if (code == ActionGroupingBehavior.VISUALGROUP)
|
||||
return "visual-group";
|
||||
if (code == ActionGroupingBehavior.LOGICALGROUP)
|
||||
return "logical-group";
|
||||
if (code == ActionGroupingBehavior.SENTENCEGROUP)
|
||||
return "sentence-group";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(ActionGroupingBehavior code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum ActionParticipantType {
|
||||
|
||||
/**
|
||||
* The participant is the patient under evaluation
|
||||
*/
|
||||
PATIENT,
|
||||
/**
|
||||
* The participant is a practitioner involved in the patient's care
|
||||
*/
|
||||
PRACTITIONER,
|
||||
/**
|
||||
* The participant is a person related to the patient
|
||||
*/
|
||||
RELATEDPERSON,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ActionParticipantType fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("patient".equals(codeString))
|
||||
return PATIENT;
|
||||
if ("practitioner".equals(codeString))
|
||||
return PRACTITIONER;
|
||||
if ("related-person".equals(codeString))
|
||||
return RELATEDPERSON;
|
||||
throw new FHIRException("Unknown ActionParticipantType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case PATIENT: return "patient";
|
||||
case PRACTITIONER: return "practitioner";
|
||||
case RELATEDPERSON: return "related-person";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/action-participant-type";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PATIENT: return "The participant is the patient under evaluation";
|
||||
case PRACTITIONER: return "The participant is a practitioner involved in the patient's care";
|
||||
case RELATEDPERSON: return "The participant is a person related to the patient";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case PATIENT: return "Patient";
|
||||
case PRACTITIONER: return "Practitioner";
|
||||
case RELATEDPERSON: return "Related Person";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class ActionParticipantTypeEnumFactory implements EnumFactory<ActionParticipantType> {
|
||||
|
||||
public ActionParticipantType fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("patient".equals(codeString))
|
||||
return ActionParticipantType.PATIENT;
|
||||
if ("practitioner".equals(codeString))
|
||||
return ActionParticipantType.PRACTITIONER;
|
||||
if ("related-person".equals(codeString))
|
||||
return ActionParticipantType.RELATEDPERSON;
|
||||
throw new IllegalArgumentException("Unknown ActionParticipantType code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(ActionParticipantType code) {
|
||||
if (code == ActionParticipantType.PATIENT)
|
||||
return "patient";
|
||||
if (code == ActionParticipantType.PRACTITIONER)
|
||||
return "practitioner";
|
||||
if (code == ActionParticipantType.RELATEDPERSON)
|
||||
return "related-person";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(ActionParticipantType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum ActionPrecheckBehavior {
|
||||
|
||||
/**
|
||||
* An action with this behavior is one of the most frequent action that is, or should be, included by an end user, for the particular context in which the action occurs. The system displaying the action to the end user should consider "pre-checking" such an action as a convenience for the user
|
||||
*/
|
||||
YES,
|
||||
/**
|
||||
* An action with this behavior is one of the less frequent actions included by the end user, for the particular context in which the action occurs. The system displaying the actions to the end user would typically not "pre-check" such an action
|
||||
*/
|
||||
NO,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ActionPrecheckBehavior fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("yes".equals(codeString))
|
||||
return YES;
|
||||
if ("no".equals(codeString))
|
||||
return NO;
|
||||
throw new FHIRException("Unknown ActionPrecheckBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case YES: return "yes";
|
||||
case NO: return "no";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/action-precheck-behavior";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case YES: return "An action with this behavior is one of the most frequent action that is, or should be, included by an end user, for the particular context in which the action occurs. The system displaying the action to the end user should consider \"pre-checking\" such an action as a convenience for the user";
|
||||
case NO: return "An action with this behavior is one of the less frequent actions included by the end user, for the particular context in which the action occurs. The system displaying the actions to the end user would typically not \"pre-check\" such an action";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case YES: return "Yes";
|
||||
case NO: return "No";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class ActionPrecheckBehaviorEnumFactory implements EnumFactory<ActionPrecheckBehavior> {
|
||||
|
||||
public ActionPrecheckBehavior fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("yes".equals(codeString))
|
||||
return ActionPrecheckBehavior.YES;
|
||||
if ("no".equals(codeString))
|
||||
return ActionPrecheckBehavior.NO;
|
||||
throw new IllegalArgumentException("Unknown ActionPrecheckBehavior code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(ActionPrecheckBehavior code) {
|
||||
if (code == ActionPrecheckBehavior.YES)
|
||||
return "yes";
|
||||
if (code == ActionPrecheckBehavior.NO)
|
||||
return "no";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(ActionPrecheckBehavior code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,150 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum ActionRelationshipType {
|
||||
|
||||
/**
|
||||
* The action must be performed before the start of the related action
|
||||
*/
|
||||
BEFORESTART,
|
||||
/**
|
||||
* The action must be performed before the related action
|
||||
*/
|
||||
BEFORE,
|
||||
/**
|
||||
* The action must be performed before the end of the related action
|
||||
*/
|
||||
BEFOREEND,
|
||||
/**
|
||||
* The action must be performed concurrent with the start of the related action
|
||||
*/
|
||||
CONCURRENTWITHSTART,
|
||||
/**
|
||||
* The action must be performed concurrent with the related action
|
||||
*/
|
||||
CONCURRENT,
|
||||
/**
|
||||
* The action must be performed concurrent with the end of the related action
|
||||
*/
|
||||
CONCURRENTWITHEND,
|
||||
/**
|
||||
* The action must be performed after the start of the related action
|
||||
*/
|
||||
AFTERSTART,
|
||||
/**
|
||||
* The action must be performed after the related action
|
||||
*/
|
||||
AFTER,
|
||||
/**
|
||||
* The action must be performed after the end of the related action
|
||||
*/
|
||||
AFTEREND,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ActionRelationshipType fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("before-start".equals(codeString))
|
||||
return BEFORESTART;
|
||||
if ("before".equals(codeString))
|
||||
return BEFORE;
|
||||
if ("before-end".equals(codeString))
|
||||
return BEFOREEND;
|
||||
if ("concurrent-with-start".equals(codeString))
|
||||
return CONCURRENTWITHSTART;
|
||||
if ("concurrent".equals(codeString))
|
||||
return CONCURRENT;
|
||||
if ("concurrent-with-end".equals(codeString))
|
||||
return CONCURRENTWITHEND;
|
||||
if ("after-start".equals(codeString))
|
||||
return AFTERSTART;
|
||||
if ("after".equals(codeString))
|
||||
return AFTER;
|
||||
if ("after-end".equals(codeString))
|
||||
return AFTEREND;
|
||||
throw new FHIRException("Unknown ActionRelationshipType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case BEFORESTART: return "before-start";
|
||||
case BEFORE: return "before";
|
||||
case BEFOREEND: return "before-end";
|
||||
case CONCURRENTWITHSTART: return "concurrent-with-start";
|
||||
case CONCURRENT: return "concurrent";
|
||||
case CONCURRENTWITHEND: return "concurrent-with-end";
|
||||
case AFTERSTART: return "after-start";
|
||||
case AFTER: return "after";
|
||||
case AFTEREND: return "after-end";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/action-relationship-type";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case BEFORESTART: return "The action must be performed before the start of the related action";
|
||||
case BEFORE: return "The action must be performed before the related action";
|
||||
case BEFOREEND: return "The action must be performed before the end of the related action";
|
||||
case CONCURRENTWITHSTART: return "The action must be performed concurrent with the start of the related action";
|
||||
case CONCURRENT: return "The action must be performed concurrent with the related action";
|
||||
case CONCURRENTWITHEND: return "The action must be performed concurrent with the end of the related action";
|
||||
case AFTERSTART: return "The action must be performed after the start of the related action";
|
||||
case AFTER: return "The action must be performed after the related action";
|
||||
case AFTEREND: return "The action must be performed after the end of the related action";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case BEFORESTART: return "Before Start";
|
||||
case BEFORE: return "Before";
|
||||
case BEFOREEND: return "Before End";
|
||||
case CONCURRENTWITHSTART: return "Concurrent With Start";
|
||||
case CONCURRENT: return "Concurrent";
|
||||
case CONCURRENTWITHEND: return "Concurrent With End";
|
||||
case AFTERSTART: return "After Start";
|
||||
case AFTER: return "After";
|
||||
case AFTEREND: return "After End";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,90 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class ActionRelationshipTypeEnumFactory implements EnumFactory<ActionRelationshipType> {
|
||||
|
||||
public ActionRelationshipType fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("before-start".equals(codeString))
|
||||
return ActionRelationshipType.BEFORESTART;
|
||||
if ("before".equals(codeString))
|
||||
return ActionRelationshipType.BEFORE;
|
||||
if ("before-end".equals(codeString))
|
||||
return ActionRelationshipType.BEFOREEND;
|
||||
if ("concurrent-with-start".equals(codeString))
|
||||
return ActionRelationshipType.CONCURRENTWITHSTART;
|
||||
if ("concurrent".equals(codeString))
|
||||
return ActionRelationshipType.CONCURRENT;
|
||||
if ("concurrent-with-end".equals(codeString))
|
||||
return ActionRelationshipType.CONCURRENTWITHEND;
|
||||
if ("after-start".equals(codeString))
|
||||
return ActionRelationshipType.AFTERSTART;
|
||||
if ("after".equals(codeString))
|
||||
return ActionRelationshipType.AFTER;
|
||||
if ("after-end".equals(codeString))
|
||||
return ActionRelationshipType.AFTEREND;
|
||||
throw new IllegalArgumentException("Unknown ActionRelationshipType code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(ActionRelationshipType code) {
|
||||
if (code == ActionRelationshipType.BEFORESTART)
|
||||
return "before-start";
|
||||
if (code == ActionRelationshipType.BEFORE)
|
||||
return "before";
|
||||
if (code == ActionRelationshipType.BEFOREEND)
|
||||
return "before-end";
|
||||
if (code == ActionRelationshipType.CONCURRENTWITHSTART)
|
||||
return "concurrent-with-start";
|
||||
if (code == ActionRelationshipType.CONCURRENT)
|
||||
return "concurrent";
|
||||
if (code == ActionRelationshipType.CONCURRENTWITHEND)
|
||||
return "concurrent-with-end";
|
||||
if (code == ActionRelationshipType.AFTERSTART)
|
||||
return "after-start";
|
||||
if (code == ActionRelationshipType.AFTER)
|
||||
return "after";
|
||||
if (code == ActionRelationshipType.AFTEREND)
|
||||
return "after-end";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(ActionRelationshipType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum ActionRequiredBehavior {
|
||||
|
||||
/**
|
||||
* An action with this behavior must be included in the actions processed by the end user; the end user may not choose not to include this action
|
||||
*/
|
||||
MUST,
|
||||
/**
|
||||
* An action with this behavior may be included in the set of actions processed by the end user
|
||||
*/
|
||||
COULD,
|
||||
/**
|
||||
* An action with this behavior must be included in the set of actions processed by the end user, unless the end user provides documentation as to why the action was not included
|
||||
*/
|
||||
MUSTUNLESSDOCUMENTED,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ActionRequiredBehavior fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("must".equals(codeString))
|
||||
return MUST;
|
||||
if ("could".equals(codeString))
|
||||
return COULD;
|
||||
if ("must-unless-documented".equals(codeString))
|
||||
return MUSTUNLESSDOCUMENTED;
|
||||
throw new FHIRException("Unknown ActionRequiredBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case MUST: return "must";
|
||||
case COULD: return "could";
|
||||
case MUSTUNLESSDOCUMENTED: return "must-unless-documented";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/action-required-behavior";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case MUST: return "An action with this behavior must be included in the actions processed by the end user; the end user may not choose not to include this action";
|
||||
case COULD: return "An action with this behavior may be included in the set of actions processed by the end user";
|
||||
case MUSTUNLESSDOCUMENTED: return "An action with this behavior must be included in the set of actions processed by the end user, unless the end user provides documentation as to why the action was not included";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case MUST: return "Must";
|
||||
case COULD: return "Could";
|
||||
case MUSTUNLESSDOCUMENTED: return "Must Unless Documented";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class ActionRequiredBehaviorEnumFactory implements EnumFactory<ActionRequiredBehavior> {
|
||||
|
||||
public ActionRequiredBehavior fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("must".equals(codeString))
|
||||
return ActionRequiredBehavior.MUST;
|
||||
if ("could".equals(codeString))
|
||||
return ActionRequiredBehavior.COULD;
|
||||
if ("must-unless-documented".equals(codeString))
|
||||
return ActionRequiredBehavior.MUSTUNLESSDOCUMENTED;
|
||||
throw new IllegalArgumentException("Unknown ActionRequiredBehavior code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(ActionRequiredBehavior code) {
|
||||
if (code == ActionRequiredBehavior.MUST)
|
||||
return "must";
|
||||
if (code == ActionRequiredBehavior.COULD)
|
||||
return "could";
|
||||
if (code == ActionRequiredBehavior.MUSTUNLESSDOCUMENTED)
|
||||
return "must-unless-documented";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(ActionRequiredBehavior code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,123 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum ActionSelectionBehavior {
|
||||
|
||||
/**
|
||||
* Any number of the actions in the group may be chosen, from zero to all
|
||||
*/
|
||||
ANY,
|
||||
/**
|
||||
* All the actions in the group must be selected as a single unit
|
||||
*/
|
||||
ALL,
|
||||
/**
|
||||
* All the actions in the group are meant to be chosen as a single unit: either all must be selected by the end user, or none may be selected
|
||||
*/
|
||||
ALLORNONE,
|
||||
/**
|
||||
* The end user must choose one and only one of the selectable actions in the group. The user may not choose none of the actions in the group
|
||||
*/
|
||||
EXACTLYONE,
|
||||
/**
|
||||
* The end user may choose zero or at most one of the actions in the group
|
||||
*/
|
||||
ATMOSTONE,
|
||||
/**
|
||||
* The end user must choose a minimum of one, and as many additional as desired
|
||||
*/
|
||||
ONEORMORE,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ActionSelectionBehavior fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("any".equals(codeString))
|
||||
return ANY;
|
||||
if ("all".equals(codeString))
|
||||
return ALL;
|
||||
if ("all-or-none".equals(codeString))
|
||||
return ALLORNONE;
|
||||
if ("exactly-one".equals(codeString))
|
||||
return EXACTLYONE;
|
||||
if ("at-most-one".equals(codeString))
|
||||
return ATMOSTONE;
|
||||
if ("one-or-more".equals(codeString))
|
||||
return ONEORMORE;
|
||||
throw new FHIRException("Unknown ActionSelectionBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case ANY: return "any";
|
||||
case ALL: return "all";
|
||||
case ALLORNONE: return "all-or-none";
|
||||
case EXACTLYONE: return "exactly-one";
|
||||
case ATMOSTONE: return "at-most-one";
|
||||
case ONEORMORE: return "one-or-more";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/action-selection-behavior";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case ANY: return "Any number of the actions in the group may be chosen, from zero to all";
|
||||
case ALL: return "All the actions in the group must be selected as a single unit";
|
||||
case ALLORNONE: return "All the actions in the group are meant to be chosen as a single unit: either all must be selected by the end user, or none may be selected";
|
||||
case EXACTLYONE: return "The end user must choose one and only one of the selectable actions in the group. The user may not choose none of the actions in the group";
|
||||
case ATMOSTONE: return "The end user may choose zero or at most one of the actions in the group";
|
||||
case ONEORMORE: return "The end user must choose a minimum of one, and as many additional as desired";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case ANY: return "Any";
|
||||
case ALL: return "All";
|
||||
case ALLORNONE: return "All Or None";
|
||||
case EXACTLYONE: return "Exactly One";
|
||||
case ATMOSTONE: return "At Most One";
|
||||
case ONEORMORE: return "One Or More";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class ActionSelectionBehaviorEnumFactory implements EnumFactory<ActionSelectionBehavior> {
|
||||
|
||||
public ActionSelectionBehavior fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("any".equals(codeString))
|
||||
return ActionSelectionBehavior.ANY;
|
||||
if ("all".equals(codeString))
|
||||
return ActionSelectionBehavior.ALL;
|
||||
if ("all-or-none".equals(codeString))
|
||||
return ActionSelectionBehavior.ALLORNONE;
|
||||
if ("exactly-one".equals(codeString))
|
||||
return ActionSelectionBehavior.EXACTLYONE;
|
||||
if ("at-most-one".equals(codeString))
|
||||
return ActionSelectionBehavior.ATMOSTONE;
|
||||
if ("one-or-more".equals(codeString))
|
||||
return ActionSelectionBehavior.ONEORMORE;
|
||||
throw new IllegalArgumentException("Unknown ActionSelectionBehavior code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(ActionSelectionBehavior code) {
|
||||
if (code == ActionSelectionBehavior.ANY)
|
||||
return "any";
|
||||
if (code == ActionSelectionBehavior.ALL)
|
||||
return "all";
|
||||
if (code == ActionSelectionBehavior.ALLORNONE)
|
||||
return "all-or-none";
|
||||
if (code == ActionSelectionBehavior.EXACTLYONE)
|
||||
return "exactly-one";
|
||||
if (code == ActionSelectionBehavior.ATMOSTONE)
|
||||
return "at-most-one";
|
||||
if (code == ActionSelectionBehavior.ONEORMORE)
|
||||
return "one-or-more";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(ActionSelectionBehavior code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum ActionType {
|
||||
|
||||
/**
|
||||
* The action is to create a new resource
|
||||
*/
|
||||
CREATE,
|
||||
/**
|
||||
* The action is to update an existing resource
|
||||
*/
|
||||
UPDATE,
|
||||
/**
|
||||
* The action is to remove an existing resource
|
||||
*/
|
||||
REMOVE,
|
||||
/**
|
||||
* The action is to fire a specific event
|
||||
*/
|
||||
FIREEVENT,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ActionType fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("create".equals(codeString))
|
||||
return CREATE;
|
||||
if ("update".equals(codeString))
|
||||
return UPDATE;
|
||||
if ("remove".equals(codeString))
|
||||
return REMOVE;
|
||||
if ("fire-event".equals(codeString))
|
||||
return FIREEVENT;
|
||||
throw new FHIRException("Unknown ActionType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case CREATE: return "create";
|
||||
case UPDATE: return "update";
|
||||
case REMOVE: return "remove";
|
||||
case FIREEVENT: return "fire-event";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/action-type";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case CREATE: return "The action is to create a new resource";
|
||||
case UPDATE: return "The action is to update an existing resource";
|
||||
case REMOVE: return "The action is to remove an existing resource";
|
||||
case FIREEVENT: return "The action is to fire a specific event";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case CREATE: return "Create";
|
||||
case UPDATE: return "Update";
|
||||
case REMOVE: return "Remove";
|
||||
case FIREEVENT: return "Fire Event";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class ActionTypeEnumFactory implements EnumFactory<ActionType> {
|
||||
|
||||
public ActionType fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("create".equals(codeString))
|
||||
return ActionType.CREATE;
|
||||
if ("update".equals(codeString))
|
||||
return ActionType.UPDATE;
|
||||
if ("remove".equals(codeString))
|
||||
return ActionType.REMOVE;
|
||||
if ("fire-event".equals(codeString))
|
||||
return ActionType.FIREEVENT;
|
||||
throw new IllegalArgumentException("Unknown ActionType code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(ActionType code) {
|
||||
if (code == ActionType.CREATE)
|
||||
return "create";
|
||||
if (code == ActionType.UPDATE)
|
||||
return "update";
|
||||
if (code == ActionType.REMOVE)
|
||||
return "remove";
|
||||
if (code == ActionType.FIREEVENT)
|
||||
return "fire-event";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(ActionType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum Actionlist {
|
||||
|
||||
/**
|
||||
* Cancel, reverse or nullify the target resource.
|
||||
*/
|
||||
CANCEL,
|
||||
/**
|
||||
* Check for previously un-read/ not-retrieved resources.
|
||||
*/
|
||||
POLL,
|
||||
/**
|
||||
* Re-process the target resource.
|
||||
*/
|
||||
REPROCESS,
|
||||
/**
|
||||
* Retrieve the processing status of the target resource.
|
||||
*/
|
||||
STATUS,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static Actionlist fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("cancel".equals(codeString))
|
||||
return CANCEL;
|
||||
if ("poll".equals(codeString))
|
||||
return POLL;
|
||||
if ("reprocess".equals(codeString))
|
||||
return REPROCESS;
|
||||
if ("status".equals(codeString))
|
||||
return STATUS;
|
||||
throw new FHIRException("Unknown Actionlist code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case CANCEL: return "cancel";
|
||||
case POLL: return "poll";
|
||||
case REPROCESS: return "reprocess";
|
||||
case STATUS: return "status";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/actionlist";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case CANCEL: return "Cancel, reverse or nullify the target resource.";
|
||||
case POLL: return "Check for previously un-read/ not-retrieved resources.";
|
||||
case REPROCESS: return "Re-process the target resource.";
|
||||
case STATUS: return "Retrieve the processing status of the target resource.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case CANCEL: return "Cancel, Reverse or Nullify";
|
||||
case POLL: return "Poll";
|
||||
case REPROCESS: return "Re-Process";
|
||||
case STATUS: return "Status Check";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class ActionlistEnumFactory implements EnumFactory<Actionlist> {
|
||||
|
||||
public Actionlist fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("cancel".equals(codeString))
|
||||
return Actionlist.CANCEL;
|
||||
if ("poll".equals(codeString))
|
||||
return Actionlist.POLL;
|
||||
if ("reprocess".equals(codeString))
|
||||
return Actionlist.REPROCESS;
|
||||
if ("status".equals(codeString))
|
||||
return Actionlist.STATUS;
|
||||
throw new IllegalArgumentException("Unknown Actionlist code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(Actionlist code) {
|
||||
if (code == Actionlist.CANCEL)
|
||||
return "cancel";
|
||||
if (code == Actionlist.POLL)
|
||||
return "poll";
|
||||
if (code == Actionlist.REPROCESS)
|
||||
return "reprocess";
|
||||
if (code == Actionlist.STATUS)
|
||||
return "status";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(Actionlist code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum ActivityDefinitionCategory {
|
||||
|
||||
/**
|
||||
* The activity is intended to provide or is related to treatment of the patient
|
||||
*/
|
||||
TREATMENT,
|
||||
/**
|
||||
* The activity is intended to provide or is related to education of the patient
|
||||
*/
|
||||
EDUCATION,
|
||||
/**
|
||||
* The activity is intended to perform or is related to assessment of the patient
|
||||
*/
|
||||
ASSESSMENT,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ActivityDefinitionCategory fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("treatment".equals(codeString))
|
||||
return TREATMENT;
|
||||
if ("education".equals(codeString))
|
||||
return EDUCATION;
|
||||
if ("assessment".equals(codeString))
|
||||
return ASSESSMENT;
|
||||
throw new FHIRException("Unknown ActivityDefinitionCategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case TREATMENT: return "treatment";
|
||||
case EDUCATION: return "education";
|
||||
case ASSESSMENT: return "assessment";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/activity-definition-category";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case TREATMENT: return "The activity is intended to provide or is related to treatment of the patient";
|
||||
case EDUCATION: return "The activity is intended to provide or is related to education of the patient";
|
||||
case ASSESSMENT: return "The activity is intended to perform or is related to assessment of the patient";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case TREATMENT: return "Treatment";
|
||||
case EDUCATION: return "Education";
|
||||
case ASSESSMENT: return "Assessment";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class ActivityDefinitionCategoryEnumFactory implements EnumFactory<ActivityDefinitionCategory> {
|
||||
|
||||
public ActivityDefinitionCategory fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("treatment".equals(codeString))
|
||||
return ActivityDefinitionCategory.TREATMENT;
|
||||
if ("education".equals(codeString))
|
||||
return ActivityDefinitionCategory.EDUCATION;
|
||||
if ("assessment".equals(codeString))
|
||||
return ActivityDefinitionCategory.ASSESSMENT;
|
||||
throw new IllegalArgumentException("Unknown ActivityDefinitionCategory code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(ActivityDefinitionCategory code) {
|
||||
if (code == ActivityDefinitionCategory.TREATMENT)
|
||||
return "treatment";
|
||||
if (code == ActivityDefinitionCategory.EDUCATION)
|
||||
return "education";
|
||||
if (code == ActivityDefinitionCategory.ASSESSMENT)
|
||||
return "assessment";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(ActivityDefinitionCategory code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,123 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum Additionalmaterials {
|
||||
|
||||
/**
|
||||
* XRay
|
||||
*/
|
||||
XRAY,
|
||||
/**
|
||||
* Image
|
||||
*/
|
||||
IMAGE,
|
||||
/**
|
||||
* Email
|
||||
*/
|
||||
EMAIL,
|
||||
/**
|
||||
* Model
|
||||
*/
|
||||
MODEL,
|
||||
/**
|
||||
* Document
|
||||
*/
|
||||
DOCUMENT,
|
||||
/**
|
||||
* Other
|
||||
*/
|
||||
OTHER,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static Additionalmaterials fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("xray".equals(codeString))
|
||||
return XRAY;
|
||||
if ("image".equals(codeString))
|
||||
return IMAGE;
|
||||
if ("email".equals(codeString))
|
||||
return EMAIL;
|
||||
if ("model".equals(codeString))
|
||||
return MODEL;
|
||||
if ("document".equals(codeString))
|
||||
return DOCUMENT;
|
||||
if ("other".equals(codeString))
|
||||
return OTHER;
|
||||
throw new FHIRException("Unknown Additionalmaterials code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case XRAY: return "xray";
|
||||
case IMAGE: return "image";
|
||||
case EMAIL: return "email";
|
||||
case MODEL: return "model";
|
||||
case DOCUMENT: return "document";
|
||||
case OTHER: return "other";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/additionalmaterials";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case XRAY: return "XRay";
|
||||
case IMAGE: return "Image";
|
||||
case EMAIL: return "Email";
|
||||
case MODEL: return "Model";
|
||||
case DOCUMENT: return "Document";
|
||||
case OTHER: return "Other";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case XRAY: return "XRay";
|
||||
case IMAGE: return "Image";
|
||||
case EMAIL: return "Email";
|
||||
case MODEL: return "Model";
|
||||
case DOCUMENT: return "Document";
|
||||
case OTHER: return "Other";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AdditionalmaterialsEnumFactory implements EnumFactory<Additionalmaterials> {
|
||||
|
||||
public Additionalmaterials fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("xray".equals(codeString))
|
||||
return Additionalmaterials.XRAY;
|
||||
if ("image".equals(codeString))
|
||||
return Additionalmaterials.IMAGE;
|
||||
if ("email".equals(codeString))
|
||||
return Additionalmaterials.EMAIL;
|
||||
if ("model".equals(codeString))
|
||||
return Additionalmaterials.MODEL;
|
||||
if ("document".equals(codeString))
|
||||
return Additionalmaterials.DOCUMENT;
|
||||
if ("other".equals(codeString))
|
||||
return Additionalmaterials.OTHER;
|
||||
throw new IllegalArgumentException("Unknown Additionalmaterials code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(Additionalmaterials code) {
|
||||
if (code == Additionalmaterials.XRAY)
|
||||
return "xray";
|
||||
if (code == Additionalmaterials.IMAGE)
|
||||
return "image";
|
||||
if (code == Additionalmaterials.EMAIL)
|
||||
return "email";
|
||||
if (code == Additionalmaterials.MODEL)
|
||||
return "model";
|
||||
if (code == Additionalmaterials.DOCUMENT)
|
||||
return "document";
|
||||
if (code == Additionalmaterials.OTHER)
|
||||
return "other";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(Additionalmaterials code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AddressType {
|
||||
|
||||
/**
|
||||
* Mailing addresses - PO Boxes and care-of addresses.
|
||||
*/
|
||||
POSTAL,
|
||||
/**
|
||||
* A physical address that can be visited.
|
||||
*/
|
||||
PHYSICAL,
|
||||
/**
|
||||
* An address that is both physical and postal.
|
||||
*/
|
||||
BOTH,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AddressType fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("postal".equals(codeString))
|
||||
return POSTAL;
|
||||
if ("physical".equals(codeString))
|
||||
return PHYSICAL;
|
||||
if ("both".equals(codeString))
|
||||
return BOTH;
|
||||
throw new FHIRException("Unknown AddressType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case POSTAL: return "postal";
|
||||
case PHYSICAL: return "physical";
|
||||
case BOTH: return "both";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/address-type";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case POSTAL: return "Mailing addresses - PO Boxes and care-of addresses.";
|
||||
case PHYSICAL: return "A physical address that can be visited.";
|
||||
case BOTH: return "An address that is both physical and postal.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case POSTAL: return "Postal";
|
||||
case PHYSICAL: return "Physical";
|
||||
case BOTH: return "Postal & Physical";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AddressTypeEnumFactory implements EnumFactory<AddressType> {
|
||||
|
||||
public AddressType fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("postal".equals(codeString))
|
||||
return AddressType.POSTAL;
|
||||
if ("physical".equals(codeString))
|
||||
return AddressType.PHYSICAL;
|
||||
if ("both".equals(codeString))
|
||||
return AddressType.BOTH;
|
||||
throw new IllegalArgumentException("Unknown AddressType code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AddressType code) {
|
||||
if (code == AddressType.POSTAL)
|
||||
return "postal";
|
||||
if (code == AddressType.PHYSICAL)
|
||||
return "physical";
|
||||
if (code == AddressType.BOTH)
|
||||
return "both";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AddressType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AddressUse {
|
||||
|
||||
/**
|
||||
* A communication address at a home.
|
||||
*/
|
||||
HOME,
|
||||
/**
|
||||
* An office address. First choice for business related contacts during business hours.
|
||||
*/
|
||||
WORK,
|
||||
/**
|
||||
* A temporary address. The period can provide more detailed information.
|
||||
*/
|
||||
TEMP,
|
||||
/**
|
||||
* This address is no longer in use (or was never correct, but retained for records).
|
||||
*/
|
||||
OLD,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AddressUse fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("home".equals(codeString))
|
||||
return HOME;
|
||||
if ("work".equals(codeString))
|
||||
return WORK;
|
||||
if ("temp".equals(codeString))
|
||||
return TEMP;
|
||||
if ("old".equals(codeString))
|
||||
return OLD;
|
||||
throw new FHIRException("Unknown AddressUse code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case HOME: return "home";
|
||||
case WORK: return "work";
|
||||
case TEMP: return "temp";
|
||||
case OLD: return "old";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/address-use";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case HOME: return "A communication address at a home.";
|
||||
case WORK: return "An office address. First choice for business related contacts during business hours.";
|
||||
case TEMP: return "A temporary address. The period can provide more detailed information.";
|
||||
case OLD: return "This address is no longer in use (or was never correct, but retained for records).";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case HOME: return "Home";
|
||||
case WORK: return "Work";
|
||||
case TEMP: return "Temporary";
|
||||
case OLD: return "Old / Incorrect";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AddressUseEnumFactory implements EnumFactory<AddressUse> {
|
||||
|
||||
public AddressUse fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("home".equals(codeString))
|
||||
return AddressUse.HOME;
|
||||
if ("work".equals(codeString))
|
||||
return AddressUse.WORK;
|
||||
if ("temp".equals(codeString))
|
||||
return AddressUse.TEMP;
|
||||
if ("old".equals(codeString))
|
||||
return AddressUse.OLD;
|
||||
throw new IllegalArgumentException("Unknown AddressUse code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AddressUse code) {
|
||||
if (code == AddressUse.HOME)
|
||||
return "home";
|
||||
if (code == AddressUse.WORK)
|
||||
return "work";
|
||||
if (code == AddressUse.TEMP)
|
||||
return "temp";
|
||||
if (code == AddressUse.OLD)
|
||||
return "old";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AddressUse code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,132 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum Adjudication {
|
||||
|
||||
/**
|
||||
* Total submitted
|
||||
*/
|
||||
TOTAL,
|
||||
/**
|
||||
* Patient Co-Payment
|
||||
*/
|
||||
COPAY,
|
||||
/**
|
||||
* Amount of the change which is considered for adjudication
|
||||
*/
|
||||
ELIGIBLE,
|
||||
/**
|
||||
* Amount deducted from the eligible amount prior to adjudication
|
||||
*/
|
||||
DEDUCTIBLE,
|
||||
/**
|
||||
* Eligible Percentage
|
||||
*/
|
||||
ELIGPERCENT,
|
||||
/**
|
||||
* Emergency Department
|
||||
*/
|
||||
TAX,
|
||||
/**
|
||||
* Amount payable under the coverage
|
||||
*/
|
||||
BENEFIT,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static Adjudication fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("total".equals(codeString))
|
||||
return TOTAL;
|
||||
if ("copay".equals(codeString))
|
||||
return COPAY;
|
||||
if ("eligible".equals(codeString))
|
||||
return ELIGIBLE;
|
||||
if ("deductible".equals(codeString))
|
||||
return DEDUCTIBLE;
|
||||
if ("eligpercent".equals(codeString))
|
||||
return ELIGPERCENT;
|
||||
if ("tax".equals(codeString))
|
||||
return TAX;
|
||||
if ("benefit".equals(codeString))
|
||||
return BENEFIT;
|
||||
throw new FHIRException("Unknown Adjudication code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case TOTAL: return "total";
|
||||
case COPAY: return "copay";
|
||||
case ELIGIBLE: return "eligible";
|
||||
case DEDUCTIBLE: return "deductible";
|
||||
case ELIGPERCENT: return "eligpercent";
|
||||
case TAX: return "tax";
|
||||
case BENEFIT: return "benefit";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/adjudication";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case TOTAL: return "Total submitted";
|
||||
case COPAY: return "Patient Co-Payment";
|
||||
case ELIGIBLE: return "Amount of the change which is considered for adjudication";
|
||||
case DEDUCTIBLE: return "Amount deducted from the eligible amount prior to adjudication";
|
||||
case ELIGPERCENT: return "Eligible Percentage";
|
||||
case TAX: return "Emergency Department";
|
||||
case BENEFIT: return "Amount payable under the coverage";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case TOTAL: return "Total";
|
||||
case COPAY: return "CoPay";
|
||||
case ELIGIBLE: return "Eligible Amount";
|
||||
case DEDUCTIBLE: return "Deductable";
|
||||
case ELIGPERCENT: return "Eligible %";
|
||||
case TAX: return "Emergency Department";
|
||||
case BENEFIT: return "Benefit Amount";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AdjudicationEnumFactory implements EnumFactory<Adjudication> {
|
||||
|
||||
public Adjudication fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("total".equals(codeString))
|
||||
return Adjudication.TOTAL;
|
||||
if ("copay".equals(codeString))
|
||||
return Adjudication.COPAY;
|
||||
if ("eligible".equals(codeString))
|
||||
return Adjudication.ELIGIBLE;
|
||||
if ("deductible".equals(codeString))
|
||||
return Adjudication.DEDUCTIBLE;
|
||||
if ("eligpercent".equals(codeString))
|
||||
return Adjudication.ELIGPERCENT;
|
||||
if ("tax".equals(codeString))
|
||||
return Adjudication.TAX;
|
||||
if ("benefit".equals(codeString))
|
||||
return Adjudication.BENEFIT;
|
||||
throw new IllegalArgumentException("Unknown Adjudication code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(Adjudication code) {
|
||||
if (code == Adjudication.TOTAL)
|
||||
return "total";
|
||||
if (code == Adjudication.COPAY)
|
||||
return "copay";
|
||||
if (code == Adjudication.ELIGIBLE)
|
||||
return "eligible";
|
||||
if (code == Adjudication.DEDUCTIBLE)
|
||||
return "deductible";
|
||||
if (code == Adjudication.ELIGPERCENT)
|
||||
return "eligpercent";
|
||||
if (code == Adjudication.TAX)
|
||||
return "tax";
|
||||
if (code == Adjudication.BENEFIT)
|
||||
return "benefit";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(Adjudication code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AdjudicationError {
|
||||
|
||||
/**
|
||||
* Missing Identifier
|
||||
*/
|
||||
A001,
|
||||
/**
|
||||
* Missing Creation Date
|
||||
*/
|
||||
A002,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AdjudicationError fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("a001".equals(codeString))
|
||||
return A001;
|
||||
if ("a002".equals(codeString))
|
||||
return A002;
|
||||
throw new FHIRException("Unknown AdjudicationError code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case A001: return "a001";
|
||||
case A002: return "a002";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/adjudication-error";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case A001: return "Missing Identifier";
|
||||
case A002: return "Missing Creation Date";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case A001: return "Missing Identifier";
|
||||
case A002: return "Missing Creation Date";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AdjudicationErrorEnumFactory implements EnumFactory<AdjudicationError> {
|
||||
|
||||
public AdjudicationError fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("a001".equals(codeString))
|
||||
return AdjudicationError.A001;
|
||||
if ("a002".equals(codeString))
|
||||
return AdjudicationError.A002;
|
||||
throw new IllegalArgumentException("Unknown AdjudicationError code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AdjudicationError code) {
|
||||
if (code == AdjudicationError.A001)
|
||||
return "a001";
|
||||
if (code == AdjudicationError.A002)
|
||||
return "a002";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AdjudicationError code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AdjudicationReason {
|
||||
|
||||
/**
|
||||
* Not covered
|
||||
*/
|
||||
AR001,
|
||||
/**
|
||||
* Plan Limit Reached
|
||||
*/
|
||||
AR002,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AdjudicationReason fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("ar001".equals(codeString))
|
||||
return AR001;
|
||||
if ("ar002".equals(codeString))
|
||||
return AR002;
|
||||
throw new FHIRException("Unknown AdjudicationReason code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case AR001: return "ar001";
|
||||
case AR002: return "ar002";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/adjudication-reason";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case AR001: return "Not covered";
|
||||
case AR002: return "Plan Limit Reached";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case AR001: return "Not covered";
|
||||
case AR002: return "Plan Limit Reached";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AdjudicationReasonEnumFactory implements EnumFactory<AdjudicationReason> {
|
||||
|
||||
public AdjudicationReason fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("ar001".equals(codeString))
|
||||
return AdjudicationReason.AR001;
|
||||
if ("ar002".equals(codeString))
|
||||
return AdjudicationReason.AR002;
|
||||
throw new IllegalArgumentException("Unknown AdjudicationReason code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AdjudicationReason code) {
|
||||
if (code == AdjudicationReason.AR001)
|
||||
return "ar001";
|
||||
if (code == AdjudicationReason.AR002)
|
||||
return "ar002";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AdjudicationReason code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AdministrativeGender {
|
||||
|
||||
/**
|
||||
* Male
|
||||
*/
|
||||
MALE,
|
||||
/**
|
||||
* Female
|
||||
*/
|
||||
FEMALE,
|
||||
/**
|
||||
* Other
|
||||
*/
|
||||
OTHER,
|
||||
/**
|
||||
* Unknown
|
||||
*/
|
||||
UNKNOWN,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AdministrativeGender fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("male".equals(codeString))
|
||||
return MALE;
|
||||
if ("female".equals(codeString))
|
||||
return FEMALE;
|
||||
if ("other".equals(codeString))
|
||||
return OTHER;
|
||||
if ("unknown".equals(codeString))
|
||||
return UNKNOWN;
|
||||
throw new FHIRException("Unknown AdministrativeGender code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case MALE: return "male";
|
||||
case FEMALE: return "female";
|
||||
case OTHER: return "other";
|
||||
case UNKNOWN: return "unknown";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/administrative-gender";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case MALE: return "Male";
|
||||
case FEMALE: return "Female";
|
||||
case OTHER: return "Other";
|
||||
case UNKNOWN: return "Unknown";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case MALE: return "Male";
|
||||
case FEMALE: return "Female";
|
||||
case OTHER: return "Other";
|
||||
case UNKNOWN: return "Unknown";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AdministrativeGenderEnumFactory implements EnumFactory<AdministrativeGender> {
|
||||
|
||||
public AdministrativeGender fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("male".equals(codeString))
|
||||
return AdministrativeGender.MALE;
|
||||
if ("female".equals(codeString))
|
||||
return AdministrativeGender.FEMALE;
|
||||
if ("other".equals(codeString))
|
||||
return AdministrativeGender.OTHER;
|
||||
if ("unknown".equals(codeString))
|
||||
return AdministrativeGender.UNKNOWN;
|
||||
throw new IllegalArgumentException("Unknown AdministrativeGender code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AdministrativeGender code) {
|
||||
if (code == AdministrativeGender.MALE)
|
||||
return "male";
|
||||
if (code == AdministrativeGender.FEMALE)
|
||||
return "female";
|
||||
if (code == AdministrativeGender.OTHER)
|
||||
return "other";
|
||||
if (code == AdministrativeGender.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AdministrativeGender code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AdverseEventCategory {
|
||||
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
AE,
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
PAE,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AdverseEventCategory fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("AE".equals(codeString))
|
||||
return AE;
|
||||
if ("PAE".equals(codeString))
|
||||
return PAE;
|
||||
throw new FHIRException("Unknown AdverseEventCategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case AE: return "AE";
|
||||
case PAE: return "PAE";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/adverse-event-category";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case AE: return "";
|
||||
case PAE: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case AE: return "Adverse Event";
|
||||
case PAE: return "Potential Adverse Event";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AdverseEventCategoryEnumFactory implements EnumFactory<AdverseEventCategory> {
|
||||
|
||||
public AdverseEventCategory fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("AE".equals(codeString))
|
||||
return AdverseEventCategory.AE;
|
||||
if ("PAE".equals(codeString))
|
||||
return AdverseEventCategory.PAE;
|
||||
throw new IllegalArgumentException("Unknown AdverseEventCategory code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AdverseEventCategory code) {
|
||||
if (code == AdverseEventCategory.AE)
|
||||
return "AE";
|
||||
if (code == AdverseEventCategory.PAE)
|
||||
return "PAE";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AdverseEventCategory code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AdverseEventCausality {
|
||||
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
CAUSALITY1,
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
CAUSALITY2,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AdverseEventCausality fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("causality1".equals(codeString))
|
||||
return CAUSALITY1;
|
||||
if ("causality2".equals(codeString))
|
||||
return CAUSALITY2;
|
||||
throw new FHIRException("Unknown AdverseEventCausality code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case CAUSALITY1: return "causality1";
|
||||
case CAUSALITY2: return "causality2";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/adverse-event-causality";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case CAUSALITY1: return "";
|
||||
case CAUSALITY2: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case CAUSALITY1: return "causality1 placeholder";
|
||||
case CAUSALITY2: return "causality2 placeholder";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AdverseEventCausalityAssess {
|
||||
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
ASSESS1,
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
ASSESS2,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AdverseEventCausalityAssess fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("assess1".equals(codeString))
|
||||
return ASSESS1;
|
||||
if ("assess2".equals(codeString))
|
||||
return ASSESS2;
|
||||
throw new FHIRException("Unknown AdverseEventCausalityAssess code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case ASSESS1: return "assess1";
|
||||
case ASSESS2: return "assess2";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/adverse-event-causality-assess";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case ASSESS1: return "";
|
||||
case ASSESS2: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case ASSESS1: return "assess1 placeholder";
|
||||
case ASSESS2: return "assess2 placeholder";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AdverseEventCausalityAssessEnumFactory implements EnumFactory<AdverseEventCausalityAssess> {
|
||||
|
||||
public AdverseEventCausalityAssess fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("assess1".equals(codeString))
|
||||
return AdverseEventCausalityAssess.ASSESS1;
|
||||
if ("assess2".equals(codeString))
|
||||
return AdverseEventCausalityAssess.ASSESS2;
|
||||
throw new IllegalArgumentException("Unknown AdverseEventCausalityAssess code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AdverseEventCausalityAssess code) {
|
||||
if (code == AdverseEventCausalityAssess.ASSESS1)
|
||||
return "assess1";
|
||||
if (code == AdverseEventCausalityAssess.ASSESS2)
|
||||
return "assess2";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AdverseEventCausalityAssess code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AdverseEventCausalityEnumFactory implements EnumFactory<AdverseEventCausality> {
|
||||
|
||||
public AdverseEventCausality fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("causality1".equals(codeString))
|
||||
return AdverseEventCausality.CAUSALITY1;
|
||||
if ("causality2".equals(codeString))
|
||||
return AdverseEventCausality.CAUSALITY2;
|
||||
throw new IllegalArgumentException("Unknown AdverseEventCausality code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AdverseEventCausality code) {
|
||||
if (code == AdverseEventCausality.CAUSALITY1)
|
||||
return "causality1";
|
||||
if (code == AdverseEventCausality.CAUSALITY2)
|
||||
return "causality2";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AdverseEventCausality code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AdverseEventCausalityMethod {
|
||||
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
METHOD1,
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
METHOD2,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AdverseEventCausalityMethod fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("method1".equals(codeString))
|
||||
return METHOD1;
|
||||
if ("method2".equals(codeString))
|
||||
return METHOD2;
|
||||
throw new FHIRException("Unknown AdverseEventCausalityMethod code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case METHOD1: return "method1";
|
||||
case METHOD2: return "method2";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/adverse-event-causality-method";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case METHOD1: return "";
|
||||
case METHOD2: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case METHOD1: return "placeholder";
|
||||
case METHOD2: return "placeholder";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AdverseEventCausalityMethodEnumFactory implements EnumFactory<AdverseEventCausalityMethod> {
|
||||
|
||||
public AdverseEventCausalityMethod fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("method1".equals(codeString))
|
||||
return AdverseEventCausalityMethod.METHOD1;
|
||||
if ("method2".equals(codeString))
|
||||
return AdverseEventCausalityMethod.METHOD2;
|
||||
throw new IllegalArgumentException("Unknown AdverseEventCausalityMethod code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AdverseEventCausalityMethod code) {
|
||||
if (code == AdverseEventCausalityMethod.METHOD1)
|
||||
return "method1";
|
||||
if (code == AdverseEventCausalityMethod.METHOD2)
|
||||
return "method2";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AdverseEventCausalityMethod code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AdverseEventCausalityResult {
|
||||
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
RESULT1,
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
RESULT2,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AdverseEventCausalityResult fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("result1".equals(codeString))
|
||||
return RESULT1;
|
||||
if ("result2".equals(codeString))
|
||||
return RESULT2;
|
||||
throw new FHIRException("Unknown AdverseEventCausalityResult code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case RESULT1: return "result1";
|
||||
case RESULT2: return "result2";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/adverse-event-causality-result";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case RESULT1: return "";
|
||||
case RESULT2: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case RESULT1: return "placeholder";
|
||||
case RESULT2: return "placeholder";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AdverseEventCausalityResultEnumFactory implements EnumFactory<AdverseEventCausalityResult> {
|
||||
|
||||
public AdverseEventCausalityResult fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("result1".equals(codeString))
|
||||
return AdverseEventCausalityResult.RESULT1;
|
||||
if ("result2".equals(codeString))
|
||||
return AdverseEventCausalityResult.RESULT2;
|
||||
throw new IllegalArgumentException("Unknown AdverseEventCausalityResult code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AdverseEventCausalityResult code) {
|
||||
if (code == AdverseEventCausalityResult.RESULT1)
|
||||
return "result1";
|
||||
if (code == AdverseEventCausalityResult.RESULT2)
|
||||
return "result2";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AdverseEventCausalityResult code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,123 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AdverseEventOutcome {
|
||||
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
RESOLVED,
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
RECOVERING,
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
ONGOING,
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
RESOLVEDWITHSEQUELAE,
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
FATAL,
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
UNKNOWN,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AdverseEventOutcome fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("resolved".equals(codeString))
|
||||
return RESOLVED;
|
||||
if ("recovering".equals(codeString))
|
||||
return RECOVERING;
|
||||
if ("ongoing".equals(codeString))
|
||||
return ONGOING;
|
||||
if ("resolvedWithSequelae".equals(codeString))
|
||||
return RESOLVEDWITHSEQUELAE;
|
||||
if ("fatal".equals(codeString))
|
||||
return FATAL;
|
||||
if ("unknown".equals(codeString))
|
||||
return UNKNOWN;
|
||||
throw new FHIRException("Unknown AdverseEventOutcome code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case RESOLVED: return "resolved";
|
||||
case RECOVERING: return "recovering";
|
||||
case ONGOING: return "ongoing";
|
||||
case RESOLVEDWITHSEQUELAE: return "resolvedWithSequelae";
|
||||
case FATAL: return "fatal";
|
||||
case UNKNOWN: return "unknown";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/adverse-event-outcome";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case RESOLVED: return "";
|
||||
case RECOVERING: return "";
|
||||
case ONGOING: return "";
|
||||
case RESOLVEDWITHSEQUELAE: return "";
|
||||
case FATAL: return "";
|
||||
case UNKNOWN: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case RESOLVED: return "Resolved";
|
||||
case RECOVERING: return "Recovering";
|
||||
case ONGOING: return "Ongoing";
|
||||
case RESOLVEDWITHSEQUELAE: return "Resolved with Sequelae";
|
||||
case FATAL: return "Fatal";
|
||||
case UNKNOWN: return "Unknown";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AdverseEventOutcomeEnumFactory implements EnumFactory<AdverseEventOutcome> {
|
||||
|
||||
public AdverseEventOutcome fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("resolved".equals(codeString))
|
||||
return AdverseEventOutcome.RESOLVED;
|
||||
if ("recovering".equals(codeString))
|
||||
return AdverseEventOutcome.RECOVERING;
|
||||
if ("ongoing".equals(codeString))
|
||||
return AdverseEventOutcome.ONGOING;
|
||||
if ("resolvedWithSequelae".equals(codeString))
|
||||
return AdverseEventOutcome.RESOLVEDWITHSEQUELAE;
|
||||
if ("fatal".equals(codeString))
|
||||
return AdverseEventOutcome.FATAL;
|
||||
if ("unknown".equals(codeString))
|
||||
return AdverseEventOutcome.UNKNOWN;
|
||||
throw new IllegalArgumentException("Unknown AdverseEventOutcome code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AdverseEventOutcome code) {
|
||||
if (code == AdverseEventOutcome.RESOLVED)
|
||||
return "resolved";
|
||||
if (code == AdverseEventOutcome.RECOVERING)
|
||||
return "recovering";
|
||||
if (code == AdverseEventOutcome.ONGOING)
|
||||
return "ongoing";
|
||||
if (code == AdverseEventOutcome.RESOLVEDWITHSEQUELAE)
|
||||
return "resolvedWithSequelae";
|
||||
if (code == AdverseEventOutcome.FATAL)
|
||||
return "fatal";
|
||||
if (code == AdverseEventOutcome.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AdverseEventOutcome code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AdverseEventSeriousness {
|
||||
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
MILD,
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
MODERATE,
|
||||
/**
|
||||
* null
|
||||
*/
|
||||
SEVERE,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AdverseEventSeriousness fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("Mild".equals(codeString))
|
||||
return MILD;
|
||||
if ("Moderate".equals(codeString))
|
||||
return MODERATE;
|
||||
if ("Severe".equals(codeString))
|
||||
return SEVERE;
|
||||
throw new FHIRException("Unknown AdverseEventSeriousness code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case MILD: return "Mild";
|
||||
case MODERATE: return "Moderate";
|
||||
case SEVERE: return "Severe";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/adverse-event-seriousness";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case MILD: return "";
|
||||
case MODERATE: return "";
|
||||
case SEVERE: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case MILD: return "Mild";
|
||||
case MODERATE: return "Moderate";
|
||||
case SEVERE: return "Severe";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AdverseEventSeriousnessEnumFactory implements EnumFactory<AdverseEventSeriousness> {
|
||||
|
||||
public AdverseEventSeriousness fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("Mild".equals(codeString))
|
||||
return AdverseEventSeriousness.MILD;
|
||||
if ("Moderate".equals(codeString))
|
||||
return AdverseEventSeriousness.MODERATE;
|
||||
if ("Severe".equals(codeString))
|
||||
return AdverseEventSeriousness.SEVERE;
|
||||
throw new IllegalArgumentException("Unknown AdverseEventSeriousness code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AdverseEventSeriousness code) {
|
||||
if (code == AdverseEventSeriousness.MILD)
|
||||
return "Mild";
|
||||
if (code == AdverseEventSeriousness.MODERATE)
|
||||
return "Moderate";
|
||||
if (code == AdverseEventSeriousness.SEVERE)
|
||||
return "Severe";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AdverseEventSeriousness code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AllergIntolSubstanceExpRisk {
|
||||
|
||||
/**
|
||||
* Known risk of allergy or intolerance reaction upon exposure to the specified substance.
|
||||
*/
|
||||
KNOWNREACTIONRISK,
|
||||
/**
|
||||
* No known risk of allergy or intolerance reaction upon exposure to the specified substance.
|
||||
*/
|
||||
NOKNOWNREACTIONRISK,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AllergIntolSubstanceExpRisk fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("known-reaction-risk".equals(codeString))
|
||||
return KNOWNREACTIONRISK;
|
||||
if ("no-known-reaction-risk".equals(codeString))
|
||||
return NOKNOWNREACTIONRISK;
|
||||
throw new FHIRException("Unknown AllergIntolSubstanceExpRisk code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case KNOWNREACTIONRISK: return "known-reaction-risk";
|
||||
case NOKNOWNREACTIONRISK: return "no-known-reaction-risk";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/allerg-intol-substance-exp-risk";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case KNOWNREACTIONRISK: return "Known risk of allergy or intolerance reaction upon exposure to the specified substance.";
|
||||
case NOKNOWNREACTIONRISK: return "No known risk of allergy or intolerance reaction upon exposure to the specified substance.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case KNOWNREACTIONRISK: return "Known Reaction Risk";
|
||||
case NOKNOWNREACTIONRISK: return "No Known Reaction Risk";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AllergIntolSubstanceExpRiskEnumFactory implements EnumFactory<AllergIntolSubstanceExpRisk> {
|
||||
|
||||
public AllergIntolSubstanceExpRisk fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("known-reaction-risk".equals(codeString))
|
||||
return AllergIntolSubstanceExpRisk.KNOWNREACTIONRISK;
|
||||
if ("no-known-reaction-risk".equals(codeString))
|
||||
return AllergIntolSubstanceExpRisk.NOKNOWNREACTIONRISK;
|
||||
throw new IllegalArgumentException("Unknown AllergIntolSubstanceExpRisk code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AllergIntolSubstanceExpRisk code) {
|
||||
if (code == AllergIntolSubstanceExpRisk.KNOWNREACTIONRISK)
|
||||
return "known-reaction-risk";
|
||||
if (code == AllergIntolSubstanceExpRisk.NOKNOWNREACTIONRISK)
|
||||
return "no-known-reaction-risk";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AllergIntolSubstanceExpRisk code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AllergyClinicalStatus {
|
||||
|
||||
/**
|
||||
* An active record of a risk of a reaction to the identified substance.
|
||||
*/
|
||||
ACTIVE,
|
||||
/**
|
||||
* An inactivated record of a risk of a reaction to the identified substance.
|
||||
*/
|
||||
INACTIVE,
|
||||
/**
|
||||
* A reaction to the identified substance has been clinically reassessed by testing or re-exposure and considered to be resolved.
|
||||
*/
|
||||
RESOLVED,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AllergyClinicalStatus fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("active".equals(codeString))
|
||||
return ACTIVE;
|
||||
if ("inactive".equals(codeString))
|
||||
return INACTIVE;
|
||||
if ("resolved".equals(codeString))
|
||||
return RESOLVED;
|
||||
throw new FHIRException("Unknown AllergyClinicalStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case ACTIVE: return "active";
|
||||
case INACTIVE: return "inactive";
|
||||
case RESOLVED: return "resolved";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/allergy-clinical-status";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case ACTIVE: return "An active record of a risk of a reaction to the identified substance.";
|
||||
case INACTIVE: return "An inactivated record of a risk of a reaction to the identified substance.";
|
||||
case RESOLVED: return "A reaction to the identified substance has been clinically reassessed by testing or re-exposure and considered to be resolved.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case ACTIVE: return "Active";
|
||||
case INACTIVE: return "Inactive";
|
||||
case RESOLVED: return "Resolved";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AllergyClinicalStatusEnumFactory implements EnumFactory<AllergyClinicalStatus> {
|
||||
|
||||
public AllergyClinicalStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("active".equals(codeString))
|
||||
return AllergyClinicalStatus.ACTIVE;
|
||||
if ("inactive".equals(codeString))
|
||||
return AllergyClinicalStatus.INACTIVE;
|
||||
if ("resolved".equals(codeString))
|
||||
return AllergyClinicalStatus.RESOLVED;
|
||||
throw new IllegalArgumentException("Unknown AllergyClinicalStatus code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AllergyClinicalStatus code) {
|
||||
if (code == AllergyClinicalStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == AllergyClinicalStatus.INACTIVE)
|
||||
return "inactive";
|
||||
if (code == AllergyClinicalStatus.RESOLVED)
|
||||
return "resolved";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AllergyClinicalStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AllergyIntoleranceCategory {
|
||||
|
||||
/**
|
||||
* Any substance consumed to provide nutritional support for the body.
|
||||
*/
|
||||
FOOD,
|
||||
/**
|
||||
* Substances administered to achieve a physiological effect.
|
||||
*/
|
||||
MEDICATION,
|
||||
/**
|
||||
* Any substances that are encountered in the environment, including any substance not already classified as food, medication, or biologic.
|
||||
*/
|
||||
ENVIRONMENT,
|
||||
/**
|
||||
* A preparation that is synthesized from living organisms or their products, especially a human or animal protein, such as a hormone or antitoxin, that is used as a diagnostic, preventive, or therapeutic agent. Examples of biologic medications include: vaccines; allergenic extracts, which are used for both diagnosis and treatment (for example, allergy shots); gene therapies; cellular therapies. There are other biologic products, such as tissues, that are not typically associated with allergies.
|
||||
*/
|
||||
BIOLOGIC,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AllergyIntoleranceCategory fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("food".equals(codeString))
|
||||
return FOOD;
|
||||
if ("medication".equals(codeString))
|
||||
return MEDICATION;
|
||||
if ("environment".equals(codeString))
|
||||
return ENVIRONMENT;
|
||||
if ("biologic".equals(codeString))
|
||||
return BIOLOGIC;
|
||||
throw new FHIRException("Unknown AllergyIntoleranceCategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case FOOD: return "food";
|
||||
case MEDICATION: return "medication";
|
||||
case ENVIRONMENT: return "environment";
|
||||
case BIOLOGIC: return "biologic";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/allergy-intolerance-category";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case FOOD: return "Any substance consumed to provide nutritional support for the body.";
|
||||
case MEDICATION: return "Substances administered to achieve a physiological effect.";
|
||||
case ENVIRONMENT: return "Any substances that are encountered in the environment, including any substance not already classified as food, medication, or biologic.";
|
||||
case BIOLOGIC: return "A preparation that is synthesized from living organisms or their products, especially a human or animal protein, such as a hormone or antitoxin, that is used as a diagnostic, preventive, or therapeutic agent. Examples of biologic medications include: vaccines; allergenic extracts, which are used for both diagnosis and treatment (for example, allergy shots); gene therapies; cellular therapies. There are other biologic products, such as tissues, that are not typically associated with allergies.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case FOOD: return "Food";
|
||||
case MEDICATION: return "Medication";
|
||||
case ENVIRONMENT: return "Environment";
|
||||
case BIOLOGIC: return "Biologic";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AllergyIntoleranceCategoryEnumFactory implements EnumFactory<AllergyIntoleranceCategory> {
|
||||
|
||||
public AllergyIntoleranceCategory fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("food".equals(codeString))
|
||||
return AllergyIntoleranceCategory.FOOD;
|
||||
if ("medication".equals(codeString))
|
||||
return AllergyIntoleranceCategory.MEDICATION;
|
||||
if ("environment".equals(codeString))
|
||||
return AllergyIntoleranceCategory.ENVIRONMENT;
|
||||
if ("biologic".equals(codeString))
|
||||
return AllergyIntoleranceCategory.BIOLOGIC;
|
||||
throw new IllegalArgumentException("Unknown AllergyIntoleranceCategory code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AllergyIntoleranceCategory code) {
|
||||
if (code == AllergyIntoleranceCategory.FOOD)
|
||||
return "food";
|
||||
if (code == AllergyIntoleranceCategory.MEDICATION)
|
||||
return "medication";
|
||||
if (code == AllergyIntoleranceCategory.ENVIRONMENT)
|
||||
return "environment";
|
||||
if (code == AllergyIntoleranceCategory.BIOLOGIC)
|
||||
return "biologic";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AllergyIntoleranceCategory code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AllergyIntoleranceCriticality {
|
||||
|
||||
/**
|
||||
* Worst case result of a future exposure is not assessed to be life-threatening or having high potential for organ system failure.
|
||||
*/
|
||||
LOW,
|
||||
/**
|
||||
* Worst case result of a future exposure is assessed to be life-threatening or having high potential for organ system failure.
|
||||
*/
|
||||
HIGH,
|
||||
/**
|
||||
* Unable to assess the worst case result of a future exposure.
|
||||
*/
|
||||
UNABLETOASSESS,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AllergyIntoleranceCriticality fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("low".equals(codeString))
|
||||
return LOW;
|
||||
if ("high".equals(codeString))
|
||||
return HIGH;
|
||||
if ("unable-to-assess".equals(codeString))
|
||||
return UNABLETOASSESS;
|
||||
throw new FHIRException("Unknown AllergyIntoleranceCriticality code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case LOW: return "low";
|
||||
case HIGH: return "high";
|
||||
case UNABLETOASSESS: return "unable-to-assess";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/allergy-intolerance-criticality";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case LOW: return "Worst case result of a future exposure is not assessed to be life-threatening or having high potential for organ system failure.";
|
||||
case HIGH: return "Worst case result of a future exposure is assessed to be life-threatening or having high potential for organ system failure.";
|
||||
case UNABLETOASSESS: return "Unable to assess the worst case result of a future exposure.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case LOW: return "Low Risk";
|
||||
case HIGH: return "High Risk";
|
||||
case UNABLETOASSESS: return "Unable to Assess Risk";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AllergyIntoleranceCriticalityEnumFactory implements EnumFactory<AllergyIntoleranceCriticality> {
|
||||
|
||||
public AllergyIntoleranceCriticality fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("low".equals(codeString))
|
||||
return AllergyIntoleranceCriticality.LOW;
|
||||
if ("high".equals(codeString))
|
||||
return AllergyIntoleranceCriticality.HIGH;
|
||||
if ("unable-to-assess".equals(codeString))
|
||||
return AllergyIntoleranceCriticality.UNABLETOASSESS;
|
||||
throw new IllegalArgumentException("Unknown AllergyIntoleranceCriticality code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AllergyIntoleranceCriticality code) {
|
||||
if (code == AllergyIntoleranceCriticality.LOW)
|
||||
return "low";
|
||||
if (code == AllergyIntoleranceCriticality.HIGH)
|
||||
return "high";
|
||||
if (code == AllergyIntoleranceCriticality.UNABLETOASSESS)
|
||||
return "unable-to-assess";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AllergyIntoleranceCriticality code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,123 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Nov 5, 2016 17:49-0400 for FHIR v1.7.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AllergyIntoleranceStatus {
|
||||
|
||||
/**
|
||||
* An active record of a risk of a reaction to the identified substance.
|
||||
*/
|
||||
ACTIVE,
|
||||
/**
|
||||
* A high level of certainty about the propensity for a reaction to the identified substance, which may include clinical evidence by testing or rechallenge.
|
||||
*/
|
||||
ACTIVECONFIRMED,
|
||||
/**
|
||||
* An inactivated record of a risk of a reaction to the identified substance
|
||||
*/
|
||||
INACTIVE,
|
||||
/**
|
||||
* A reaction to the identified substance has been clinically reassessed by testing or re-exposure and considered to be resolved
|
||||
*/
|
||||
RESOLVED,
|
||||
/**
|
||||
* A propensity for a reaction to the identified substance has been disproven with a high level of clinical certainty, which may include testing or rechallenge, and is refuted.
|
||||
*/
|
||||
REFUTED,
|
||||
/**
|
||||
* The statement was entered in error and is not valid.
|
||||
*/
|
||||
ENTEREDINERROR,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AllergyIntoleranceStatus fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("active".equals(codeString))
|
||||
return ACTIVE;
|
||||
if ("active-confirmed".equals(codeString))
|
||||
return ACTIVECONFIRMED;
|
||||
if ("inactive".equals(codeString))
|
||||
return INACTIVE;
|
||||
if ("resolved".equals(codeString))
|
||||
return RESOLVED;
|
||||
if ("refuted".equals(codeString))
|
||||
return REFUTED;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return ENTEREDINERROR;
|
||||
throw new FHIRException("Unknown AllergyIntoleranceStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case ACTIVE: return "active";
|
||||
case ACTIVECONFIRMED: return "active-confirmed";
|
||||
case INACTIVE: return "inactive";
|
||||
case RESOLVED: return "resolved";
|
||||
case REFUTED: return "refuted";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/allergy-intolerance-status";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case ACTIVE: return "An active record of a risk of a reaction to the identified substance.";
|
||||
case ACTIVECONFIRMED: return "A high level of certainty about the propensity for a reaction to the identified substance, which may include clinical evidence by testing or rechallenge.";
|
||||
case INACTIVE: return "An inactivated record of a risk of a reaction to the identified substance";
|
||||
case RESOLVED: return "A reaction to the identified substance has been clinically reassessed by testing or re-exposure and considered to be resolved";
|
||||
case REFUTED: return "A propensity for a reaction to the identified substance has been disproven with a high level of clinical certainty, which may include testing or rechallenge, and is refuted.";
|
||||
case ENTEREDINERROR: return "The statement was entered in error and is not valid.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case ACTIVE: return "Active";
|
||||
case ACTIVECONFIRMED: return "Active Confirmed";
|
||||
case INACTIVE: return "Inactive";
|
||||
case RESOLVED: return "Resolved";
|
||||
case REFUTED: return "Refuted";
|
||||
case ENTEREDINERROR: return "Entered In Error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Nov 5, 2016 17:49-0400 for FHIR v1.7.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AllergyIntoleranceStatusEnumFactory implements EnumFactory<AllergyIntoleranceStatus> {
|
||||
|
||||
public AllergyIntoleranceStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("active".equals(codeString))
|
||||
return AllergyIntoleranceStatus.ACTIVE;
|
||||
if ("active-confirmed".equals(codeString))
|
||||
return AllergyIntoleranceStatus.ACTIVECONFIRMED;
|
||||
if ("inactive".equals(codeString))
|
||||
return AllergyIntoleranceStatus.INACTIVE;
|
||||
if ("resolved".equals(codeString))
|
||||
return AllergyIntoleranceStatus.RESOLVED;
|
||||
if ("refuted".equals(codeString))
|
||||
return AllergyIntoleranceStatus.REFUTED;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return AllergyIntoleranceStatus.ENTEREDINERROR;
|
||||
throw new IllegalArgumentException("Unknown AllergyIntoleranceStatus code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AllergyIntoleranceStatus code) {
|
||||
if (code == AllergyIntoleranceStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == AllergyIntoleranceStatus.ACTIVECONFIRMED)
|
||||
return "active-confirmed";
|
||||
if (code == AllergyIntoleranceStatus.INACTIVE)
|
||||
return "inactive";
|
||||
if (code == AllergyIntoleranceStatus.RESOLVED)
|
||||
return "resolved";
|
||||
if (code == AllergyIntoleranceStatus.REFUTED)
|
||||
return "refuted";
|
||||
if (code == AllergyIntoleranceStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AllergyIntoleranceStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AllergyIntoleranceType {
|
||||
|
||||
/**
|
||||
* A propensity for hypersensitivity reaction(s) to a substance. These reactions are most typically type I hypersensitivity, plus other "allergy-like" reactions, including pseudoallergy.
|
||||
*/
|
||||
ALLERGY,
|
||||
/**
|
||||
* A propensity for adverse reactions to a substance that is not judged to be allergic or "allergy-like". These reactions are typically (but not necessarily) non-immune. They are to some degree idiosyncratic and/or individually specific (i.e. are not a reaction that is expected to occur with most or all patients given similar circumstances).
|
||||
*/
|
||||
INTOLERANCE,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AllergyIntoleranceType fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("allergy".equals(codeString))
|
||||
return ALLERGY;
|
||||
if ("intolerance".equals(codeString))
|
||||
return INTOLERANCE;
|
||||
throw new FHIRException("Unknown AllergyIntoleranceType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case ALLERGY: return "allergy";
|
||||
case INTOLERANCE: return "intolerance";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/allergy-intolerance-type";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case ALLERGY: return "A propensity for hypersensitivity reaction(s) to a substance. These reactions are most typically type I hypersensitivity, plus other \"allergy-like\" reactions, including pseudoallergy.";
|
||||
case INTOLERANCE: return "A propensity for adverse reactions to a substance that is not judged to be allergic or \"allergy-like\". These reactions are typically (but not necessarily) non-immune. They are to some degree idiosyncratic and/or individually specific (i.e. are not a reaction that is expected to occur with most or all patients given similar circumstances).";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case ALLERGY: return "Allergy";
|
||||
case INTOLERANCE: return "Intolerance";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AllergyIntoleranceTypeEnumFactory implements EnumFactory<AllergyIntoleranceType> {
|
||||
|
||||
public AllergyIntoleranceType fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("allergy".equals(codeString))
|
||||
return AllergyIntoleranceType.ALLERGY;
|
||||
if ("intolerance".equals(codeString))
|
||||
return AllergyIntoleranceType.INTOLERANCE;
|
||||
throw new IllegalArgumentException("Unknown AllergyIntoleranceType code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AllergyIntoleranceType code) {
|
||||
if (code == AllergyIntoleranceType.ALLERGY)
|
||||
return "allergy";
|
||||
if (code == AllergyIntoleranceType.INTOLERANCE)
|
||||
return "intolerance";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AllergyIntoleranceType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AllergyVerificationStatus {
|
||||
|
||||
/**
|
||||
* A low level of certainty about the propensity for a reaction to the identified substance.
|
||||
*/
|
||||
UNCONFIRMED,
|
||||
/**
|
||||
* A high level of certainty about the propensity for a reaction to the identified substance, which may include clinical evidence by testing or rechallenge.
|
||||
*/
|
||||
CONFIRMED,
|
||||
/**
|
||||
* A propensity for a reaction to the identified substance has been disproven with a high level of clinical certainty, which may include testing or rechallenge, and is refuted.
|
||||
*/
|
||||
REFUTED,
|
||||
/**
|
||||
* The statement was entered in error and is not valid.
|
||||
*/
|
||||
ENTEREDINERROR,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AllergyVerificationStatus fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("unconfirmed".equals(codeString))
|
||||
return UNCONFIRMED;
|
||||
if ("confirmed".equals(codeString))
|
||||
return CONFIRMED;
|
||||
if ("refuted".equals(codeString))
|
||||
return REFUTED;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return ENTEREDINERROR;
|
||||
throw new FHIRException("Unknown AllergyVerificationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case UNCONFIRMED: return "unconfirmed";
|
||||
case CONFIRMED: return "confirmed";
|
||||
case REFUTED: return "refuted";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/allergy-verification-status";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case UNCONFIRMED: return "A low level of certainty about the propensity for a reaction to the identified substance.";
|
||||
case CONFIRMED: return "A high level of certainty about the propensity for a reaction to the identified substance, which may include clinical evidence by testing or rechallenge.";
|
||||
case REFUTED: return "A propensity for a reaction to the identified substance has been disproven with a high level of clinical certainty, which may include testing or rechallenge, and is refuted.";
|
||||
case ENTEREDINERROR: return "The statement was entered in error and is not valid.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case UNCONFIRMED: return "Unconfirmed";
|
||||
case CONFIRMED: return "Confirmed";
|
||||
case REFUTED: return "Refuted";
|
||||
case ENTEREDINERROR: return "Entered In Error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AllergyVerificationStatusEnumFactory implements EnumFactory<AllergyVerificationStatus> {
|
||||
|
||||
public AllergyVerificationStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("unconfirmed".equals(codeString))
|
||||
return AllergyVerificationStatus.UNCONFIRMED;
|
||||
if ("confirmed".equals(codeString))
|
||||
return AllergyVerificationStatus.CONFIRMED;
|
||||
if ("refuted".equals(codeString))
|
||||
return AllergyVerificationStatus.REFUTED;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return AllergyVerificationStatus.ENTEREDINERROR;
|
||||
throw new IllegalArgumentException("Unknown AllergyVerificationStatus code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AllergyVerificationStatus code) {
|
||||
if (code == AllergyVerificationStatus.UNCONFIRMED)
|
||||
return "unconfirmed";
|
||||
if (code == AllergyVerificationStatus.CONFIRMED)
|
||||
return "confirmed";
|
||||
if (code == AllergyVerificationStatus.REFUTED)
|
||||
return "refuted";
|
||||
if (code == AllergyVerificationStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AllergyVerificationStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AnimalGenderstatus {
|
||||
|
||||
/**
|
||||
* The animal has been sterilized, castrated or otherwise made infertile.
|
||||
*/
|
||||
NEUTERED,
|
||||
/**
|
||||
* The animal's reproductive organs are intact.
|
||||
*/
|
||||
INTACT,
|
||||
/**
|
||||
* Unable to determine whether the animal has been neutered.
|
||||
*/
|
||||
UNKNOWN,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AnimalGenderstatus fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("neutered".equals(codeString))
|
||||
return NEUTERED;
|
||||
if ("intact".equals(codeString))
|
||||
return INTACT;
|
||||
if ("unknown".equals(codeString))
|
||||
return UNKNOWN;
|
||||
throw new FHIRException("Unknown AnimalGenderstatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case NEUTERED: return "neutered";
|
||||
case INTACT: return "intact";
|
||||
case UNKNOWN: return "unknown";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/animal-genderstatus";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case NEUTERED: return "The animal has been sterilized, castrated or otherwise made infertile.";
|
||||
case INTACT: return "The animal's reproductive organs are intact.";
|
||||
case UNKNOWN: return "Unable to determine whether the animal has been neutered.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case NEUTERED: return "Neutered";
|
||||
case INTACT: return "Intact";
|
||||
case UNKNOWN: return "Unknown";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AnimalGenderstatusEnumFactory implements EnumFactory<AnimalGenderstatus> {
|
||||
|
||||
public AnimalGenderstatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("neutered".equals(codeString))
|
||||
return AnimalGenderstatus.NEUTERED;
|
||||
if ("intact".equals(codeString))
|
||||
return AnimalGenderstatus.INTACT;
|
||||
if ("unknown".equals(codeString))
|
||||
return AnimalGenderstatus.UNKNOWN;
|
||||
throw new IllegalArgumentException("Unknown AnimalGenderstatus code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AnimalGenderstatus code) {
|
||||
if (code == AnimalGenderstatus.NEUTERED)
|
||||
return "neutered";
|
||||
if (code == AnimalGenderstatus.INTACT)
|
||||
return "intact";
|
||||
if (code == AnimalGenderstatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AnimalGenderstatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AnimalSpecies {
|
||||
|
||||
/**
|
||||
* Canis lupus familiaris
|
||||
*/
|
||||
CANISLF,
|
||||
/**
|
||||
* Ovis aries
|
||||
*/
|
||||
OVISA,
|
||||
/**
|
||||
* Serinus canaria domestica
|
||||
*/
|
||||
SERINUSCD,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AnimalSpecies fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("canislf".equals(codeString))
|
||||
return CANISLF;
|
||||
if ("ovisa".equals(codeString))
|
||||
return OVISA;
|
||||
if ("serinuscd".equals(codeString))
|
||||
return SERINUSCD;
|
||||
throw new FHIRException("Unknown AnimalSpecies code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case CANISLF: return "canislf";
|
||||
case OVISA: return "ovisa";
|
||||
case SERINUSCD: return "serinuscd";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/animal-species";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case CANISLF: return "Canis lupus familiaris";
|
||||
case OVISA: return "Ovis aries";
|
||||
case SERINUSCD: return "Serinus canaria domestica";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case CANISLF: return "Dog";
|
||||
case OVISA: return "Sheep";
|
||||
case SERINUSCD: return "Domestic Canary";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AnimalSpeciesEnumFactory implements EnumFactory<AnimalSpecies> {
|
||||
|
||||
public AnimalSpecies fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("canislf".equals(codeString))
|
||||
return AnimalSpecies.CANISLF;
|
||||
if ("ovisa".equals(codeString))
|
||||
return AnimalSpecies.OVISA;
|
||||
if ("serinuscd".equals(codeString))
|
||||
return AnimalSpecies.SERINUSCD;
|
||||
throw new IllegalArgumentException("Unknown AnimalSpecies code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AnimalSpecies code) {
|
||||
if (code == AnimalSpecies.CANISLF)
|
||||
return "canislf";
|
||||
if (code == AnimalSpecies.OVISA)
|
||||
return "ovisa";
|
||||
if (code == AnimalSpecies.SERINUSCD)
|
||||
return "serinuscd";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AnimalSpecies code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,141 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum Appointmentstatus {
|
||||
|
||||
/**
|
||||
* None of the participant(s) have finalized their acceptance of the appointment request, and the start/end time may not be set yet.
|
||||
*/
|
||||
PROPOSED,
|
||||
/**
|
||||
* Some or all of the participant(s) have not finalized their acceptance of the appointment request.
|
||||
*/
|
||||
PENDING,
|
||||
/**
|
||||
* All participant(s) have been considered and the appointment is confirmed to go ahead at the date/times specified.
|
||||
*/
|
||||
BOOKED,
|
||||
/**
|
||||
* Some of the patients have arrived.
|
||||
*/
|
||||
ARRIVED,
|
||||
/**
|
||||
* This appointment has completed and may have resulted in an encounter.
|
||||
*/
|
||||
FULFILLED,
|
||||
/**
|
||||
* The appointment has been cancelled.
|
||||
*/
|
||||
CANCELLED,
|
||||
/**
|
||||
* Some or all of the participant(s) have not/did not appear for the appointment (usually the patient).
|
||||
*/
|
||||
NOSHOW,
|
||||
/**
|
||||
* This instance should not have been part of this patient's medical record.
|
||||
*/
|
||||
ENTEREDINERROR,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static Appointmentstatus fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("proposed".equals(codeString))
|
||||
return PROPOSED;
|
||||
if ("pending".equals(codeString))
|
||||
return PENDING;
|
||||
if ("booked".equals(codeString))
|
||||
return BOOKED;
|
||||
if ("arrived".equals(codeString))
|
||||
return ARRIVED;
|
||||
if ("fulfilled".equals(codeString))
|
||||
return FULFILLED;
|
||||
if ("cancelled".equals(codeString))
|
||||
return CANCELLED;
|
||||
if ("noshow".equals(codeString))
|
||||
return NOSHOW;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return ENTEREDINERROR;
|
||||
throw new FHIRException("Unknown Appointmentstatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case PROPOSED: return "proposed";
|
||||
case PENDING: return "pending";
|
||||
case BOOKED: return "booked";
|
||||
case ARRIVED: return "arrived";
|
||||
case FULFILLED: return "fulfilled";
|
||||
case CANCELLED: return "cancelled";
|
||||
case NOSHOW: return "noshow";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/appointmentstatus";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PROPOSED: return "None of the participant(s) have finalized their acceptance of the appointment request, and the start/end time may not be set yet.";
|
||||
case PENDING: return "Some or all of the participant(s) have not finalized their acceptance of the appointment request.";
|
||||
case BOOKED: return "All participant(s) have been considered and the appointment is confirmed to go ahead at the date/times specified.";
|
||||
case ARRIVED: return "Some of the patients have arrived.";
|
||||
case FULFILLED: return "This appointment has completed and may have resulted in an encounter.";
|
||||
case CANCELLED: return "The appointment has been cancelled.";
|
||||
case NOSHOW: return "Some or all of the participant(s) have not/did not appear for the appointment (usually the patient).";
|
||||
case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case PROPOSED: return "Proposed";
|
||||
case PENDING: return "Pending";
|
||||
case BOOKED: return "Booked";
|
||||
case ARRIVED: return "Arrived";
|
||||
case FULFILLED: return "Fulfilled";
|
||||
case CANCELLED: return "Cancelled";
|
||||
case NOSHOW: return "No Show";
|
||||
case ENTEREDINERROR: return "Entered in error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AppointmentstatusEnumFactory implements EnumFactory<Appointmentstatus> {
|
||||
|
||||
public Appointmentstatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("proposed".equals(codeString))
|
||||
return Appointmentstatus.PROPOSED;
|
||||
if ("pending".equals(codeString))
|
||||
return Appointmentstatus.PENDING;
|
||||
if ("booked".equals(codeString))
|
||||
return Appointmentstatus.BOOKED;
|
||||
if ("arrived".equals(codeString))
|
||||
return Appointmentstatus.ARRIVED;
|
||||
if ("fulfilled".equals(codeString))
|
||||
return Appointmentstatus.FULFILLED;
|
||||
if ("cancelled".equals(codeString))
|
||||
return Appointmentstatus.CANCELLED;
|
||||
if ("noshow".equals(codeString))
|
||||
return Appointmentstatus.NOSHOW;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return Appointmentstatus.ENTEREDINERROR;
|
||||
throw new IllegalArgumentException("Unknown Appointmentstatus code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(Appointmentstatus code) {
|
||||
if (code == Appointmentstatus.PROPOSED)
|
||||
return "proposed";
|
||||
if (code == Appointmentstatus.PENDING)
|
||||
return "pending";
|
||||
if (code == Appointmentstatus.BOOKED)
|
||||
return "booked";
|
||||
if (code == Appointmentstatus.ARRIVED)
|
||||
return "arrived";
|
||||
if (code == Appointmentstatus.FULFILLED)
|
||||
return "fulfilled";
|
||||
if (code == Appointmentstatus.CANCELLED)
|
||||
return "cancelled";
|
||||
if (code == Appointmentstatus.NOSHOW)
|
||||
return "noshow";
|
||||
if (code == Appointmentstatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(Appointmentstatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AssertDirectionCodes {
|
||||
|
||||
/**
|
||||
* The assertion is evaluated on the response. This is the default value.
|
||||
*/
|
||||
RESPONSE,
|
||||
/**
|
||||
* The assertion is evaluated on the request.
|
||||
*/
|
||||
REQUEST,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AssertDirectionCodes fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("response".equals(codeString))
|
||||
return RESPONSE;
|
||||
if ("request".equals(codeString))
|
||||
return REQUEST;
|
||||
throw new FHIRException("Unknown AssertDirectionCodes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case RESPONSE: return "response";
|
||||
case REQUEST: return "request";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/assert-direction-codes";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case RESPONSE: return "The assertion is evaluated on the response. This is the default value.";
|
||||
case REQUEST: return "The assertion is evaluated on the request.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case RESPONSE: return "response";
|
||||
case REQUEST: return "request";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AssertDirectionCodesEnumFactory implements EnumFactory<AssertDirectionCodes> {
|
||||
|
||||
public AssertDirectionCodes fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("response".equals(codeString))
|
||||
return AssertDirectionCodes.RESPONSE;
|
||||
if ("request".equals(codeString))
|
||||
return AssertDirectionCodes.REQUEST;
|
||||
throw new IllegalArgumentException("Unknown AssertDirectionCodes code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AssertDirectionCodes code) {
|
||||
if (code == AssertDirectionCodes.RESPONSE)
|
||||
return "response";
|
||||
if (code == AssertDirectionCodes.REQUEST)
|
||||
return "request";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AssertDirectionCodes code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,168 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AssertOperatorCodes {
|
||||
|
||||
/**
|
||||
* Default value. Equals comparison.
|
||||
*/
|
||||
EQUALS,
|
||||
/**
|
||||
* Not equals comparison.
|
||||
*/
|
||||
NOTEQUALS,
|
||||
/**
|
||||
* Compare value within a known set of values.
|
||||
*/
|
||||
IN,
|
||||
/**
|
||||
* Compare value not within a known set of values.
|
||||
*/
|
||||
NOTIN,
|
||||
/**
|
||||
* Compare value to be greater than a known value.
|
||||
*/
|
||||
GREATERTHAN,
|
||||
/**
|
||||
* Compare value to be less than a known value.
|
||||
*/
|
||||
LESSTHAN,
|
||||
/**
|
||||
* Compare value is empty.
|
||||
*/
|
||||
EMPTY,
|
||||
/**
|
||||
* Compare value is not empty.
|
||||
*/
|
||||
NOTEMPTY,
|
||||
/**
|
||||
* Compare value string contains a known value.
|
||||
*/
|
||||
CONTAINS,
|
||||
/**
|
||||
* Compare value string does not contain a known value.
|
||||
*/
|
||||
NOTCONTAINS,
|
||||
/**
|
||||
* Evaluate the fluentpath expression as a boolean condition.
|
||||
*/
|
||||
EVAL,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AssertOperatorCodes fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("equals".equals(codeString))
|
||||
return EQUALS;
|
||||
if ("notEquals".equals(codeString))
|
||||
return NOTEQUALS;
|
||||
if ("in".equals(codeString))
|
||||
return IN;
|
||||
if ("notIn".equals(codeString))
|
||||
return NOTIN;
|
||||
if ("greaterThan".equals(codeString))
|
||||
return GREATERTHAN;
|
||||
if ("lessThan".equals(codeString))
|
||||
return LESSTHAN;
|
||||
if ("empty".equals(codeString))
|
||||
return EMPTY;
|
||||
if ("notEmpty".equals(codeString))
|
||||
return NOTEMPTY;
|
||||
if ("contains".equals(codeString))
|
||||
return CONTAINS;
|
||||
if ("notContains".equals(codeString))
|
||||
return NOTCONTAINS;
|
||||
if ("eval".equals(codeString))
|
||||
return EVAL;
|
||||
throw new FHIRException("Unknown AssertOperatorCodes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case EQUALS: return "equals";
|
||||
case NOTEQUALS: return "notEquals";
|
||||
case IN: return "in";
|
||||
case NOTIN: return "notIn";
|
||||
case GREATERTHAN: return "greaterThan";
|
||||
case LESSTHAN: return "lessThan";
|
||||
case EMPTY: return "empty";
|
||||
case NOTEMPTY: return "notEmpty";
|
||||
case CONTAINS: return "contains";
|
||||
case NOTCONTAINS: return "notContains";
|
||||
case EVAL: return "eval";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/assert-operator-codes";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case EQUALS: return "Default value. Equals comparison.";
|
||||
case NOTEQUALS: return "Not equals comparison.";
|
||||
case IN: return "Compare value within a known set of values.";
|
||||
case NOTIN: return "Compare value not within a known set of values.";
|
||||
case GREATERTHAN: return "Compare value to be greater than a known value.";
|
||||
case LESSTHAN: return "Compare value to be less than a known value.";
|
||||
case EMPTY: return "Compare value is empty.";
|
||||
case NOTEMPTY: return "Compare value is not empty.";
|
||||
case CONTAINS: return "Compare value string contains a known value.";
|
||||
case NOTCONTAINS: return "Compare value string does not contain a known value.";
|
||||
case EVAL: return "Evaluate the fluentpath expression as a boolean condition.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case EQUALS: return "equals";
|
||||
case NOTEQUALS: return "notEquals";
|
||||
case IN: return "in";
|
||||
case NOTIN: return "notIn";
|
||||
case GREATERTHAN: return "greaterThan";
|
||||
case LESSTHAN: return "lessThan";
|
||||
case EMPTY: return "empty";
|
||||
case NOTEMPTY: return "notEmpty";
|
||||
case CONTAINS: return "contains";
|
||||
case NOTCONTAINS: return "notContains";
|
||||
case EVAL: return "evaluate";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AssertOperatorCodesEnumFactory implements EnumFactory<AssertOperatorCodes> {
|
||||
|
||||
public AssertOperatorCodes fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("equals".equals(codeString))
|
||||
return AssertOperatorCodes.EQUALS;
|
||||
if ("notEquals".equals(codeString))
|
||||
return AssertOperatorCodes.NOTEQUALS;
|
||||
if ("in".equals(codeString))
|
||||
return AssertOperatorCodes.IN;
|
||||
if ("notIn".equals(codeString))
|
||||
return AssertOperatorCodes.NOTIN;
|
||||
if ("greaterThan".equals(codeString))
|
||||
return AssertOperatorCodes.GREATERTHAN;
|
||||
if ("lessThan".equals(codeString))
|
||||
return AssertOperatorCodes.LESSTHAN;
|
||||
if ("empty".equals(codeString))
|
||||
return AssertOperatorCodes.EMPTY;
|
||||
if ("notEmpty".equals(codeString))
|
||||
return AssertOperatorCodes.NOTEMPTY;
|
||||
if ("contains".equals(codeString))
|
||||
return AssertOperatorCodes.CONTAINS;
|
||||
if ("notContains".equals(codeString))
|
||||
return AssertOperatorCodes.NOTCONTAINS;
|
||||
if ("eval".equals(codeString))
|
||||
return AssertOperatorCodes.EVAL;
|
||||
throw new IllegalArgumentException("Unknown AssertOperatorCodes code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AssertOperatorCodes code) {
|
||||
if (code == AssertOperatorCodes.EQUALS)
|
||||
return "equals";
|
||||
if (code == AssertOperatorCodes.NOTEQUALS)
|
||||
return "notEquals";
|
||||
if (code == AssertOperatorCodes.IN)
|
||||
return "in";
|
||||
if (code == AssertOperatorCodes.NOTIN)
|
||||
return "notIn";
|
||||
if (code == AssertOperatorCodes.GREATERTHAN)
|
||||
return "greaterThan";
|
||||
if (code == AssertOperatorCodes.LESSTHAN)
|
||||
return "lessThan";
|
||||
if (code == AssertOperatorCodes.EMPTY)
|
||||
return "empty";
|
||||
if (code == AssertOperatorCodes.NOTEMPTY)
|
||||
return "notEmpty";
|
||||
if (code == AssertOperatorCodes.CONTAINS)
|
||||
return "contains";
|
||||
if (code == AssertOperatorCodes.NOTCONTAINS)
|
||||
return "notContains";
|
||||
if (code == AssertOperatorCodes.EVAL)
|
||||
return "eval";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AssertOperatorCodes code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,177 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AssertResponseCodeTypes {
|
||||
|
||||
/**
|
||||
* Response code is 200.
|
||||
*/
|
||||
OKAY,
|
||||
/**
|
||||
* Response code is 201.
|
||||
*/
|
||||
CREATED,
|
||||
/**
|
||||
* Response code is 204.
|
||||
*/
|
||||
NOCONTENT,
|
||||
/**
|
||||
* Response code is 304.
|
||||
*/
|
||||
NOTMODIFIED,
|
||||
/**
|
||||
* Response code is 400.
|
||||
*/
|
||||
BAD,
|
||||
/**
|
||||
* Response code is 403.
|
||||
*/
|
||||
FORBIDDEN,
|
||||
/**
|
||||
* Response code is 404.
|
||||
*/
|
||||
NOTFOUND,
|
||||
/**
|
||||
* Response code is 405.
|
||||
*/
|
||||
METHODNOTALLOWED,
|
||||
/**
|
||||
* Response code is 409.
|
||||
*/
|
||||
CONFLICT,
|
||||
/**
|
||||
* Response code is 410.
|
||||
*/
|
||||
GONE,
|
||||
/**
|
||||
* Response code is 412.
|
||||
*/
|
||||
PRECONDITIONFAILED,
|
||||
/**
|
||||
* Response code is 422.
|
||||
*/
|
||||
UNPROCESSABLE,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AssertResponseCodeTypes fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("okay".equals(codeString))
|
||||
return OKAY;
|
||||
if ("created".equals(codeString))
|
||||
return CREATED;
|
||||
if ("noContent".equals(codeString))
|
||||
return NOCONTENT;
|
||||
if ("notModified".equals(codeString))
|
||||
return NOTMODIFIED;
|
||||
if ("bad".equals(codeString))
|
||||
return BAD;
|
||||
if ("forbidden".equals(codeString))
|
||||
return FORBIDDEN;
|
||||
if ("notFound".equals(codeString))
|
||||
return NOTFOUND;
|
||||
if ("methodNotAllowed".equals(codeString))
|
||||
return METHODNOTALLOWED;
|
||||
if ("conflict".equals(codeString))
|
||||
return CONFLICT;
|
||||
if ("gone".equals(codeString))
|
||||
return GONE;
|
||||
if ("preconditionFailed".equals(codeString))
|
||||
return PRECONDITIONFAILED;
|
||||
if ("unprocessable".equals(codeString))
|
||||
return UNPROCESSABLE;
|
||||
throw new FHIRException("Unknown AssertResponseCodeTypes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case OKAY: return "okay";
|
||||
case CREATED: return "created";
|
||||
case NOCONTENT: return "noContent";
|
||||
case NOTMODIFIED: return "notModified";
|
||||
case BAD: return "bad";
|
||||
case FORBIDDEN: return "forbidden";
|
||||
case NOTFOUND: return "notFound";
|
||||
case METHODNOTALLOWED: return "methodNotAllowed";
|
||||
case CONFLICT: return "conflict";
|
||||
case GONE: return "gone";
|
||||
case PRECONDITIONFAILED: return "preconditionFailed";
|
||||
case UNPROCESSABLE: return "unprocessable";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/assert-response-code-types";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case OKAY: return "Response code is 200.";
|
||||
case CREATED: return "Response code is 201.";
|
||||
case NOCONTENT: return "Response code is 204.";
|
||||
case NOTMODIFIED: return "Response code is 304.";
|
||||
case BAD: return "Response code is 400.";
|
||||
case FORBIDDEN: return "Response code is 403.";
|
||||
case NOTFOUND: return "Response code is 404.";
|
||||
case METHODNOTALLOWED: return "Response code is 405.";
|
||||
case CONFLICT: return "Response code is 409.";
|
||||
case GONE: return "Response code is 410.";
|
||||
case PRECONDITIONFAILED: return "Response code is 412.";
|
||||
case UNPROCESSABLE: return "Response code is 422.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case OKAY: return "okay";
|
||||
case CREATED: return "created";
|
||||
case NOCONTENT: return "noContent";
|
||||
case NOTMODIFIED: return "notModified";
|
||||
case BAD: return "bad";
|
||||
case FORBIDDEN: return "forbidden";
|
||||
case NOTFOUND: return "notFound";
|
||||
case METHODNOTALLOWED: return "methodNotAllowed";
|
||||
case CONFLICT: return "conflict";
|
||||
case GONE: return "gone";
|
||||
case PRECONDITIONFAILED: return "preconditionFailed";
|
||||
case UNPROCESSABLE: return "unprocessable";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,102 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AssertResponseCodeTypesEnumFactory implements EnumFactory<AssertResponseCodeTypes> {
|
||||
|
||||
public AssertResponseCodeTypes fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("okay".equals(codeString))
|
||||
return AssertResponseCodeTypes.OKAY;
|
||||
if ("created".equals(codeString))
|
||||
return AssertResponseCodeTypes.CREATED;
|
||||
if ("noContent".equals(codeString))
|
||||
return AssertResponseCodeTypes.NOCONTENT;
|
||||
if ("notModified".equals(codeString))
|
||||
return AssertResponseCodeTypes.NOTMODIFIED;
|
||||
if ("bad".equals(codeString))
|
||||
return AssertResponseCodeTypes.BAD;
|
||||
if ("forbidden".equals(codeString))
|
||||
return AssertResponseCodeTypes.FORBIDDEN;
|
||||
if ("notFound".equals(codeString))
|
||||
return AssertResponseCodeTypes.NOTFOUND;
|
||||
if ("methodNotAllowed".equals(codeString))
|
||||
return AssertResponseCodeTypes.METHODNOTALLOWED;
|
||||
if ("conflict".equals(codeString))
|
||||
return AssertResponseCodeTypes.CONFLICT;
|
||||
if ("gone".equals(codeString))
|
||||
return AssertResponseCodeTypes.GONE;
|
||||
if ("preconditionFailed".equals(codeString))
|
||||
return AssertResponseCodeTypes.PRECONDITIONFAILED;
|
||||
if ("unprocessable".equals(codeString))
|
||||
return AssertResponseCodeTypes.UNPROCESSABLE;
|
||||
throw new IllegalArgumentException("Unknown AssertResponseCodeTypes code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AssertResponseCodeTypes code) {
|
||||
if (code == AssertResponseCodeTypes.OKAY)
|
||||
return "okay";
|
||||
if (code == AssertResponseCodeTypes.CREATED)
|
||||
return "created";
|
||||
if (code == AssertResponseCodeTypes.NOCONTENT)
|
||||
return "noContent";
|
||||
if (code == AssertResponseCodeTypes.NOTMODIFIED)
|
||||
return "notModified";
|
||||
if (code == AssertResponseCodeTypes.BAD)
|
||||
return "bad";
|
||||
if (code == AssertResponseCodeTypes.FORBIDDEN)
|
||||
return "forbidden";
|
||||
if (code == AssertResponseCodeTypes.NOTFOUND)
|
||||
return "notFound";
|
||||
if (code == AssertResponseCodeTypes.METHODNOTALLOWED)
|
||||
return "methodNotAllowed";
|
||||
if (code == AssertResponseCodeTypes.CONFLICT)
|
||||
return "conflict";
|
||||
if (code == AssertResponseCodeTypes.GONE)
|
||||
return "gone";
|
||||
if (code == AssertResponseCodeTypes.PRECONDITIONFAILED)
|
||||
return "preconditionFailed";
|
||||
if (code == AssertResponseCodeTypes.UNPROCESSABLE)
|
||||
return "unprocessable";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AssertResponseCodeTypes code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AuditEntityType {
|
||||
|
||||
/**
|
||||
* Person
|
||||
*/
|
||||
_1,
|
||||
/**
|
||||
* System Object
|
||||
*/
|
||||
_2,
|
||||
/**
|
||||
* Organization
|
||||
*/
|
||||
_3,
|
||||
/**
|
||||
* Other
|
||||
*/
|
||||
_4,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AuditEntityType fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("1".equals(codeString))
|
||||
return _1;
|
||||
if ("2".equals(codeString))
|
||||
return _2;
|
||||
if ("3".equals(codeString))
|
||||
return _3;
|
||||
if ("4".equals(codeString))
|
||||
return _4;
|
||||
throw new FHIRException("Unknown AuditEntityType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case _1: return "1";
|
||||
case _2: return "2";
|
||||
case _3: return "3";
|
||||
case _4: return "4";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/audit-entity-type";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case _1: return "Person";
|
||||
case _2: return "System Object";
|
||||
case _3: return "Organization";
|
||||
case _4: return "Other";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case _1: return "Person";
|
||||
case _2: return "System Object";
|
||||
case _3: return "Organization";
|
||||
case _4: return "Other";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AuditEntityTypeEnumFactory implements EnumFactory<AuditEntityType> {
|
||||
|
||||
public AuditEntityType fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("1".equals(codeString))
|
||||
return AuditEntityType._1;
|
||||
if ("2".equals(codeString))
|
||||
return AuditEntityType._2;
|
||||
if ("3".equals(codeString))
|
||||
return AuditEntityType._3;
|
||||
if ("4".equals(codeString))
|
||||
return AuditEntityType._4;
|
||||
throw new IllegalArgumentException("Unknown AuditEntityType code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AuditEntityType code) {
|
||||
if (code == AuditEntityType._1)
|
||||
return "1";
|
||||
if (code == AuditEntityType._2)
|
||||
return "2";
|
||||
if (code == AuditEntityType._3)
|
||||
return "3";
|
||||
if (code == AuditEntityType._4)
|
||||
return "4";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AuditEntityType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AuditEventAction {
|
||||
|
||||
/**
|
||||
* Create a new database object, such as placing an order.
|
||||
*/
|
||||
C,
|
||||
/**
|
||||
* Display or print data, such as a doctor census.
|
||||
*/
|
||||
R,
|
||||
/**
|
||||
* Update data, such as revise patient information.
|
||||
*/
|
||||
U,
|
||||
/**
|
||||
* Delete items, such as a doctor master file record.
|
||||
*/
|
||||
D,
|
||||
/**
|
||||
* Perform a system or application function such as log-on, program execution or use of an object's method, or perform a query/search operation.
|
||||
*/
|
||||
E,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AuditEventAction fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("C".equals(codeString))
|
||||
return C;
|
||||
if ("R".equals(codeString))
|
||||
return R;
|
||||
if ("U".equals(codeString))
|
||||
return U;
|
||||
if ("D".equals(codeString))
|
||||
return D;
|
||||
if ("E".equals(codeString))
|
||||
return E;
|
||||
throw new FHIRException("Unknown AuditEventAction code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case C: return "C";
|
||||
case R: return "R";
|
||||
case U: return "U";
|
||||
case D: return "D";
|
||||
case E: return "E";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/audit-event-action";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case C: return "Create a new database object, such as placing an order.";
|
||||
case R: return "Display or print data, such as a doctor census.";
|
||||
case U: return "Update data, such as revise patient information.";
|
||||
case D: return "Delete items, such as a doctor master file record.";
|
||||
case E: return "Perform a system or application function such as log-on, program execution or use of an object's method, or perform a query/search operation.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case C: return "Create";
|
||||
case R: return "Read/View/Print";
|
||||
case U: return "Update";
|
||||
case D: return "Delete";
|
||||
case E: return "Execute";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AuditEventActionEnumFactory implements EnumFactory<AuditEventAction> {
|
||||
|
||||
public AuditEventAction fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("C".equals(codeString))
|
||||
return AuditEventAction.C;
|
||||
if ("R".equals(codeString))
|
||||
return AuditEventAction.R;
|
||||
if ("U".equals(codeString))
|
||||
return AuditEventAction.U;
|
||||
if ("D".equals(codeString))
|
||||
return AuditEventAction.D;
|
||||
if ("E".equals(codeString))
|
||||
return AuditEventAction.E;
|
||||
throw new IllegalArgumentException("Unknown AuditEventAction code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AuditEventAction code) {
|
||||
if (code == AuditEventAction.C)
|
||||
return "C";
|
||||
if (code == AuditEventAction.R)
|
||||
return "R";
|
||||
if (code == AuditEventAction.U)
|
||||
return "U";
|
||||
if (code == AuditEventAction.D)
|
||||
return "D";
|
||||
if (code == AuditEventAction.E)
|
||||
return "E";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AuditEventAction code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AuditEventOutcome {
|
||||
|
||||
/**
|
||||
* The operation completed successfully (whether with warnings or not).
|
||||
*/
|
||||
_0,
|
||||
/**
|
||||
* The action was not successful due to some kind of catered for error (often equivalent to an HTTP 400 response).
|
||||
*/
|
||||
_4,
|
||||
/**
|
||||
* The action was not successful due to some kind of unexpected error (often equivalent to an HTTP 500 response).
|
||||
*/
|
||||
_8,
|
||||
/**
|
||||
* An error of such magnitude occurred that the system is no longer available for use (i.e. the system died).
|
||||
*/
|
||||
_12,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AuditEventOutcome fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("0".equals(codeString))
|
||||
return _0;
|
||||
if ("4".equals(codeString))
|
||||
return _4;
|
||||
if ("8".equals(codeString))
|
||||
return _8;
|
||||
if ("12".equals(codeString))
|
||||
return _12;
|
||||
throw new FHIRException("Unknown AuditEventOutcome code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case _0: return "0";
|
||||
case _4: return "4";
|
||||
case _8: return "8";
|
||||
case _12: return "12";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/audit-event-outcome";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case _0: return "The operation completed successfully (whether with warnings or not).";
|
||||
case _4: return "The action was not successful due to some kind of catered for error (often equivalent to an HTTP 400 response).";
|
||||
case _8: return "The action was not successful due to some kind of unexpected error (often equivalent to an HTTP 500 response).";
|
||||
case _12: return "An error of such magnitude occurred that the system is no longer available for use (i.e. the system died).";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case _0: return "Success";
|
||||
case _4: return "Minor failure";
|
||||
case _8: return "Serious failure";
|
||||
case _12: return "Major failure";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AuditEventOutcomeEnumFactory implements EnumFactory<AuditEventOutcome> {
|
||||
|
||||
public AuditEventOutcome fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("0".equals(codeString))
|
||||
return AuditEventOutcome._0;
|
||||
if ("4".equals(codeString))
|
||||
return AuditEventOutcome._4;
|
||||
if ("8".equals(codeString))
|
||||
return AuditEventOutcome._8;
|
||||
if ("12".equals(codeString))
|
||||
return AuditEventOutcome._12;
|
||||
throw new IllegalArgumentException("Unknown AuditEventOutcome code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AuditEventOutcome code) {
|
||||
if (code == AuditEventOutcome._0)
|
||||
return "0";
|
||||
if (code == AuditEventOutcome._4)
|
||||
return "4";
|
||||
if (code == AuditEventOutcome._8)
|
||||
return "8";
|
||||
if (code == AuditEventOutcome._12)
|
||||
return "12";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AuditEventOutcome code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AuditEventType {
|
||||
|
||||
/**
|
||||
* Audit Event: Execution of a RESTful operation as defined by FHIR.
|
||||
*/
|
||||
REST,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AuditEventType fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("rest".equals(codeString))
|
||||
return REST;
|
||||
throw new FHIRException("Unknown AuditEventType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case REST: return "rest";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/audit-event-type";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case REST: return "Audit Event: Execution of a RESTful operation as defined by FHIR.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case REST: return "RESTful Operation";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AuditEventTypeEnumFactory implements EnumFactory<AuditEventType> {
|
||||
|
||||
public AuditEventType fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("rest".equals(codeString))
|
||||
return AuditEventType.REST;
|
||||
throw new IllegalArgumentException("Unknown AuditEventType code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AuditEventType code) {
|
||||
if (code == AuditEventType.REST)
|
||||
return "rest";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AuditEventType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,150 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum AuditSourceType {
|
||||
|
||||
/**
|
||||
* End-user display device, diagnostic device.
|
||||
*/
|
||||
_1,
|
||||
/**
|
||||
* Data acquisition device or instrument.
|
||||
*/
|
||||
_2,
|
||||
/**
|
||||
* Web Server process or thread.
|
||||
*/
|
||||
_3,
|
||||
/**
|
||||
* Application Server process or thread.
|
||||
*/
|
||||
_4,
|
||||
/**
|
||||
* Database Server process or thread.
|
||||
*/
|
||||
_5,
|
||||
/**
|
||||
* Security server, e.g. a domain controller.
|
||||
*/
|
||||
_6,
|
||||
/**
|
||||
* ISO level 1-3 network component.
|
||||
*/
|
||||
_7,
|
||||
/**
|
||||
* ISO level 4-6 operating software.
|
||||
*/
|
||||
_8,
|
||||
/**
|
||||
* other kind of device (defined by DICOM, but some other code/system can be used).
|
||||
*/
|
||||
_9,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AuditSourceType fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("1".equals(codeString))
|
||||
return _1;
|
||||
if ("2".equals(codeString))
|
||||
return _2;
|
||||
if ("3".equals(codeString))
|
||||
return _3;
|
||||
if ("4".equals(codeString))
|
||||
return _4;
|
||||
if ("5".equals(codeString))
|
||||
return _5;
|
||||
if ("6".equals(codeString))
|
||||
return _6;
|
||||
if ("7".equals(codeString))
|
||||
return _7;
|
||||
if ("8".equals(codeString))
|
||||
return _8;
|
||||
if ("9".equals(codeString))
|
||||
return _9;
|
||||
throw new FHIRException("Unknown AuditSourceType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case _1: return "1";
|
||||
case _2: return "2";
|
||||
case _3: return "3";
|
||||
case _4: return "4";
|
||||
case _5: return "5";
|
||||
case _6: return "6";
|
||||
case _7: return "7";
|
||||
case _8: return "8";
|
||||
case _9: return "9";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/security-source-type";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case _1: return "End-user display device, diagnostic device.";
|
||||
case _2: return "Data acquisition device or instrument.";
|
||||
case _3: return "Web Server process or thread.";
|
||||
case _4: return "Application Server process or thread.";
|
||||
case _5: return "Database Server process or thread.";
|
||||
case _6: return "Security server, e.g. a domain controller.";
|
||||
case _7: return "ISO level 1-3 network component.";
|
||||
case _8: return "ISO level 4-6 operating software.";
|
||||
case _9: return "other kind of device (defined by DICOM, but some other code/system can be used).";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case _1: return "User Device";
|
||||
case _2: return "Data Interface";
|
||||
case _3: return "Web Server";
|
||||
case _4: return "Application Server";
|
||||
case _5: return "Database Server";
|
||||
case _6: return "Security Server";
|
||||
case _7: return "Network Device";
|
||||
case _8: return "Network Router";
|
||||
case _9: return "Other";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,90 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class AuditSourceTypeEnumFactory implements EnumFactory<AuditSourceType> {
|
||||
|
||||
public AuditSourceType fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("1".equals(codeString))
|
||||
return AuditSourceType._1;
|
||||
if ("2".equals(codeString))
|
||||
return AuditSourceType._2;
|
||||
if ("3".equals(codeString))
|
||||
return AuditSourceType._3;
|
||||
if ("4".equals(codeString))
|
||||
return AuditSourceType._4;
|
||||
if ("5".equals(codeString))
|
||||
return AuditSourceType._5;
|
||||
if ("6".equals(codeString))
|
||||
return AuditSourceType._6;
|
||||
if ("7".equals(codeString))
|
||||
return AuditSourceType._7;
|
||||
if ("8".equals(codeString))
|
||||
return AuditSourceType._8;
|
||||
if ("9".equals(codeString))
|
||||
return AuditSourceType._9;
|
||||
throw new IllegalArgumentException("Unknown AuditSourceType code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(AuditSourceType code) {
|
||||
if (code == AuditSourceType._1)
|
||||
return "1";
|
||||
if (code == AuditSourceType._2)
|
||||
return "2";
|
||||
if (code == AuditSourceType._3)
|
||||
return "3";
|
||||
if (code == AuditSourceType._4)
|
||||
return "4";
|
||||
if (code == AuditSourceType._5)
|
||||
return "5";
|
||||
if (code == AuditSourceType._6)
|
||||
return "6";
|
||||
if (code == AuditSourceType._7)
|
||||
return "7";
|
||||
if (code == AuditSourceType._8)
|
||||
return "8";
|
||||
if (code == AuditSourceType._9)
|
||||
return "9";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(AuditSourceType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,213 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum BasicResourceType {
|
||||
|
||||
/**
|
||||
* An assertion of permission for an activity or set of activities to occur, possibly subject to particular limitations; e.g. surgical consent, information disclosure consent, etc.
|
||||
*/
|
||||
CONSENT,
|
||||
/**
|
||||
* A request that care of a particular type be provided to a patient. Could involve the transfer of care, a consult, etc.
|
||||
*/
|
||||
REFERRAL,
|
||||
/**
|
||||
* An undesired reaction caused by exposure to some agent (e.g. a medication, immunization, food, or environmental agent).
|
||||
*/
|
||||
ADVEVENT,
|
||||
/**
|
||||
* A request that a time be scheduled for a type of service for a specified patient, potentially subject to other constraints
|
||||
*/
|
||||
APTMTREQ,
|
||||
/**
|
||||
* The transition of a patient or set of material from one location to another
|
||||
*/
|
||||
TRANSFER,
|
||||
/**
|
||||
* The specification of a set of food and/or other nutritional material to be delivered to a patient.
|
||||
*/
|
||||
DIET,
|
||||
/**
|
||||
* An occurrence of a non-care-related event in the healthcare domain, such as approvals, reviews, etc.
|
||||
*/
|
||||
ADMINACT,
|
||||
/**
|
||||
* Record of a situation where a subject was exposed to a substance. Usually of interest to public health.
|
||||
*/
|
||||
EXPOSURE,
|
||||
/**
|
||||
* A formalized inquiry into the circumstances surrounding a particular unplanned event or potential event for the purposes of identifying possible causes and contributing factors for the event
|
||||
*/
|
||||
INVESTIGATION,
|
||||
/**
|
||||
* A financial instrument used to track costs, charges or other amounts.
|
||||
*/
|
||||
ACCOUNT,
|
||||
/**
|
||||
* A request for payment for goods and/or services. Includes the idea of a healthcare insurance claim.
|
||||
*/
|
||||
INVOICE,
|
||||
/**
|
||||
* The determination of what will be paid against a particular invoice based on coverage, plan rules, etc.
|
||||
*/
|
||||
ADJUDICAT,
|
||||
/**
|
||||
* A request for a pre-determination of the cost that would be paid under an insurance plan for a hypothetical claim for goods or services
|
||||
*/
|
||||
PREDETREQ,
|
||||
/**
|
||||
* An adjudication of what would be paid under an insurance plan for a hypothetical claim for goods or services
|
||||
*/
|
||||
PREDETERMINE,
|
||||
/**
|
||||
* An investigation to determine information about a particular therapy or product
|
||||
*/
|
||||
STUDY,
|
||||
/**
|
||||
* A set of (possibly conditional) steps to be taken to achieve some aim. Includes study protocols, treatment protocols, emergency protocols, etc.
|
||||
*/
|
||||
PROTOCOL,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static BasicResourceType fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("consent".equals(codeString))
|
||||
return CONSENT;
|
||||
if ("referral".equals(codeString))
|
||||
return REFERRAL;
|
||||
if ("advevent".equals(codeString))
|
||||
return ADVEVENT;
|
||||
if ("aptmtreq".equals(codeString))
|
||||
return APTMTREQ;
|
||||
if ("transfer".equals(codeString))
|
||||
return TRANSFER;
|
||||
if ("diet".equals(codeString))
|
||||
return DIET;
|
||||
if ("adminact".equals(codeString))
|
||||
return ADMINACT;
|
||||
if ("exposure".equals(codeString))
|
||||
return EXPOSURE;
|
||||
if ("investigation".equals(codeString))
|
||||
return INVESTIGATION;
|
||||
if ("account".equals(codeString))
|
||||
return ACCOUNT;
|
||||
if ("invoice".equals(codeString))
|
||||
return INVOICE;
|
||||
if ("adjudicat".equals(codeString))
|
||||
return ADJUDICAT;
|
||||
if ("predetreq".equals(codeString))
|
||||
return PREDETREQ;
|
||||
if ("predetermine".equals(codeString))
|
||||
return PREDETERMINE;
|
||||
if ("study".equals(codeString))
|
||||
return STUDY;
|
||||
if ("protocol".equals(codeString))
|
||||
return PROTOCOL;
|
||||
throw new FHIRException("Unknown BasicResourceType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case CONSENT: return "consent";
|
||||
case REFERRAL: return "referral";
|
||||
case ADVEVENT: return "advevent";
|
||||
case APTMTREQ: return "aptmtreq";
|
||||
case TRANSFER: return "transfer";
|
||||
case DIET: return "diet";
|
||||
case ADMINACT: return "adminact";
|
||||
case EXPOSURE: return "exposure";
|
||||
case INVESTIGATION: return "investigation";
|
||||
case ACCOUNT: return "account";
|
||||
case INVOICE: return "invoice";
|
||||
case ADJUDICAT: return "adjudicat";
|
||||
case PREDETREQ: return "predetreq";
|
||||
case PREDETERMINE: return "predetermine";
|
||||
case STUDY: return "study";
|
||||
case PROTOCOL: return "protocol";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/basic-resource-type";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case CONSENT: return "An assertion of permission for an activity or set of activities to occur, possibly subject to particular limitations; e.g. surgical consent, information disclosure consent, etc.";
|
||||
case REFERRAL: return "A request that care of a particular type be provided to a patient. Could involve the transfer of care, a consult, etc.";
|
||||
case ADVEVENT: return "An undesired reaction caused by exposure to some agent (e.g. a medication, immunization, food, or environmental agent).";
|
||||
case APTMTREQ: return "A request that a time be scheduled for a type of service for a specified patient, potentially subject to other constraints";
|
||||
case TRANSFER: return "The transition of a patient or set of material from one location to another";
|
||||
case DIET: return "The specification of a set of food and/or other nutritional material to be delivered to a patient.";
|
||||
case ADMINACT: return "An occurrence of a non-care-related event in the healthcare domain, such as approvals, reviews, etc.";
|
||||
case EXPOSURE: return "Record of a situation where a subject was exposed to a substance. Usually of interest to public health.";
|
||||
case INVESTIGATION: return "A formalized inquiry into the circumstances surrounding a particular unplanned event or potential event for the purposes of identifying possible causes and contributing factors for the event";
|
||||
case ACCOUNT: return "A financial instrument used to track costs, charges or other amounts.";
|
||||
case INVOICE: return "A request for payment for goods and/or services. Includes the idea of a healthcare insurance claim.";
|
||||
case ADJUDICAT: return "The determination of what will be paid against a particular invoice based on coverage, plan rules, etc.";
|
||||
case PREDETREQ: return "A request for a pre-determination of the cost that would be paid under an insurance plan for a hypothetical claim for goods or services";
|
||||
case PREDETERMINE: return "An adjudication of what would be paid under an insurance plan for a hypothetical claim for goods or services";
|
||||
case STUDY: return "An investigation to determine information about a particular therapy or product";
|
||||
case PROTOCOL: return "A set of (possibly conditional) steps to be taken to achieve some aim. Includes study protocols, treatment protocols, emergency protocols, etc.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case CONSENT: return "Consent";
|
||||
case REFERRAL: return "Referral";
|
||||
case ADVEVENT: return "Adverse Event";
|
||||
case APTMTREQ: return "Appointment Request";
|
||||
case TRANSFER: return "Transfer";
|
||||
case DIET: return "Diet";
|
||||
case ADMINACT: return "Administrative Activity";
|
||||
case EXPOSURE: return "Exposure";
|
||||
case INVESTIGATION: return "Investigation";
|
||||
case ACCOUNT: return "Account";
|
||||
case INVOICE: return "Invoice";
|
||||
case ADJUDICAT: return "Invoice Adjudication";
|
||||
case PREDETREQ: return "Pre-determination Request";
|
||||
case PREDETERMINE: return "Predetermination";
|
||||
case STUDY: return "Study";
|
||||
case PROTOCOL: return "Protocol";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,118 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class BasicResourceTypeEnumFactory implements EnumFactory<BasicResourceType> {
|
||||
|
||||
public BasicResourceType fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("consent".equals(codeString))
|
||||
return BasicResourceType.CONSENT;
|
||||
if ("referral".equals(codeString))
|
||||
return BasicResourceType.REFERRAL;
|
||||
if ("advevent".equals(codeString))
|
||||
return BasicResourceType.ADVEVENT;
|
||||
if ("aptmtreq".equals(codeString))
|
||||
return BasicResourceType.APTMTREQ;
|
||||
if ("transfer".equals(codeString))
|
||||
return BasicResourceType.TRANSFER;
|
||||
if ("diet".equals(codeString))
|
||||
return BasicResourceType.DIET;
|
||||
if ("adminact".equals(codeString))
|
||||
return BasicResourceType.ADMINACT;
|
||||
if ("exposure".equals(codeString))
|
||||
return BasicResourceType.EXPOSURE;
|
||||
if ("investigation".equals(codeString))
|
||||
return BasicResourceType.INVESTIGATION;
|
||||
if ("account".equals(codeString))
|
||||
return BasicResourceType.ACCOUNT;
|
||||
if ("invoice".equals(codeString))
|
||||
return BasicResourceType.INVOICE;
|
||||
if ("adjudicat".equals(codeString))
|
||||
return BasicResourceType.ADJUDICAT;
|
||||
if ("predetreq".equals(codeString))
|
||||
return BasicResourceType.PREDETREQ;
|
||||
if ("predetermine".equals(codeString))
|
||||
return BasicResourceType.PREDETERMINE;
|
||||
if ("study".equals(codeString))
|
||||
return BasicResourceType.STUDY;
|
||||
if ("protocol".equals(codeString))
|
||||
return BasicResourceType.PROTOCOL;
|
||||
throw new IllegalArgumentException("Unknown BasicResourceType code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(BasicResourceType code) {
|
||||
if (code == BasicResourceType.CONSENT)
|
||||
return "consent";
|
||||
if (code == BasicResourceType.REFERRAL)
|
||||
return "referral";
|
||||
if (code == BasicResourceType.ADVEVENT)
|
||||
return "advevent";
|
||||
if (code == BasicResourceType.APTMTREQ)
|
||||
return "aptmtreq";
|
||||
if (code == BasicResourceType.TRANSFER)
|
||||
return "transfer";
|
||||
if (code == BasicResourceType.DIET)
|
||||
return "diet";
|
||||
if (code == BasicResourceType.ADMINACT)
|
||||
return "adminact";
|
||||
if (code == BasicResourceType.EXPOSURE)
|
||||
return "exposure";
|
||||
if (code == BasicResourceType.INVESTIGATION)
|
||||
return "investigation";
|
||||
if (code == BasicResourceType.ACCOUNT)
|
||||
return "account";
|
||||
if (code == BasicResourceType.INVOICE)
|
||||
return "invoice";
|
||||
if (code == BasicResourceType.ADJUDICAT)
|
||||
return "adjudicat";
|
||||
if (code == BasicResourceType.PREDETREQ)
|
||||
return "predetreq";
|
||||
if (code == BasicResourceType.PREDETERMINE)
|
||||
return "predetermine";
|
||||
if (code == BasicResourceType.STUDY)
|
||||
return "study";
|
||||
if (code == BasicResourceType.PROTOCOL)
|
||||
return "protocol";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(BasicResourceType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum BenefitCategory {
|
||||
|
||||
/**
|
||||
* Dental and Oral Health Coverage
|
||||
*/
|
||||
ORAL,
|
||||
/**
|
||||
* Vision Health Coverage
|
||||
*/
|
||||
VISION,
|
||||
/**
|
||||
* Medical Health Coverage
|
||||
*/
|
||||
MEDICAL,
|
||||
/**
|
||||
* Pharmacy Coverage
|
||||
*/
|
||||
PHARMACY,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static BenefitCategory fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("oral".equals(codeString))
|
||||
return ORAL;
|
||||
if ("vision".equals(codeString))
|
||||
return VISION;
|
||||
if ("medical".equals(codeString))
|
||||
return MEDICAL;
|
||||
if ("pharmacy".equals(codeString))
|
||||
return PHARMACY;
|
||||
throw new FHIRException("Unknown BenefitCategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case ORAL: return "oral";
|
||||
case VISION: return "vision";
|
||||
case MEDICAL: return "medical";
|
||||
case PHARMACY: return "pharmacy";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/benefit-category";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case ORAL: return "Dental and Oral Health Coverage";
|
||||
case VISION: return "Vision Health Coverage";
|
||||
case MEDICAL: return "Medical Health Coverage";
|
||||
case PHARMACY: return "Pharmacy Coverage";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case ORAL: return "Dental and Oral Health Coverage";
|
||||
case VISION: return "Vision Health Coverage";
|
||||
case MEDICAL: return "Medical Health Coverage";
|
||||
case PHARMACY: return "Pharmacy Coverage";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class BenefitCategoryEnumFactory implements EnumFactory<BenefitCategory> {
|
||||
|
||||
public BenefitCategory fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("oral".equals(codeString))
|
||||
return BenefitCategory.ORAL;
|
||||
if ("vision".equals(codeString))
|
||||
return BenefitCategory.VISION;
|
||||
if ("medical".equals(codeString))
|
||||
return BenefitCategory.MEDICAL;
|
||||
if ("pharmacy".equals(codeString))
|
||||
return BenefitCategory.PHARMACY;
|
||||
throw new IllegalArgumentException("Unknown BenefitCategory code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(BenefitCategory code) {
|
||||
if (code == BenefitCategory.ORAL)
|
||||
return "oral";
|
||||
if (code == BenefitCategory.VISION)
|
||||
return "vision";
|
||||
if (code == BenefitCategory.MEDICAL)
|
||||
return "medical";
|
||||
if (code == BenefitCategory.PHARMACY)
|
||||
return "pharmacy";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(BenefitCategory code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum BenefitNetwork {
|
||||
|
||||
/**
|
||||
* Services rendered by a Network provider
|
||||
*/
|
||||
IN,
|
||||
/**
|
||||
* Services rendered by a provider who is not in the Network
|
||||
*/
|
||||
OUT,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static BenefitNetwork fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("in".equals(codeString))
|
||||
return IN;
|
||||
if ("out".equals(codeString))
|
||||
return OUT;
|
||||
throw new FHIRException("Unknown BenefitNetwork code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case IN: return "in";
|
||||
case OUT: return "out";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/benefit-network";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case IN: return "Services rendered by a Network provider";
|
||||
case OUT: return "Services rendered by a provider who is not in the Network";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case IN: return "In Network";
|
||||
case OUT: return "Out of Network";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class BenefitNetworkEnumFactory implements EnumFactory<BenefitNetwork> {
|
||||
|
||||
public BenefitNetwork fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("in".equals(codeString))
|
||||
return BenefitNetwork.IN;
|
||||
if ("out".equals(codeString))
|
||||
return BenefitNetwork.OUT;
|
||||
throw new IllegalArgumentException("Unknown BenefitNetwork code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(BenefitNetwork code) {
|
||||
if (code == BenefitNetwork.IN)
|
||||
return "in";
|
||||
if (code == BenefitNetwork.OUT)
|
||||
return "out";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(BenefitNetwork code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,321 @@
|
|||
package org.hl7.fhir.dstu3.model.codesystems;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
public enum BenefitSubcategory {
|
||||
|
||||
/**
|
||||
* Medical Care.
|
||||
*/
|
||||
_1,
|
||||
/**
|
||||
* Surgical.
|
||||
*/
|
||||
_2,
|
||||
/**
|
||||
* Consultation.
|
||||
*/
|
||||
_3,
|
||||
/**
|
||||
* Diagnostic XRay.
|
||||
*/
|
||||
_4,
|
||||
/**
|
||||
* Diagnostic Lab.
|
||||
*/
|
||||
_5,
|
||||
/**
|
||||
* Renal Supplies excluding Dialysis.
|
||||
*/
|
||||
_14,
|
||||
/**
|
||||
* Diagnostic Dental.
|
||||
*/
|
||||
_23,
|
||||
/**
|
||||
* Periodontics.
|
||||
*/
|
||||
_24,
|
||||
/**
|
||||
* Restorative.
|
||||
*/
|
||||
_25,
|
||||
/**
|
||||
* Endodontics.
|
||||
*/
|
||||
_26,
|
||||
/**
|
||||
* Maxillofacilial Prosthetics.
|
||||
*/
|
||||
_27,
|
||||
/**
|
||||
* Adjunctive Dental Services.
|
||||
*/
|
||||
_28,
|
||||
/**
|
||||
* Health Benefit Plan Coverage.
|
||||
*/
|
||||
_30,
|
||||
/**
|
||||
* Dental Care.
|
||||
*/
|
||||
_35,
|
||||
/**
|
||||
* Dental Crowns.
|
||||
*/
|
||||
_36,
|
||||
/**
|
||||
* Dental Accident.
|
||||
*/
|
||||
_37,
|
||||
/**
|
||||
* Hospital Room and Board.
|
||||
*/
|
||||
_49,
|
||||
/**
|
||||
* Major Medical.
|
||||
*/
|
||||
_55,
|
||||
/**
|
||||
* Medically Related Transportation.
|
||||
*/
|
||||
_56,
|
||||
/**
|
||||
* In-vitro Fertilization.
|
||||
*/
|
||||
_61,
|
||||
/**
|
||||
* MRI Scan.
|
||||
*/
|
||||
_62,
|
||||
/**
|
||||
* Donor Procedures such as organ harvest.
|
||||
*/
|
||||
_63,
|
||||
/**
|
||||
* Maternity.
|
||||
*/
|
||||
_69,
|
||||
/**
|
||||
* Renal dialysis.
|
||||
*/
|
||||
_76,
|
||||
/**
|
||||
* Medical Coverage.
|
||||
*/
|
||||
F1,
|
||||
/**
|
||||
* Dental Coverage.
|
||||
*/
|
||||
F3,
|
||||
/**
|
||||
* Hearing Coverage.
|
||||
*/
|
||||
F4,
|
||||
/**
|
||||
* Vision Coverage.
|
||||
*/
|
||||
F6,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static BenefitSubcategory fromCode(String codeString) throws FHIRException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("1".equals(codeString))
|
||||
return _1;
|
||||
if ("2".equals(codeString))
|
||||
return _2;
|
||||
if ("3".equals(codeString))
|
||||
return _3;
|
||||
if ("4".equals(codeString))
|
||||
return _4;
|
||||
if ("5".equals(codeString))
|
||||
return _5;
|
||||
if ("14".equals(codeString))
|
||||
return _14;
|
||||
if ("23".equals(codeString))
|
||||
return _23;
|
||||
if ("24".equals(codeString))
|
||||
return _24;
|
||||
if ("25".equals(codeString))
|
||||
return _25;
|
||||
if ("26".equals(codeString))
|
||||
return _26;
|
||||
if ("27".equals(codeString))
|
||||
return _27;
|
||||
if ("28".equals(codeString))
|
||||
return _28;
|
||||
if ("30".equals(codeString))
|
||||
return _30;
|
||||
if ("35".equals(codeString))
|
||||
return _35;
|
||||
if ("36".equals(codeString))
|
||||
return _36;
|
||||
if ("37".equals(codeString))
|
||||
return _37;
|
||||
if ("49".equals(codeString))
|
||||
return _49;
|
||||
if ("55".equals(codeString))
|
||||
return _55;
|
||||
if ("56".equals(codeString))
|
||||
return _56;
|
||||
if ("61".equals(codeString))
|
||||
return _61;
|
||||
if ("62".equals(codeString))
|
||||
return _62;
|
||||
if ("63".equals(codeString))
|
||||
return _63;
|
||||
if ("69".equals(codeString))
|
||||
return _69;
|
||||
if ("76".equals(codeString))
|
||||
return _76;
|
||||
if ("F1".equals(codeString))
|
||||
return F1;
|
||||
if ("F3".equals(codeString))
|
||||
return F3;
|
||||
if ("F4".equals(codeString))
|
||||
return F4;
|
||||
if ("F6".equals(codeString))
|
||||
return F6;
|
||||
throw new FHIRException("Unknown BenefitSubcategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case _1: return "1";
|
||||
case _2: return "2";
|
||||
case _3: return "3";
|
||||
case _4: return "4";
|
||||
case _5: return "5";
|
||||
case _14: return "14";
|
||||
case _23: return "23";
|
||||
case _24: return "24";
|
||||
case _25: return "25";
|
||||
case _26: return "26";
|
||||
case _27: return "27";
|
||||
case _28: return "28";
|
||||
case _30: return "30";
|
||||
case _35: return "35";
|
||||
case _36: return "36";
|
||||
case _37: return "37";
|
||||
case _49: return "49";
|
||||
case _55: return "55";
|
||||
case _56: return "56";
|
||||
case _61: return "61";
|
||||
case _62: return "62";
|
||||
case _63: return "63";
|
||||
case _69: return "69";
|
||||
case _76: return "76";
|
||||
case F1: return "F1";
|
||||
case F3: return "F3";
|
||||
case F4: return "F4";
|
||||
case F6: return "F6";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
return "http://hl7.org/fhir/benefit-subcategory";
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case _1: return "Medical Care.";
|
||||
case _2: return "Surgical.";
|
||||
case _3: return "Consultation.";
|
||||
case _4: return "Diagnostic XRay.";
|
||||
case _5: return "Diagnostic Lab.";
|
||||
case _14: return "Renal Supplies excluding Dialysis.";
|
||||
case _23: return "Diagnostic Dental.";
|
||||
case _24: return "Periodontics.";
|
||||
case _25: return "Restorative.";
|
||||
case _26: return "Endodontics.";
|
||||
case _27: return "Maxillofacilial Prosthetics.";
|
||||
case _28: return "Adjunctive Dental Services.";
|
||||
case _30: return "Health Benefit Plan Coverage.";
|
||||
case _35: return "Dental Care.";
|
||||
case _36: return "Dental Crowns.";
|
||||
case _37: return "Dental Accident.";
|
||||
case _49: return "Hospital Room and Board.";
|
||||
case _55: return "Major Medical.";
|
||||
case _56: return "Medically Related Transportation.";
|
||||
case _61: return "In-vitro Fertilization.";
|
||||
case _62: return "MRI Scan.";
|
||||
case _63: return "Donor Procedures such as organ harvest.";
|
||||
case _69: return "Maternity.";
|
||||
case _76: return "Renal dialysis.";
|
||||
case F1: return "Medical Coverage.";
|
||||
case F3: return "Dental Coverage.";
|
||||
case F4: return "Hearing Coverage.";
|
||||
case F6: return "Vision Coverage.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case _1: return "Medical Care";
|
||||
case _2: return "Surgical";
|
||||
case _3: return "Consultation";
|
||||
case _4: return "Diagnostic XRay";
|
||||
case _5: return "Diagnostic Lab";
|
||||
case _14: return "Renal Supplies";
|
||||
case _23: return "Diagnostic Dental";
|
||||
case _24: return "Periodontics";
|
||||
case _25: return "Restorative";
|
||||
case _26: return "Endodontics";
|
||||
case _27: return "Maxillofacilial Prosthetics";
|
||||
case _28: return "Adjunctive Dental Services";
|
||||
case _30: return "Health Benefit Plan Coverage";
|
||||
case _35: return "Dental Care";
|
||||
case _36: return "Dental Crowns";
|
||||
case _37: return "Dental Accident";
|
||||
case _49: return "Hospital Room and Board";
|
||||
case _55: return "Major Medical";
|
||||
case _56: return "Medically Related Transportation";
|
||||
case _61: return "In-vitro Fertilization";
|
||||
case _62: return "MRI Scan";
|
||||
case _63: return "Donor Procedures";
|
||||
case _69: return "Maternity";
|
||||
case _76: return "Renal Dialysis";
|
||||
case F1: return "Medical Coverage";
|
||||
case F3: return "Dental Coverage";
|
||||
case F4: return "Hearing Coverage";
|
||||
case F6: return "Vision Coverage";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue