Skip to content

Commit cd5b847

Browse files
author
healthedata1
committed
LOINC attachment codes testing
1 parent 2233082 commit cd5b847

File tree

7 files changed

+138
-0
lines changed

7 files changed

+138
-0
lines changed

FHIR-us-healthedata1-sandbox.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
<artifact id="Location/hospital" key="Location-hospital" name="Hospital Location"/>
1010
<artifact id="Patient/example" key="Patient-example" name="Patient Example"/>
1111
<artifact id="ServiceRequest/servicerequest-pmo-example1" key="ServiceRequest-servicerequest-pmo-example1" name="ServiceRequest DNR Example"/>
12+
<artifact id="StructureDefinition/test-binding" key="StructureDefinition-test-binding" name="Test Binding"/>
1213
<artifact id="StructureDefinition/us-core-adi-documentreference" key="StructureDefinition-us-core-adi-documentreference" name="US Core ADI DocumentReference Profile"/>
1314
<artifact id="StructureDefinition/us-core-ethnicity" key="StructureDefinition-us-core-ethnicity" name="US Core Ethnicity Extension"/>
1415
<artifact id="StructureDefinition/us-core-pmo-servicerequest" key="StructureDefinition-us-core-pmo-servicerequest" name="US Core PMO ServiceRequest Profile"/>
1516
<artifact id="ValueSet/us-core-portable-medical-orders" key="ValueSet-us-core-portable-medical-orders" name="US Core Portable Medical Orders"/>
1617
<artifact id="StructureDefinition/us-core-race" key="StructureDefinition-us-core-race" name="US Core Race Extension"/>
18+
<artifact id="Basic/example-referral" key="Basic-example-referral" name="example-referral"/>
1719
<page key="NA" name="(NA)"/>
1820
<page key="many" name="(many)"/>
1921
<page key="artifacts" name="Artifacts Summary"/>

fsh-generated/includes/fsh-link-references.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[cdex-document-digital-sig-example]: Bundle-cdex-document-digital-sig-example.html
22
[polst]: DocumentReference-polst.html
3+
[example-referral]: Basic-example-referral.html
34
[hospital]: Location-hospital.html
45
[example]: Patient-example.html
56
[servicerequest-pmo-example1]: ServiceRequest-servicerequest-pmo-example1.html
7+
[TestBinding]: StructureDefinition-test-binding.html
68
[USCoreADIDocumentReferenceProfile]: StructureDefinition-us-core-adi-documentreference.html
79
[USCoreEthnicityExtension]: StructureDefinition-us-core-ethnicity.html
810
[USCorePMOServiceRequestProfile]: StructureDefinition-us-core-pmo-servicerequest.html

fsh-generated/resources/ImplementationGuide-hl7.fhir.us.healthedata1-sandbox.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@
8888
"name": "DocumentReference POLST (PDF)",
8989
"exampleCanonical": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-adi-documentreference"
9090
},
91+
{
92+
"reference": {
93+
"reference": "Basic/example-referral"
94+
},
95+
"name": "example-referral",
96+
"exampleCanonical": "http://example.org/fhir/StructureDefinition/test-binding"
97+
},
9198
{
9299
"reference": {
93100
"reference": "Location/hospital"
@@ -112,6 +119,14 @@
112119
"name": "ServiceRequest DNR Example",
113120
"exampleCanonical": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-pmo-servicerequest"
114121
},
122+
{
123+
"reference": {
124+
"reference": "StructureDefinition/test-binding"
125+
},
126+
"description": "A profile on the FHIR R4 Basic resource for representing a referral, with the code element constrained to the LOINC valid HL7 attachment requests value set.",
127+
"exampleBoolean": false,
128+
"name": "Test Binding"
129+
},
115130
{
116131
"reference": {
117132
"reference": "StructureDefinition/us-core-adi-documentreference"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"resourceType": "Basic",
3+
"id": "example-loinc-binding",
4+
"meta": {
5+
"profile": [
6+
"http://example.org/fhir/StructureDefinition/test-binding"
7+
]
8+
},
9+
"code": {
10+
"coding": [
11+
{
12+
"system": "http://loinc.org",
13+
"code": "11506-3",
14+
"display": "Progress note"
15+
}
16+
]
17+
}
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"resourceType": "Basic",
3+
"id": "example-referral",
4+
"meta": {
5+
"profile": [
6+
"http://example.org/fhir/StructureDefinition/test-binding"
7+
]
8+
},
9+
"code": {
10+
"coding": [
11+
{
12+
"system": "http://loinc.org",
13+
"code": "11506-3",
14+
"display": "Progress note"
15+
}
16+
]
17+
}
18+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
resourceType: StructureDefinition
2+
id: test-binding
3+
url: 'http://example.org/fhir/StructureDefinition/test-binding'
4+
version: 1.0.0
5+
name: TestBinding
6+
title: Test Binding
7+
status: draft
8+
date: '2025-08-22'
9+
publisher: Example Organization
10+
description: 'A profile on the FHIR R4 Basic resource for representing a referral, with the code element constrained to the LOINC valid HL7 attachment requests value set.'
11+
fhirVersion: 4.0.1
12+
kind: resource
13+
abstract: false
14+
type: Basic
15+
baseDefinition: 'http://hl7.org/fhir/StructureDefinition/Basic'
16+
derivation: constraint
17+
differential:
18+
element:
19+
-
20+
id: Basic
21+
path: Basic
22+
short: Referral Basic Profile
23+
definition: A profile on Basic resource for representing referral information.
24+
-
25+
id: Basic.code
26+
path: Basic.code
27+
short: Kind of attachment
28+
definition: 'constrained to valid HL7 attachment request codes from LOINC.'
29+
min: 1
30+
max: '1'
31+
type:
32+
-
33+
code: CodeableConcept
34+
binding:
35+
strength: required
36+
description: bound to LOINC valid HL7 attachment requests.
37+
valueSet: 'http://loinc.org/vs/valid-hl7-attachment-requests'
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"resourceType": "StructureDefinition",
3+
"id": "test-binding",
4+
"url": "http://example.org/fhir/StructureDefinition/test-binding",
5+
"version": "1.0.0",
6+
"name": "TestBinding",
7+
"title": "Test Binding",
8+
"status": "draft",
9+
"date": "2025-08-22",
10+
"publisher": "Example Organization",
11+
"description": "A profile on the FHIR R4 Basic resource for representing a referral, with the code element constrained to the LOINC valid HL7 attachment requests value set.",
12+
"fhirVersion": "4.0.1",
13+
"kind": "resource",
14+
"abstract": false,
15+
"type": "Basic",
16+
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Basic",
17+
"derivation": "constraint",
18+
"differential": {
19+
"element": [
20+
{
21+
"id": "Basic",
22+
"path": "Basic",
23+
"short": "Referral Basic Profile",
24+
"definition": "A profile on Basic resource for representing referral information."
25+
},
26+
{
27+
"id": "Basic.code",
28+
"path": "Basic.code",
29+
"short": "Kind of attachment",
30+
"definition": "constrained to valid HL7 attachment request codes from LOINC.",
31+
"min": 1,
32+
"max": "1",
33+
"type": [
34+
{
35+
"code": "CodeableConcept"
36+
}
37+
],
38+
"binding": {
39+
"strength": "required",
40+
"description": "bound to LOINC valid HL7 attachment requests.",
41+
"valueSet": "http://loinc.org/vs/valid-hl7-attachment-requests"
42+
}
43+
}
44+
]
45+
}
46+
}

0 commit comments

Comments
 (0)