Compare commits
63 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4813f63da5 | |||
| 04ef3b0b55 | |||
| 25f0017595 | |||
| a5e39b94d3 | |||
| 9968c28e5c | |||
| 7125b57aa2 | |||
| 958eba6c44 | |||
| fcb5002641 | |||
| b7c824b34a | |||
| e8cf5ab9be | |||
| c35bc8e8a4 | |||
| c2e7119335 | |||
| c6903044aa | |||
| aca893377c | |||
| ccf6fef643 | |||
| c80f2f3a40 | |||
| 804a7ff3d6 | |||
| db2f074cbe | |||
| 7731328402 | |||
| a5d41e88de | |||
| 5ca0ffdd86 | |||
| d82e428e24 | |||
| dc43651043 | |||
| 2fc782a082 | |||
| 2db03cd2cc | |||
| 323abf04dc | |||
| e3de38a794 | |||
| 9ed33227d3 | |||
| 8ddb62ab26 | |||
| c2be28e714 | |||
| dee47229d7 | |||
| a60c2c6c21 | |||
| b759890259 | |||
| c9cf4c5157 | |||
| 45505bd4b8 | |||
| 3e1f6979b5 | |||
| c39615ff85 | |||
| 06d3a6ef13 | |||
| 8c8b8f032c | |||
| 4d24e3f30c | |||
| 57aba6ddc6 | |||
| 665ba07e37 | |||
| 18f71a6a04 | |||
| 83ad838fc4 | |||
| 63ca3fa44f | |||
| fdca2f9c3b | |||
| 3b48bd79e2 | |||
| b620db17d5 | |||
| f2201f4da8 | |||
| b3cf356b32 | |||
| 7cb360b1d2 | |||
| 6beb9318fe | |||
| 423d1c271f | |||
| 53190dddd6 | |||
| 5205c06bab | |||
| b89620b4ed | |||
| c195390fe7 | |||
| e6cb213212 | |||
| 0bce070ae2 | |||
| 9bf4b2d457 | |||
| 68c748b06e | |||
| 2b2ec21c24 | |||
| 80c870f8a0 |
@@ -2,9 +2,8 @@ name: FHIR IG CI/CD Pipeline with Version Persistence
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, develop ]
|
||||
tags:
|
||||
- 'v*.*.*' # Trigger on version tags like v0.3.0
|
||||
- 'v*.*.*'
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
@@ -14,394 +13,616 @@ env:
|
||||
|
||||
jobs:
|
||||
build-ig:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: fhir-runner
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Extract version from IG
|
||||
id: version
|
||||
run: |
|
||||
# Extract version from ImplementationGuide resource
|
||||
VERSION=$(grep -oP '<version value="\K[^"]+' input/bd.fhir.core.xml | head -1)
|
||||
- name: Extract version from IG
|
||||
id: version
|
||||
run: |
|
||||
VERSION=$(grep -oP '<version value="\K[^"]+' input/bd.fhir.core.xml | head -1)
|
||||
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "ERROR: Could not extract version from ImplementationGuide XML"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Extracted version: $VERSION"
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
|
||||
# Determine if this is a release build (git tag) or dev build
|
||||
if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
|
||||
BUILD_TYPE="release"
|
||||
TAG_VERSION="${GITHUB_REF#refs/tags/v}"
|
||||
|
||||
# Verify tag matches IG version
|
||||
if [ "$TAG_VERSION" != "$VERSION" ]; then
|
||||
echo "ERROR: Git tag version ($TAG_VERSION) doesn't match IG version ($VERSION)"
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "ERROR: Could not extract version from ImplementationGuide XML"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
BUILD_TYPE="dev"
|
||||
fi
|
||||
|
||||
echo "build_type=$BUILD_TYPE" >> $GITHUB_OUTPUT
|
||||
echo "Build type: $BUILD_TYPE"
|
||||
echo "Extracted version: $VERSION"
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
|
||||
# NEW STEP: Update package-list.json BEFORE build so IG Publisher can use it
|
||||
- name: Pre-build package-list.json update
|
||||
run: |
|
||||
VERSION="${{ steps.version.outputs.version }}"
|
||||
BUILD_TYPE="${{ steps.version.outputs.build_type }}"
|
||||
DATE=$(date +%Y-%m-%d)
|
||||
if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
|
||||
BUILD_TYPE="release"
|
||||
TAG_VERSION="${GITHUB_REF#refs/tags/v}"
|
||||
|
||||
# Only update for release builds
|
||||
if [ "$BUILD_TYPE" != "release" ]; then
|
||||
echo "ℹ️ Dev build - skipping package-list.json pre-build update"
|
||||
exit 0
|
||||
fi
|
||||
if [ "$TAG_VERSION" != "$VERSION" ]; then
|
||||
echo "ERROR: Git tag version ($TAG_VERSION) doesn't match IG version ($VERSION)"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
BUILD_TYPE="dev"
|
||||
fi
|
||||
|
||||
echo "📋 Updating package-list.json before build..."
|
||||
echo "build_type=$BUILD_TYPE" >> $GITHUB_OUTPUT
|
||||
echo "Build type: $BUILD_TYPE"
|
||||
|
||||
# Check if package-list.json exists
|
||||
if [ ! -f "package-list.json" ]; then
|
||||
echo "⚠️ package-list.json not found in repo - history.html won't be generated"
|
||||
echo "Creating minimal package-list.json for this build..."
|
||||
cat > package-list.json << EOF
|
||||
{
|
||||
"package-id": "bd.fhir.core",
|
||||
"title": "Bangladesh Core FHIR Implementation Guide",
|
||||
"canonical": "https://fhir.dghs.gov.bd/core",
|
||||
"introduction": "Core FHIR profiles and extensions for Bangladesh healthcare",
|
||||
"list": [
|
||||
{
|
||||
"version": "current",
|
||||
"desc": "Continuous Integration Build (latest in version control)",
|
||||
"path": "https://fhir.dghs.gov.bd/core/",
|
||||
"status": "ci-build",
|
||||
"current": true
|
||||
}
|
||||
- name: Prepare package-list.json and history.xml for IG Publisher
|
||||
run: |
|
||||
VERSION="${{ steps.version.outputs.version }}"
|
||||
BUILD_TYPE="${{ steps.version.outputs.build_type }}"
|
||||
DATE=$(date +%Y-%m-%d)
|
||||
|
||||
export VERSION DATE BUILD_TYPE
|
||||
|
||||
echo "📋 Preparing package-list.json and history.xml for IG Publisher..."
|
||||
|
||||
if [ ! -f "package-list.json" ]; then
|
||||
echo "⚠️ package-list.json not found in repo root"
|
||||
echo "Creating initial package-list.json..."
|
||||
cat > package-list.json << 'PKGEOF'
|
||||
{
|
||||
"package-id": "bd.fhir.core",
|
||||
"title": "Bangladesh Core FHIR Implementation Guide",
|
||||
"canonical": "https://fhir.dghs.gov.bd/core",
|
||||
"introduction": "The Bangladesh Core FHIR IG defines national base profiles, value sets, and extensions for health data interoperability.",
|
||||
"list": [
|
||||
{
|
||||
"version": "current",
|
||||
"desc": "Continuous Integration Build (latest in version control)",
|
||||
"path": "https://fhir.dghs.gov.bd/core/",
|
||||
"status": "ci-build",
|
||||
"current": true
|
||||
}
|
||||
]
|
||||
}
|
||||
PKGEOF
|
||||
fi
|
||||
|
||||
python3 << 'PYEOF'
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
|
||||
version = os.environ.get('VERSION', '')
|
||||
date = os.environ.get('DATE', '')
|
||||
build_type = os.environ.get('BUILD_TYPE', '')
|
||||
|
||||
with open('package-list.json', 'r', encoding='utf-8') as f:
|
||||
pkg_list = json.load(f)
|
||||
|
||||
if 'list' not in pkg_list or not isinstance(pkg_list['list'], list):
|
||||
print("ERROR: package-list.json does not contain a valid 'list' array")
|
||||
sys.exit(1)
|
||||
|
||||
current_entries = [e for e in pkg_list['list'] if e.get('version') == 'current']
|
||||
if not current_entries:
|
||||
pkg_list['list'].insert(0, {
|
||||
"version": "current",
|
||||
"desc": "Continuous Integration Build (latest in version control)",
|
||||
"path": "https://fhir.dghs.gov.bd/core/",
|
||||
"status": "ci-build",
|
||||
"current": True
|
||||
})
|
||||
|
||||
if build_type == 'release':
|
||||
version_entry = None
|
||||
for e in pkg_list['list']:
|
||||
if e.get('version') == version:
|
||||
version_entry = e
|
||||
break
|
||||
if version_entry is None:
|
||||
new_entry = {
|
||||
"version": version,
|
||||
"date": date,
|
||||
"desc": f"Release {version}",
|
||||
"path": f"https://fhir.dghs.gov.bd/core/{version}/",
|
||||
"status": "trial-use",
|
||||
"sequence": "STU 1"
|
||||
}
|
||||
|
||||
insert_index = 1
|
||||
for i, entry in enumerate(pkg_list['list']):
|
||||
if entry.get('version') == 'current':
|
||||
insert_index = i + 1
|
||||
break
|
||||
|
||||
pkg_list['list'].insert(insert_index, new_entry)
|
||||
print(f"✅ Added version {version} to package-list.json")
|
||||
else:
|
||||
print(f"ℹ️ Version {version} already exists in package-list.json")
|
||||
else:
|
||||
print("ℹ️ Dev build - using existing package-list.json without release modification")
|
||||
|
||||
with open('package-list.json', 'w', encoding='utf-8') as f:
|
||||
json.dump(pkg_list, f, indent=2, ensure_ascii=False)
|
||||
PYEOF
|
||||
|
||||
echo "🔍 Validating package-list.json..."
|
||||
python3 -m json.tool package-list.json > /dev/null && echo "✅ Valid JSON" || (echo "❌ Invalid JSON!" && exit 1)
|
||||
|
||||
echo "📂 Ensuring package-list.json is in required locations..."
|
||||
mkdir -p input
|
||||
cp package-list.json input/package-list.json
|
||||
|
||||
echo "📝 Generating static history.xml from package-list.json..."
|
||||
mkdir -p input/pagecontent
|
||||
|
||||
python3 << 'PYEOF'
|
||||
import json
|
||||
import os
|
||||
from html import escape
|
||||
|
||||
os.makedirs('input/pagecontent', exist_ok=True)
|
||||
|
||||
with open('package-list.json', 'r', encoding='utf-8') as f:
|
||||
pkg_list = json.load(f)
|
||||
|
||||
xml = '''<?xml version="1.0" encoding="UTF-8"?>
|
||||
<div xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<p>This page provides the version history for the Bangladesh Core FHIR Implementation Guide.</p>
|
||||
|
||||
<p>For a machine-readable version history see <a href="package-list.json">package-list.json</a>.</p>
|
||||
|
||||
<p><b>Published Versions</b></p>
|
||||
|
||||
<table class="grid table table-striped table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Version</th>
|
||||
<th>Date</th>
|
||||
<th>Status</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
'''
|
||||
|
||||
def version_key(v):
|
||||
try:
|
||||
return tuple(int(x) for x in v.split('.'))
|
||||
except:
|
||||
return (0,)
|
||||
|
||||
published = [
|
||||
e for e in pkg_list['list']
|
||||
if e.get('version') and e.get('version') != "current"
|
||||
]
|
||||
}
|
||||
EOF
|
||||
fi
|
||||
|
||||
# Update package-list.json with new version
|
||||
python3 << 'PYEOF'
|
||||
import json
|
||||
import sys
|
||||
# Sort newest version first
|
||||
published.sort(
|
||||
key=lambda e: version_key(e.get("version", "0.0.0")),
|
||||
reverse=True
|
||||
)
|
||||
|
||||
version = "$VERSION"
|
||||
date = "$DATE"
|
||||
published_found = False
|
||||
first_row = True
|
||||
|
||||
with open('package-list.json', 'r') as f:
|
||||
pkg_list = json.load(f)
|
||||
for entry in published:
|
||||
published_found = True
|
||||
|
||||
# Check if this version already exists
|
||||
version_exists = any(e['version'] == version for e in pkg_list['list'])
|
||||
version = escape(entry.get('version', 'Unknown'))
|
||||
date = escape(entry.get('date', 'N/A'))
|
||||
desc = escape(entry.get('desc', ''))
|
||||
path = escape(entry.get('path', '#'))
|
||||
|
||||
if not version_exists:
|
||||
new_entry = {
|
||||
"version": version,
|
||||
"date": date,
|
||||
"desc": f"Release {version}",
|
||||
"path": f"https://fhir.dghs.gov.bd/core/{version}/",
|
||||
"status": "trial-use",
|
||||
"sequence": "STU 1"
|
||||
}
|
||||
# Insert after 'current' entry
|
||||
pkg_list['list'].insert(1, new_entry)
|
||||
status_val = entry.get('status', 'unknown')
|
||||
|
||||
with open('package-list.json', 'w') as f:
|
||||
json.dump(pkg_list, f, indent=2)
|
||||
if status_val == "trial-use":
|
||||
status = '<span class="badge bg-info">Trial Use</span>'
|
||||
elif status_val == "normative":
|
||||
status = '<span class="badge bg-success">Normative</span>'
|
||||
else:
|
||||
status = f'<span class="badge bg-secondary">{escape(status_val)}</span>'
|
||||
|
||||
print(f"✅ Added version {version} to package-list.json")
|
||||
else:
|
||||
print(f"ℹ️ Version {version} already exists in package-list.json")
|
||||
PYEOF
|
||||
badge = '<span class="badge bg-success">Latest</span> ' if first_row else ''
|
||||
|
||||
echo "📋 package-list.json is ready for IG Publisher"
|
||||
cat package-list.json
|
||||
xml += f'''
|
||||
<tr>
|
||||
<td><a href="{path}">{badge}{version}</a></td>
|
||||
<td>{date}</td>
|
||||
<td>{status}</td>
|
||||
<td>{desc}</td>
|
||||
</tr>
|
||||
'''
|
||||
|
||||
- name: Install Docker CLI
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y docker.io
|
||||
docker --version
|
||||
first_row = False
|
||||
|
||||
- name: Build FHIR IG
|
||||
run: |
|
||||
echo "Building FHIR IG version ${{ steps.version.outputs.version }}..."
|
||||
if not published_found:
|
||||
xml += '''
|
||||
<tr>
|
||||
<td colspan="4">No published versions available yet.</td>
|
||||
</tr>
|
||||
'''
|
||||
|
||||
CONTAINER_ID=$(docker create \
|
||||
hl7fhir/ig-publisher-base:latest \
|
||||
/bin/bash -c "cp -r /home/publisher/ig /tmp/build && cd /tmp/build && _updatePublisher.sh -y && _genonce.sh")
|
||||
xml += '''
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
echo "Container ID: $CONTAINER_ID"
|
||||
<p class="lead"><b>Continuous Integration Build</b></p>
|
||||
'''
|
||||
|
||||
docker cp $(pwd)/. $CONTAINER_ID:/home/publisher/ig/
|
||||
docker start -a $CONTAINER_ID
|
||||
EXIT_CODE=$?
|
||||
current_entry = None
|
||||
for entry in pkg_list['list']:
|
||||
if entry.get('version') == 'current':
|
||||
current_entry = entry
|
||||
break
|
||||
|
||||
# Copy outputs
|
||||
echo "Copying outputs from container..."
|
||||
docker cp $CONTAINER_ID:/tmp/build/output ./output || echo "Warning: No output directory"
|
||||
docker cp $CONTAINER_ID:/tmp/build/fsh-generated ./fsh-generated || echo "No FSH generated"
|
||||
docker cp $CONTAINER_ID:/tmp/build/input-cache ./input-cache || echo "No input-cache"
|
||||
docker cp $CONTAINER_ID:/tmp/build/temp ./temp || echo "No temp directory"
|
||||
if current_entry:
|
||||
path = escape(current_entry.get('path', pkg_list.get('canonical', '') + '/'))
|
||||
xml += f'''
|
||||
<p>The latest development build is available at:
|
||||
<a href="{path}">{path}</a></p>
|
||||
'''
|
||||
else:
|
||||
xml += '''
|
||||
<p><i>No CI build entry found in package-list.json.</i></p>
|
||||
'''
|
||||
|
||||
if [ $EXIT_CODE -ne 0 ]; then
|
||||
echo "Build failed, showing logs:"
|
||||
docker logs $CONTAINER_ID
|
||||
docker rm $CONTAINER_ID
|
||||
exit 1
|
||||
fi
|
||||
xml += '''
|
||||
</div>
|
||||
'''
|
||||
|
||||
docker rm $CONTAINER_ID
|
||||
with open('input/pagecontent/history.xml', 'w', encoding='utf-8') as f:
|
||||
f.write(xml)
|
||||
|
||||
if [ ! -f "output/index.html" ]; then
|
||||
echo "ERROR: Build failed - no index.html"
|
||||
exit 1
|
||||
fi
|
||||
print("✅ Generated static history.xml")
|
||||
print(f" File location: {os.path.abspath('input/pagecontent/history.xml')}")
|
||||
print(f" File size: {os.path.getsize('input/pagecontent/history.xml')} bytes")
|
||||
PYEOF
|
||||
|
||||
# Check if history.html was generated
|
||||
if [ -f "output/history.html" ]; then
|
||||
echo "✅ history.html generated successfully"
|
||||
else
|
||||
echo "⚠️ WARNING: history.html was not generated"
|
||||
echo "This usually means package-list.json was missing or invalid"
|
||||
fi
|
||||
if [ -f "input/pagecontent/history.xml" ]; then
|
||||
echo "✅ Verified: history.xml exists"
|
||||
echo " First 20 lines:"
|
||||
head -20 input/pagecontent/history.xml
|
||||
else
|
||||
echo "❌ ERROR: history.xml was not created!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "✅ Build successful!"
|
||||
echo "✅ Pre-build preparation complete:"
|
||||
echo " - Root: $(pwd)/package-list.json"
|
||||
echo " - Input: $(pwd)/input/package-list.json"
|
||||
echo " - History: $(pwd)/input/pagecontent/history.xml"
|
||||
echo "==============================="
|
||||
echo "PACKAGE LIST USED FOR BUILD:"
|
||||
cat package-list.json
|
||||
echo "-------------------------------"
|
||||
echo "INPUT COPY:"
|
||||
cat input/package-list.json
|
||||
echo "==============================="
|
||||
|
||||
- name: Update package-feed.xml for releases
|
||||
if: steps.version.outputs.build_type == 'release'
|
||||
run: |
|
||||
VERSION="${{ steps.version.outputs.version }}"
|
||||
DATETIME=$(date -u +%Y-%m-%dT%H:%M:%SZ)
|
||||
- name: Emergency Disk Cleanup
|
||||
run: |
|
||||
echo "Disk usage before:"
|
||||
df -h
|
||||
|
||||
cat > update-feed.py << 'EOF'
|
||||
import sys
|
||||
import xml.etree.ElementTree as ET
|
||||
echo "Clearing tool cache..."
|
||||
rm -rf /opt/hostedtoolcache/* || true
|
||||
|
||||
version = sys.argv[1]
|
||||
datetime_iso = sys.argv[2]
|
||||
rm -rf /usr/share/dotnet || true
|
||||
rm -rf /usr/local/lib/android || true
|
||||
rm -rf /opt/ghc || true
|
||||
rm -rf ~/.fhir/packages || true
|
||||
|
||||
ET.register_namespace('', 'http://www.w3.org/2005/Atom')
|
||||
echo "Disk usage after:"
|
||||
df -h
|
||||
|
||||
tree = ET.parse('package-feed.xml')
|
||||
root = tree.getroot()
|
||||
ns = {'atom': 'http://www.w3.org/2005/Atom'}
|
||||
- name: Install Docker CLI
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y docker.io
|
||||
docker --version
|
||||
|
||||
updated_elem = root.find('atom:updated', ns)
|
||||
if updated_elem is not None:
|
||||
updated_elem.text = datetime_iso
|
||||
- name: Preload previous IG package for comparison
|
||||
run: |
|
||||
echo "Detecting previous version..."
|
||||
|
||||
entry_exists = False
|
||||
for entry in root.findall('atom:entry', ns):
|
||||
title = entry.find('atom:title', ns)
|
||||
if title is not None and version in title.text:
|
||||
entry_exists = True
|
||||
entry_updated = entry.find('atom:updated', ns)
|
||||
if entry_updated is not None:
|
||||
entry_updated.text = datetime_iso
|
||||
break
|
||||
PREV_VERSION=$(python3 <<'PY'
|
||||
import json
|
||||
with open("package-list.json") as f:
|
||||
data = json.load(f)
|
||||
|
||||
if not entry_exists:
|
||||
new_entry = ET.Element('{http://www.w3.org/2005/Atom}entry')
|
||||
versions = [v["version"] for v in data["list"] if v["version"] != "current"]
|
||||
print(versions[0] if versions else "")
|
||||
PY
|
||||
)
|
||||
|
||||
title = ET.SubElement(new_entry, '{http://www.w3.org/2005/Atom}title')
|
||||
title.text = f"bd.fhir.core version {version}"
|
||||
if [ -z "$PREV_VERSION" ]; then
|
||||
echo "No previous version found. Skipping preload."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
link = ET.SubElement(new_entry, '{http://www.w3.org/2005/Atom}link')
|
||||
link.set('rel', 'alternate')
|
||||
link.set('href', f"https://fhir.dghs.gov.bd/core/{version}/")
|
||||
echo "Previous version detected: $PREV_VERSION"
|
||||
|
||||
entry_id = ET.SubElement(new_entry, '{http://www.w3.org/2005/Atom}id')
|
||||
entry_id.text = f"https://fhir.dghs.gov.bd/core/{version}/"
|
||||
mkdir -p previous-packages
|
||||
TMPDIR=$(mktemp -d)
|
||||
|
||||
entry_updated = ET.SubElement(new_entry, '{http://www.w3.org/2005/Atom}updated')
|
||||
entry_updated.text = datetime_iso
|
||||
URL="https://fhir.dghs.gov.bd/core/$PREV_VERSION/package.tgz"
|
||||
|
||||
summary = ET.SubElement(new_entry, '{http://www.w3.org/2005/Atom}summary')
|
||||
summary.text = f"Release {version} of Bangladesh Core FHIR Implementation Guide"
|
||||
echo "Downloading $URL"
|
||||
curl -L "$URL" -o "$TMPDIR/package.tgz"
|
||||
|
||||
insert_pos = 0
|
||||
for i, child in enumerate(root):
|
||||
if child.tag.endswith('entry'):
|
||||
insert_pos = i
|
||||
break
|
||||
insert_pos = i + 1
|
||||
mkdir -p "previous-packages/bd.fhir.core#$PREV_VERSION"
|
||||
tar -xzf "$TMPDIR/package.tgz" -C "previous-packages/bd.fhir.core#$PREV_VERSION"
|
||||
|
||||
root.insert(insert_pos, new_entry)
|
||||
echo "Previous package cached:"
|
||||
ls previous-packages
|
||||
|
||||
tree.write('output/package-feed.xml', encoding='utf-8', xml_declaration=True)
|
||||
print(f"✅ Updated package-feed.xml")
|
||||
EOF
|
||||
- name: Build FHIR IG
|
||||
run: |
|
||||
echo "Building FHIR IG version ${{ steps.version.outputs.version }}..."
|
||||
|
||||
python3 update-feed.py "$VERSION" "$DATETIME"
|
||||
CONTAINER_ID=$(docker create \
|
||||
-v $(pwd)/previous-packages:/previous-packages \
|
||||
hl7fhir/ig-publisher-base:latest \
|
||||
/bin/bash -c "
|
||||
|
||||
# Also copy the updated package-list.json to output
|
||||
cp package-list.json output/package-list.json
|
||||
mkdir -p /tmp/build
|
||||
cp -r /home/publisher/ig /tmp/build/ig
|
||||
|
||||
echo "📋 Updated registry files"
|
||||
cd /tmp/build/ig
|
||||
|
||||
- name: Prepare deployment artifact
|
||||
run: |
|
||||
VERSION="${{ steps.version.outputs.version }}"
|
||||
BUILD_TYPE="${{ steps.version.outputs.build_type }}"
|
||||
rm -f package-list.json
|
||||
|
||||
tar -czf ig-output.tar.gz -C output .
|
||||
_updatePublisher.sh -y
|
||||
_genonce.sh
|
||||
")
|
||||
|
||||
echo "version=$VERSION" > deployment.env
|
||||
echo "build_type=$BUILD_TYPE" >> deployment.env
|
||||
echo "build_date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" >> deployment.env
|
||||
echo "Container ID: $CONTAINER_ID"
|
||||
|
||||
# List what's in the output
|
||||
echo "📦 Output contents:"
|
||||
ls -lh output/ | grep -E "(history\.html|package-list\.json|package-feed\.xml|index\.html)"
|
||||
docker cp "$(pwd)/." "$CONTAINER_ID:/home/publisher/ig/"
|
||||
echo "Mounted FHIR packages:"
|
||||
ls -R previous-packages || echo "No previous packages directory"
|
||||
docker start -a "$CONTAINER_ID"
|
||||
EXIT_CODE=$?
|
||||
|
||||
ls -lh ig-output.tar.gz
|
||||
echo "Copying outputs from container..."
|
||||
docker cp "$CONTAINER_ID:/tmp/build/ig/output" ./output || echo "Warning: No output directory"
|
||||
docker cp "$CONTAINER_ID:/tmp/build/ig/fsh-generated" ./fsh-generated || echo "No FSH generated"
|
||||
docker cp "$CONTAINER_ID:/tmp/build/ig/input-cache" ./input-cache || echo "No input-cache"
|
||||
docker cp "$CONTAINER_ID:/tmp/build/ig/temp" ./temp || echo "No temp directory"
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ig-output
|
||||
path: |
|
||||
ig-output.tar.gz
|
||||
deployment.env
|
||||
package-list.json
|
||||
package-feed.xml
|
||||
retention-days: 30
|
||||
if [ $EXIT_CODE -ne 0 ]; then
|
||||
echo "Build failed, showing logs:"
|
||||
docker logs "$CONTAINER_ID"
|
||||
docker rm "$CONTAINER_ID"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker rm "$CONTAINER_ID"
|
||||
|
||||
if [ ! -f "output/index.html" ]; then
|
||||
echo "ERROR: Build failed - no index.html"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "🔍 Checking for history.html..."
|
||||
if [ -f "output/history.html" ]; then
|
||||
echo "✅ history.html generated successfully!"
|
||||
echo "📄 history.html size: $(ls -lh output/history.html | awk '{print $5}')"
|
||||
else
|
||||
echo "⚠️ WARNING: history.html was NOT generated"
|
||||
echo "This might indicate an issue with the template or history.xml/package-list.json"
|
||||
fi
|
||||
echo "================================"
|
||||
echo "IG Publisher comparison log:"
|
||||
cat output/qa.compare.txt || echo "qa.compare.txt not found"
|
||||
echo "================================"
|
||||
echo "✅ Build successful!"
|
||||
|
||||
- name: Update package-feed.xml for releases
|
||||
if: steps.version.outputs.build_type == 'release'
|
||||
run: |
|
||||
VERSION="${{ steps.version.outputs.version }}"
|
||||
DATETIME=$(date -u +%Y-%m-%dT%H:%M:%SZ)
|
||||
|
||||
cat > update-feed.py << 'EOF'
|
||||
import sys
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
version = sys.argv[1]
|
||||
datetime_iso = sys.argv[2]
|
||||
|
||||
ET.register_namespace('', 'http://www.w3.org/2005/Atom')
|
||||
|
||||
tree = ET.parse('package-feed.xml')
|
||||
root = tree.getroot()
|
||||
ns = {'atom': 'http://www.w3.org/2005/Atom'}
|
||||
|
||||
updated_elem = root.find('atom:updated', ns)
|
||||
if updated_elem is not None:
|
||||
updated_elem.text = datetime_iso
|
||||
|
||||
entry_exists = False
|
||||
for entry in root.findall('atom:entry', ns):
|
||||
title = entry.find('atom:title', ns)
|
||||
if title is not None and version in (title.text or ''):
|
||||
entry_exists = True
|
||||
entry_updated = entry.find('atom:updated', ns)
|
||||
if entry_updated is not None:
|
||||
entry_updated.text = datetime_iso
|
||||
break
|
||||
|
||||
if not entry_exists:
|
||||
new_entry = ET.Element('{http://www.w3.org/2005/Atom}entry')
|
||||
|
||||
title = ET.SubElement(new_entry, '{http://www.w3.org/2005/Atom}title')
|
||||
title.text = f"bd.fhir.core version {version}"
|
||||
|
||||
link = ET.SubElement(new_entry, '{http://www.w3.org/2005/Atom}link')
|
||||
link.set('rel', 'alternate')
|
||||
link.set('href', f"https://fhir.dghs.gov.bd/core/{version}/")
|
||||
|
||||
entry_id = ET.SubElement(new_entry, '{http://www.w3.org/2005/Atom}id')
|
||||
entry_id.text = f"https://fhir.dghs.gov.bd/core/{version}/"
|
||||
|
||||
entry_updated = ET.SubElement(new_entry, '{http://www.w3.org/2005/Atom}updated')
|
||||
entry_updated.text = datetime_iso
|
||||
|
||||
summary = ET.SubElement(new_entry, '{http://www.w3.org/2005/Atom}summary')
|
||||
summary.text = f"Release {version} of Bangladesh Core FHIR Implementation Guide"
|
||||
|
||||
insert_pos = 0
|
||||
for i, child in enumerate(root):
|
||||
if child.tag.endswith('entry'):
|
||||
insert_pos = i
|
||||
break
|
||||
insert_pos = i + 1
|
||||
|
||||
root.insert(insert_pos, new_entry)
|
||||
|
||||
tree.write('output/package-feed.xml', encoding='utf-8', xml_declaration=True)
|
||||
print("✅ Updated package-feed.xml")
|
||||
EOF
|
||||
|
||||
python3 update-feed.py "$VERSION" "$DATETIME"
|
||||
cp package-list.json output/package-list.json
|
||||
|
||||
echo "📋 Updated registry files"
|
||||
|
||||
- name: Prepare deployment artifact
|
||||
run: |
|
||||
VERSION="${{ steps.version.outputs.version }}"
|
||||
BUILD_TYPE="${{ steps.version.outputs.build_type }}"
|
||||
|
||||
tar -czf ig-output.tar.gz -C output .
|
||||
|
||||
echo "version=$VERSION" > deployment.env
|
||||
echo "build_type=$BUILD_TYPE" >> deployment.env
|
||||
echo "build_date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" >> deployment.env
|
||||
|
||||
echo "📦 Output contents:"
|
||||
ls -lh output/ | grep -E "(history\.html|package-list\.json|package-feed\.xml|index\.html)" || echo "Some files may be missing"
|
||||
|
||||
ls -lh ig-output.tar.gz
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ig-output
|
||||
path: |
|
||||
ig-output.tar.gz
|
||||
deployment.env
|
||||
package-list.json
|
||||
package-feed.xml
|
||||
retention-days: 30
|
||||
|
||||
deploy:
|
||||
needs: build-ig
|
||||
runs-on: ubuntu-latest
|
||||
if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
|
||||
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
|
||||
|
||||
steps:
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: ig-output
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: ig-output
|
||||
|
||||
- name: Load deployment env
|
||||
id: deploy_info
|
||||
run: |
|
||||
source deployment.env
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
echo "build_type=$build_type" >> $GITHUB_OUTPUT
|
||||
echo "build_date=$build_date" >> $GITHUB_OUTPUT
|
||||
- name: Load deployment env
|
||||
id: deploy_info
|
||||
run: |
|
||||
source deployment.env
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
echo "build_type=$build_type" >> $GITHUB_OUTPUT
|
||||
echo "build_date=$build_date" >> $GITHUB_OUTPUT
|
||||
|
||||
echo "Deploying version: $version"
|
||||
echo "Build type: $build_type"
|
||||
echo "Deploying version: $version"
|
||||
echo "Build type: $build_type"
|
||||
|
||||
- name: Deploy to server
|
||||
uses: appleboy/scp-action@v0.1.7
|
||||
with:
|
||||
host: ${{ secrets.DEPLOY_HOST }}
|
||||
username: ${{ secrets.DEPLOY_USER }}
|
||||
password: ${{ secrets.DEPLOY_PASSWORD }}
|
||||
port: ${{ secrets.DEPLOY_PORT || 22 }}
|
||||
source: "ig-output.tar.gz,deployment.env,package-list.json,package-feed.xml"
|
||||
target: "/tmp/fhir-ig-deploy/"
|
||||
- name: Deploy to server
|
||||
uses: appleboy/scp-action@v0.1.7
|
||||
with:
|
||||
host: ${{ secrets.DEPLOY_HOST }}
|
||||
username: ${{ secrets.DEPLOY_USER }}
|
||||
password: ${{ secrets.DEPLOY_PASSWORD }}
|
||||
port: ${{ secrets.DEPLOY_PORT || 22 }}
|
||||
source: "ig-output.tar.gz,deployment.env,package-list.json,package-feed.xml"
|
||||
target: "/tmp/fhir-ig-deploy/"
|
||||
|
||||
- name: Execute deployment on server
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
with:
|
||||
host: ${{ secrets.DEPLOY_HOST }}
|
||||
username: ${{ secrets.DEPLOY_USER }}
|
||||
password: ${{ secrets.DEPLOY_PASSWORD }}
|
||||
port: ${{ secrets.DEPLOY_PORT || 22 }}
|
||||
script: |
|
||||
set -e
|
||||
- name: Execute deployment on server
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
with:
|
||||
host: ${{ secrets.DEPLOY_HOST }}
|
||||
username: ${{ secrets.DEPLOY_USER }}
|
||||
password: ${{ secrets.DEPLOY_PASSWORD }}
|
||||
port: ${{ secrets.DEPLOY_PORT || 22 }}
|
||||
script: |
|
||||
set -e
|
||||
|
||||
# Load deployment info
|
||||
source /tmp/fhir-ig-deploy/deployment.env
|
||||
source /tmp/fhir-ig-deploy/deployment.env
|
||||
|
||||
echo "=========================================="
|
||||
echo "Deploying FHIR IG"
|
||||
echo "Version: $version"
|
||||
echo "Build Type: $build_type"
|
||||
echo "Build Date: $build_date"
|
||||
echo "=========================================="
|
||||
echo "=========================================="
|
||||
echo "Deploying FHIR IG"
|
||||
echo "Version: $version"
|
||||
echo "Build Type: $build_type"
|
||||
echo "Build Date: $build_date"
|
||||
echo "=========================================="
|
||||
|
||||
# Create version directory structure
|
||||
VERSIONS_DIR="/opt/fhir-ig/versions"
|
||||
mkdir -p "$VERSIONS_DIR"
|
||||
VERSIONS_DIR="/opt/fhir-ig/versions"
|
||||
mkdir -p "$VERSIONS_DIR"
|
||||
|
||||
# Determine target directory
|
||||
if [ "$build_type" == "release" ]; then
|
||||
TARGET_DIR="$VERSIONS_DIR/$version"
|
||||
echo "📦 Deploying release version to: $TARGET_DIR"
|
||||
else
|
||||
TARGET_DIR="$VERSIONS_DIR/dev"
|
||||
echo "🔧 Deploying dev build to: $TARGET_DIR"
|
||||
if [ "$build_type" = "release" ]; then
|
||||
TARGET_DIR="$VERSIONS_DIR/$version"
|
||||
echo "📦 Deploying release version to: $TARGET_DIR"
|
||||
else
|
||||
TARGET_DIR="$VERSIONS_DIR/dev"
|
||||
echo "🔧 Deploying dev build to: $TARGET_DIR"
|
||||
mkdir -p "$TARGET_DIR"
|
||||
echo "Cleaning old dev files..."
|
||||
rm -rf "$TARGET_DIR"/*
|
||||
fi
|
||||
|
||||
echo "Cleaning old dev files..."
|
||||
rm -rf "$TARGET_DIR"/*
|
||||
fi
|
||||
mkdir -p "$TARGET_DIR"
|
||||
|
||||
# Create target directory
|
||||
mkdir -p "$TARGET_DIR"
|
||||
echo "Extracting IG output..."
|
||||
tar -xzf /tmp/fhir-ig-deploy/ig-output.tar.gz -C "$TARGET_DIR"
|
||||
|
||||
# Extract IG output
|
||||
echo "Extracting IG output..."
|
||||
tar -xzf /tmp/fhir-ig-deploy/ig-output.tar.gz -C "$TARGET_DIR"
|
||||
if [ -f "$TARGET_DIR/history.html" ]; then
|
||||
echo "✅ history.html deployed successfully"
|
||||
else
|
||||
echo "⚠️ WARNING: history.html not found in deployment"
|
||||
fi
|
||||
|
||||
# Verify history.html was deployed
|
||||
if [ -f "$TARGET_DIR/history.html" ]; then
|
||||
echo "✅ history.html deployed successfully"
|
||||
else
|
||||
echo "⚠️ WARNING: history.html not found in deployment"
|
||||
fi
|
||||
cp "$TARGET_DIR/package-list.json" "$VERSIONS_DIR/package-list.json"
|
||||
cp "$TARGET_DIR/package-feed.xml" "$VERSIONS_DIR/package-feed.xml"
|
||||
|
||||
cp /tmp/fhir-ig-deploy/package-list.json "$VERSIONS_DIR/package-list.json"
|
||||
cp "$TARGET_DIR/package-list.json" "/opt/fhir-ig/package-list.json"
|
||||
cp "$TARGET_DIR/package-feed.xml" "/opt/fhir-ig/package-feed.xml"
|
||||
|
||||
# Copy package-feed.xml to root
|
||||
cp /tmp/fhir-ig-deploy/package-feed.xml "$VERSIONS_DIR/package-feed.xml"
|
||||
if [ "$build_type" = "release" ]; then
|
||||
echo "Updating 'current' symlink to point to $version"
|
||||
rm -f "$VERSIONS_DIR/current"
|
||||
ln -sf "$version" "$VERSIONS_DIR/current"
|
||||
fi
|
||||
|
||||
# Update 'current' symlink for releases
|
||||
if [ "$build_type" == "release" ]; then
|
||||
echo "Updating 'current' symlink to point to $version"
|
||||
rm -f "$VERSIONS_DIR/current"
|
||||
ln -sf "$version" "$VERSIONS_DIR/current"
|
||||
fi
|
||||
cd /opt/fhir-ig
|
||||
|
||||
# Ensure nginx container is running with correct config
|
||||
cd /opt/fhir-ig
|
||||
if [ ! -f "docker-compose.prod.yml" ]; then
|
||||
echo "ERROR: docker-compose.prod.yml not found!"
|
||||
echo "Please deploy the updated docker-compose.prod.yml and nginx.conf first"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Download deployment files if they don't exist
|
||||
if [ ! -f "docker-compose.prod.yml" ]; then
|
||||
echo "ERROR: docker-compose.prod.yml not found!"
|
||||
echo "Please deploy the updated docker-compose.prod.yml and nginx.conf first"
|
||||
exit 1
|
||||
fi
|
||||
docker compose -f docker-compose.prod.yml up -d --force-recreate fhir-ig
|
||||
|
||||
# Force recreate container to ensure new config/mounts are applied
|
||||
# This handles "stuck" states better than a simple restart
|
||||
docker compose -f docker-compose.prod.yml up -d --force-recreate fhir-ig
|
||||
rm -rf /tmp/fhir-ig-deploy
|
||||
|
||||
# Cleanup
|
||||
rm -rf /tmp/fhir-ig-deploy
|
||||
echo "=========================================="
|
||||
echo "✅ Deployment completed successfully!"
|
||||
echo "Version $version is now available at:"
|
||||
if [ "$build_type" = "release" ]; then
|
||||
echo " - https://fhir.dghs.gov.bd/core/$version/"
|
||||
echo " - https://fhir.dghs.gov.bd/core/$version/history.html"
|
||||
echo " - https://fhir.dghs.gov.bd/core/ (current)"
|
||||
else
|
||||
echo " - https://fhir.dghs.gov.bd/core/dev/"
|
||||
fi
|
||||
echo "=========================================="
|
||||
|
||||
echo "=========================================="
|
||||
echo "✅ Deployment completed successfully!"
|
||||
echo "Version $version is now available at:"
|
||||
if [ "$build_type" == "release" ]; then
|
||||
echo " - https://fhir.dghs.gov.bd/core/$version/"
|
||||
echo " - https://fhir.dghs.gov.bd/core/$version/history.html"
|
||||
echo " - https://fhir.dghs.gov.bd/core/ (current)"
|
||||
else
|
||||
echo " - https://fhir.dghs.gov.bd/core/dev/"
|
||||
fi
|
||||
echo "=========================================="
|
||||
|
||||
# List all versions
|
||||
echo "Available versions:"
|
||||
ls -lh "$VERSIONS_DIR" | grep -v total
|
||||
echo "Available versions:"
|
||||
ls -lh "$VERSIONS_DIR" | grep -v total
|
||||
1
ig.ini
1
ig.ini
@@ -6,6 +6,7 @@ ig = input/bd.fhir.core.xml
|
||||
template = #bd-national-template
|
||||
#template = D:\Git\templates\ig-template-base
|
||||
#template = #local-template
|
||||
historypage = true
|
||||
|
||||
##########################
|
||||
### ig.ini parameters: ###
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
</extension>-->
|
||||
<url value="https://fhir.dghs.gov.bd/core/ImplementationGuide/bd.fhir.core"/>
|
||||
<!-- This version will propagate to all artifacts unless the "propagate-version" extension is overridden -->
|
||||
<version value="0.2.2"/>
|
||||
<version value="0.2.5"/>
|
||||
<name value="BangladeshCoreFHIRIG"/>
|
||||
<title value="Bangladesh Core FHIR Implementation Guide"/>
|
||||
<status value="active"/>
|
||||
@@ -102,6 +102,11 @@
|
||||
<title value="IG Change History"/>
|
||||
<generation value="html"/>
|
||||
</page>
|
||||
<page>
|
||||
<nameUrl value="history.html"/>
|
||||
<title value="Version History"/>
|
||||
<generation value="html"/>
|
||||
</page>
|
||||
</page>
|
||||
<!-- copyright year is a mandatory parameter -->
|
||||
<parameter>
|
||||
|
||||
47
input/fsh/codeSystems/ICD11MMSCS.fsh
Normal file
47
input/fsh/codeSystems/ICD11MMSCS.fsh
Normal file
@@ -0,0 +1,47 @@
|
||||
// ============================================================
|
||||
// CodeSystem-icd11-mms.fsh
|
||||
// ICD-11 Mortality and Morbidity Statistics (MMS) — stub only
|
||||
// Content is hosted externally; canonical authority is WHO.
|
||||
// Runtime resolution via OCL: https://tr.ocl.dghs.gov.bd
|
||||
// ============================================================
|
||||
|
||||
CodeSystem: ICD11MMSCS
|
||||
Id: icd11-mms
|
||||
Title: "ICD-11 Mortality and Morbidity Statistics (MMS)"
|
||||
Description: """
|
||||
WHO ICD-11 Mortality and Morbidity Statistics linearization.
|
||||
Canonical system URI: http://id.who.int/icd/release/11/mms
|
||||
|
||||
This CodeSystem is declared as a stub (content = #not-present).
|
||||
The authoritative content is maintained by the World Health Organization.
|
||||
In Bangladesh, runtime code validation and lookup are delegated to the
|
||||
national OCL terminology server at https://tr.ocl.dghs.gov.bd.
|
||||
|
||||
Supported operations (use `system=` parameter, not `url=`):
|
||||
- $validate-code: https://tr.ocl.dghs.gov.bd/api/fhir/CodeSystem/$validate-code?system=http://id.who.int/icd/release/11/mms&code={code}
|
||||
- $lookup: https://tr.ocl.dghs.gov.bd/api/fhir/CodeSystem/$lookup?system=http://id.who.int/icd/release/11/mms&code={code}
|
||||
|
||||
$expand is not supported — known OCL limitation. Expansion must not be
|
||||
attempted at build time or by IG Publisher.
|
||||
|
||||
Preferred code form: short stem codes (e.g. 1A00, NC72.Z).
|
||||
Linearization URIs are not used as code identifiers in this IG.
|
||||
|
||||
Version 2025-01 is imported into OCL with 36,941 concepts across
|
||||
the following concept classes: Diagnosis, Finding, Substance, Organism,
|
||||
Device, Anatomy, Misc.
|
||||
"""
|
||||
|
||||
* ^url = "http://id.who.int/icd/release/11/mms"
|
||||
* ^version = "2025-01"
|
||||
* ^status = #active
|
||||
* ^experimental = false
|
||||
* ^publisher = "World Health Organization (WHO)"
|
||||
* ^contact.name = "Directorate General of Health Services (DGHS), MoHFW, Bangladesh"
|
||||
* ^contact.telecom.system = #url
|
||||
* ^contact.telecom.value = "https://dghs.gov.bd"
|
||||
* ^jurisdiction = urn:iso:std:iso:3166#BD "Bangladesh"
|
||||
* ^copyright = "ICD-11 is copyright © World Health Organization. Used under licence."
|
||||
* ^content = #not-present
|
||||
* ^count = 36941
|
||||
* ^caseSensitive = true
|
||||
@@ -11,6 +11,30 @@
|
||||
"status": "ci-build",
|
||||
"current": true
|
||||
},
|
||||
{
|
||||
"version": "0.2.4",
|
||||
"date": "2025-10-06",
|
||||
"desc": "Second draft release of the Bangladesh Core FHIR IG",
|
||||
"path": "https://fhir.dghs.gov.bd/core/0.2.4/",
|
||||
"status": "trial-use",
|
||||
"sequence": "STU 1"
|
||||
},
|
||||
{
|
||||
"version": "0.2.3",
|
||||
"date": "2025-10-06",
|
||||
"desc": "Second draft release of the Bangladesh Core FHIR IG",
|
||||
"path": "https://fhir.dghs.gov.bd/core/0.2.3/",
|
||||
"status": "trial-use",
|
||||
"sequence": "STU 1"
|
||||
},
|
||||
{
|
||||
"version": "0.2.2",
|
||||
"date": "2025-10-06",
|
||||
"desc": "Second draft release of the Bangladesh Core FHIR IG",
|
||||
"path": "https://fhir.dghs.gov.bd/core/0.2.2/",
|
||||
"status": "trial-use",
|
||||
"sequence": "STU 1"
|
||||
},
|
||||
{
|
||||
"version": "0.2.1",
|
||||
"date": "2025-10-06",
|
||||
|
||||
@@ -11,6 +11,30 @@
|
||||
"status": "ci-build",
|
||||
"current": true
|
||||
},
|
||||
{
|
||||
"version": "0.2.4",
|
||||
"date": "2025-10-06",
|
||||
"desc": "Second draft release of the Bangladesh Core FHIR IG",
|
||||
"path": "https://fhir.dghs.gov.bd/core/0.2.4/",
|
||||
"status": "trial-use",
|
||||
"sequence": "STU 1"
|
||||
},
|
||||
{
|
||||
"version": "0.2.3",
|
||||
"date": "2025-10-06",
|
||||
"desc": "Second draft release of the Bangladesh Core FHIR IG",
|
||||
"path": "https://fhir.dghs.gov.bd/core/0.2.3/",
|
||||
"status": "trial-use",
|
||||
"sequence": "STU 1"
|
||||
},
|
||||
{
|
||||
"version": "0.2.2",
|
||||
"date": "2025-10-06",
|
||||
"desc": "Second draft release of the Bangladesh Core FHIR IG",
|
||||
"path": "https://fhir.dghs.gov.bd/core/0.2.2/",
|
||||
"status": "trial-use",
|
||||
"sequence": "STU 1"
|
||||
},
|
||||
{
|
||||
"version": "0.2.1",
|
||||
"date": "2025-10-06",
|
||||
|
||||
@@ -6,7 +6,7 @@ description: >
|
||||
This Implementation Guide defines the Bangladesh Core FHIR profiles,
|
||||
value sets, code systems, and implementation rules for national digital health systems.
|
||||
status: draft
|
||||
version: 0.2.2
|
||||
version: 0.2.5
|
||||
fhirVersion: 4.0.1
|
||||
copyrightYear: 2025+
|
||||
releaseLabel: CI Build
|
||||
|
||||
Reference in New Issue
Block a user