fhir-docs 里的内容其实早就在 HealthIT 里了,不需要合并,我这次没有改任何文件。 #1

Merged
honeymoose merged 21 commits from feature/cn into main 2026-12-05 09:38:13 -05:00
39 changed files with 5164 additions and 1 deletions
+378
View File
File diff suppressed because it is too large Load Diff
+12
View File
@@ -0,0 +1,12 @@
# Default ignored files
/shelf/
/workspace.xml
# Markdown personal settings
/markdown.xml
# Editor-based HTTP Client requests
/httpRequests/
# Ignored default folder with query files
/queries/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CheckStyle-IDEA" serialisationVersion="2">
<checkstyleVersion>14.5.0</checkstyleVersion>
<scanScope>JavaOnly</scanScope>
<copyLibs>true</copyLibs>
<option name="thirdPartyClasspath" />
<option name="activeLocationIds" />
<option name="locations">
<list>
<ConfigurationLocation id="bundled-sun-checks" type="BUNDLED" scope="All" description="Sun Checks">bundled-sun-checks</ConfigurationLocation>
<ConfigurationLocation id="bundled-google-checks" type="BUNDLED" scope="All" description="Google Checks">bundled-google-checks</ConfigurationLocation>
</list>
</option>
</component>
</project>
Generated
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
View File
+268
View File
@@ -0,0 +1,268 @@
import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { defineConfig, type DefaultTheme } from 'vitepress';
const rootDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
const srcDir = path.join(rootDir, 'docs');
const EN_PREFIX = '/en';
const SITE_URL = 'https://health.isharkfly.com/';
const FORUM_URL = 'https://www.isharkfly.com';
const DOCS_PORTAL_URL = 'https://docs.isharkfly.com/';
const REPO_URL = 'https://src.sharkdat.com/iSharkFly-Docs/HealthIT';
// iSharkFly links shown as a dropdown at the end of the nav bar.
function isharkflyNav(zh: boolean): DefaultTheme.NavItem {
return {
text: 'iSharkFly',
items: [
{ text: zh ? 'iSharkFly' : 'iSharkFly', link: FORUM_URL },
{ text: zh ? '文档导航' : 'Docs Portal', link: DOCS_PORTAL_URL },
{ text: zh ? '本站源码' : 'Source Code', link: REPO_URL },
],
};
}
const zhThemeText: DefaultTheme.Config = {
outline: { level: [2, 3], label: '本页目录' },
docFooter: { prev: '上一页', next: '下一页' },
darkModeSwitchLabel: '外观',
lightModeSwitchTitle: '切换到浅色模式',
darkModeSwitchTitle: '切换到深色模式',
sidebarMenuLabel: '菜单',
returnToTopLabel: '回到顶部',
langMenuLabel: '切换语言',
skipToContentLabel: '跳到正文',
notFound: {
title: '页面未找到',
quote: '你要找的页面不存在,或者已经被移动。',
linkLabel: '返回首页',
linkText: '返回首页',
},
footer: {
message: '基于 MIT 许可证发布。',
copyright: `版权所有 © 2025-${new Date().getFullYear()} iSharkFly.com`,
},
};
const zhSearchText = {
button: { buttonText: '搜索', buttonAriaLabel: '搜索' },
modal: {
displayDetails: '显示详细列表',
resetButtonTitle: '清除查询',
backButtonTitle: '关闭搜索',
noResultsText: '没有找到结果',
footer: {
selectText: '选择',
selectKeyAriaLabel: '回车',
navigateText: '切换',
navigateUpKeyAriaLabel: '向上',
navigateDownKeyAriaLabel: '向下',
closeText: '关闭',
closeKeyAriaLabel: 'Esc',
},
},
};
// 中文侧边栏;英文侧边栏由 mapSidebar 从这里生成。
const sidebar: DefaultTheme.SidebarItem[] = [
{
text: 'FHIR',
collapsed: true,
link: '/fhir/',
items: [
{ text: '简介', link: '/fhir/introduction/' },
{ text: '开发者眼中的 FHIR', link: '/fhir/introduction/toreader' },
{ text: 'FHIR 实现', link: '/fhir/introduction/fhir-overview' },
{ text: 'FHIR 开发者指南', link: '/fhir/introduction/fhir-dev-guide' },
{ text: '开放数据专题', link: '/fhir/introduction/open-data-is-coming' },
],
},
{ text: 'Mumps', link: '/mumps/' },
{ text: '术语和参考', link: '/REFERENCE' },
];
const enThemeText: DefaultTheme.Config = {
outline: { level: [2, 3], label: 'On this page' },
footer: {
message: 'Released under the MIT License.',
copyright: `Copyright © 2025-${new Date().getFullYear()} iSharkFly.com`,
},
};
// 侧边栏只维护中文一份,英文侧边栏的文字由下表翻译,没有列出的保持原文。
const enSidebarText: Record<string, string> = {
'简介': 'Introduction',
'开发者眼中的 FHIR': 'FHIR for Developers',
'FHIR 实现': 'FHIR Implementation',
'FHIR 开发者指南': 'FHIR Developer Guide',
'开放数据专题': 'Open Data',
'术语和参考': 'Glossary & References',
};
// 列出某个目录下的 .md 页面(相对路径);根目录下跳过 en、public。
function listPages(dir: string, rel = ''): string[] {
if (!fs.existsSync(dir))
return [];
return fs.readdirSync(dir, { withFileTypes: true }).flatMap(entry => {
const entryRel = rel + entry.name;
if (entry.isDirectory()) {
if (!rel && ['en', 'public'].includes(entry.name))
return [];
return listPages(path.join(dir, entry.name), `${entryRel}/`);
}
return entry.name.endsWith('.md') ? [entryRel] : [];
});
}
const pagesByLanguage = {
zh: listPages(srcDir),
en: listPages(path.join(srcDir, 'en')),
};
const enPages = new Set(pagesByLanguage.en);
// 站内链接对应的 .md 页面,例如 /work/ -> work/index.md,/ai/9537-mac -> ai/9537-mac.md。
function linkToPages(link: string): string[] {
const p = link.replace(/^\//, '').replace(/[#?].*$/, '');
if (p === '' || p.endsWith('/'))
return [`${p}index.md`];
if (p.endsWith('.md'))
return [p];
return [`${p}.md`, `${p}/index.md`];
}
// 英文版有这一页就指向 /en/...,否则仍指向中文页面,避免 404。
function enLink(link: string) {
if (!link.startsWith('/'))
return link;
return linkToPages(link).some(page => enPages.has(page)) ? EN_PREFIX + link : link;
}
function mapSidebar(
items: DefaultTheme.SidebarItem[],
mapLink: (link: string) => string,
mapText: (text: string) => string,
): DefaultTheme.SidebarItem[] {
return items.map(item => ({
...item,
...(item.text ? { text: mapText(item.text) } : {}),
...(item.link ? { link: mapLink(item.link) } : {}),
...(item.items ? { items: mapSidebar(item.items, mapLink, mapText) } : {}),
}));
}
// https://vitepress.dev/reference/site-config
export default defineConfig({
srcDir: 'docs',
lang: 'zh-CN',
title: 'iSharkFly Health 文档',
description: 'iSharkFly - Health',
locales: {
root: {
label: '简体中文',
lang: 'zh-CN',
title: 'iSharkFly Health 文档',
description: 'iSharkFly - Health',
themeConfig: {
...zhThemeText,
nav: [
{ text: '主页', link: '/' },
isharkflyNav(true),
],
sidebar,
},
},
en: {
label: 'English',
lang: 'en-US',
link: `${EN_PREFIX}/`,
title: 'iSharkFly Health Docs',
description: 'iSharkFly - Health',
themeConfig: {
...enThemeText,
nav: [
{ text: 'Home', link: `${EN_PREFIX}/` },
isharkflyNav(false),
],
sidebar: mapSidebar(sidebar, enLink, text => enSidebarText[text] ?? text),
},
},
},
cleanUrls: true,
lastUpdated: false,
ignoreDeadLinks: true,
sitemap: {
hostname: SITE_URL,
},
head: [
// Google Tag Manager
['script', {}, `(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start':
new Date().getTime(), event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-W3NL9V');`],
// End Google Tag Manager
// Matomo Tag Manager
['script', {}, `var _mtm = window._mtm = window._mtm || [];
_mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'});
(function() {
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src='https://analytics.sharkdat.com/js/container_yMtZdGlf.js'; s.parentNode.insertBefore(g,s);
})();`],
// End Matomo Tag Manager
// Google AdSense
['script', {
async: '',
src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4797644559430915',
crossorigin: 'anonymous',
}],
],
markdown: {
theme: { light: 'github-light', dark: 'github-dark' },
},
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
search: {
provider: 'local',
options: {
locales: {
root: { translations: zhSearchText },
},
},
},
socialLinks: [
{ icon: 'git', link: `${REPO_URL}.git` },
],
editLink: undefined,
languageSwitcher: {
enPrefix: EN_PREFIX,
pages: pagesByLanguage,
},
} as DefaultTheme.Config,
vite: {
build: { chunkSizeWarningLimit: 4096 },
resolve: {
// 用自定义的语言切换组件替换默认主题的翻译菜单(与 Angular-iSharkFly-Com 一致):
// 对应语言没有当前页面时跳到该语言首页,而不是 404。
alias: [
{
find: /^.*\/VPNavBarTranslations\.vue$/,
replacement: fileURLToPath(new URL('./theme/components/NavBarLanguageSwitcher.vue', import.meta.url)),
},
{
find: /^.*\/VPNavScreenTranslations\.vue$/,
replacement: fileURLToPath(new URL('./theme/components/NavScreenLanguageSwitcher.vue', import.meta.url)),
},
],
},
},
});
@@ -0,0 +1,23 @@
<!-- .vitepress/theme/components/AdSenseAside.vue -->
<template>
<div class="adsense-aside">
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-4797644559430915"
data-ad-slot="1781911644"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
</div>
</template>
<script setup>
import {onMounted} from 'vue'
onMounted(() => {
try {
(window.adsbygoogle = window.adsbygoogle || []).push({})
} catch (e) {
console.error('AdSense error:', e)
}
})
</script>
@@ -0,0 +1,72 @@
<script setup lang="ts">
import VPFlyout from 'vitepress/dist/client/theme-default/components/VPFlyout.vue';
import { VPLink } from 'vitepress/theme';
import { useLanguageSwitcher } from '../languageSwitcher';
const { readingLanguages, labels } = useLanguageSwitcher();
</script>
<template>
<VPFlyout class="NavBarLanguageSwitcher" icon="vpi-languages" :label="labels.menu">
<div class="items">
<p class="title">{{ labels.reading }}</p>
<VPLink
v-for="item in readingLanguages"
:key="item.text"
class="link"
:class="{ active: item.active }"
:href="item.link"
:lang="item.lang"
:hreflang="item.lang"
rel="alternate"
>{{ item.text }}</VPLink>
</div>
</VPFlyout>
</template>
<style scoped>
.NavBarLanguageSwitcher {
display: none;
}
/* 从 768px 起显示:默认主题“…”菜单里的翻译分组已在 style.css 中隐藏,由本组件代替。 */
@media (min-width: 768px) {
.NavBarLanguageSwitcher {
display: flex;
align-items: center;
}
}
.items {
min-width: 180px;
}
.title {
padding: 0 12px;
line-height: 32px;
font-size: 12px;
font-weight: 600;
color: var(--vp-c-text-2);
}
.link {
display: block;
border-radius: 6px;
padding: 0 12px;
line-height: 32px;
font-size: 14px;
font-weight: 500;
color: var(--vp-c-text-1);
white-space: nowrap;
transition: background-color 0.25s, color 0.25s;
}
.link:hover {
color: var(--vp-c-brand-1);
background-color: var(--vp-c-default-soft);
}
.link.active {
color: var(--vp-c-brand-1);
}
</style>
@@ -0,0 +1,85 @@
<script setup lang="ts">
import { ref } from 'vue';
import { VPLink } from 'vitepress/theme';
import { useLanguageSwitcher } from '../languageSwitcher';
const { readingLanguages, labels, currentLabel } = useLanguageSwitcher();
const isOpen = ref(false);
</script>
<template>
<div class="NavScreenLanguageSwitcher" :class="{ open: isOpen }">
<button class="toggle" :aria-expanded="isOpen" @click="isOpen = !isOpen">
<span class="vpi-languages icon lang" />
{{ currentLabel }}
<span class="vpi-chevron-down icon chevron" />
</button>
<div class="groups">
<p class="title">{{ labels.reading }}</p>
<ul class="list">
<li v-for="item in readingLanguages" :key="item.text">
<VPLink class="link" :class="{ active: item.active }" :href="item.link" :lang="item.lang">
{{ item.text }}
</VPLink>
</li>
</ul>
</div>
</div>
</template>
<style scoped>
.NavScreenLanguageSwitcher {
height: 24px;
overflow: hidden;
}
.NavScreenLanguageSwitcher.open {
height: auto;
}
.toggle {
display: flex;
align-items: center;
font-size: 14px;
font-weight: 500;
color: var(--vp-c-text-1);
}
.icon {
font-size: 16px;
}
.icon.lang {
margin-right: 8px;
}
.icon.chevron {
margin-left: 4px;
}
.groups {
padding: 4px 0 0 24px;
}
.title {
margin-top: 8px;
font-size: 12px;
font-weight: 600;
color: var(--vp-c-text-2);
}
.list {
padding-left: 8px;
}
.link {
line-height: 32px;
font-size: 13px;
color: var(--vp-c-text-1);
}
.link.active {
color: var(--vp-c-brand-1);
}
</style>
+19
View File
@@ -0,0 +1,19 @@
// https://vitepress.dev/guide/custom-theme
import {h} from 'vue'
import type {Theme} from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import './style.css'
import AdSenseAside from './components/AdSenseAside.vue'
export default {
extends: DefaultTheme,
Layout: () => {
return h(DefaultTheme.Layout, null, {
// https://vitepress.dev/guide/extending-default-theme#layout-slots
'aside-ads-before': () => h(AdSenseAside)
})
},
enhanceApp({app, router, siteData}) {
// ...
}
} satisfies Theme
+62
View File
@@ -0,0 +1,62 @@
import { computed } from 'vue';
import { useData } from 'vitepress';
type Reading = 'zh' | 'en';
type SwitcherConfig = {
enPrefix: string;
// 每种语言已有的页面(相对该语言根目录的 .md 路径),用来判断切换后对应页面是否存在。
pages: Record<Reading, string[]>;
};
export type SwitcherLink = { text: string; link: string; lang?: string; active: boolean };
const READING_LANGUAGES = [
{ key: 'zh', text: '简体中文', lang: 'zh-CN' },
{ key: 'en', text: 'English', lang: 'en-US' },
] as const;
function pageUrl(base: string, page: string) {
return base + page.replace(/(^|\/)index\.md$/, '$1').replace(/\.md$/, '');
}
export function useLanguageSwitcher() {
const { page, theme, hash } = useData();
const config = computed(() => theme.value.languageSwitcher as SwitcherConfig);
const current = computed(() => {
let rest = page.value.relativePath;
const enDir = config.value.enPrefix.replace(/^\//, '') + '/';
const reading: Reading = rest.startsWith(enDir) ? 'en' : 'zh';
if (reading === 'en')
rest = rest.slice(enDir.length);
return { reading, page: rest };
});
// 对应语言有同一页面就跳到该页面,否则跳到该语言的首页。
function linkFor(reading: Reading, keepHash: boolean) {
const base = reading === 'en' ? config.value.enPrefix + '/' : '/';
const pages = config.value.pages[reading] ?? [];
if (!pages.includes(current.value.page))
return base;
return pageUrl(base, current.value.page) + (keepHash ? hash.value : '');
}
const isZh = computed(() => current.value.reading === 'zh');
const readingLanguages = computed<SwitcherLink[]>(() => READING_LANGUAGES.map(reading => ({
text: reading.text,
lang: reading.lang,
link: linkFor(reading.key, true),
active: reading.key === current.value.reading,
})));
const labels = computed(() => isZh.value
? { menu: '切换语言', reading: '阅读语言' }
: { menu: 'Change language', reading: 'Language' });
const currentLabel = computed(() =>
READING_LANGUAGES.find(reading => reading.key === current.value.reading)!.text);
return { readingLanguages, labels, currentLabel, isZh };
}
+149
View File
@@ -0,0 +1,149 @@
/**
* Customize default theme styling by overriding CSS variables:
* https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css
*/
/**
* Colors
*
* Each colors have exact same color scale system with 3 levels of solid
* colors with different brightness, and 1 soft color.
*
* - `XXX-1`: The most solid color used mainly for colored text. It must
* satisfy the contrast ratio against when used on top of `XXX-soft`.
*
* - `XXX-2`: The color used mainly for hover state of the button.
*
* - `XXX-3`: The color for solid background, such as bg color of the button.
* It must satisfy the contrast ratio with pure white (#ffffff) text on
* top of it.
*
* - `XXX-soft`: The color used for subtle background such as custom container
* or badges. It must satisfy the contrast ratio when putting `XXX-1` colors
* on top of it.
*
* The soft color must be semi transparent alpha channel. This is crucial
* because it allows adding multiple "soft" colors on top of each other
* to create a accent, such as when having inline code block inside
* custom containers.
*
* - `default`: The color used purely for subtle indication without any
* special meanings attached to it such as bg color for menu hover state.
*
* - `brand`: Used for primary brand colors, such as link text, button with
* brand theme, etc.
*
* - `tip`: Used to indicate useful information. The default theme uses the
* brand color for this by default.
*
* - `warning`: Used to indicate warning to the users. Used in custom
* container, badges, etc.
*
* - `danger`: Used to show error, or dangerous message to the users. Used
* in custom container, badges, etc.
* -------------------------------------------------------------------------- */
:root {
--vp-c-default-1: var(--vp-c-gray-1);
--vp-c-default-2: var(--vp-c-gray-2);
--vp-c-default-3: var(--vp-c-gray-3);
--vp-c-default-soft: var(--vp-c-gray-soft);
--vp-c-brand-1: var(--vp-c-indigo-1);
--vp-c-brand-2: var(--vp-c-indigo-2);
--vp-c-brand-3: var(--vp-c-indigo-3);
--vp-c-brand-soft: var(--vp-c-indigo-soft);
--vp-c-tip-1: var(--vp-c-brand-1);
--vp-c-tip-2: var(--vp-c-brand-2);
--vp-c-tip-3: var(--vp-c-brand-3);
--vp-c-tip-soft: var(--vp-c-brand-soft);
--vp-c-warning-1: var(--vp-c-yellow-1);
--vp-c-warning-2: var(--vp-c-yellow-2);
--vp-c-warning-3: var(--vp-c-yellow-3);
--vp-c-warning-soft: var(--vp-c-yellow-soft);
--vp-c-danger-1: var(--vp-c-red-1);
--vp-c-danger-2: var(--vp-c-red-2);
--vp-c-danger-3: var(--vp-c-red-3);
--vp-c-danger-soft: var(--vp-c-red-soft);
}
/**
* Component: Button
* -------------------------------------------------------------------------- */
:root {
--vp-button-brand-border: transparent;
--vp-button-brand-text: var(--vp-c-white);
--vp-button-brand-bg: var(--vp-c-brand-3);
--vp-button-brand-hover-border: transparent;
--vp-button-brand-hover-text: var(--vp-c-white);
--vp-button-brand-hover-bg: var(--vp-c-brand-2);
--vp-button-brand-active-border: transparent;
--vp-button-brand-active-text: var(--vp-c-white);
--vp-button-brand-active-bg: var(--vp-c-brand-1);
}
/**
* Component: Home
* -------------------------------------------------------------------------- */
:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(
120deg,
#bd34fe 30%,
#41d1ff
);
--vp-home-hero-image-background-image: linear-gradient(
-45deg,
#bd34fe 50%,
#47caff 50%
);
--vp-home-hero-image-filter: blur(44px);
}
@media (min-width: 640px) {
:root {
--vp-home-hero-image-filter: blur(56px);
}
}
@media (min-width: 960px) {
:root {
--vp-home-hero-image-filter: blur(68px);
}
}
/**
* Component: Custom Block
* -------------------------------------------------------------------------- */
:root {
--vp-custom-block-tip-border: transparent;
--vp-custom-block-tip-text: var(--vp-c-text-1);
--vp-custom-block-tip-bg: var(--vp-c-brand-soft);
--vp-custom-block-tip-code-bg: var(--vp-c-brand-soft);
}
/**
* Component: Algolia
* -------------------------------------------------------------------------- */
.DocSearch {
--docsearch-primary-color: var(--vp-c-brand-1) !important;
}
/**
* Language switcher
* 默认主题“…”菜单里的翻译分组会直接链接到另一语言的同名页面(英文页面多数还没有,会 404),
* 这里把它隐藏,改由 NavBarLanguageSwitcher 显示。
* -------------------------------------------------------------------------- */
.VPNavBarExtra .group.translations {
display: none;
}
+1
View File
@@ -0,0 +1 @@
health.isharkfly.com
Vendored
+156
View File
@@ -0,0 +1,156 @@
pipeline {
agent any
options {
ansiColor('xterm')
disableConcurrentBuilds()
timeout(time: 30, unit: 'MINUTES')
}
tools {
nodejs 'NodeJS 22.14.0'
}
environment {
PRJ_NAME = 'healthit-isharkfly-com'
// 显式指定 wrangler 配置文件
WRANGLER_CONFIG = 'wrangler.jsonc'
// 发布到线上的分支
RELEASE_BRANCH = 'main'
// Worker Preview 的自定义预览域名
PREVIEW_DOMAIN = 'healthit.sharkdat.com'
// Cloudflare API Token(Jenkins Secret text 凭据,需要 Workers Scripts:Edit 权限)
CLOUDFLARE_API_TOKEN = credentials('sharkdat-cloudflare-api-token')
// Cloudflare Account ID(Secret text 凭据)。设置后 wrangler 不再调用 /memberships 查询账号,
// 避免 token 缺少 Account 读取权限时报 "You may have incorrect permissions on your API token"
CLOUDFLARE_ACCOUNT_ID = credentials('sharkdat-cloudflare-account-id')
// 不让 wrangler 发送使用统计、不弹交互提示
WRANGLER_SEND_METRICS = 'false'
CI = 'true'
}
stages {
stage('Configure') {
steps {
sh 'git config --global url."https://github.com/".insteadOf git://github.com/'
sh '''
set -eu
corepack enable
node --version
pnpm --version
'''
}
}
stage('Install') {
steps {
sh 'pnpm install --frozen-lockfile'
}
}
stage('Build') {
steps {
echo 'Build VitePress docs ...'
sh 'pnpm run docs:build'
}
}
stage('Deploy - CF') {
steps {
script {
withEnv([
'LANG=C.UTF-8',
'LC_ALL=C.UTF-8',
'NO_COLOR=1',
'TERM=dumb'
]) {
// 部署消息:显示在 Cloudflare 控制台 → Worker → Deployments
def shortSha = env.GIT_COMMIT ? env.GIT_COMMIT.take(7) : 'unknown'
def deployMsg = "Jenkins ${env.JOB_NAME} #${env.BUILD_NUMBER} (${shortSha})"
// Tag 构建:部署到 production 环境(wrangler.jsonc 中的 env.production)
if (env.TAG_NAME?.trim()) {
sh """
pnpm exec wrangler deploy --config ${env.WRANGLER_CONFIG} --env production \
--message '${deployMsg}' \
--tag '${env.TAG_NAME}'
"""
return
}
// main 分支:部署默认 Worker
if (env.BRANCH_NAME == env.RELEASE_BRANCH) {
sh """
pnpm exec wrangler deploy --config ${env.WRANGLER_CONFIG} --env="" \
--message '${deployMsg}' \
--tag '${shortSha}'
"""
return
}
// PR 或其他分支:创建/更新 Worker Preview,不影响线上流量
// 访问地址:https://<previewName>.health.sharkdat.com
// https://<previewName>-healthit-isharkfly-com.huyuchengus.workers.dev
def branchArg = env.CHANGE_ID
? "pr-${env.CHANGE_ID}"
: env.BRANCH_NAME
// 转成合法的 DNS 标签:小写、只含 a-z0-9-,并限制长度
// (<deployment-id>-<previewName> 也要放进一个 63 字符的子域名标签里)
def previewName = branchArg
.toLowerCase()
.replaceAll(/[^a-z0-9-]+/, '-')
.replaceAll(/^-+|-+$/, '')
previewName = previewName.take(40).replaceAll(/-+$/, '')
// 打印当前 token 所属账号,便于排查 "Worker does not yet exist"(通常是账号不对)
sh 'pnpm exec wrangler whoami'
// Preview 挂在已有 Worker 下;首次构建时先 deploy 一次创建 Worker
def workerExists = sh(
script: "pnpm exec wrangler deployments list --config ${env.WRANGLER_CONFIG} --env=\"\" > /dev/null 2>&1",
returnStatus: true
) == 0
if (!workerExists) {
echo "Worker ${env.PRJ_NAME} 尚不存在,先执行首次 deploy 创建 Worker ..."
sh """
pnpm exec wrangler deploy --config ${env.WRANGLER_CONFIG} --env="" \
--message 'Initial deploy: ${deployMsg}'
"""
}
// 用新版 Previews(需要 wrangler >= 4.135.0),才会出现在自定义预览域名 health.sharkdat.com 下。
// Jenkins 检出的是 detached HEAD,无法自动识别分支,所以必须显式传 --name。
sh """
pnpm exec wrangler preview --config ${env.WRANGLER_CONFIG} --env="" \
--name '${previewName}' \
--message '${deployMsg}' \
--tag '${shortSha}'
"""
echo "Preview URL: https://${previewName}.${env.PREVIEW_DOMAIN}"
}
}
}
}
}
post {
always {
script {
env.BUILD_STARTED_AT = new Date(currentBuild.startTimeInMillis)
.format('yyyy-MM-dd HH:mm:ss z', TimeZone.getTimeZone('America/New_York'))
env.BUILD_DURATION_TEXT = currentBuild.durationString
emailext (
mimeType: 'text/html; charset=UTF-8',
subject: "Build ${currentBuild.currentResult}: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'",
body: '${DEFAULT_CONTENT}',
from: '[email protected]',
to: '[email protected], [email protected]'
)
}
}
}
}
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 ossez.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+65 -1
View File
@@ -1,2 +1,66 @@
# HealthIT
# iSharkFly Health 文档
欢迎来到 iSharkFly Health 文档和手册。
项目源码:[https://src.sharkdat.com/iSharkFly-Docs/HealthIT](https://src.sharkdat.com/iSharkFly-Docs/HealthIT)
[联系我们](docs/CONTACT.md)
## 如何运行文档
本文档是通过 VitePress 进行编译和安装的。
### 安装 vitepress
本项目使用 pnpm 12.23.0(版本见 [package.json](package.json),与 Jenkinsfile 一致),请运行下面的命令安装依赖:
```bash
corepack enable
pnpm install
```
### 校验安装结果
运行命令 `pnpm exec vitepress -v` 来校验安装结果,界面上应该显示:
```text
PS D:\WorkDir\iSharkFly\iSharkFly-Docs\HealthIT> pnpm exec vitepress -v
vitepress v2.0.0-alpha.17
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h to show help
```
### 运行 文档
如果你希望在你的本地计算机上查看本文档,请运行 `pnpm run docs:dev` , 在你的控制台上将会有下面的内如输出:
```powershell
PS D:\WorkDir\iSharkFly\iSharkFly-Docs\HealthIT> pnpm run docs:dev
Re-optimizing dependencies because vite config has changed
vitepress v2.0.0-alpha.17
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h to show help
```
## 快速导航
请参考 [docs/LINKS.md](docs/LINKS.md)。
## 部署
部署由 [Jenkinsfile](Jenkinsfile) 完成:使用 corepack + pnpm 安装并构建,然后用 Wrangler 发布到 Cloudflare Workers Static Assets(配置见 [wrangler.jsonc](wrangler.jsonc))。
- `main` 分支:部署到线上 Worker;
- Tag:部署到 `production` 环境;
- 其他分支和 PR:生成 Preview,地址为 `https://<分支名>.health.sharkdat.com`。
## 许可证
本项目基于 [MIT License](LICENSE) 许可证开源。
+22
View File
@@ -0,0 +1,22 @@
# 联系方式
请使用下面的联系方式和我们联系:
| 联系方式名称 | 联系方式 |
|--------|---------------------------------------|
| 电子邮件 | [[email protected]](mailto:[email protected]) |
| QQ 微信同号 | 103899765 |
| 社区论坛 | https://www.isharkfly.com/ |
## 微信公众号
![](https://cdn.isharkfly.com/img/cwikius/cwikius-qr-wechat-search-w400.png )
## 头条号
![](https://cdn.isharkfly.com/img/cwikius/cwikus-qr-toutiao.png)
## 百家号
![](https://cdn.isharkfly.com/img/sharkfly/baidu/baidu-qr.jpg)
## 知乎
https://www.isharkfly.com/people/huyuchengus
+32
View File
@@ -0,0 +1,32 @@
# 快速导航
在下面的表格中,我们列出了一些比较有用相关软件开发使用教程的导航,在我们文档的整理中,也参考了一些这些文档。
在这里对原作者表示感谢。
| 网站名称 | URL | NOTE | GitHub |
|--------------------|----------------------------------------------------------------|---------------------------|--------------------------------------------------------------------------------------------------------------------------|
| DOCS.ISHARKFLY.COM | [https://docs.isharkfly.com/#/](https://docs.isharkfly.com/#/) | 本手册的编译版本将会部署在这个链接上 | [https://src.sharkdat.com/iSharkFly-Docs/docs-isharkfly-com](https://src.sharkdat.com/iSharkFly-Docs/docs-isharkfly-com) |
| WWW.CWIKIUS.CN | [http://www.cwikius.cn/](http://www.cwikius.cn/) | CWIKIUS.CN 一个有独立思考和温度的清新站 | N/A |
### 语言和框架
| 网站名称 | URL | NOTE |
|-----------------|----------------------------------------------------|-----------------------------|
| iSharkFly - 飞鲨 | https://www.isharkfly.com/c/software-development/5 | 计算机相关的前端框架和讨论 |
| TypeScript | https://typescript.ossez.com/ | TypeScript 相关技术文档和手册 |
| Mumps | https://mumps.sharkfly.com/ | Mumps 相关技术文档和手册 |
| Angular | https://angular.isharkfly.com/ | Angular 手册的在线翻译版本,从源代码中进行编译 |
| React| https://react.sharkfly.com/ | ReactJS 前端框架 |
| Composer | https://composer.isharkfly.com/ | Composer 简体中文版本 |
| Docsify | https://docsify.isharkfly.com/ | Docsify 可以快速帮你生成文档网站 |
### 后端和数据
| 网站名称 | URL | NOTE |
|------------------------|-----------------------------------|----------------------|
| Docker 手册中译在线版 | https://docker.isharkfly.com/ | 基于 Docker 容器英文手册的翻译版本 |
| Apache Druid | https://druid.isharkfly.com/ | Druid 手册的在线翻译版本 |
| OpenSearch | https://opensearch.isharkfly.com/ | OpenSearch 手册的在线翻译版本 |
| HAPI FHIR | https://fhir.isharkfly.com/#/ | FHIR 相关技术文档的收集和讨论 |
+7
View File
@@ -0,0 +1,7 @@
# 术语和参考 (Reference)
M 语言的参考很乱,到目前为止也没有找到非常多的有效文件。
在这个页面中,我们对网络上能收集到的文档和资料进行归档,以便于大家快速下载。
## M Programming Language
+49
View File
@@ -0,0 +1,49 @@
---
# https://vitepress.dev/reference/default-theme-home-page
layout: home
hero:
name: "iSharkFly Health Docs"
text: "Docs"
tagline: Welcome to iSharkFly Health documentation
actions:
- theme: brand
text: FHIR
link: /fhir/
- theme: alt
text: Mumps
link: /mumps/
- theme: alt
text: Glossary & References
link: /REFERENCE
features:
- title: iSharkFly Docs Project
details: Notes on Health IT standards, technologies and practices, collected by iSharkFly.
- title: Built with VitePress
details: The site is generated with VitePress and deployed on Cloudflare Workers.
- title: Quick Navigation
details: See the quick navigation links at the bottom of this page for related sites.
---
::: info
Most articles are currently available in Chinese only. Links on this page open the Chinese version.
:::
## Contact
| Channel | Contact |
|---------|---------|
| Email | [[email protected]](mailto:[email protected]) |
| QQ / WeChat | 103899765 |
| Forum | https://www.isharkfly.com/ |
## Quick Navigation
| Site | URL | Note |
|------|-----|------|
| HEALTH.ISHARKFLY.COM | [https://health.isharkfly.com/](https://health.isharkfly.com/) | This handbook |
| DOCS.ISHARKFLY.COM | [https://docs.isharkfly.com/](https://docs.isharkfly.com/) | iSharkFly docs portal |
| iSharkFly | https://www.isharkfly.com/c/software-development/5 | Software development discussions |
| Mumps | https://mumps.sharkfly.com/ | Mumps documentation and handbook |
| HAPI FHIR | https://fhir.isharkfly.com/ | FHIR documentation and discussions |
Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

+37
View File
@@ -0,0 +1,37 @@
# FHIR In Action
---
针对 FHIR 标准的指南和示例以及相关内容的讨论。
FHIR® – Fast Health Interoperable Resources (Index - FHIR v5.0.0) – 是由 HL7 提出的新一代标准框架。
FHIR 整合了 HL7 V2,V3 和 CDA 的优点,同时利用了最新的Web标准,紧紧围绕着 implementability 开发和实现。
如还想了解更多有关 FHIR 的定义,请访问链接:https://www.isharkfly.com/t/hl7-fhir/15160
## 版权
本文本遵守开源著作权的开放版权协议,你可以:
* 下载、保存以及打印本书
* 网络链接、转载本书的部分或者全部内容,但是必须在明显处向读者提供访问本书发布网站的链接
* 在你的程序中任意使用本书所附的程序代码,但是由本书的程序所引起的任何问题,作者不承担任何责任
## 在线电子版本
在线电子版本请访问:https://fhir.isharkfly.com
## 参考和框架
| 网站名称 | URL | NOTE |
|-----------------|-----------------------------------------------------------------------------|-------------|
| iSharkFly | https://www.isharkfly.com/c/industry-software/hospital-information-system/6 | HIS 相关信息 |
| David Hay 博客 | http://fhirblog.com/ | |
| Ewout Kramer 博客 | https://fire.ly/ | |
| 硕士论文 | https://github.com/JaneBlue/PPTpaper | |
| FHIR GitHub 参考 | https://github.com/wanghaisheng/fhir-in-action/ | |
| HAPI FHIR 库源代码 | https://github.com/hapifhir/hapi-fhir | |
| SMART 技术文档 | https://github.com/smart-on-fhir/smart-on-fhir.github.io | |
| Fhirbase | https://github.com/fhirbase | 使用 Go 和技术方案 |
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,104 @@
## FHIR Implementation
* The current specification: [http://www.HL7.org/fhir/](http://www.HL7.org/fhir/) (or [the development version](http://hl7.org/implement/standards/FHIR-Develop/))
* [FHIR Profiles from other Organizations](/index.php?title=FHIR_Profiles_from_other_Organizations "FHIR Profiles from other Organizations")
* Contact Information
* Implementation help: [[ask questions about FHIR](http://stackoverflow.com/questions/tagged/hl7_fhir)]
* Formal Contact point for the project: [[[email protected]](mailto:[email protected])]
* [Skype Group Chats](/index.php?title=FHIR_Skype_Chat "FHIR Skype Chat")
* [FHIR gForge Tracker](http://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemBrowse&tracker_id=677) for change requests/corrections
* FHIR Project Team Leads (FHIR Core Team): [[Grahame Grieve](mailto:[email protected])], [[Ewout Kramer](mailto:[email protected])], [[Lloyd Mckenzie](mailto:[email protected])]
* [List server](/index.php?title=FHIR_email_list_subscription_instructions "FHIR email list subscription instructions") - project email list
* Help / Getting Started
* [FHIR Starter](/index.php?title=FHIR_Starter "FHIR Starter") - tutorial for FHIR newbies
* [FHIR Cheat Sheet](http://www.furore.com/wp-content/uploads/2014/11/FURORE-CHEATSHEET-FHIR-R3.pdf) (DSTU 1)
* [Help desk FAQs & knowledge-base articles](https://healthlevelseven.desk.com/) (HL7 members only)
* [FHIR Tools Registry](/index.php?title=FHIR_Tools_Registry "FHIR Tools Registry") - a list of useful tools for FHIR implementers
* [FHIR for Clinical Users](/index.php?title=FHIR_for_Clinical_Users "FHIR for Clinical Users") - an introduction to FHIR for non-technical people that will migrate to the specification in the future
* [FHIR User Group](/index.php?title=FHIR_User_Group "FHIR User Group")
* Social Media on FHIR
* FHIR blogs [David Hay](http://fhirblog.com/), [Ewout Kramer](http://thefhirplace.com/), [Grahame Grieve](http://www.healthintersections.com.au/)
* FHIR News on Twitter [FHIR News](http://www.twitter.com/FHIRnews)
* FHIR Videos [HIMSS FHIR Session](https://live.blueskybroadcast.com/bsb/client/CL_DEFAULT.asp?Client=556675&PCAT=8341&CAT=8341&Review=true), [HL7.tv](http://www.hl7.tv/FHIR.html) and [Ringholm](https://vimeo.com/channels/hl7fhir).
* Testing
* [Publicly Available FHIR Servers for testing](/index.php?title=Publicly_Available_FHIR_Servers_for_testing "Publicly Available FHIR Servers for testing")
* [Open Source FHIR implementations](/index.php?title=Open_Source_FHIR_implementations "Open Source FHIR implementations")
* [FHIR Connectathon 8](/index.php?title=FHIR_Connectathon_8 "FHIR Connectathon 8") (January, San Antonio)
* [Organizations interested in FHIR](/index.php?title=Organizations_interested_in_FHIR "Organizations interested in FHIR")
* [Profile Tooling](/index.php?title=Profile_Tooling "Profile Tooling")
* [FHIR Implementations](/index.php?title=FHIR_Implementations "FHIR Implementations")
* Connectathons
* [Connectathon 9](http://wiki.hl7.org/index.php?title=FHIR_Connectathon_9) (May 9-10, Paris, France)
* Previous Connectathons and other events
* [Historical Connectathons](/index.php?title=Category:FHIR_Connectathons "Category:FHIR Connectathons") (list)
* [Clinical Connectathon 1](/index.php?title=FHIR_Clinical_Connectathon_Initiative "FHIR Clinical Connectathon Initiative") (September 2014, Chicago) (+ [Clinical Connectatathon 1 Tooling](/index.php?title=Clinical_Connectatathon_1_Tooling "Clinical Connectatathon 1 Tooling"))
* [2 day seminar and Connectathon](http://www.healthintersections.com.au/?p=2237) (Nov 6-7, Melbourne Australia)
* [International FHIR Development Days](http://fhir.furore.com/devdays/) (Nov 24-26, Amsterdam)
## FHIR Development
* How to
* [FHIR DSTU monitoring](/index.php?title=FHIR_DSTU_monitoring "FHIR DSTU monitoring") - how to monitor DSTU feedback
* [FHIR Ballot Prep](/index.php?title=FHIR_Ballot_Prep "FHIR Ballot Prep") - tasks for the next ballot and milestone dates
* [FHIR Build Process](/index.php?title=FHIR_Build_Process "FHIR Build Process") - Setting up and running the FHIR build process
* [Technical Guide](/index.php?title=FHIR_Guide_to_Authoring_Resources "FHIR Guide to Authoring Resources") - How to create resources
* Materials: [gForge](http://gforge.hl7.org/gf/project/fhir/), [SVN Trunk](http://gforge.hl7.org/svn/fhir/trunk)
* For read-only SVN access, use "anonymous" and your email as a password.
* For Commit privileges, send a request to [email protected]
* [FHIR resource and profile proposals](/index.php?title=Category:FHIR_Resource_Proposal "Category:FHIR Resource Proposal") - proposals for new resources & profiles
* [FHIR Profile authoring](/index.php?title=FHIR_Profile_authoring "FHIR Profile authoring") - Creating and maintaining FHIR profiles (see also [Profile Tooling](/index.php?title=Profile_Tooling "Profile Tooling"))
* [FHIR Change requests](/index.php?title=FHIR_Change_requests "FHIR Change requests") - Process for managing and resolving
* Guidelines
* [Fundamental Principles of FHIR](/index.php?title=Fundamental_Principles_of_FHIR "Fundamental Principles of FHIR")
* [FHIR Methodology Process](/index.php?title=FHIR_Methodology_Process "FHIR Methodology Process") - how the methodology is developed and maintained
* [Methodology Guidelines](/index.php?title=FHIR_Guide_to_Designing_Resources "FHIR Guide to Designing Resources") - Content and quality guidelines
* [Design Patterns](/index.php?title=FHIR_Design_Patterns "FHIR Design Patterns")
* [FHIR Comparison to other RESTful API specifications](/index.php?title=FHIR_Comparison_to_other_RESTful_API_specifications "FHIR Comparison to other RESTful API specifications")
* Resources
* [List server](/index.php?title=FHIR_email_list_subscription_instructions "FHIR email list subscription instructions") - discussions
* Discussion pages: [Active Discussions](/index.php?title=Category:Active_FHIR_Discussion "Category:Active FHIR Discussion"), [All](/index.php?title=Category:FHIR_Discussion "Category:FHIR Discussion")
* [FHIR Design Requirements Sources](/index.php?title=FHIR_Design_Requirements_Sources "FHIR Design Requirements Sources")
* [FHIR Resource Types](/index.php?title=FHIR_Resource_Types "FHIR Resource Types")
* [FHIR Resource Considerations](/index.php?title=FHIR_Resource_Considerations "FHIR Resource Considerations")
* [(old)](/index.php?title=FHIR_Governance "FHIR Governance") - governance discussion with bits of methodology mixed in (to migrate to other pages)
* [FHIR Terminology Service](/index.php?title=FHIR_Terminology_Service "FHIR Terminology Service")
* [FHIR Digital Signature Working Page](/index.php?title=FHIR_Digital_Signature_Working_Page "FHIR Digital Signature Working Page")
* WG FHIR pages
* [Patient Administration Resource development](/index.php?title=Patient_Administration_Resource_development "Patient Administration Resource development")
* [CDA to FHIR Samples Group](/index.php?title=CDA_to_FHIR_Samples_Group "CDA to FHIR Samples Group")
* [FHIR_Patient_Care_Resources](/index.php?title=FHIR_Patient_Care_Resources "FHIR Patient Care Resources")
## Organizational
* Governance
* [FHIR Governance Process](/index.php?title=FHIR_Governance_Process "FHIR Governance Process")
* [FHIR Governance Board](/index.php?title=FHIR_Governance_Board "FHIR Governance Board") (FGB)
* [FHIR Management Group](/index.php?title=FHIR_Management_Group "FHIR Management Group") (FMG)
* [Modeling and Methodology](/index.php?title=Modeling_and_Methodology "Modeling and Methodology") (MnM)
* [Work Groups](/index.php?title=FHIR_Work_Groups "FHIR Work Groups")
* [FHIR Escalation Processes](/index.php?title=FHIR_Escalation_Processes "FHIR Escalation Processes")
* [FHIR Ballot Process](/index.php?title=FHIR_Ballot_Process "FHIR Ballot Process")
* [FHIR Web Server Hosting Record](/index.php?title=FHIR_Web_Server_Hosting_Record "FHIR Web Server Hosting Record")
* Agendas
* **[Paris WGM](/index.php?title=FHIR_Agenda_201505_WGM "FHIR Agenda 201505 WGM")** (next meeting, May 2015)
* [Past Working Group Meetings](/index.php?title=Category:FHIR_Meeting "Category:FHIR Meeting") (list of agendas/notes)
* [MnM agendas](http://wiki.hl7.org/index.php?title=MnM_Schedule)
* [FGB Agendas & Minutes](http://wiki.hl7.org/index.php?title=FHIR_Governance_Board#Meeting_Information)
* [FMG Agendas & Minutes](http://wiki.hl7.org/index.php?title=FHIR_Management_Group#Meeting_Information)
## opensource project
* Testing
* [FHIR 公开测试服务器的测试报告](http://www.projectcrucible.org/)
* Lib
* [Ruby语言的FHIR模型 工具等](https://github.com/fhir-crucible/)
+78
View File
@@ -0,0 +1,78 @@
# FHIR概述
欢迎使用 FHIR 标准,它是卫生保健信息电子化交换的一种标准。这部分是对标准的概述,作为一个路线图,希望能帮助初次接触的读者更快上手。
## 背景
医疗保健记录越来越多的被数字化。当病人在整个医疗系统中转诊的时候,要求他们的病历能够获得、能够找到和能够理解。更深层次的,能够支撑自动化地临床决策支持和其他机器处理,要求数据是结构化的 并且是标准化的。(参考[卫生保健所面临的数字化挑战](change.html))
[HL7](http://hl7.org/)在过去20多年里,一直致力于构建卫生保健数据交换和信息模型标准来解决这些难题。FHIR是一种新标准,采用了其他行业的通用方法,同时借鉴了在定义和实现 HL7V2,V3,RIM 和 CDA 标准过程中所获得成功、失败的教训。FHIR可以单独作为数据交换标准来使用,也可以和其他广泛应用的标准一起来使用(参考[FHIR与其他HL7标准的比较](comparison.html))
FHIR旨在不牺牲信息完整性的前提下简化开发和实现。它利用了现有的逻辑和理论模型,为不同的应用程序间交换数据提供了一种一致的、易于实现的、健壮的机制。FHIR的内在机制使得其能够追溯到 HL7 RIM 和其他内容模型,这就保证了与HL7之前定义的模式,最佳实践间的保持一致,毋须开发人员充分了解 RIM 和 HL7 V3 的其他衍生制品。(参考[FHIR与其他HL7标准的比较](comparison.html))
## 1.7.0.2 组件
FHIR 中最基本的组件叫做[资源](resource.html).所有可交换的内容都被定义成一个个资源。所有资源都拥有如下特征:
* 同一种[定义](resource.html)、[表达](formats.html)它们以及从[数据类型](datatypes.html)(最基本的可重用元素)构建它们的方式
* 同样的[元数据](resource.html#metadata)集合
* [供人可读的部分](narrative.html)
## 1.7.0.3 方法论
### 1.7.0.3.1 信息建模的方法
FHIR 的理念在于定义一个资源的基础集合,要么利用它们,要么相互结合来满足大多数常见的应用场景的需求。FHIR资源旨在定义绝大多数开发实现中通用的核心信息集合的信息内容和结构。如果需要的话,有内在的[扩展机制](extensibility.html)来满足剩下的需求。
FHIR 的建模采用了一种组合式的方法论。相比而言,HL7 V3 建模是基于“model by constranit”(参考[FHIR与其他HL7标准的比较](comparison.html)) 。对于 FHIR,特殊的应用场景通常是通过利用[资源引用](references.html)整合资源来实现的。尽管对于一个特定场景,单独一个资源可能是存在价值的,更多的是对资源互相整合和裁剪来满足特定的需求。用来描述资源如何整合使用的两类特殊资源:
* [一致性声明](../infra/conformance.html)——描述一种实现中所暴露的交换数据的接口
* [规范profile](../infra/profile.html)——描述该实现中所使用的资源中定义的用以约束基数、可选性、术语、数据泪下和扩展的其他规则。
### 1.7.0.4 标准
基本上,FHIR标准分为三大块:
* 基础[文档](documentation.html)部分——描述了[资源是如何定义](resources.html)的,[数据类型](datatypes.html)、[编码](terminologies.html)的定义和[XML](xml.html) 、[JSON](json.html)格式的相关背景信息。
* [开发实现部分](../impl/implementation)——描述在[REST](../impl/http.html) 、[消息](../impl/messaging.html)、[文档](../impl/documents.html)和[SOA](../impl/services.html)中使用资源。
* [资源列表](resourcelist.html)——resourcelist.htmlFHIR中定义的所有资源的列表。其中又分为[临床类](../clin/clinical.html)、 [行政管理类](../admin/administration.html) 和[基础架构类](../infra/infrastructure.html)三大类。
资源有多种用途,从最基本的[护理计划](../clin/careplan.html)和[诊断报告](../clin/diagnosticreport.html)等临床内容到如[消息头](../infra/messageheader.html)、[一致性声明](../infra/conformance.html)等基础架构。虽然它们具有共同的技术特性,但却以完全不同的方式来使用。注意毋须为了使用资源而必须使用REST。
## 1.7.0.5 如何入门
最好是快速阅读一下 [资源列表](resourcelist.html),对已经有了哪些资源有个感性认识,然后看一下[患者](../clin/patient.html)的定义来看看资源的定义是什么样的,接着读一下以下介绍背景信息的章节:
* [资源](resource.html)——资源是如何定义的
* 所有资源都有的[叙述性文本](narrative.html),以及[资源之间如何互相引用](references.html)
* [格式](formats.html):[XML](xml.html) 、[JSON](json.html)
* [扩展相关](extensibility.html)——标准能够保持简单的关键
* 如果你之前了解 HL7 标准(V2 V3 CDA)的话,[FHIR 与其他 HL7 标准的比较](comparison.html)也值得一看。
### 1.7.0.5.1 顶部标签
整个标准中都会看到这些标签,很多读者可能会遗漏:
[资源](resources.html)和[数据类型](datatypes.html)都是以一种类似XML的 易于阅读的方式来呈现的,它们也有详细描述内容的正规定义。另外,大多数资源映射到很多不同的格式,如HL7V2,HL7V3 RIM ,CDA,DICOM等。同时,所有资源至少包含一个实例(有时候会有更多),适当的时候,也会有描述它们如何在特殊情况下使用的profile规范。最后,一些资源包含了 帮助开发人员理解它们背后的设计原理的小贴士/备注。
## 1.7.0.6 寻求额外信息和提供反馈
为了能够让更多读者看懂的同时,FHIR标准是面向开发人员社区的——这些真正利用标准编写程序的人。为了满足开发人员社区的需求,编辑人员力求标准行文精确,减少在编写程序之前的阅读时间(然而这份标准并不如我们所想的那么简明扼要,有时候是医疗保健和现实世界的复杂度所致)。鉴于此,在开发过程中并不必要的信息,诸如原理、备选方案、一些争论点和将来的计划等并没有包含在标准里面。同样,开发人员时不时会发遇到标准不明晰或者不完整的清空。最终,会有一些情况,标准可能是错的,或者是对其进行修订以更好的满足开发人员的需求。
因此HL7提供了多种方法,通过这些方法可以维护和获取一些额外的FHIR相关信息,能够提供一些帮助,响应一些变更请求。
### 1.7.0.6.1 评论
在每页底部,都有一个评论的部分,可以就特定章节进行提问和讨论。评论由 FHIR 编辑人员和HL7工作组来监管,每个问题都会在一定的时间内给予答复。This content will occasionally be currated to ensure ongoing relevance, particularly if the specification is subsequently updated to eliminate confusion that may have spawned an initial comment.
### 1.7.0.6.2 FHIR Wiki
FHIR 项目团队维护着一个[wiki](http://wiki.hl7.org/index.php?title=FHIR),记录了开发过程、方法学和设计决策。开发人员和其他人员也可以参与到wiki中来,提供一些暂未出现在标准中的指导和补充信息。注意 FHIR wiki上的内容不具有权威性,与FHIR标准的一致性无关。同样,一些内容可能也没有和最近的FHIR版本保持一致。
FHIR标准中的每个页面在wiki中都有一页内容。用以记录原理、决策点和其他与开发人员无关的信息。额外的页面包括[FHIR 方法论](http://wiki.hl7.org/index.php?title=FHIR_Development_Process)、[FHIR 设计工具的使用](http://wiki.hl7.org/index.php?title=FHIR_Guide_to_Authoring_Resources)等。要研究wiki的话,建议从[首页](http://wiki.hl7.org/index.php?title=FHIR)开始.
### 1.7.0.6.3 正式变更请求
正式请求可以在[这里](http://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemAdd&tracker_id=677)提交。对应的工作组会审核这些请求,并作出是否将其纳入到标准中的决策,其中包括了纳入到那个版本。
### 1.7.0.6.3 源码/参与机制的额外信息
除了上述机制,HL7提供了一个 Stack Overflow 的标签,邮件列表和skype聊天频道来提供对开发人员各个层面的全方位的支持。如何使用这些请参考[指令](http://wiki.hl7.org/index.php?title=FHIR#More_help_and_Asking_Questions)
© © HL7.org 2011+. FHIR DSTU (v0.5.0-5149) generated on Fri, Apr 3, 2015 14:36+1100.
链接:[试行版是什么](http://hl7.org/implement/standards/fhir/dstu.html) |[版本更新情况](http://hl7.org/implement/standards/fhir/history.html) | [许可协议](http://hl7.org/implement/standards/fhir/license.html) |[提交变更建议](http://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemAdd&tracker_id=677)
+10
View File
@@ -0,0 +1,10 @@
# FHIR 简介
---
主要是介绍一些FHIR 缘起的大背景,以及产业界对其唱衰唱好的各种论调。
- [开发者眼中的 FHIR](toreader.md)
- [FHIR 实现](fhir-mplementation.md)
- [FHIR 概述](fhir-overview.md)
- [FHIR 开发者指南](fhir-dev-guide.md)
- [开放数据](open-data-is-coming.md)
File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More