This article contains answer to some of the most frequently asked questions Bitfocus receives about our Data Import Tool (DIT). At the end of this article, you'll find links to sample files.
Q: What is the minimum amount of data in an HMIS CSV data set to import only client records and no other data?
A: The following files are required in order to import client records and no other data using the DIT:
- Client.csv: include the client record(s), as usual, in this file.
- Enrollment.csv, Exit.csv, and Project.csv: these files must exist, but can contain only the standard headers. They do not need to have actual data in them, other than the header rows.
- Export.csv: include the standard Export.csv record in this file.
Q: How can I generate a sample CSV or XML file?
A: You can run an export on your site.
Q: Are AssessmentResults imported through the DIT?
A: No, the DIT doesn’t look at AssessmentResults data at all. It relies on the AssessmentQuestions data and how the processor is set up in Clarity Human Services in order to score the assessments it imports.
Q: Will the DIT overwrite records that have "good" data with null data?
A: Yes. The DIT uses the record's DateUpdated fields to determine which data is newer. It does not know if the user intended to change a non-null value to a null value or not.
Q: How do service mappings occur?
A: Service mappings operate in a similar way as other data elements, where you have an external ID that needs to be mapped to a Clarity Human Services ID. However, there are extra details to keep in mind with how this information is stored. Because of the way services are structured in the XML/CSV, it takes some extra processing to determine what that specific external ID will be.
Usually Bitfocus generates that external ID for you, as a combination of ProjectID (from the enrollment), RecordType, TypeProvided, SubTypeProvided, and ReferralOutcome" This creates a string that can't be predicted, which works fine when using the DIT UI all the time. You can select mappings from the dropdown menus and move on. But if you're trying to send files programmatically and not through the DIT UI, there is no way of knowing how to create the mappings because you don't know what the generated strings will be.
To alleviate this, we allow you to add an extra tag in the
ServiceFAReferral element. It’s the
hmis:ServiceItemID tag, which allows you to put in your own ID for that service. Then you can create a mapping to what that external ID should correspond to in Clarity Human Services. See below:
In this case, the legacy ID of
123 was added to the
ServiceFAReferral element. The DIT will see that and it will not try to focus on the RecordType, TypeProvided, etc. It will just try to find a mapping that’s been saved for the same Source ID this file is associated with that points
123 to a Clarity Human Service Item ID. If you are using the API to import data, you would need to also upload a Mapping XML file that indicates the Clarity Human Service Item ID that
123 should be associated with (see the Clarity Human Services Mapping Document section of Importing Data Using the XML API Tool).
Q: How can I import custom fields?
A: Custom fields are imported via XML only. There is no mechanism to import custom fields in CSV format.
Q: Why aren't my mapping options coming up when I try to import a file?
A: A key part of mapping projects and services is the export.sourceID field. This is used to differentiate one source system from another. Please check that the field is not empty and it matches any previous imports from that system.
These sample files cover common import scenarios:
- Simple CSV data set: contains sample clients and enrollments at five different projects. Includes enough data to allow for Program and Services mapping.
- Client unique identifier: XML file demonstrating how to make an external client record match with an already existing Clarity Human Services client record, using the client's unique identifier.
- Custom fields: XML file that includes custom Client Profile fields, as well as custom fields for enrollment, exit, status update, and annual assessment.
- Single client: XML file that contains only one client record to illustrate what a minimal XML file might look like.