Repository navigation
feat: import-amber command - #55
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an
import-ambercommand, and itsImportAmberCommandclass, to import the case reports or the interviews collected by Amber, with their files, using the Opal built-in Amber importer (obiba/opal#4224).Options
--amber/-am: the Amber API URL.--key/-ak: an Amber API key giving access to the study (feat: API keys for data extraction, audit view, export fixes for Opal import amber#47).--study/-st: the study name.--crf/-cror--design/-ds: a case report form, to import its case reports, or an interview design, to import its interviews. Exactly one is required.--campaign/-ca: interviews only, the campaign name.--state/-sta:completedby default,allfor no state filter.--from/-fr,--to/-to: last update dates (YYYY-MM-DD, whole days in UTC).--type/-ty: the entity type, defined by Amber by default.Available in both the
opalandopal-legacycommand lines.Checks
--crf/--design, a campaign without a design.Documentation: obiba/opal-doc (Python user guide,
import-amberpage).