data/import.js
/**
 * Reads the entries of a bundle and adds their urn uuids to the URN_MAP. Later,
 * this map will be used to translate URN refs to relative URLs.
 * @param {object} resource FHIR Bundle
 */
Reads the entries of a bundle and adds their urn uuids to the URN_MAP. Later,
this map will be used to translate URN refs to relative URLs.
@param {object} resource FHIR Bundle
Reads the entries of a bundle and adds their urn uuids to the URN_MAP . Later this map will be used to translate URN refs to relative URLs . @param { object } resource FHIR Bundle
function updateUrnMap(resource)
{
    resource.entry.forEach(entry => {
        if (entry.fullUrl && entry.fullUrl.indexOf("urn:uuid:") === 0) {
            URN_MAP[entry.fullUrl] = `${entry.resource.resourceType}/${entry.resource.id}`;
        }
    });
}
function updateUrnMap ( resource ) { resource . entry . forEach ( entry => { if ( entry . fullUrl && entry . fullUrl . indexOf ( "urn:uuid:" ) === 0 ) { URN_MAP [ entry . fullUrl ] = ` ${ entry . resource . resourceType } ${ entry . resource . id } ` ; } } ) ; }
Reads the entries of a bundle and adds their urn uuids to the URN_MAP.
Reads the entries of a bundle and adds their urn uuids to the URN_MAP .