Skip to content

Commit

Permalink
Merge pull request #82 from Alvearie/basic-resource
Browse files Browse the repository at this point in the history
Basic resource Review
  • Loading branch information
dmangum2 authored Jun 6, 2022
2 parents 79dae63 + 68792d5 commit 11b76e6
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 2 deletions.
17 changes: 17 additions & 0 deletions data/input/fsh/resources/basic/CDM_Basic.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Profile: CDMBasic
Parent: Basic
Id: cdm-basic
Title: "CDM Basic"
Description: "Basic is a special type of resource that doesn't correspond to a specific pre-defined HL7 concept. The CDMBasic profile extends the base FHIR Basic resource with support for additional code types."

* contained 0..0
* meta only ProcessMeta

// Must support at least one identifier
// Identifiers to have one system and value
* identifier 1..*
* identifier.system 1..1
* identifier.value 1..1
* identifier.type from IdentifierTypeValueSet (extensible)

* code from WhBasicResourceTypeValueSet (preferred)
26 changes: 26 additions & 0 deletions data/input/fsh/resources/basic/CDM_BasicPII_Instance.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Instance: CDMBasicPIIInstance
InstanceOf: CDMBasic
Usage: #example
Title: "CDM Claim - Basic Resource Example"
Description: "Sample of a CDM Basic Resource with PII token"

* meta.source = "http://ibm.com/ApplicationA"
* meta.profile = "http://ibm.com/fhir/cdm/StructureDefinition/cdm-basic"

* meta.extension[tenantId].valueString = "tenant12345"
* meta.extension[ingestionBatchId].valueString = "zgVCJnQBxvshkKBI8Hzz"
* meta.extension[processName].valueString = "HDP"
* meta.extension[processClientId].valueString = "1234"
* meta.extension[processRecordId].valueIdentifier.system = "http://ibm.com/AppicationA"
* meta.extension[processRecordId].valueIdentifier.value = "7209_07869_e00080779_3938586_2516181"
* meta.extension[sourceFileId].valueString = "e00014543"

* identifier.use = #official
* identifier.type = IdentifierTypeCodeSystem#TKN
* identifier.system = "http://ibm.com/CodeSystem/local-pii-identifier"
* identifier.value = "2d86c4246a3c1eb516628bf324w6b9b3"

* code = WhBasicResourceTypeCodeSystem#patient-tokens
* subject = Reference(CDMPatientInstance)
* created = "2017-07-25"

3 changes: 3 additions & 0 deletions data/input/fsh/vocabulary/AliasCodingSystems.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,6 @@ Alias: NUBC-PATIENT-DISCHARGE = https://www.nubc.org/patient-discharge
Alias: NUBC-OCCURRENCE-CODE-CS = http://terminology.hl7.org/CodeSystem/v2-0350
Alias: CURRENCIES = https://www.hl7.org/fhir/valueset-currencies
Alias: REMIT-ADVICE-REMARK-CODE = https://x12.org/codes/remittance-advice-remark-codes

// Basic
Alias: BASIC-RESOURCE-TYPE = http://terminology.hl7.org/CodeSystem/basic-resource-type
1 change: 1 addition & 0 deletions data/input/fsh/vocabulary/IdentifierTypeCodes.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Description: "Extended set of Identifier type code for Health Data Connect Co
* #SSRI "Source System Row Identifier" "Represents the primary id from the original source system"
* #ADKEY "Advantage Database Key" "Advantage Database Key"
* #CUSTKEY "Advantage customer key" "Advantage customer key"
* #TKN "Token identifier" "Data tokenization service token"

ValueSet: IdentifierTypeValueSet
Id: identifier-type
Expand Down
15 changes: 15 additions & 0 deletions data/input/fsh/vocabulary/WhBasicResourceTypeCodeSystem.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
CodeSystem: WhBasicResourceTypeCodeSystem
Id: wh-basic-resource-type
Title: "Health Data Connect Basic Resource Type Codes"
Description: "Health Data Connect standard codes for the basic resource type"
* ^caseSensitive = true
* #patient-tokens "Patient Tokens" "A set of anonymous patient identifiers created by hashing Personally identifiable information (PII)"


ValueSet: WhBasicResourceTypeValueSet
Id: wh-basic-resource-type
Title: "Health Data Connect Basic Resource Value Set"
Description: "Health Data Connect value set for the basic resource type"
* codes from system http://terminology.hl7.org/CodeSystem/basic-resource-type
* codes from system WhBasicResourceTypeCodeSystem

2 changes: 1 addition & 1 deletion data/sushi-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: AlvearieFHIRImplementationGuide
title: Alvearie FHIR Implementation Guide
description: Alvearie FHIR Profiles
status: active # draft | active | retired | unknown
version: 6.1.0
version: 6.1.1
fhirVersion: 4.0.1 # https://www.hl7.org/fhir/valueset-FHIR-version.html
copyrightYear: 2021+
releaseLabel: draft # ci-build | draft | qa-preview | ballot | trial-use | release | update | normative+trial-use
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alvearie.fhir.ig",
"version": "6.1.0",
"version": "6.1.1",
"canonical": "http://alvearie.github.io/alvearie-fhir-ig",
"url": "http://alvearie.github.io/alvearie-fhir-ig",
"title": "Alvearie FHIR Implementation Guide",
Expand Down

0 comments on commit 11b76e6

Please sign in to comment.