001/*-
002 * #%L
003 * HAPI FHIR Storage api
004 * %%
005 * Copyright (C) 2014 - 2024 Smile CDR, Inc.
006 * %%
007 * Licensed under the Apache License, Version 2.0 (the "License");
008 * you may not use this file except in compliance with the License.
009 * You may obtain a copy of the License at
010 *
011 *      http://www.apache.org/licenses/LICENSE-2.0
012 *
013 * Unless required by applicable law or agreed to in writing, software
014 * distributed under the License is distributed on an "AS IS" BASIS,
015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
016 * See the License for the specific language governing permissions and
017 * limitations under the License.
018 * #L%
019 */
020package ca.uhn.fhir.storage.interceptor.balp;
021
022import org.hl7.fhir.r4.model.AuditEvent;
023
024public class BalpConstants {
025        /**
026         * Constant for {@link AuditEvent.AuditEventAgentNetworkType} representing the code
027         * <code>1 - Machine name</code>. This constant is used only for convenience since the
028         * existing Enum uses numerical codes that are not great for readability.
029         */
030        public static final AuditEvent.AuditEventAgentNetworkType AUDIT_EVENT_AGENT_NETWORK_TYPE_MACHINE_NAME =
031                        AuditEvent.AuditEventAgentNetworkType._1;
032        /**
033         * Constant for {@link AuditEvent.AuditEventAgentNetworkType} representing the code
034         * <code>2 - IP Address</code>. This constant is used only for convenience since the
035         * existing Enum uses numerical codes that are not great for readability.
036         */
037        public static final AuditEvent.AuditEventAgentNetworkType AUDIT_EVENT_AGENT_NETWORK_TYPE_IP_ADDRESS =
038                        AuditEvent.AuditEventAgentNetworkType._2;
039        /**
040         * Constant for {@link AuditEvent.AuditEventAgentNetworkType} representing the code
041         * <code>3 - URI</code>. This constant is used only for convenience since the
042         * existing Enum uses numerical codes that are not great for readability.
043         */
044        public static final AuditEvent.AuditEventAgentNetworkType AUDIT_EVENT_AGENT_NETWORK_TYPE_URI =
045                        AuditEvent.AuditEventAgentNetworkType._5;
046
047        public static final String CS_AUDIT_EVENT_TYPE = "http://terminology.hl7.org/CodeSystem/audit-event-type";
048        public static final String CS_AUDIT_ENTITY_TYPE = "http://terminology.hl7.org/CodeSystem/audit-entity-type";
049        public static final String CS_AUDIT_ENTITY_TYPE_2_SYSTEM_OBJECT = "2";
050        public static final String CS_AUDIT_ENTITY_TYPE_2_SYSTEM_OBJECT_DISPLAY = "System Object";
051        public static final String CS_AUDIT_ENTITY_TYPE_1_PERSON = "1";
052        public static final String CS_AUDIT_ENTITY_TYPE_1_PERSON_DISPLAY = "Person";
053        public static final String CS_OBJECT_ROLE = "http://terminology.hl7.org/CodeSystem/object-role";
054        public static final String CS_OBJECT_ROLE_1_PATIENT = "1";
055        public static final String CS_OBJECT_ROLE_1_PATIENT_DISPLAY = "Patient";
056        public static final String CS_OBJECT_ROLE_4_DOMAIN_RESOURCE = "4";
057        public static final String CS_OBJECT_ROLE_4_DOMAIN_RESOURCE_DISPLAY = "Domain Resource";
058        public static final String CS_RESTFUL_INTERACTION = "http://hl7.org/fhir/restful-interaction";
059        public static final String CS_OBJECT_ROLE_24_QUERY = "24";
060        static final String CS_OBJECT_ROLE_24_QUERY_DISPLAY = "Query";
061}