001package ca.uhn.fhir.rest.api.server.bulk; 002 003/*- 004 * #%L 005 * HAPI FHIR - Server Framework 006 * %% 007 * Copyright (C) 2014 - 2022 Smile CDR, Inc. 008 * %% 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 * #L% 021 */ 022 023import org.hl7.fhir.instance.model.api.IIdType; 024 025import java.util.Date; 026import java.util.Set; 027 028public class BulkDataExportOptions { 029 public BulkDataExportOptions() { 030 031 } 032 033 public enum ExportStyle { 034 PATIENT, 035 GROUP, 036 SYSTEM 037 } 038 private String myOutputFormat; 039 private Set<String> myResourceTypes; 040 private Date mySince; 041 private Set<String> myFilters; 042 private ExportStyle myExportStyle; 043 private boolean myExpandMdm; 044 private IIdType myGroupId; 045 046 047 048 public void setOutputFormat(String theOutputFormat) { 049 myOutputFormat = theOutputFormat; 050 } 051 052 public void setResourceTypes(Set<String> theResourceTypes) { 053 myResourceTypes = theResourceTypes; 054 } 055 056 public void setSince(Date theSince) { 057 mySince = theSince; 058 } 059 060 public void setFilters(Set<String> theFilters) { 061 myFilters = theFilters; 062 } 063 064 public ExportStyle getExportStyle() { 065 return myExportStyle; 066 } 067 068 public void setExportStyle(ExportStyle theExportStyle) { 069 myExportStyle = theExportStyle; 070 } 071 072 public String getOutputFormat() { 073 return myOutputFormat; 074 } 075 076 public Set<String> getResourceTypes() { 077 return myResourceTypes; 078 } 079 080 public Date getSince() { 081 return mySince; 082 } 083 084 public Set<String> getFilters() { 085 return myFilters; 086 } 087 088 public boolean isExpandMdm() { 089 return myExpandMdm; 090 } 091 092 public void setExpandMdm(boolean theExpandMdm) { 093 myExpandMdm = theExpandMdm; 094 } 095 096 public IIdType getGroupId() { 097 return myGroupId; 098 } 099 100 public void setGroupId(IIdType theGroupId) { 101 myGroupId = theGroupId; 102 } 103}