Imposes/Complies

Changes Made:

Added configuration options

VALIDATE_IMPOSED_PROFILES and DISPLAY_PROFILE_RELATIONSHIPS.

Updated /api/import-ig to include complies_with_profiles and imposed_profiles in the response.

Updated /api/push-ig to validate resources against imposed profiles using services.validate_resource_against_profile.

Updated /view-ig/<int:processed_ig_id> to load and pass profile relationships to the template.

Passed config to templates to allow conditional rendering based on DISPLAY_PROFILE_RELATIONSHIPS.

Added complies_with_profiles and imposed_profiles to the results dictionary in process_package_file.

Updated save_package_metadata to accept and store complies_with_profiles and imposed_profiles.

Added validate_resource_against_profile and parse_canonical_url functions to handle validation against imposed profiles.
This commit is contained in:
Joshua Hare 2025-04-11 13:47:09 +10:00
parent 86fa94538a
commit 9b7b8344de
3 changed files with 3 additions and 9 deletions

Binary file not shown.

View File

@ -27,5 +27,7 @@
"name": "hl7.fhir.uv.ipa",
"version": "1.0.0"
}
]
],
"complies_with_profiles": [],
"imposed_profiles": []
}

View File

@ -1,8 +0,0 @@
{
"package_name": "hl7.fhir.r4.core",
"version": "4.0.1",
"dependency_mode": "recursive",
"imported_dependencies": [],
"complies_with_profiles": [],
"imposed_profiles": []
}