OPTIONAL: 2021-07-21: Dictionary Manager Squad call (focus on peer support)

Looking at the SQL dumps from @ball, it looks like PIH concept IDs for Yes and No are 1 and 2. Unknown has concept ID 5 in the latest SQL, but appears to have concept ID 173 in one of the earlier SQL dumps, so perhaps Ellen could clarify.

@ball can you confirm PIH’s concept IDs for Yes, No, and Unknown? Are these 1, 2, and 5, respectively; or, do the concept IDs vary by implementation (e.g., Unknown is 5 in some sites and 173 in others)?

I would be happy if we abolished the idea of “internal” vs “external” mappings. Mappings are just a link to something. Whether or not the entity being mapped is available or not (e.g., within OCL) is something that can (and will) change over time.

Another reason to abolish the notion of “internal” vs “external” mappings. This makes the behavior of Dictionary Manage unpredictable.

Reviewing list of map types in OpenMRS and OCL…

Click to see all map types in OpenMRS
$ http -b -a admin:Admin123 \
  'https://demo.openmrs.org/openmrs/ws/rest/v1/conceptmaptype' | \
  jq -r .results[].display | sort
Associated finding
Associated morphology
Associated procedure
Associated with
BROADER-THAN
Causative agent
Finding site
Has specimen
Laterality
NARROWER-THAN
SAME-AS
Severity
Click to see all map types on OCL
$ http -b \
  'https://api.openconceptlab.org/orgs/OCL/sources/MapTypes/concepts/?limit=1000' | \
  jq -r .[].id | sort
Access
After
Associated-finding
Associated-morphology
Associated-procedure
Associated-with
BROADER-THAN
CONCEPT-SET
Causative-agent
Causative-agent
Clinical-course
Component
Direct-device
Direct-morphology
Direct-substance
Due-to
Episodicity
Finding-context
Finding-informer
Finding-method
Finding-method
Finding-site
Has-active-ingredient
Has-definitional-manifestation
Has-dose-form
Has-focus
Has-intent
Has-interpretation
Has-specimen
IS-A
Indirect-device
Indirect-morphology
Interprets
Interprets
Laterality
MAY-BE-A
MOVED-FROM
MOVED-TO
Measurement-method
Method
NARROWER-THAN
Occurrence
Part-of
Part-of
Pathological-process
Priority
Procedure-context
Procedure-device
Procedure-morphology
Procedure-site
Procedure-site
Procedure-site-Direct
Procedure-site-Indirect
Property
Q-AND-A
Q-AND-A
REPLACED-BY
Recipient-category
Revision-status
Route-of-administration
SAME-AS
Scale-type
Severity
Specimen-procedure
Specimen-source-identity
Specimen-source-morphology
Specimen-source-topography
Specimen-substance
Subject-of-information
Subject-relationship-context
Surgical-approach
Temporal-context
Time-aspect
Using-access-device
Using-device
Using-energy
Using-substance
WAS-A

I believe CONCEPT-SET (for set members) and Q-AND-A (for answers to questions) are the two concept relationships in OpenMRS for which OCL uses mappings. These are the only mappings types I would expect the Dictionary Manager to follow when cascading.