Skip to content

Instantly share code, notes, and snippets.

@ewoutkramer
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ewoutkramer/8bff05d70291d9d82871 to your computer and use it in GitHub Desktop.
Save ewoutkramer/8bff05d70291d9d82871 to your computer and use it in GitHub Desktop.

First try, a ValueSet that follows the human readable page as closely as possible. A parser should look for table headers and fixed phrases to distill a ValueSet resource from this text

ValueSet ParticipantType

ValueSet url: http://hl7.org/fhir/vs/participant-type

A set of codes that can be used to indicate how an individual participates in an encounter.

This valueset defines its own terms in the system http://hl7.org/fhir/participant-type

Code Display Definition
translator Translator A translator who is facilitating communication with the patient during the encounter
emergency Emergency A person to be contacted in case of an emergency during the encounter

In addition, this value set includes codes defined in other code systems, using the following rules:

  • Include codes from http://hl7.org/fhir/v3/ParticipationType where concept is-a _ParticipationAncillary

 

 

 


Alternatively, the use of headers and tables can be increased so the text is more structured and can be parsed more confidently

ValueSet ParticipantType

Summary

Name ParticipantType
Description A set of codes that can be used to indicate how an individual participates in an encounter.
ValueSet url http://hl7.org/fhir/vs/participant-type

Definitions

This valueset defines its own terms in the system http://hl7.org/fhir/participant-type

Code Display Definition
translator Translator A translator who is facilitating communication with the patient during the encounter
emergency Emergency A person to be contacted in case of an emergency during the encounter

Includes

In addition, this value set includes codes defined in other code systems, using the following rules:

In/exclude From Axis Argument
Include http://hl7.org/fhir/v3/ParticipationType is-a _ParticipationAncillary

 

 

 


Finally, we can include a structured markup language like YAML to replace the tables

ValueSet ParticipantType

A set of codes that can be used to indicate how an individual participates in an encounter.

url: http://hl7.org/fhir/vs/participant-type
name: ParticipantType
description: A set of codes that can be used to indicate how an individual participates in an encounter.
status: draft
experimental: true
define:
	system: http://hl7.org/fhir/v3/ParticipationType
	concept:
		- [ code: "translator", display: "Translator", definition: "" ]
		- [ code: "emergency", display: "Emergency", definition: "" ]		
compose:
	include:
		- system: http://hl7.org/fhir/v3/ParticipationType
		  filter: [ property: "concept", op: "is-a", value: "_ParticipationAncillary" ]
	
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment