Conflicting specifications in Archie's BuiltinReferenceModels class

I believe I figured it out.

RM releases 1.0.3, 1.0.4 and 1.1.0 work well together. They only clash with the original RM release 1.0.2.

I’ve implemented automated loading of the included schemas and can now use much simpler list of included specifications:

  static const _specifications = [
    // 'original/Release-1.0.2/openehr_ehr_102.bmm',
    //'RM/Release-1.0.3/openehr_rm_103.bmm',
    //'RM/Release-1.0.4/openehr_rm_104.bmm',
    'RM/Release-1.1.0/openehr_rm_110.bmm',
    'PROC/Release-1.5.0/openehr_proc_task_planning_150.bmm',  // Works with RM >=1.0.4
  ];

Results (scrollable):

Parsing: RM/Release-1.1.0/openehr_rm_110.bmm
  Includes:
    Parsing: RM/latest/openehr_rm_ehr_extract.bmm
      Includes:
        Parsing: RM/latest/openehr_rm_ehr.bmm
          Includes:
            Parsing: RM/latest/openehr_rm_structures.bmm
              Includes:
                Parsing: RM/latest/openehr_rm_data_types.bmm
                  Includes:
                    Parsing: BASE/Release-1.1.0/openehr_base_110.bmm
        Parsing: RM/latest/openehr_rm_demographic.bmm
          Includes:
            Already in repository: RM/latest/openehr_rm_structures.bmm
Parsing: PROC/Release-1.5.0/openehr_proc_task_planning_150.bmm
  Includes:
    Already in repository: RM/latest/openehr_rm_ehr.bmm
    Already in repository: RM/latest/openehr_rm_demographic.bmm
    Parsing: LANG/Release-1.0.0/openehr_lang_100.bmm
      Includes:
        Already in repository: BASE/Release-1.1.0/openehr_base_110.bmm
Loading: openehr_rm_demographic_1.1.0
Loading: openehr_rm_structures_1.1.0
Loading: openehr_rm_data_types_1.1.0
Loading: openehr_base_1.1.0
Loading: openehr_lang_1.0.0
Loading: openehr_rm_ehr_extract_1.1.0
Loading: openehr_rm_ehr_1.1.0
Loading: openehr_proc_task_planning_1.5.0
Loading: openehr_rm_1.1.0
Valid models:
  Validation result of openehr_rm_demographic_1.1.0: Passed
  Validation result of openehr_lang_1.0.0: Passed
  Validation result of openehr_rm_ehr_extract_1.1.0: Passed
  Validation result of openehr_base_1.1.0: Passed
  Validation result of openehr_rm_data_types_1.1.0: Passed
  Validation result of openehr_rm_ehr_1.1.0: Passed
  Validation result of openehr_proc_task_planning_1.5.0: Passed
  Validation result of openehr_rm_structures_1.1.0: Passed
  Validation result of openehr_rm_1.1.0: Passed
1 Like