public static CodedValue ToCodedValue(this Coding coding) { var familyVocab = HealthVaultVocabularies.ExtractFamilyAndVocabularyFromSystemUrl(coding.System); var returnValue = new CodedValue { Value = coding.Code, VocabularyName = familyVocab.vocabulary, Family = familyVocab.family, Version = coding.Version, }; return(returnValue); }
internal static CodableValue CreateCodableValueFromQuantityValues(string system, string code, string unit) { var familyVocab = HealthVaultVocabularies.ExtractFamilyAndVocabularyFromSystemUrl(system); return(new CodableValue(unit, code, familyVocab.vocabulary, familyVocab.family, null)); }