+
+ {title(data.codeSystem)}
+
+ {#if data.codeSystem.description}
+ {data.codeSystem.description}
+ {/if}
+
+
+
+ {#if form?.incorrect}
+ {form.msg}
+ {/if}
+
+ {#if form?.result}
+
+ {/if}
+
diff --git a/modules/frontend/src/routes/CodeSystem/[id=id]/$lookup/+page.ts b/modules/frontend/src/routes/CodeSystem/[id=id]/$lookup/+page.ts
new file mode 100644
index 000000000..e87b8ee7b
--- /dev/null
+++ b/modules/frontend/src/routes/CodeSystem/[id=id]/$lookup/+page.ts
@@ -0,0 +1,34 @@
+import type { PageLoad } from './$types';
+import type { Bundle, CodeSystem } from 'fhir/r4';
+
+import { resolve } from '$app/paths';
+import { error, type NumericRange } from '@sveltejs/kit';
+
+export const load: PageLoad = async ({ fetch, params }) => {
+ const res = await fetch(
+ `${resolve('/CodeSystem')}?_id=${params.id}&_elements=version,title,description`,
+ {
+ headers: {
+ Accept: 'application/fhir+json'
+ }
+ }
+ );
+
+ if (!res.ok) {
+ error(res.status as NumericRange<400, 599>, {
+ short: res.status == 404 ? 'Not Found' : res.status == 410 ? 'Gone' : undefined,
+ message:
+ res.status == 404
+ ? `The CodeSystem with ID ${params.id} was not found.`
+ : res.status == 410
+ ? `The CodeSystem with ID ${params.id} was deleted. Please look into the history.`
+ : `An error happened while loading the CodeSystem with ID ${params.id}. Please try again later.`
+ });
+ }
+
+ const bundle: Bundle = await res.json();
+
+ return {
+ codeSystem: bundle.entry?.[0].resource as CodeSystem
+ };
+};
diff --git a/modules/frontend/src/routes/CodeSystem/[id=id]/$validate-code/+page.svelte b/modules/frontend/src/routes/CodeSystem/[id=id]/$validate-code/+page.svelte
index 3a00a2a79..f75d8d505 100644
--- a/modules/frontend/src/routes/CodeSystem/[id=id]/$validate-code/+page.svelte
+++ b/modules/frontend/src/routes/CodeSystem/[id=id]/$validate-code/+page.svelte
@@ -10,7 +10,7 @@
import Section from '$lib/tailwind/form/section.svelte';
import TextField from '$lib/tailwind/form/text-field.svelte';
import SubmitButton from '$lib/tailwind/form/button-submit.svelte';
- import ResultList from '../../result-list.svelte';
+ import ResultList from '../../$validate-code/result-list.svelte';
import { title } from '$lib/resource.js';
diff --git a/modules/frontend/src/routes/CodeSystem/operation-dropdown.svelte b/modules/frontend/src/routes/CodeSystem/operation-dropdown.svelte
index dde012936..b9a8ba356 100644
--- a/modules/frontend/src/routes/CodeSystem/operation-dropdown.svelte
+++ b/modules/frontend/src/routes/CodeSystem/operation-dropdown.svelte
@@ -6,5 +6,6 @@