update README to reflect bioavailability parsing

This commit is contained in:
Noah Saso 2021-06-17 12:57:37 -07:00
parent aaff2bd826
commit 2434b09fad

View File

@ -1,10 +1,11 @@
# merge-psychonautwiki-tripsit-data
Script to merge data from PsychonautWiki API + pages and TripSit factsheets into one standardized format
## Output Schema
| Property | Type | Description | Source |
|---------------------------|--------------------------|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|
| ------------------------- | ------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------- |
| `url` | `string` | Substance page URL | PsychonautWiki if exists, TripSit factsheet otherwise |
| `name` | `string` | Substance Name | shortest display name of PsychonautWiki page header and TripSit API's `pretty_name` |
| `aliases` | `string[]` | List of aliases (lowercase) | Both |
@ -20,10 +21,9 @@ Script to merge data from PsychonautWiki API + pages and TripSit factsheets into
| `tolerance.half` | `null` \| `string` | When tolerance is reduced by half | PsychonautWiki |
| `tolerance.zero` | `null` \| `string` | When tolerance is back to zero | PsychonautWiki |
| `crossTolerances` | `null` \| `string[]` | Other substances or classes with cross tolerance | PsychonautWiki |
| `bioavailability` | `null` \| `string` | Bioavailability of different ROAs (TODO: parse this string and merge into roas below) | TripSit |
| `roas` | `Dictionary[]` | Routes of administration | Both (Note: PsychonautWiki ROAs are prioritized, and TripSit factsheets fill in gaps) |
| `roas[].name` | `string` | Name of ROA (e.g. 'Oral', 'Smoked') | Both |
| `roas[].bioavailability` | `Optional<string>` | Substance's bioavailability for ROA | PsychonautWiki (TODO: parse TripSit factsheet string and merge with this) |
| `roas[].bioavailability` | `Optional<string>` | Substance's bioavailability for ROA | PsychonautWiki |
| `roas[].dosage` | `null` \| `Dictionary[]` | Dosage information for ROA | Both |
| `roas[].dosage[].name` | `string` | Name of dosage level for ROA (e.g. 'Threshold', 'Strong') | Both |
| `roas[].dosage[].value` | `string` | Typical dosage for given level of ROA (e.g. '10 - 25 mg', '100 mg +') | Both |